Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.3.0 build 3063 - 10 January 2020.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    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 » Mon 11 Dec 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: 5930
    Joined: Thu 07 Jan 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 11 Dec 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: 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 » Mon 11 Dec 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