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

Can I add information to local Dashboard?

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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
Ken22
Posts: 97
Joined: Tue 14 Jan 2014 3:08 pm
Weather Station: Ecowitt WS90/HP2560,GW1200,WN32
Operating System: Windows 10 Pro
Location: Massachusetts, USA
Contact:

Can I add information to local Dashboard?

Post by Ken22 »

I have searched the forum for information and not found anything to help me.

I wish to add additional rain information to my local Dashboard. Do I have the ability to do this? What file do I need to modify?
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Can I add information to local Dashboard?

Post by mcrossley »

What data to which page?
Ken22
Posts: 97
Joined: Tue 14 Jan 2014 3:08 pm
Weather Station: Ecowitt WS90/HP2560,GW1200,WN32
Operating System: Windows 10 Pro
Location: Massachusetts, USA
Contact:

Re: Can I add information to local Dashboard?

Post by Ken22 »

mcrossley wrote: Thu 05 Dec 2024 8:11 pm What data to which page?
I would like to add LastRainTip and IsRaining to the Dashboard page.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Can I add information to local Dashboard?

Post by mcrossley »

LastRainTip is sent in the data, so you could utilise that.

Israining is not sent, but it is just a non-zero rainfall rate anyway, and rainfall rate is already displayed.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Can I add information to local Dashboard?

Post by mcrossley »

Actually the last rain tip is sent as LastRaintTipISO - format = YYYY-MM-DD HH:MM
Ken22
Posts: 97
Joined: Tue 14 Jan 2014 3:08 pm
Weather Station: Ecowitt WS90/HP2560,GW1200,WN32
Operating System: Windows 10 Pro
Location: Massachusetts, USA
Contact:

Re: Can I add information to local Dashboard?

Post by Ken22 »

mcrossley wrote: Thu 05 Dec 2024 8:46 pm LastRainTip is sent in the data, so you could utilise that.
What file do I modify to use LastRainTip?
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Can I add information to local Dashboard?

Post by mcrossley »

Which page do you want to modify?
Take a look at the HTML and it should be clear how to add LastRaintTipISO.

Note that you will have to be careful, every time you upgrade you will have to merge any changes you make in the standard files that come with MX. It isn't recommended to do it.
Ken22
Posts: 97
Joined: Tue 14 Jan 2014 3:08 pm
Weather Station: Ecowitt WS90/HP2560,GW1200,WN32
Operating System: Windows 10 Pro
Location: Massachusetts, USA
Contact:

Re: Can I add information to local Dashboard?

Post by Ken22 »

I have found my basic problem. I was editing \interface\index.html and nothing happened. I was just refreshing the web page, and did not realize that the server process had to be restarted to pick up my changes.
mcrossley wrote: Thu 05 Dec 2024 8:48 pm Actually the last rain tip is sent as LastRaintTipISO - format = YYYY-MM-DD HH:MM
Israining is not sent, but it is just a non-zero rainfall rate anyway, and rainfall rate is already displayed.
Could I get access to "LastRainTip" to use instead of "LastRainTipISO"?

Also, assuming future support for Ecowitt "srain_piezo" being tied to "IsRaining", it would be good to have access to "IsRaining" as well.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Can I add information to local Dashboard?

Post by mcrossley »

Ken22 wrote: Fri 06 Dec 2024 10:27 pm I have found my basic problem. I was editing \interface\index.html and nothing happened. I was just refreshing the web page, and did not realize that the server process had to be restarted to pick up my changes.
There is no requirement to do that, the HTML is independent of the process.

Ken22 wrote: Fri 06 Dec 2024 10:27 pm Could I get access to "LastRainTip" to use instead of "LastRainTipISO"?
Not without coding something yourself - some JS code to get it now via the local web tag API.
Ken22 wrote: Fri 06 Dec 2024 10:27 pm Also, assuming future support for Ecowitt "srain_piezo" being tied to "IsRaining", it would be good to have access to "IsRaining" as well.
On the possible list, or write some JS code to get it now via the local web tag API.
Ken22
Posts: 97
Joined: Tue 14 Jan 2014 3:08 pm
Weather Station: Ecowitt WS90/HP2560,GW1200,WN32
Operating System: Windows 10 Pro
Location: Massachusetts, USA
Contact:

Re: Can I add information to local Dashboard?

Post by Ken22 »

mcrossley wrote: Sat 07 Dec 2024 1:22 pm
Ken22 wrote: Fri 06 Dec 2024 10:27 pm I have found my basic problem. I was editing \interface\index.html and nothing happened. I was just refreshing the web page, and did not realize that the server process had to be restarted to pick up my changes.
There is no requirement to do that, the HTML is independent of the process.
I guess I did not fully describe what I was doing wrong. I had the Dashboard up in Firefox (http://localhost:8998/). Then I edited \interface\index.html and saved it. Then I went back to Firefox and hit the refresh button. My changes did not appear. Even if I closed the Cumulus tab in Firefox (leaving Firefox up in another (non-Cumulus) tab), and then reopened the Cumulus Dashboard, my changes were not there. However, if I restarted the server process ***OR*** closed ALL tabs in Firefox and restarted FireFox, my changes do show up.
Ken22 wrote: Fri 06 Dec 2024 10:27 pm Could I get access to "LastRainTip" to use instead of "LastRainTipISO"?
mcrossley wrote: Sat 07 Dec 2024 1:22 pm Not without coding something yourself - some JS code to get it now via the local web tag API.
I will look for some examples of how to use JS code via the local web API. Is there an example I can look at in the \interface folder?

Thanks much for your help.
Post Reply