|
Post by karambit on Apr 24, 2021 15:08:31 GMT -8
Is there a way to smooth out the Wind Direction readings over a certain interval? I find that sometimes the wind vane can get blown around if the wind has high variances in the speed and this can cause inaccurate wind direction readings if the writeWeatherRecord job runs at the wrong time. The vane has such little friction that is is very easy to make it spin and if the wind isn't a somewhat consistent speed then a small burst of wind can send the vane spinning in circles. This also happened on my old GroveWeatherPi system with the WeatherRack and I ended up coding it to read the wind direction every 10 seconds and when it went to write to the database or upload to Weather Underground it used the most common reading during the last 5 minutes. I also did the same thing for wind speed and wind gust on that system to use the average for each over the past 5 minutes. Attached is a sample from today on my Weather Underground PWS page showing the erratic readings. A second attachment is from the other day when the wind was a little more consistent and the direction had a lot less erratic readings. Attachments:
|
|
|
Post by SDL on Apr 25, 2021 13:12:50 GMT -8
You could edit the SkyWeather2 code to smooth the data as it is put in the database, or do a smoothing function before you send it to WeatherUnderground.
BP
|
|