Get Weather Data for your Location
-
If you have no own weather station but are interested in local weather data then weather data from Weather Underground (wunderground) can help to close this gap.
I built three small scripts to ask wunderground for data (wunderweather.py), send the to the thingspeak server for visualization (thingspeak.sh) and cover both scripts (weather.sh). You will find them on my Github for download.
You have to register at Wunderground to get an API key and to change the location in the call of the Wunderground API
f = urllib2.urlopen('http://api.wunderground.com/api/a50..........06f/geolookup/conditions/q/Switzerland/Altendorf.json')The result are presented in the website http://ckuehnel.ch/wu.html.
-
I would pull your API Key out of the post, just in case. If anyone uses it a lot, it will count against your allotment.
-
@Brad-Buskey You are right. I changed it. Thanks Claus