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.
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
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?
Moderator: mcrossley
-
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?
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?
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 -
Below that insert -
A few lines further down you will see -
Below that insert -
You should then be able to control your colours by adjustings the rgb values.
Regards,
Trevor
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'
}Code: Select all
var colours = {
'hum' : 'rgb(255,165,0)',
'inhum' : 'rgb(128,128,128)'
};Code: Select all
chart.addSeries({
name: titles[idx],Code: Select all
color: colours[idx],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?
That did the trick. Thanks so much.
God Bless.
God Bless.