Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 894 Bytes

File metadata and controls

12 lines (8 loc) · 894 Bytes

FMIWeatherClient

Python client to read weather info from FMI open data service https://en.ilmatieteenlaitos.fi/open-data-manual-fmi-wfs-services

Installation and use

Using the demo application to print result to console does not require any other modules to be installed. Execute the tool: python3 demo.py --location tampella

Location parameter is geographical name for the place for which you want to get the data. It could be generic like "helsinki", or more specific FMI observation station like "tampella".

weathersender.py is application that sends temperature data to InfluxDB database setup with https://github.com/jurajama/TempMonitor. To use that, configure your server information in my_config.py and run the application like python3 /home/pi/FMIWeatherClient/weathersender.py --location=tampella. You may want to make that as cron task to send data periodically.