Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Wind Speed/Gust Rounding CWOP

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by mcrossley »

I'm not sure what you mean, the current gust is already in both files.
davepaterson
Posts: 176
Joined: Tue 01 Jan 2019 8:12 pm
Weather Station: HP2551 , WH40/WH68+WH57/GW1100C
Operating System: Windows 11/11
Location: Hamilton, Scotland UK

Re: Wind Speed/Gust Rounding CWOP

Post by davepaterson »

Is the entry "wgust":"6.93" the one I should be using? as yes it shows the gust but it seam to be more of a recent than actual.
hemmits
Posts: 44
Joined: Wed 14 May 2014 2:07 am
Weather Station: Davis Pro 2
Operating System: Windows 11
Location: usa

Re: Wind Speed/Gust Rounding CWOP

Post by hemmits »

mcrossley wrote: Thu 22 Dec 2022 8:24 pm Right, I've had a look at this and I'm not sure the Round Wind Speeds is working as intended.

What it is actually doing is... not a lot!
It sets the default number of decimal places for output to zero, so CMX will output rounded values to logs and web tags unless you override the number of decimals in the advanced settings.
It also rounds the mph values sent to WU, WOW, and PWS. But not APRS/CWOP.
And the same rounding for the m/s values sent to Windy.

(which begs another question why did your WU show a max gust of 8.5, it should have been rounded)

The actual values are still decimal values.

What I thought it would do would be to round all your wind speeds to integer values, which would then be used everywhere (except some internal functions which use the raw uncalibrated values).
I would expect the mph values sent to third parties to represent an accurate decimal conversion of your rounded value. So, if you use mph natively, then the rounded value will be sent with zeros as decimals, but if you use km/h, knots etc. then a decimal mph value would be sent so when you convert back to km/h (say) on the third-party web site you should get the integer value back again. The same applies to sending m/s values to Windy.

I had thought I could slip this into the next release, which is almost ready to go, but this complexity means I will not do that until we thrash out what we want CMX to do.
Thanks again for digging into this!
davepaterson
Posts: 176
Joined: Tue 01 Jan 2019 8:12 pm
Weather Station: HP2551 , WH40/WH68+WH57/GW1100C
Operating System: Windows 11/11
Location: Hamilton, Scotland UK

Re: Wind Speed/Gust Rounding CWOP

Post by davepaterson »

Is there a command that can be added to realtimegauges.txt that can show the latest gust?.
"wgust":"<#wgust>", shows a recent peak gust which will go up if the next gust is higher but won't show a lower value until the peak times out. I have tried out these commands : "wglatest":"<#wglatest>",
"wgspeed":"<#wgspeed>", and "wgustnow":"<#wgustnow>", but no value is returned in any of them.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by mcrossley »

No need to guess, the tags are all listed in the wiki - https://www.cumuluswiki.org/a/Full_list_of_Webtags

<#wlatest> is what you want.
davepaterson
Posts: 176
Joined: Tue 01 Jan 2019 8:12 pm
Weather Station: HP2551 , WH40/WH68+WH57/GW1100C
Operating System: Windows 11/11
Location: Hamilton, Scotland UK

Re: Wind Speed/Gust Rounding CWOP

Post by davepaterson »

Thanks Mike, I am using <#wlatest> for the wind and all is OK with it. It's the gusts that I want to work the same as the wind. I looked at the webtags and selected <#RecentWindGust> but it is the same as <#wgust>.
It all showed up because of the lack of wind in the last few days when the gust still had a reading after the wind had gone to zero, both gust methods do go to zero but only after a time out period and don't show lower values of what had been displayed until the high peek times out
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by mcrossley »

That's how gust values work. If you want a shorter period, you must change it in the settings. CMX does not support multiple gust intervals.
The standard intervals are normally 10 minutes and 2 minutes.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by mcrossley »

It is a good idea for a couple of new web tags though for average and gust values in a specified interval.
davepaterson
Posts: 176
Joined: Tue 01 Jan 2019 8:12 pm
Weather Station: HP2551 , WH40/WH68+WH57/GW1100C
Operating System: Windows 11/11
Location: Hamilton, Scotland UK

Re: Wind Speed/Gust Rounding CWOP

Post by davepaterson »

That would be good Mark, for my part it's only for my own Dashboard no web site and have added a command that if the wind goes to zero the gust also goes to zero also but would like to see lower than the last peak value
davepaterson
Posts: 176
Joined: Tue 01 Jan 2019 8:12 pm
Weather Station: HP2551 , WH40/WH68+WH57/GW1100C
Operating System: Windows 11/11
Location: Hamilton, Scotland UK

Re: Wind Speed/Gust Rounding CWOP

Post by davepaterson »

Mark it would be good to add a web tag <#wglatest> (or similar) for the gust value without any standard intervals as is <#wlatest> for the wind and will show actual gust values.
Post Reply