View Single Post
Old April 11th, 2011, 07:20 PM   #520 (permalink)
toasty's Avatar
Join Date: Jan 2010
Posts: 290
Device(s): Sprint EVO 4G LTE Sprint EVO 4G (ret.) Sprint HTC Hero (ret.)
Carrier: Not Provided

Thanks: 8
Thanked 25 Times in 17 Posts

Originally Posted by Tumeg View Post
  • Time; 00:00 to 23:30 - repeating every hour.
  • [You can also have a context for battery life, so if your battery gets too low, it will stop checking the weather and what not]
  • Variable -> Variable Set: Name: "%ZIPCODE" - Then in the "To" field, put in your zip code.
  • Net -> HTTP Get: Port=""
  • Variable -> Split Variable: Name: "%HTTPD" - Splitter: "Currently:"
  • Tasker -> Stop: If: "%HTTPD2" is NOT SET
  • Variable -> Split Variable: Name: "%HTTPD2" - Splitter: ":"
  • Variable -> Variable Set: Name "%HTTPD21" To "Sunny" If "%HTTPD21 ~ *Sunny*" (make one of these tasks, for every weather type you intend to encounter. i.e "Sunny" "Rain" "Storm" "Cloudy" "Clear")
  • Variable -> Variable Set: Name "%HTTPD21" To "Default" If "%HTTPD21" does NOT equal "Sunny/Rain/Storm/Cloudy/Clear"
  • Variable -> Variable Set: Name "%HTTPD21" To "Night" If "%TIME > 20"
  • Display -> Set Wallpaper: Image "wallpapers/%HTTPD21.jpg"

To make this work, just have a folder in the root directory of your phone entitled "wallpapers" which will contain each of the wallpapers. Title each wallpaper with the corresponding weather that you have in your tasks (I believe it is case sensitive).
The "Default" one, just is a basic wallpaper that will be used, if none of the weather conditions are reached. The "Night" task\wallpaper, will be used after a certain time (In the tasks above, it will start at 8pm)

Original Source: Weather Dependent Background Image - Tasker Wiki
Thanks man, I appreciate it.
toasty is offline  
Reply With Quote