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 3043 Jan 20 2017. See the Wiki for download

Trend Indicator on Humidity Gauge

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
K8POS
Posts: 93
Joined: Sat Jan 03, 2015 4:17 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Thumb of Michigan
Contact:

Trend Indicator on Humidity Gauge

Post by K8POS » Mon Dec 11, 2017 3:40 am

Have searched this forum for 2 hours looking for this. Has anyone added a trend arrow to their Humidity Gauge?
I have locked out the Indoor readings for both Temperature and Humidity.
I was looking at the Gauges.js to see how the trend indicators were done.
I can see on line 738 this code: params.trendVisible = gaugeGlobals.tempTrendVisible;
I think this turns it off/on for the temperature gauge.
I also see about line 1404 where the humidity Gauge is defined.
Could I just include the line to add the Trend indicator, or do I also need more parameters.

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

Re: Trend Indicator on Humidity Gauge

Post by mcrossley » Mon Dec 11, 2017 1:19 pm

You'd first have to calculate what the trend was, Cumulus provides the trend for temperature but not for humidity. You'll therefore have to devise a method of determining it yourself.

Once you have that, then add it to the JSON file, and copy the code in the temperature gauge for display the value.

User avatar
K8POS
Posts: 93
Joined: Sat Jan 03, 2015 4:17 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Thumb of Michigan
Contact:

Re: Trend Indicator on Humidity Gauge

Post by K8POS » Mon Dec 11, 2017 2:45 pm

Some day I'll ask a question that has a very simple solution.
Have tons of reading to do now.

Thanks

Post Reply