Page 1 of 1

Trend Indicator on Humidity Gauge

Posted: Mon 11 Dec 2017 3:40 am
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.

Re: Trend Indicator on Humidity Gauge

Posted: Mon 11 Dec 2017 1:19 pm
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.

Re: Trend Indicator on Humidity Gauge

Posted: Mon 11 Dec 2017 2:45 pm
by K8POS
Some day I'll ask a question that has a very simple solution.
Have tons of reading to do now.

Thanks