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

Interesting MX observation.

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Interesting MX observation.

Post by water01 »

Mark does that apply to all "Gauge" users?
David
Image
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: Interesting MX observation.

Post by mcrossley »

Potentially yes, I haven't looked at what values may trigger this behaviour, but it large values are more likely to than small ones.

A better fix which keeps the 'nice scaling' is to make the change I have now put into the main gauges code...

Code: Select all

                   if (cache.maxValue !== ssGauge.getMaxValue()) {
                        ssGauge.setValue(0);
                        ssGauge.setMaxValue(cache.maxValue);
                    }
to...

Code: Select all

                    if (cache.maxValue !== ssGauge.getMaxValue()) {
                        if (ssGauge.getMaxValue() > cache.maxValue) {
                            // Gauge currently showing more than our max (nice scale effect),
                            // so reset our max to match
                            cache.maxValue = ssGauge.getMaxValue();
                        } else {
                            // Gauge scale is too low, increase it.
                            // First set the pointer back to zero so we get a nice animation
                            ssGauge.setValue(0);
                            // and redraw the gauge with the new scale
                            ssGauge.setMaxValue(cache.maxValue);
                        }
                    }
User avatar
ICP963
Posts: 54
Joined: Thu 04 Jul 2013 7:53 am
Weather Station: Vantage Vue
Operating System: Raspbian
Location: Chandler, AZ, USA

Re: Interesting MX observation.

Post by ICP963 »

mcrossley wrote:OK, I just took a look at the console - it is a "niceScale thing".

Change line 137 of gauges.js to...

Code: Select all

            niceScale               : false,
fixes it.

I have changed the main gauges code base to apply a permanent fix.
I am assuming that it is in the /home/pi/CumulusMX/interface/steelseries/scripts/gauges.js file?

I changes the one on line 137 to false from true. There are several other instances of niceScale in that file that are all set to false, is that correct?

I will try that and wait for the next time we get set to BROIL, today was ONLY 112.5F and a Dew Point of 45.4. :clap:
Roy Schahrer - N7QYK
Chandler, AZ
WX Station : Davis Vantage Vue with USB Datalogger
WX Computer: Raspberry Pi 3 Model B running Raspbian
Software : CumulusMX Beta 3041
Locked