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 ./


  • Python
  • urllib
  • XML


  • 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:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s