Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

Solar Gauge "Wedge" Issue

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

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

Re: Solar Gauge "Wedge" Issue

Post by mcrossley » Thu 10 Aug 2017 8:37 am

Code: Select all

if (cache.currMaxValue > 0) {
....
} else {
    ssGauge.setArea([]);
}

Herbaldew
Posts: 84
Joined: Sun 12 Mar 2017 8:33 pm
Weather Station: VP2+
Operating System: Raspbian Stretch
Location: US Mid-Atlantic

Re: Solar Gauge "Wedge" Issue

Post by Herbaldew » Thu 10 Aug 2017 5:49 pm

Works great - thanks!

A note to anyone trying this and who may be copy-n-pasting like me ... I ended up with one "}" too many and had to delete one, so I used this:

Code: Select all

 else {
    ssGauge.setArea([]);
}
instead of this:

Code: Select all

} else {
    ssGauge.setArea([]);
}

Post Reply