Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

Highcharts 'Recent' graphs

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

Moderator: daj

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

Highcharts 'Recent' graphs

Post by mcrossley » Mon 17 Dec 2012 6:22 pm

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: 26717
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 » Mon 17 Dec 2012 7:03 pm

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 » Mon 17 Dec 2012 8:45 pm

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: 5580
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts 'Recent' graphs

Post by mcrossley » Mon 17 Dec 2012 11:07 pm

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: 5580
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts 'Recent' graphs

Post by mcrossley » Tue 18 Dec 2012 4:28 pm

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: 1535
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Highcharts 'Recent' graphs

Post by water01 » Tue 18 Dec 2012 4:42 pm

Seems fine here about 1-2 second load time.

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 » Tue 18 Dec 2012 4:56 pm

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 » Tue 18 Dec 2012 8:30 pm

Lot faster than yesterday.

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

Re: Highcharts 'Recent' graphs

Post by mcrossley » Tue 18 Dec 2012 9:27 pm

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

User avatar
nitrx
Posts: 1298
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 » Tue 18 Dec 2012 9:44 pm

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 » Fri 21 Dec 2012 8:04 pm

Does the PHP use the NEW 2.0 import file timestamps?

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

Re: Highcharts 'Recent' graphs

Post by mcrossley » Fri 21 Dec 2012 8:27 pm

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 » Fri 21 Dec 2012 9:27 pm

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: 5580
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Highcharts 'Recent' graphs

Post by mcrossley » Fri 21 Dec 2012 9:37 pm

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 » Fri 21 Dec 2012 9:48 pm

Awesome, sounds good to me.

Post Reply