Rounding of wind speed

65 views
Skip to first unread message

Paul

unread,
Jan 11, 2025, 1:10:28 PMJan 11
to weewx-user
Hi,

In my NOAA report it has as "HIGH" 51,5 km/h but in the month html representation it shows 51 km/h as highest speed. So my question now is which one of them is mathematically correct? Either the value in DB is 51,48 which would then result in 51,5 for the txt report but in the html is would just use 51,4 which results in 51...

So the code used is "$day.wind.max.format($Wind,$NONE,add_label=False)" for the NOAA and "$month.wind.max" for the html tmpl.

Many thanks,
Paul

michael.k...@gmx.at

unread,
Jan 11, 2025, 2:57:25 PMJan 11
to weewx-user
What's the value in the max column in archive_day_windGust table?
What's the value in the max column in archive_day_wind table?

Are you sure that wind.max is what you want to know? Or rather windGust.max?

Paul

unread,
Jan 14, 2025, 3:01:36 PMJan 14
to weewx-user
I tried getting the value for the day on which 51,5 km/h was the top speed but it results in:
sqlite> SELECT max
   ...> FROM archive_day_windGust
   ...> WHERE date(datetime(dateTime, 'unixepoch')) = '2024-11-19'
   ...> ORDER BY max DESC;
21.0
and 
sqlite> SELECT max
FROM archive_day_wind
WHERE date(datetime(dateTime, 'unixepoch')) = '2024-11-19'
ORDER BY max DESC
LIMIT 5;
21.0

Maybe I just switch to a new skin. I just noticed that i use this db schema: user.weatherlink_live.schema
Is there any way how I can transition to the default wview-extended with weectl database?
Reply all
Reply to author
Forward
0 new messages