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 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

Trend Indicator on Humidity Gauge

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
K8POS
Posts: 94
Joined: Sat 03 Jan 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 »

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: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Trend Indicator on Humidity Gauge

Post by mcrossley »

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: 94
Joined: Sat 03 Jan 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 »

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

Thanks
Post Reply