Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Solar Gauge Sun is Shining LED request

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
colinpb
Posts: 86
Joined: Thu 10 Nov 2011 8:14 pm
Weather Station: VP2+SHT31+DFars+Solar+AeroCone
Operating System: Windows 10
Location: Hemel Hempstead, Hertfordshire, UK

Solar Gauge Sun is Shining LED request

Post by colinpb »

Mark

Would it be possible to include the sun is shining LED as standard on the solar gauge

Colin
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Solar Gauge Sun is Shining LED request

Post by mcrossley »

Probably a good idea to make it an enabled option, but I'll have to check which packages can supply the data, which cannot supply the data but do provide a theoretical reading so it could be calculated, and those where it cannot be used at all.
nossis
Posts: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

Re: Solar Gauge Sun is Shining LED request

Post by nossis »

I have implemented this on my gauges. Although I was originally hoping for it not to be flashing, but in hindsight actually works well flashing. I have also set up one for when it rains. Yet to test as we haven't had decent rain since June.

Add a couple of lines of code to the gauges.js file.

around line 889 add
params.ledVisible = true;
params.ledColor= steelseries.LedColor.YELLOW_LED;

around line 1922 add
_gaugeSolar.setThreshold(data.IsSunny === "1" ? -10000 : 10000);

Also add the code of "IsSunny":"<#IsSunny>" into realtimegaugesT.txt for this to work
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Solar Gauge Sun is Shining LED request

Post by mcrossley »

I have added this to version 2.5.0, once I get a moment over the Christmas break I push it out to a few testers before general release.
Post Reply