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

Humidity graph?

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
Texsky
Posts: 38
Joined: Sun 22 Mar 2020 5:07 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Texas, USA

Humidity graph?

Post by Texsky »

I've spent a fair bit of time tweaking MX(mostly colors and fonts) and have generally been successful (despite not knowing what I'm doing). However, the one adjustment that has me stumped is the color selection of the Humidity graph on the Recent charts list. No matter what I do, I can't find anywhere in all of the Cumulus directory files that holds those color values. I've tried changing charts.js the same way I did for other weather variables but for some reason, this one just won't cooperate. I can see the color rgb's using the Inspect feature of Chrome, but it doesn't point to any place where changes can be made. If someone has the solution that isn't overly difficult to implement, I would appreciate it.

Thanks.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Humidity graph?

Post by Mapantz »

Probably grid.js from the highcharts CDN?!
Image
Texsky
Posts: 38
Joined: Sun 22 Mar 2020 5:07 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Texas, USA

Re: Humidity graph?

Post by Texsky »

thanks for the reply, but I had tried that earlier and it didn't work. I don't believe it's the right file.
flort
Posts: 248
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

Re: Humidity graph?

Post by flort »

I assume you are talking about your web page and not the interface. If so, you should be able to achieve this by editing cumuluscharts.js.

Find the code for the doHum variable. Towards the bottom of the code you will find the ajax call (line starts with $.ajax). You will see the following in this section -

Code: Select all

var titles = {
                'hum'  : 'Outdoor Humidity',
                'inhum': 'Indoor Humidity'
             }
Below that insert -

Code: Select all

var colours = {
                'hum'     : 'rgb(255,165,0)',
                'inhum'      : 'rgb(128,128,128)'
            };
A few lines further down you will see -

Code: Select all

chart.addSeries({
                         name: titles[idx],
Below that insert -

Code: Select all

color: colours[idx],
You should then be able to control your colours by adjustings the rgb values.

Regards,
Trevor
Texsky
Posts: 38
Joined: Sun 22 Mar 2020 5:07 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Texas, USA

Re: Humidity graph?

Post by Texsky »

That did the trick. Thanks so much.

God Bless.
Post Reply