Python/Raspberry Pi: Weather Station

A barebones set of classes for talking to the Yahoo Weather API. Written in Python and performs XML parsing on the returned data. This was written with the Raspberry Pi in mind, but it should run anywhere with Python and an internet connection. It’s as simple as:

$ python3 ./Weather.py

Uses:

  • Python
  • urllib
  • XML

Features:

  • WOEID Location usage
  • Weather location
  • Weather type
  • Weather description
  • Temp high/low
  • Wind data
  • Atmospherics data
  • Astronomy data (sunrise/set)

It’s a cinch to add additional data gathering methods to it as you wish though – feel free to hack about with it and send a pull req of anything interesting.

Code here: https://github.com/craigfortune/WeatherStation