Page 1 of 1

disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 3:28 am
by spatieman
Morning..

Is there a way to disable autoscaling on the gauges?
my weather station pumps out randomly bogus stats that makes the gauges crazy.
i modded some entries already in the gauges.js script (what also gives a ton of nformation)
and yes i know, can realy mess things up.

Tom.

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 4:03 am
by spatieman
nvr mind, think i found it.

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 5:25 am
by HansR
you might share what you found?

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 5:46 am
by spatieman
gauges.js
But settingthe vallue to 0 is freezing the whole gauge page.

line 885 in gauges.js
scaleStep = data.tempunit[1] === 'C' ? 0.1 : 2; // 10 and 20 default
Default values 10 and 20, i lowered them to 0.1 ,so a smaller step should happen.


line 1137 the same.
en goede morgen Hans.

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 6:13 am
by HansR
Thanks @spaceman
En ook goeiemorgen voor jou ;)

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 7:25 am
by water01
Instead of altering the gauges why don't you stop the invalid readings being accepted by using spike removal in the Calibration settings.

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 12:37 pm
by spatieman
eh.
that is possible ???

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 1:10 pm
by freddie
spatieman wrote: Fri 01 Jul 2022 12:37 pm eh.
that is possible ???
Yes. In the MX interface, go to Settings -> Calibration Settings
Under each element (i.e. pressure, temperature) there is a "Spike removal" setting that you can change to a value that will recognise and ignore spurious data "spikes".

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 1:11 pm
by spatieman
found it, a lot of it !

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 5:14 pm
by water01
spatieman wrote: Fri 01 Jul 2022 1:11 pm found it, a lot of it !
Comprehensive to stop invalid data.

Re: disabling the autoscale function for gauges.

Posted: Fri 01 Jul 2022 7:14 pm
by spatieman
ya, but tweaking the proper ignore values takes time.
oh wel,, time enough.