Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.7.0 (build 3089) - 28 July 2020 (please see important announcement regarding releases since 3.5.0)
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 the NOAA report and Snow Index drop-down menus to 2030)

Use this link to Download the Software (Cumulus MX / Cumulus 1 and other related items). Software

Highcharts 'Recent' graphs

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

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

Highcharts 'Recent' graphs

Post by mcrossley »

Hmm, looks like Highcharts are too slow when loaded with 48 hrs worth of realtime data at 1 minute updates :(

http://weather.wilmslowastro.com/highch ... Graphs.htm

User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Highcharts 'Recent' graphs

Post by steve »

Seems OK here?
Steve

tobyspond
Posts: 252
Joined: Fri 24 Jun 2011 5:57 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Lamoine, Maine, USA

Re: Highcharts 'Recent' graphs

Post by tobyspond »

Hi Mark,

The graphs are a bit slow on the initial load and fine after that. The graphs not any slower than the WU version of these graphs I have seen other web pages.

Kerry

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

Re: Highcharts 'Recent' graphs

Post by mcrossley »

The initial data download can be just short of 2 seconds, but subsequent graph data loads are about 300ms (for me, but I'm fairly local :) ). Highcharts then takes about 600ms to render the graph (the Wind Direction plot takes longer because it is drawing all the point 'graphics'). So just around the 'rule' of 3 seconds for a page load.

Edit: This evening I have being playing around with my web server caching responses for various pages - it will ease the load on my laptop, but I may have taken them too far, we'll see...

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

Re: Highcharts 'Recent' graphs

Post by mcrossley »

OK, I've made some changes, most of the graphs now only pull back every 10th record out of the realtime table.

The Wind Direction graph has a few 'optimisations' applied (switching off stuff like mouse tracking and popup data for each point) and pulls back every other record from the table.

Any quicker/smoother?

You may have to flush your browser caches to pick up the new script, I managed to get a one month cache retention on the scripts for a while :bash:

water01
Posts: 1943
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Highcharts 'Recent' graphs

Post by water01 »

Seems fine here about 1-2 second load time.
David
Image

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

Re: Highcharts 'Recent' graphs

Post by KevinF »

It's good for me too. When clicking on each variable in quick succession it is very slick, with just a slight stall on wind direction. On the whole a nice piece of presentation that is a joy to look at and explore. BTW my pc is fairly crap in terms of speed.

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

Re: Highcharts 'Recent' graphs

Post by thekow »

Lot faster than yesterday.

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

Re: Highcharts 'Recent' graphs

Post by mcrossley »

Added a Solar/UV Graph - but I don't have any data :roll: :lol:

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

Re: Highcharts 'Recent' graphs

Post by nitrx »

Works fine hand fast on my android tablet , read hand without An h , autocorrection s.. :bash:

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

Re: Highcharts 'Recent' graphs

Post by thekow »

Does the PHP use the NEW 2.0 import file timestamps?

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

Re: Highcharts 'Recent' graphs

Post by mcrossley »

It does.

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

Re: Highcharts 'Recent' graphs

Post by thekow »

Converted my DB over.. just waiting for graphs release :)
I assume this will be using realtime data from mysql.

My current 24 hour graph is using a .txt file.

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

Re: Highcharts 'Recent' graphs

Post by mcrossley »

Yes they do, I have also converted my 6hr graph to use the MySQL table too, the text log file is now gone.

weather.wilmslowastro.com/realtimeLogSql.php?view=sce
Last edited by mcrossley on Fri 21 Dec 2012 11:37 pm, edited 1 time in total.

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

Re: Highcharts 'Recent' graphs

Post by thekow »

Awesome, sounds good to me.

Post Reply