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

Trend colours have changed

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

stevendt
Posts: 85
Joined: Sat 23 May 2020 4:19 pm
Weather Station: Davis Vatnage Pro2 Plus
Operating System: Windows 7/10
Location: Aberdeen, Scotland

Trend colours have changed

Post by stevendt »

Hi folks,

I've noticed a weird change this morning, the colours used in the trends on my Cumulus web page have changed, seemingly overnight. I have not updated Cumulus (b3079) or the Windows (7) OS, but the trend colours shown on iPad, iPhone and Edge (Windows 10) browsers have all changed. The other display colours seem to be unchanged. The trends shown locally, over the network from the Cumulus PC have also changed.

Has anyone seen this before or have any idea what might have caused it?

regards
Dave
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Trend colours have changed

Post by HansR »

I noticed the same and have been trying to find the cause. Not sure, only changed CumulusMX.exe because of the 3083 update.
I know the colours/layout of those graphs are defined by the theme. Did not have time to analyse it completely though.

The debugger says:

Code: Select all

        setOptions(Highcharts.theme);
in grid.js has a problem:
Aantekening 2020-06-10 124552.png
So having said that, it seems something has changed in the includes which are fetched somewhere else. Recently something changed in the reference of the highcharts libraries and apparently it does not match the grid.js which is already from the dawn of MX. So maybe just too old and needs review?

But I did not get any further than this.
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
stevendt
Posts: 85
Joined: Sat 23 May 2020 4:19 pm
Weather Station: Davis Vatnage Pro2 Plus
Operating System: Windows 7/10
Location: Aberdeen, Scotland

Re: Trend colours have changed

Post by stevendt »

Hi,

thanks a lot for the reply - I'm glad that it doesn't appear to be something wrong at my end then. I have not updated CumulusMX since I installed b3079, so it shouldn't be a Cumulus.exe change that caused my issue.

I did a quick check of the dates on script files that I think are used by the trends and there doesn't seem to have been any changes there, but you obviously know more about how the graphs are generated than I do, so thanks for the info.

Hopefully, Mark may be able to shed some light on this if it is more than a single user problem

regards
Dave
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trend colours have changed

Post by freddie »

An announcement post shows the changes in Highcharts references made at release 3.5.0. Looking at the post, it appears that the highstock javascript is fixed to version 8.0 - whereas grid javascript is set to download the latest version, which currently is 8.1. So it looks like a version mismatch between highstock and grid. You could either pin your grid version to 8.0 by editing the reference in your page. Or, alternatively, make both "latest version" by removing version information from the URL.
Freddie
Image
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Trend colours have changed

Post by HansR »

To be honest @freddie, I think this should be done in the release as the interface is definitely part of MX. It should not be a users problem.

And in your reference it is clearly stated

Code: Select all

As mentioned previously, this will only affect users whose interface and/or website do not have an internet connection - therefore this will affect very few users.
Well, I have internet which means as far as I understood that no action is required.

Apart from that, I am not sure the 8.x grid.js would be the same (or similar) as the old grid (which dates from 2015 I think). So if it is setup like this the look and feel of MX changes when highcharts changes. Doubt if that is what is intended.

To be honest, in my CumulusUtils, I caught this issue by making my own HighChartsDefaults. Whatever happens, it always will look the same.
Maybe MX should take a similar approach.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
stevendt
Posts: 85
Joined: Sat 23 May 2020 4:19 pm
Weather Station: Davis Vatnage Pro2 Plus
Operating System: Windows 7/10
Location: Aberdeen, Scotland

Re: Trend colours have changed

Post by stevendt »

Hi Freddie,

I agree with Hans. I read that Announcement before I installed CumulusMX - my install post-dated the Announcement and was release 3.6.3 (b3079). Having read the comments that :

"Under most circumstances this will not affect the functionality of your website or interface."
"this will only affect users whose interface and/or website do not have an internet connection - therefore this will affect very few users."

I did not expect to be affected, but obviously am.

It seems that this issue will impact ALL users unless they customise the charts?

regards
Dave
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Trend colours have changed

Post by sfws »

freddie wrote: Wed 10 Jun 2020 11:27 am An announcement post shows the changes in Highcharts references made at release 3.5.0. Looking at the post, it appears that the highstock javascript is fixed to version 8.0 - whereas grid javascript is set to download the latest version, which currently is 8.1. So it looks like a version mismatch between highstock and grid. You could either pin your grid version to 8.0 by editing the reference in your page. Or, alternatively, make both "latest version" by removing version information from the URL.
Actually, Freddie, your announcement possibly needs an update.
It was right for that version 3.5.0; and as far as I recall for other 3.5.x versions, but I am not bothering to check back.

However, I have noticed when updating for every version 3.6.x, that the Highstocks library is included in the CumulusMX/webfiles folder in each distribution, and is therefore restored during install of a new release, despite that I then delete it to match what your announcement implied.

You are right in what you say, the trendst.htm file is currently coded to load the mismatch from the cdn, instead of using the files in the distribution.

But your announcement is now wrong in respect of the files being excluded from the distribution, and the only source being a cdn.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trend colours have changed

Post by freddie »

HansR wrote: Wed 10 Jun 2020 11:49 am To be honest @freddie, I think this should be done in the release as the interface is definitely part of MX. It should not be a users problem.
I agree. This is just a quick fix.
HansR wrote: Wed 10 Jun 2020 11:49 amAnd in your reference it is clearly stated

Code: Select all

As mentioned previously, this will only affect users whose interface and/or website do not have an internet connection - therefore this will affect very few users.
Well, I have internet which means as far as I understood that no action is required.
That was referring to the fact that the files were no longer stored locally, so is not really pertinent to this discussion.
HansR wrote: Wed 10 Jun 2020 11:49 amApart from that, I am not sure the 8.x grid.js would be the same (or similar) as the old grid (which dates from 2015 I think). So if it is setup like this the look and feel of MX changes when highcharts changes. Doubt if that is what is intended.
Hence my comment on pinning the URLs to a specific Highcharts release (as a quick fix only, of course).
HansR wrote: Wed 10 Jun 2020 11:49 amTo be honest, in my CumulusUtils, I caught this issue by making my own HighChartsDefaults. Whatever happens, it always will look the same.
Maybe MX should take a similar approach.
Pinning to a release will have the same effect - but I defer to Mark on this matter.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trend colours have changed

Post by freddie »

sfws wrote: Wed 10 Jun 2020 12:15 pmBut your announcement is now wrong in respect of the files being excluded from the distribution, and the only source being a cdn.
I haven't heard anything from @mcrossley to suggest that the JS files were deliberately added to the distribution, so will await a response before changing the announcement.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trend colours have changed

Post by freddie »

stevendt wrote: Wed 10 Jun 2020 12:15 pmI did not expect to be affected, but obviously am.
The intent of the word "affected" in the announcement was to address those users that do not have an internet connection but wanted to keep their charts working. This issue is different, and is easily resolved - but I will hang fire on suggesting the precise mechanics of the resolution until I hear from Mark.
Freddie
Image
stevendt
Posts: 85
Joined: Sat 23 May 2020 4:19 pm
Weather Station: Davis Vatnage Pro2 Plus
Operating System: Windows 7/10
Location: Aberdeen, Scotland

Re: Trend colours have changed

Post by stevendt »

OK, thanks . . .

I will wait with bated breath :D
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trend colours have changed

Post by freddie »

It will be looked at on Friday.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trend colours have changed

Post by freddie »

In the meantime you could change the reference in CumulusMX/charts.html (and the equivalent on your web site) to 8.1, as a quick fix.

i.e. change https://code.highcharts.com/stock/8.0/highstock.js to https://code.highcharts.com/stock/8.1/highstock.js

Just as a quick fix, of course, until the distribution is sorted. :D
Freddie
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Trend colours have changed

Post by mcrossley »

I'll change the distribution on the next release to pin the grid.js file to the same version as the main HighCharts version. I have now discovered the undocumented (afaics) path for version specific theme files...
i.e.

Code: Select all

		<script src="https://code.highcharts.com/stock/8.0/highstock.js"></script>
		<script src="https://code.highcharts.com/8.0/themes/grid.js"></script>
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Trend colours have changed

Post by HansR »

Aha... had been looking for something like that already. To speed up I created my own grid :)
Undocumented is always tricky, but as long as it works it works :lol:
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply