Re: Interesting MX observation.
Posted: Tue 21 Jun 2016 7:57 am
Mark does that apply to all "Gauge" users?
Support forum for Cumulus weather station software
https://cumulus.hosiene.co.uk/
Code: Select all
if (cache.maxValue !== ssGauge.getMaxValue()) {
ssGauge.setValue(0);
ssGauge.setMaxValue(cache.maxValue);
}
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);
}
}
I am assuming that it is in the /home/pi/CumulusMX/interface/steelseries/scripts/gauges.js file?mcrossley wrote:OK, I just took a look at the console - it is a "niceScale thing".
Change line 137 of gauges.js to...fixes it.Code: Select all
niceScale : false,
I have changed the main gauges code base to apply a permanent fix.