Page 5 of 28

Re: Highcharts Graphs

Posted: Thu 29 Nov 2012 3:00 pm
by nitrx
With the new script the local time here is correct Mark thanks :clap: , not sure what my visitors will see in another time zone..

Re: Highcharts Graphs

Posted: Thu 29 Nov 2012 3:12 pm
by KevinF
Good job Mark....I suspect quite few will like that

Regards Kevin

Re: Highcharts Graphs

Posted: Wed 05 Dec 2012 4:12 pm
by kc2kzz
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

Re: Highcharts Graphs

Posted: Wed 05 Dec 2012 4:32 pm
by nitrx
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

Re: Highcharts Graphs

Posted: Wed 05 Dec 2012 4:50 pm
by mcrossley
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

Re: Highcharts Graphs

Posted: Thu 06 Dec 2012 5:45 am
by thekow
Also requesting the historical pages please!!! :)

Re: Highcharts Graphs

Posted: Thu 06 Dec 2012 12:04 pm
by kc2kzz
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

Re: Highcharts Graphs

Posted: Thu 06 Dec 2012 4:05 pm
by mcrossley
It is still not parsing the date correctly, you still need to set...
$date_delimiter = '-';

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

Re: Highcharts Graphs

Posted: Thu 06 Dec 2012 4:41 pm
by kc2kzz
I fixed it, but it still blanks out for some reason.

Re: Highcharts Graphs

Posted: Thu 06 Dec 2012 4:51 pm
by mcrossley
You have changed the date delimiter in realtimeCumulus.js to "-", but your realtime.txt file uses "/"

Re: Highcharts Graphs

Posted: Thu 06 Dec 2012 5:26 pm
by water01
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.

Re: Highcharts Graphs

Posted: Fri 07 Dec 2012 2:47 am
by thekow
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.

Re: Highcharts Graphs

Posted: Fri 07 Dec 2012 8:07 am
by water01
Worked fine for me but I did leave the www of but that is all.

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

Re: Highcharts Graphs

Posted: Sat 08 Dec 2012 3:33 pm
by water01
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.

Re: Highcharts Graphs

Posted: Sun 09 Dec 2012 2:54 am
by thekow
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?