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 4019) - 03 April 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

Chart selection disappears on Historic Charts

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Chart selection disappears on Historic Charts

Post by flort »

I have been running the default website alongside my custom site and everything works fine except the Historic Charts. The page loads and you momentarily see the chart selection buttons at the bottom of the page but then they disappear so you only get to see the Temperature Chart and you can't choose another chart. The Trends page works fine and looking at the code I can't see any reason why the Historic page behaves differently.

Appreciate if someone could give me a bit of guidance as to where the problem lies. My website is at http://flor.byethost24.com/weatherMX/index.htm

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

Re: Chart selection disappears on Historic Charts

Post by mcrossley »

Hi Trevor, you have found a bug.

Please edit the file "js/historiccharts.js" on your web site.
Change line 24 from

Code: Select all

$('#btnTempSum').parent().remove();
to

Code: Select all

$('#btnTempSum').remove();
And it should work as expected.
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Chart selection disappears on Historic Charts

Post by flort »

Hi Mark,

Thanks. That worked perfectly. I had looked at several other sites to compare the js file and they were all using the standard file. I didn't realise they all had Solar Radiation, Degree Days and Temp Sum enabled whereas I have them disabled. I assume that's why mine wasn't working.

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

Re: Chart selection disappears on Historic Charts

Post by mcrossley »

Yep, it is disabling the temperature sum that triggers it.
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Chart selection disappears on Historic Charts

Post by flort »

Hi Mark,

I just installed the latest version b:3159 and everything works fine except you've missed correcting this bug. I've manually modified my historiccharts.js file again.

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

Re: Chart selection disappears on Historic Charts

Post by mcrossley »

Doh! :bash:
Post Reply