If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Solar Gauge "Wedge" Issue

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

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

Re: Solar Gauge "Wedge" Issue

Postby mcrossley » Thu Aug 10, 2017 8:37 am

Code: Select all

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

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

Re: Solar Gauge "Wedge" Issue

Postby Herbaldew » Thu Aug 10, 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([]);
}


Return to “SteelSeries Gauges”

Who is online

Users browsing this forum: No registered users and 0 guests