This is a rough script created to simply pull data from the wunderground API for a specific weather station in Bath and load it into the BathHacked
As described on the website, the objective of BathHacked is very simply...
We want to free local data and use it to make useful things.
To run this script, you'll need a collection of credentials:
- Register as a developer on Wunderground - http://api.wunderground.com/weather/api
- Signup and request administration rights on data.bathhacked.org ** Under your profile select App Token and create a new application *** This will be where your data is stored and gives your app and secure keys
Copy or rename the cfg.yml.sample file to cfg.yml and enter all your credentials.
- Edit the script and change the two dates that you want to load
- run
ruby get_weather_data.rb
and wait :-)
The data obtained by this script has been published to (Wunderground)[http://www.wunderground.com] by (Paul Wilman)[http://paulwilman.com/] who has put together an incredible website. You should totally check it out :-D
Wunderground API used under the (Terms and Conditions)[http://www.wunderground.com/weather/api/d/terms.html]