Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

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

hemmits
Posts: 31
Joined: Wed 14 May 2014 2:07 am
Weather Station: Davis Pro 2
Operating System: Windows 10
Location: usa

Wind Speed/Gust Rounding CWOP

Post by hemmits »

I recently set Cumulus mx to apply a gust multiplier of 1.1. Today I had a wind gust that registered as 39 mph in the Cumulus software and associated web pages. I have Cumulus set to round wind speeds. However, the gust registered as 38 mph in the CWOP. In checking Weather Underwound, the gust was sent out as 38.5 mph. My guess is that either the CWOP is taking the integer value or Cumulus is sending the integer. I hadn't seen this before, but maybe Cumulus only sends out the rounded value if a multiplier is not applied? Is there a way you could have Cumulus send out the rounded wind speed values to data networks?
User avatar
mcrossley
Posts: 12774
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 »

The Davis system only supplies integer MPH wind values. Applying a multiplier will generate decimal values.

I guess if Cumulus is set to round wind speeds then it should send the rounded value externally as well. I'll put it on the the ToDo list...
hemmits
Posts: 31
Joined: Wed 14 May 2014 2:07 am
Weather Station: Davis Pro 2
Operating System: Windows 10
Location: usa

Re: Wind Speed/Gust Rounding CWOP

Post by hemmits »

Sounds good, thanks Mark!
hemmits
Posts: 31
Joined: Wed 14 May 2014 2:07 am
Weather Station: Davis Pro 2
Operating System: Windows 10
Location: usa

Re: Wind Speed/Gust Rounding CWOP

Post by hemmits »

Mark has rounding of the wind gust been applied to all uploads of Cumulus Mx? I noticed that my wind gust in Weather Underground is the integer of the gust, not the rounded value. It does look like the wind gust is being rounded correctly in my CWOP uploads and on my webpage though.
User avatar
mcrossley
Posts: 12774
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 »

Sorry, it had slipped off my radar, I'll remind myself to look at this as it should not be hard to fix.
hemmits
Posts: 31
Joined: Wed 14 May 2014 2:07 am
Weather Station: Davis Pro 2
Operating System: Windows 10
Location: usa

Re: Wind Speed/Gust Rounding CWOP

Post by hemmits »

Sounds good, thanks!
User avatar
mcrossley
Posts: 12774
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 »

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.
broadstairs
Posts: 774
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by broadstairs »

I have an issue with rounding wind speeds although somewhat different to that described here. I have rounding set off (unticked in Station Settings/Common Options/Speed rounding unticked) so I would expect my speeds to have at least 1 decimal point however mine all show with no decimal point so that means they are rounded or zero decimal points is set. My display on my website is all using webtags and I do not send to CWOP etc!

So as has already been set this setting is useless. I'd expect with this unticked to get 1 decimal point shown assuming it is not 0! Any whole number wind speed in mph is not common since my Ecowitt station sends speed in kilometres/hour and therefore needs conversion.

Stuart
User avatar
mcrossley
Posts: 12774
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 »

How many display decimals do you have set in the units settings?
broadstairs
Posts: 774
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by broadstairs »

mcrossley wrote: Mon 09 Jan 2023 2:29 pm How many display decimals do you have set in the units settings?
Since that is in the advanced settings I had not looked at it so it was set as default of 0. Don't really understand why wind would be different from the others. Very confusing in my view especially when you have rounding as well. Now set go 1 which I think should be default.

Stuart

Thinking about it not sure why it's in the advanced section with that warning, had it been a normal entry on its own I would have taken a look at it.
SamiS
Posts: 379
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Wind Speed/Gust Rounding CWOP

Post by SamiS »

broadstairs wrote: Mon 09 Jan 2023 2:36 pm Since that is in the advanced settings I had not looked at it so it was set as default of 0. Don't really understand why wind would be different from the others. Very confusing in my view especially when you have rounding as well. Now set go 1 which I think should be default.
This must have something to do with the selected wind unit. Because I have a clean installation with ecowitt station, wind unit is m/s and I do have one decimal shown by default.


Sami
User avatar
mcrossley
Posts: 12774
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 »

broadstairs wrote: Mon 09 Jan 2023 2:36 pm Now set go 1 which I think should be default.
If you think you have a station that can accurately measure wind speed to 0.1 mph then you have one hell of a fantastic station ;)

I do use decimal mph for average values but stick with integer values for the single gust measurements. Ecowitt display 0.01 mph in their app!!!! :roll:
broadstairs
Posts: 774
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: Wind Speed/Gust Rounding CWOP

Post by broadstairs »

Irrespective of whether or not 0.1mph is valid or not I think my main point here is that the decimal place value settings are in what in my view is a strange place effectively hidden in a menu item which has a warning about 'Here be dragons'.

I don't see why this is the right place to hide what is in effect a display option about decimal places. In my view it does not need a warning it is something which should be placed somewhere obvious so folks are aware of it. That warning suggests to me that what is behind that option is something which can cause huge issues and that is certainly not the case with decimal places. That explains why I was not aware of it.

I think one decimal place is valid since we are converting from metres/second which is that unit of measurement sent by Ecowitt and 30.0 and 30.9 are significantly different.

Stuart
User avatar
mcrossley
Posts: 12774
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 »

Perhaps the warning is a bit strong, people in the past though haven't realised that it also affects the precision of data storage.

Ecowitt claim an accuracy on the WS90 of ± 0.5 m/s below 10 m/s. That is ± 1.1 mph, so I think rounding to integer mph is a sensible default for the latest values, the average mph speeds default to 1 decimal place.

Davis VP2 is similar, greater of ± 2mph or +/- 5%

Above 10 m/s WS90 is ± 5%, so at 30 mph that is a range of 3 mph, quoting gust values to a tenth of a mph implies a precision that just isn't there.
davepaterson
Posts: 146
Joined: Tue 01 Jan 2019 8:12 pm
Weather Station: HP2552 , WH40/WH68+WH57/GW1100C
Operating System: Windows 11/11
Location: Hamilton, Scotland UK

Re: Wind Speed/Gust Rounding CWOP

Post by davepaterson »

Mark Is there any way of getting the current gust reading into realtime.txt or realtimegauges.txt and not the last high.?
Post Reply