Weather on statusbar
Posted: 17 Apr 2013 20:54
EDIT: version2 using 2 xml files, added some delay (2 seconds)
1) get a free account from http://www.wunderground.com/weather/api/ (signup for api key)
2) load (import) this flow to your automagic,
3) by default, this flow will update notification on statusbar every ~1 hour, everyday, from 08:00 to 23:00 (you can change them) if active network is Mobile or Wifi
4) "wunderground api conditions xml" & "wunderground api forecast xml" these are names of HTTP request actions, enter your api key there, and change the link according to your city & country.. you can also change lang:XX there.. extension must be same, xml
examples:
api.wunderground.com/api/<yourapikey>/conditions/lang:TR/q/tu/Antalya.xml
api.wunderground.com/api/<yourapikey>/conditions/lang:EN/q/uk/London.xml
5) Action: notification status bar: i wrote "Cityname" there as an example, write your city there,
result: on statusbar: below data will be displayed:
<cityname> <forecast weather> <temp now> (<tempfeeling now>) deg C
<today min. temp>(<today max. temp>) deg C xx km/h <winddirection> Rain probability % <time xml retrieved>
you may examine other wunderground api xml's(you need to add another http request), add them and, for ex. you can add sunrise-sunset, you can add other alerts, for ex. snow..
api.wunderground.com/api/<yourapikey>/astronomy/q/Australia/Sydney.xml
wunderground api help is here http://www.wunderground.com/weather/api/d/docs
note that if you want to use data features there (alerts, astronomy, forecast ... ) make sure that you'll use xml extension at the end of http:// (instead of json)
so you can get variables with evaluateXPathAsString (var, "//xpath") in the script
1) get a free account from http://www.wunderground.com/weather/api/ (signup for api key)
2) load (import) this flow to your automagic,
3) by default, this flow will update notification on statusbar every ~1 hour, everyday, from 08:00 to 23:00 (you can change them) if active network is Mobile or Wifi
4) "wunderground api conditions xml" & "wunderground api forecast xml" these are names of HTTP request actions, enter your api key there, and change the link according to your city & country.. you can also change lang:XX there.. extension must be same, xml
examples:
api.wunderground.com/api/<yourapikey>/conditions/lang:TR/q/tu/Antalya.xml
api.wunderground.com/api/<yourapikey>/conditions/lang:EN/q/uk/London.xml
5) Action: notification status bar: i wrote "Cityname" there as an example, write your city there,
result: on statusbar: below data will be displayed:
<cityname> <forecast weather> <temp now> (<tempfeeling now>) deg C
<today min. temp>(<today max. temp>) deg C xx km/h <winddirection> Rain probability % <time xml retrieved>
you may examine other wunderground api xml's(you need to add another http request), add them and, for ex. you can add sunrise-sunset, you can add other alerts, for ex. snow..
api.wunderground.com/api/<yourapikey>/astronomy/q/Australia/Sydney.xml
wunderground api help is here http://www.wunderground.com/weather/api/d/docs
note that if you want to use data features there (alerts, astronomy, forecast ... ) make sure that you'll use xml extension at the end of http:// (instead of json)
so you can get variables with evaluateXPathAsString (var, "//xpath") in the script