Highcharts - Realtime: Difference between revisions

m
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 16: Line 16:
*Download and copy the [http://www.highcharts.com/ Highcharts] files on to your web server  
*Download and copy the [http://www.highcharts.com/ Highcharts] files on to your web server  
*Download the [http://unxutils.sourceforge.net/ GNU utilities for Win32] - I used the latest updates (after 14-04-03)   
*Download the [http://unxutils.sourceforge.net/ GNU utilities for Win32] - I used the latest updates (after 14-04-03)   
*Download the [http://wiki.sandaysoft.com/files/Realtime_Highcharts_v1-0.zip Realtime_Highcharts ZIP file]  (right click, Save as)
*Download the [https://cumuluswiki.org/files/Realtime_Highcharts_v1-0.zip Realtime_Highcharts ZIP file]  (right click, Save as)


Next you have to decide where and how the realtime log file will be created. The zip file contains a simple Windows batch file that will create a log file of a specified length. If you have a Windows web server you could run it directly on there (this is how I do it), or run it on your Cumulus computer and get Cumulus to upload the log file periodically.  
Next you have to decide where and how the realtime log file will be created. The zip file contains a simple Windows batch file that will create a log file of a specified length. If you have a Windows web server you could run it directly on there (this is how I do it), or run it on your Cumulus computer and get Cumulus to upload the log file periodically.  
Line 22: Line 22:
Wherever you run the batch file to create the realtime log, you will also need a copy the 'tail.exe' utility from the GNU utilities for Win32 zip file.  
Wherever you run the batch file to create the realtime log, you will also need a copy the 'tail.exe' utility from the GNU utilities for Win32 zip file.  


Alternatively Kevin at [http://cumulus.tnetweather.com/projects/ TNET Weather] has created a PHP script to create such a log file. The batch file is simple and creates a limited length log file, the TNET scripts typically create much larger log files.  
Alternatively Kevin at [http://cumulus.tnetweather.com/projects/ TNET Weather] has created a PHP script to create such a log file. The batch file is simple and creates a limited length log file, the TNET scripts typically create much larger log files.
 
A third alternative is to use [[Toolbox|Cumulus Toolbox]], which has the option to create a realtimelog.txt in your Cumulus folder, You can then use Toolbox to copy of FTP this file to your web server. Toolbox has has the option to 'prune' the logfile, with a granularity of 1 day.


= The result  =
= The result  =
Line 41: Line 43:
= What next?  =
= What next?  =


That is left as an exercise for you :), maybe include this in an AJAX enabled 'Conditions now' page - similar to the supplied Cumulus index.htm? This is what [http://weather.wilmslowastro.com/index.htm I have done here].  
That is left as an exercise for you :), maybe include this in an AJAX enabled 'Conditions now' page - similar to the supplied Cumulus index.htm? This is what [http://weather.wilmslowastro.com/index.htm I have done here].
 
The realtimeLogParser.php can also be used for any other purpose you like too ;)


= Version Control  =
= Version Control  =


*1.0 - 29 Nov 2012 - First release [[http://wiki.sandaysoft.com/files/Realtime_Highcharts_v1-0.zip Download]]
*1.0 - 29 Nov 2012 - First release [[https://cumuluswiki.org/files/Realtime_Highcharts_v1-0.zip Download]]
 
[[Category:WebTools]][[Category:User Contributions]]
5,838

edits