How to change rounding of month.wind.max

57 views
Skip to first unread message

Paul

unread,
Feb 4, 2025, 5:42:58 PM2/4/25
to weewx-user
Hi I currently have a problem where the NOAA report shows 51,5 km/h but the month.wind.max in the html version shows 51 km/h so it seems like either of them has a rounding problem. (depending if the value would be 51,49 or 51,52).

So my question is how can I influence the rounding of month.wind.max?
(I guess one problem is that the db uses imperial values and I guess there could be a problem in the conversion to the metric system for the theme, but I might be wrong)

Thanks in advance,
Paul

Karen K

unread,
Feb 5, 2025, 1:10:57 AM2/5/25
to weewx-user
You could change the decimals in weewx.conf or skin.conf. In weewx.conf look for the section [StdReport][[Defaults]][[[Units]]][[[[StringFormats]]]]. There look for the unit that is used for wind speed in your setup. There is a string like "%.1f". You can change the decimals by changing the digit there. You can do the same in skin.conf in section [Units][[StringFormats]].

If you want to change the decimals of a single value in your skin you can add .format("%.2f"), where the digit is the amount of decimals, for examaple $month.wind.max.format("%.2f").

Reply all
Reply to author
Forward
0 new messages