Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Highcharts Graphs

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Highcharts Graphs

Post by dazza1223 »

hi is there any way some one can help me to set all this up plz!!!
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
ternzer
Posts: 19
Joined: Sat 02 Mar 2013 6:28 pm
Weather Station: davis vp2
Operating System: whs 2011
Location: west michigan
Contact:

Re: Highcharts Graphs

Post by ternzer »

Thanks for all the info in this thread. I have my charts up and running for the most part. However I am having a problem with the dates on the historic daily. the chart ends exactly 9 months ago today. so today my chart ends at 3/20/16. yesterday it ended 3/19/16. The data appears to be correct for today but the label is 9 months old. I am using the CumulusMx SQL uploader. Then I used the import script to back fill the last 3 years of the dayfile. If I revert back to the old dayfile the chart correctly fills the limited amount of data 12/10-12/20 and presents it correctly. when I compare the date formats in mysql they are the same - yyyy-mm-dd
I think it is either it is something with the historictemperaturedaily.php, the data import or the historicgraphs.js.
can someone lend some insight?

my temporary pages are here while I work out the bugs -
http://www.ernzer.com/wx16/graphs_historic.php

thanks
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Highcharts Graphs

Post by Bridger »

I am updating my old version of Historic Graphs and need some advice on a couple of issues I have with implementing the new version.
On the temperature graphs the degree symbol displays as ° (A circumflex,degree symbol).
My page has character set as <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />.
I am able to display the degree symbol correctly if I use the numeric code &#176 in historicGraphs.js but suspect there is a more simple solution.

My second issue is getting the Comfort and ByMonth&Hr graphs to load. I seem to need a "fulldata" table in my SQL database - what is populating fulldata? I am currently uploading just dayfile.txt to tables daydata and topten using Cumulus Toolbox.
I am running v1.9.4 b1099 (if it ain't broke...) and my test page is here :- http://www.fordingbridgeweather.co.uk/s ... graphs.php

Thanks
Mapantz
Posts: 1774
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Highcharts Graphs

Post by Mapantz »

fulldata equates to the Monthly table, which is the standard that Cumulus MX uploads to. So, if you're not using an SQL database, it would be the equivalent of your monthly text files ie Jan17log.txt
I'm not sure how you would get that to work, because you have a file for each month. Whereas with CMX, the single SQL Monthly database is continuously added to.
Somebody may have already found a way to populate those particular graphs from text files..
The other alternative, is to bite the bullet and switch to CMX and set up the SQL database. I'm not a master at any of that, but I did ask for some help and pointers, and I got it successfully set up. I wouldn't look back now, SQL is the way forward for collecting data, and it means I don't need any programs open, apart from CMX - it does it all. :)

Re the degrees symbol, the slack way that I did it, was to replace °C with °C
Image
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Highcharts Graphs

Post by Bridger »

Thanks for your prompt reply.
I have sorted the °C problem by using Hex code \xB0.
As for the Comfort and ByMonth&Hr graphs,unless I can find a way to to upload the monthly log files I will have to bite the bullet and upgrade to MX.
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Highcharts Graphs

Post by dazza1223 »

lol i dont know where to start to set all this up Highcharts Graphs
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Highcharts Graphs

Post by PaulMy »

unless I can find a way to to upload the monthly log files
the ImportCumulusFile.php will do that, for historical one month at a time http://wiki.sandaysoft.com/a/ImportCumulusFile.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts Graphs

Post by mcrossley »

PaulMy wrote:
unless I can find a way to to upload the monthly log files
the ImportCumulusFile.php will do that, for historical one month at a time http://wiki.sandaysoft.com/a/ImportCumulusFile.

Enjoy,
Paul
And in case it isn't clear, you can use it with Cumulus 1
Mapantz
Posts: 1774
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Highcharts Graphs

Post by Mapantz »

Aha! Yes, I totally forgot about that! :)
Image
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Highcharts Graphs

Post by dazza1223 »

what this erro mean

Error: You must supply a 'file' parameter/value
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts Graphs

Post by mcrossley »

How are you calling the script? Have you read the examples in the script header block?
I'd suggest a new thread for this topic, it isn't directly related to Highcharts.
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Highcharts Graphs

Post by dazza1223 »

bye the url
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Highcharts Graphs

Post by Bridger »

I could do with a little more help please.
I have noticed the the daily Humidity and Pressure graphs have an end date of 30th Jan (from the overnight dayfile upload) but the daily Temperature, Wind and Rain graphs have an end date of 27th Jan.
Just in case it was a problem with the historicGraphs.js I had edited, I have uploaded a copy of your historicGraphs.js Mark, but the problem is still there.
Edit: I notice that the historicHumidityDaily.php and historicPressureDaily.php files do not have the 10 minute offset that the 3 problematic files have. Could this be relevant?
Thanks for the info on uploading the monthly log files. Something to look at once I have fixed the current problem.
http://www.fordingbridgeweather.co.uk/s ... graphs.php
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts Graphs

Post by mcrossley »

Bridger wrote:I could do with a little more help please.
I have noticed the the daily Humidity and Pressure graphs have an end date of 30th Jan (from the overnight dayfile upload) but the daily Temperature, Wind and Rain graphs have an end date of 27th Jan.
Just in case it was a problem with the historicGraphs.js I had edited, I have uploaded a copy of your historicGraphs.js Mark, but the problem is still there.
Edit: I notice that the historicHumidityDaily.php and historicPressureDaily.php files do not have the 10 minute offset that the 3 problematic files have. Could this be relevant?
Thanks for the info on uploading the monthly log files. Something to look at once I have fixed the current problem.
http://www.fordingbridgeweather.co.uk/s ... graphs.php
Re the 27th Jan, could you have some gaps in your data? The PHP just sends the start date and then the data, a value for each day. If any days are missing then the graph will end early. So even if the day records are present if say the temperature data is missing from any of the rows then...
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Highcharts Graphs

Post by Bridger »

My dayfile SQL table appears to be fully populated up to 30 Jan and this would appear to be born out by my original Historic Graphs which all show daily data up to 30 Jan, using the same table.
I will check the situation tomorrow(Wednesday) after the overnight dayfile upload.
Original Historic Graphs:-http://www.fordingbridgeweather.co.uk/s ... graphs.php
Test Graphs :-http://www.fordingbridgeweather.co.uk/s ... graphs.php
Thanks
Edit: I checked the graphs this morning and the end date on the DailyTemperature graph is now 28 Jan (was 27 Jan yesterday) however, the data on the last plot is for 31 Jan. I have double checked this in the database and yesterday.ini. Min Temp=7.3, MaxTemp=11.2 Avg Temp=9.5.
Daily Pressure and Daily Humidity are OK,showing 31 Jan.
You do not have the required permissions to view the files attached to this post.
Post Reply