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

Update weathercloud service to upload both average and current wind data #87

Closed ashenshugarRET closed 5 years ago

ashenshugarRET commented 5 years ago

The recent change to the weathercloud service uploader breaks the trend charting for wind speed as only average wind speed and direction are used. The advice from weathercloud team is to upload the wspd and wdir values also as wspdavg and wdiravg

Hi Craig, Thank you for using Weathercloud. The wspdavg and wdiravg are the 10-min average wind speed and direction values. Jim can calculate these 2 parameters or send the wspd and wdir values also as wspdavg and wdiravg. He will find all the information in the API Documentation that we sent him. Regards,

The Weathercloud team

Thanks Richard

jim-easterbrook commented 5 years ago

pywws cannot calculate a 10 minute average windspeed as it only has one or two short samples in a ten minute period.

ashenshugarRET commented 5 years ago

Dear Jim,

I understand the issue with generating a true average, however the weathercloud team have suggested that the live data be submitted as both the wspd, wdir and wspdavg, wdiravg to ensure all functions should as trend changing display data. I realise this isn't a perfect solution but is better than not having values submitted to wspdavg and wdiravg as this breaks charting.

Thanks

Richard

ashenshugarRET commented 5 years ago

Dead Jim, Would a better approach be to include an option in weather.ini similar to that used for internal data to allow the user to choose if live wind data is sent as average data? Thanks Richard

jim-easterbrook commented 5 years ago

OK. I don't think we need yet another user option. If WeatherCloud are happy with this "wrong" data then that's OK with me.

jim-easterbrook commented 5 years ago

Release 19.7.1 includes this change.