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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s