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.

    Highcharts Graphs

    Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
    Post Reply
    User avatar
    nitrx
    Posts: 1299
    Joined: Sun 13 Dec 2009 1:21 pm
    Weather Station: WH1080
    Operating System: Windows 10
    Location: Apeldoorn The Netherlands
    Contact:

    Re: Highcharts Graphs

    Post by nitrx » Thu 29 Nov 2012 3:00 pm

    With the new script the local time here is correct Mark thanks :clap: , not sure what my visitors will see in another time zone..

    KevinF
    Posts: 71
    Joined: Sat 14 Apr 2012 5:01 pm
    Weather Station: WMR200
    Operating System: XP SP3
    Location: Lancashire

    Re: Highcharts Graphs

    Post by KevinF » Thu 29 Nov 2012 3:12 pm

    Good job Mark....I suspect quite few will like that

    Regards Kevin

    kc2kzz
    Posts: 33
    Joined: Tue 31 Jul 2012 2:08 pm
    Weather Station: Davis Vantage Vue
    Operating System: Raspbian on Pi B+
    Location: United States
    Contact:

    Re: Highcharts Graphs

    Post by kc2kzz » Wed 05 Dec 2012 4:12 pm

    I just set up highcharts using the realtimeCumulus files. Everything works fine, however after a minute or 2, the graph resets to 2006. Is there a setting I am missing?


    Example:
    http://www.warrenskywarn.org/index2.htm
    Image

    User avatar
    nitrx
    Posts: 1299
    Joined: Sun 13 Dec 2009 1:21 pm
    Weather Station: WH1080
    Operating System: Windows 10
    Location: Apeldoorn The Netherlands
    Contact:

    Re: Highcharts Graphs

    Post by nitrx » Wed 05 Dec 2012 4:32 pm

    You have a - as date separator in the realtime.log so you have to change the realtimeCumulus.js script I think.

    Code: Select all

    // The various delimiters used in your version of realtime.txt
    		dateDelimiter = '/',
    should be

    Code: Select all

    // The various delimiters used in your version of realtime.txt
    		dateDelimiter = '-',
    if this doesn't work look at the seprator in the php file and leave the js script as it was

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

    Re: Highcharts Graphs

    Post by mcrossley » Wed 05 Dec 2012 4:50 pm

    It is going wrong in the realtimeLogParser.php

    Your realtime.txt has the date format "05/12/12"
    but...
    Your realtime.log has the date format "2012-12-05"

    So different :roll:
    realtimeLogParser.php is set up to process the date in the realtime.txt format

    So you would need to change the date delimiter to "-"
    and change

    Code: Select all

    $tim = gmmktime($t[0], $t[1], $t[2], $d[1], $d[0], $d[2]) * 1000;
    to

    Code: Select all

    $tim = gmmktime($t[0], $t[1], $t[2], $d[1], $d[2], $d[0]) * 1000;
    You also need to edit the highcharts script to change the graph temperature units from °C to °F, rainfall mm to in, pressure hPA to inHg

    thekow
    Posts: 53
    Joined: Wed 05 Dec 2012 8:39 am
    Weather Station: w1080
    Operating System: Virtualbox XP environment
    Location: Australia
    Contact:

    Re: Highcharts Graphs

    Post by thekow » Thu 06 Dec 2012 5:45 am

    Also requesting the historical pages please!!! :)

    kc2kzz
    Posts: 33
    Joined: Tue 31 Jul 2012 2:08 pm
    Weather Station: Davis Vantage Vue
    Operating System: Raspbian on Pi B+
    Location: United States
    Contact:

    Re: Highcharts Graphs

    Post by kc2kzz » Thu 06 Dec 2012 12:04 pm

    I have made progress by changing the suggested entry in realtimeLogParser.php.

    So now the time does not shift, however the data (graph lines) disappear after a minute.

    http://www.warrenskywarn.org/cumulus/re ... umulus.htm
    Image

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

    Re: Highcharts Graphs

    Post by mcrossley » Thu 06 Dec 2012 4:05 pm

    It is still not parsing the date correctly, you still need to set...
    $date_delimiter = '-';

    it is still set to
    $date_delimiter = '/';

    kc2kzz
    Posts: 33
    Joined: Tue 31 Jul 2012 2:08 pm
    Weather Station: Davis Vantage Vue
    Operating System: Raspbian on Pi B+
    Location: United States
    Contact:

    Re: Highcharts Graphs

    Post by kc2kzz » Thu 06 Dec 2012 4:41 pm

    I fixed it, but it still blanks out for some reason.
    Image

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

    Re: Highcharts Graphs

    Post by mcrossley » Thu 06 Dec 2012 4:51 pm

    You have changed the date delimiter in realtimeCumulus.js to "-", but your realtime.txt file uses "/"

    water01
    Posts: 1569
    Joined: Sat 13 Aug 2011 9:33 am
    Weather Station: WH1081
    Operating System: Windows 7 64bit HP SP1
    Location: Somewhere in the USA
    Contact:

    Re: Highcharts Graphs

    Post by water01 » Thu 06 Dec 2012 5:26 pm

    I now have the Realtime Highcharts working here and I am using Cumulus Toolbox to give me the log file and upload it every minute.

    http://dmjsystems.co.uk/weather/index.htm

    Thanks for the help Mark.

    thekow
    Posts: 53
    Joined: Wed 05 Dec 2012 8:39 am
    Weather Station: w1080
    Operating System: Virtualbox XP environment
    Location: Australia
    Contact:

    Re: Highcharts Graphs

    Post by thekow » Fri 07 Dec 2012 2:47 am

    Water01 - It doesn't show up for me, you sure you referenced the webserver correctly? All i get is a blank chart.
    I have my realtime data working. Just got to build the rest of the site.

    water01
    Posts: 1569
    Joined: Sat 13 Aug 2011 9:33 am
    Weather Station: WH1081
    Operating System: Windows 7 64bit HP SP1
    Location: Somewhere in the USA
    Contact:

    Re: Highcharts Graphs

    Post by water01 » Fri 07 Dec 2012 8:07 am

    Worked fine for me but I did leave the www of but that is all.

    Try http://www.dmjsystems.co.uk/weather/

    water01
    Posts: 1569
    Joined: Sat 13 Aug 2011 9:33 am
    Weather Station: WH1081
    Operating System: Windows 7 64bit HP SP1
    Location: Somewhere in the USA
    Contact:

    Re: Highcharts Graphs

    Post by water01 » Sat 08 Dec 2012 3:33 pm

    I have now got the Highcharts working with my historic data see http://dmjsystems.co.uk/weather/historicgraphs.htm

    Many thanks to Mark for all his help and patience.

    thekow
    Posts: 53
    Joined: Wed 05 Dec 2012 8:39 am
    Weather Station: w1080
    Operating System: Virtualbox XP environment
    Location: Australia
    Contact:

    Re: Highcharts Graphs

    Post by thekow » Sun 09 Dec 2012 2:54 am

    Question i am now replacing my TRENDS graphs with the highcharts. I got everything working so far. But i wanted to if you know how to have the plots turned OFF until you click the icon up the top?

    Post Reply