Attached is my 'proof of concept' code. This uses the
Highcharts graphing tools discussed in this thread.
My code will read the dayfile.txt data which has previouslly been imported into a MySQL table on your webserver. I use the SQL structure as generated by the
ImportCumulusFile tool, but any SQL table structure will do as long as you update the code accordingly.
Attached is the complete code and libraries.
You need to edit dbconfig.php to store your username, password, and table name for MySQL. Once done you should be able to browse to 'temperature.html' and get a graph similiar to
mine (showing the last 60 days worth of your Temperature highs and lows)
How it works.
- temperature.html is a basic HTML page -- it loads the necessary libraries and also js/graph.js which is my code to build the actual graph.
- graph.js processes graphdata.php and uses this to build a chart and place it in a div called 'container' in the HTML page
- graphdata.php reads the MySQL table and produces a CSV file for the charting tool to build a data series.
Any questions, I will try my best to help. As I say, its very basic but it does show that HighCharts can be used with the Cumulus data
You do not have the required permissions to view the files attached to this post.