pywws.service.openweathermap

Upload weather data to Open Weather Map.

Open Weather Map is a Latvian based IT company seeking to provide affordable weather data.

Configuring pywws to use Open Weather Map is a bit more complicated than with other services. Start by running the module to set some default values in weather.ini (with no other pywws software running):

python -m pywws.service.openweathermap data_dir

After signing up and logging in to Open Weather Map visit the API keys page and copy your default key to the api key entry in weather.ini. The external id field is a single word name to identify your station. You could use a name based on your post code, or maybe your id from Weather Underground or CWOP. The station name is a longer, human readable, name. I’m not sure what use Open Weather Map makes of either of these. lat and long should be set to the latitude and longitude of your station (in degrees) and alt to its altitude in metres.

After setting (or changing) the above fields you need to “register” your station with Open Weather Map. This is done by running the module with the -r flag:

python -m pywws.service.openweathermap -r -v data_dir

If you already have any stations registered with Open Weather Map this will show you their details. You can select one of these existing stations or register a new one. pywws then sends the configuration values from weather.ini to Open Weather Map.

If this succeeds then Open Weather Map will have allocated a station id value which pywws stores in weather.ini. All this complication is to allow more than one station to be attached to one user’s account.

Classes

ToService(context[, check_params])


Comments or questions? Please subscribe to the pywws mailing list http://groups.google.com/group/pywws and let us know.