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

b4039 Moisture recent charts-a-select without unit

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

User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

b4039 Moisture recent charts-a-select without unit

Post by Dador »

Hi,

after updating to the latest version, I set up the soil moisture data from Davis and Ecowitt on one graph. The Recent chart displays the Davis (cb) and Ecowitt (%) units fine, but the Recent select-a-chart returns the unit as undefined.

I have the same problem even at the Ecowitt station, where I only use the Ecowitt moisture sensor - WH51.
User avatar
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: b4039 Moisture recent charts-a-select without unit

Post by The Dalek Hunter »

IMG_0234.jpeg
Same for me on my Ecowitt Station
You do not have the required permissions to view the files attached to this post.
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

I've double checked and it is working on my test install use Ecowitt.

Can you confirm that line 1425 of your /interface/js/chartscompare.js is like this...

Code: Select all

                    valueSuffix: ' ' + config.soilmoisture.units[unitIdx]
If so, have you tried clearing the browser cache - or Ctrl-F5 the page?
User avatar
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: b4039 Moisture recent charts-a-select without unit

Post by The Dalek Hunter »

Yes cache cleared.

Tried it on different browsers and it says undefined on them all


And yes that line is present exactly as you posted
Last edited by The Dalek Hunter on Fri 04 Oct 2024 10:18 am, edited 1 time in total.
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: b4039 Moisture recent charts-a-select without unit

Post by Dador »

I have the same line of code. Memory cleared. Unit missing on all browsers.

This, of course, applies to Recent select-a-chart and Select-a-period charts.
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

Ok. I'll take another look later ...
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

Ah, wait, is this in Neils AI2 rather than the standard dashboard?
User avatar
The Dalek Hunter
Posts: 342
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Vantage Pro 2, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: b4039 Moisture recent charts-a-select without unit

Post by The Dalek Hunter »

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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

Ok that helps, thanks. I'll make a fix available later today...
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

OK, please try replacing the js scripts on your web site with these...

[deleted]
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: b4039 Moisture recent charts-a-select without unit

Post by Dador »

I noticed this change in the code selectachart.js, .

Code: Select all

max: config.soilmoisture.units.includes('cb') ? 200 : 100, // Davis 0-200 cb, Ecowitt 0-100%
but it didn't help. It's still as it was.
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

OK, I debugged your web site, and I see what the problem is. It is more complex than I first thought. I'll have a solution soon...
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

Try this version...

[deleted]
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: b4039 Moisture recent charts-a-select without unit

Post by Dador »

Nope..

When using a new file, it does not load soil moisture charts at all. The rest works fine.
Browser memory cleared on an ongoing basis.
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: b4039 Moisture recent charts-a-select without unit

Post by mcrossley »

Sorry, the names are inconsistent in the JSON (bad me!)

I corrected the script to account for that....
You do not have the required permissions to view the files attached to this post.
Post Reply