jim-easterbrook / pywws

Python software for USB Wireless WeatherStations
https://pywws.readthedocs.io/
GNU General Public License v2.0
204 stars 62 forks source link

Upload to Windy.com #88

Closed mfraser closed 4 years ago

mfraser commented 5 years ago

Would like to be able to upload weather data to windy.com. They have an API at https://community.windy.com/topic/8168/report-you-weather-station-data-to-windy/35

jim-easterbrook commented 5 years ago

You can create your own "service" module, as described in https://pywws.readthedocs.io/en/latest/guides/integration.html#writing-your-own-uploader Once you've got it working it'll be easy to add it to the pywws distribution.

mfraser commented 4 years ago

Any idea why this: pywws.service.windy:server response "SUCCESS (partial)
unknown params: 'station_id',
" is showing in the logs?

jim-easterbrook commented 4 years ago

I've just started testing the Windy uploader (after tweaking it a bit to make it more consistent with other service uploaders) and am getting the same unknown params: 'station_id' problem. This doesn't happen when running it from the command line, but does when doing live logging. The station id it's using is from the openweathermap service! Something very strange is happening.

jim-easterbrook commented 4 years ago

Found it - service classes that don't define their own fixed_data end up sharing the one defined in the base class!