The current weather
Source | Date | Temperature | Feels like |
---|---|---|---|
Weather Underground | Wed, 11 Feb 2015 13:50:00 +0100 | 5 °C | 2 °C |
Forecast | Wed, 11 Feb 2015 13:54:11 +0100 | 5.31 °C | 3.33 °C |
a private site | 13:50 | 5,6 °C | -- °C |
How it's done
A cron job is regularly executing a bash script to retrieve the weather from Weather Underground (using wget), extract some data (using grep, cut), update the website (using sed) and push it to GitHub.
Credits
Christoph Winkler for his blog post Die Wundergound Weather API – endlich eine brauchbare
Forecast and for the weather data. Weather Underground is a registered trademark of The Weather Channel, LLC. both in the United States and internationally. The Weather Underground Logo is a trademark of Weather Underground, LLC.
The code
View it on GitHub: https://github.com/gflorian/WundergroundWeatherShow