Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Selectable date range with Highcharts

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Selectable date range with Highcharts

Post by liddelljs »

I have been doing a bit of research on highcharts with the aim of making the MX website charts dates selectable so I can chart historical date ranges. Has anyone done this with the standard MX charts? I managed to modify the js file to get the selectable dates on the chart but when I select the date range nothing happens so clearly more to it that I imagined.

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

Re: Selectable date range with Highcharts

Post by steve »

Can you give a link? It would probably make giving advice easier.
Steve
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Selectable date range with Highcharts

Post by liddelljs »

Thanks Steve. Link is: http://jandakotwa.dyndns.org/index.htm

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

Re: Selectable date range with Highcharts

Post by steve »

I can't tell what you've changed. Your charts look just like the original ones, and it's not obvious to me what changes you've done to the javascript to implement selectable dates?
Steve
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Selectable date range with Highcharts

Post by liddelljs »

Hi Steve,
I found a link on the highcharts website relating to the range selector (http://www.highcharts.com/docs/chart-co ... e-selector). I simply replaced the range selector component of cumuluscharts.js for zoom, 6hr, 12hr and all in the standard MX web page trends with the range selector for all, which includes a custom date range.

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

Re: Selectable date range with Highcharts

Post by steve »

Isn't that the same range selector that is already configured in the MX charts? The MX charts don't have 'inputEnabled' set, so you don't get the date selector boxes. But I still can't see any difference between your charts and the standard MX ones.

Have you configured MX to supply more than 24 hours worth of data for the charts? It's going to make it very slow if you try to use too much data - how far back are you trying to go? For genuinely 'historical' data, you would be better off using one of the other methods that some people are using, involving an SQL database.
Steve
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Selectable date range with Highcharts

Post by liddelljs »

Thanks Steve. I think I understand now how the charts are working and I hadn't configured them for more than 24 hrs of data - hence the reason the date ranges weren't working. I'll investigate the SQL database option.

Cheers
Steve
Locked