PyWeather contains weather related modules implemented in Python. Anything weather related is fair game for PyWeather. Currently PyWeather is limited to unit conversion, console reading, and data publication. But, future work can be added to PyWeather in any area.
PyWeather has a lot of support for common unit conversions in distance, temperature, pressure, and volume. Conversion from Fahrenheit to Celsius, and kelvin is supported, as well as conversions between inches of mercury and millibars.
PyWeather also contains modules that are capable of downloading observations from weather consoles. The current list of supported weather consoles includes:
PyWeather contains a module that allows developers to post conditions to weather aggregation sites. The current list of support services includes:
For additional information, please email the maintainer: pyweather@tuxcoder.com
scripts/weatherpub.py
supports publication of the weather data. It can also serve as a good usage example.
weatherpub.conf.example
as weatehrpub.conf
.weatehrpub.conf
:[general]
section set station
to the name of the station you have.publication
to a comma-separated list of weather services you'd like
to push data to../scripts/weatherpub.py -c scripts/weatherpub.conf
The script supports Vantage Pro and Netatmo. Vantage Pro support was not recently tested and may be broken by the latest update. Please report bugs and/or send pull requests.
By default script excepts Vantage Pro weather stations to be connected to //dev/ttyS0
. Use --tty
command-line flag to override it (this cannot be currently set via command-line), e.g. ./scripts/weatherpub.py -c scripts/weatherpub.conf --tty /dev/ttyS1
Since netatmo works via public API, some setup required first:
client_id
and client_secret
.username
and password
.module_name
to your outdoor module name, e.g. 'Outdoor'.Note: Rain Gauge and Anemometer are not supported yet.
Only 3 publication service are currently supported. Out of them only PWS Weather was properly tested.
[pwsweather]
section of the configuration file use your station id as site_id
, and password from account you created at step 1 as password
.