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

new template - minor chart units error

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
User avatar
piconut
Posts: 33
Joined: Sun 17 Feb 2013 3:44 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win10
Location: Austin, TX, USA

new template - minor chart units error

Post by piconut »

I just updated my webfiles to the 3.10.4 b3121 version and on the Gauges > Units, it shows mm for both choices for the rainfall amount. It is showing correctly on the gauge, just that the option to select between inches and millimeters is probably a typo.

Image
Image
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: new template - minor chart units error

Post by philpugh »

Not seeing that on my b3121 system
gauges.png
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: new template - minor chart units error

Post by philpugh »

But I see the problem.....

I haven't reloaded the gauges.htm from 3121.

I'm running with version dated:
gaugesT.html v:0.0.1 d:Feb 2021 Neil Thomas
Page: 1 main panel plus a sidebar
Last modified: 2021/03/02 14:03:06
NOTE: Once uploaded this page does not need to be uploaded again unless edited.
and contains:
<div class="w3-border-bottom w3-theme-bdr units-row">
<div class=""><span id="lang_rainfall">Rainfall</span></div>
<div class="units-value"><input id="rad_unitsRain1" type="radio" class="w3-radio" name="rad_unitsRain" value="mm" checked onclick="gauges.setUnits(this);"><label id="lab_unitsRain1" for="rad_unitsRain1">mm</label></div>
<div class="units-value"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="in" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">Inch</label></div>
</div>
The gauges.htm with b3121 is dated :
ATN-gauges.htm v:0.0.2 a:Neil Thomas
Last modified: 2021/03/14 15:00:19
CMX Template page: Gauges, No sidebar
and contains
<div class="w3-col l3 m3 s5"><span id="lang_rainfall">Rainfall</span></div>
<div class="w3-col l2 m3 s3"><input id="rad_unitsRain1" type="radio" class="w3-radio" name="rad_unitsRain" value="mm" checked onclick="gauges.setUnits(this);"><label id="lab_unitsRain1" for="rad_unitsRain1">mm</label></div>
<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="F" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">mm</label></div>


Looking at the later (newer) one the last line seems 'odd' the value implies degrees F ! What is shown in your rain gauge?

EDITED: If the value seems right I would edit the last line I quote to change value="F" to value="mm" and change the mm at the end of the line to Inch
Last edited by philpugh on Tue 30 Mar 2021 7:45 pm, edited 1 time in total.
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: new template - minor chart units error

Post by ConligWX »

I have it too.

Capture.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: new template - minor chart units error

Post by philpugh »

OK I uploaded the newer file. When you select the "mm" that should be "inch" The temp changes from C to F - and changing back doesn't change it back - you need to do that via the Temp units!
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: new template - minor chart units error

Post by ConligWX »

yep it appears the code is wrong:
Line214:

Code: Select all

<div class="w3-col l3 m3 s5"><span id="lang_rainfall">Rainfall</span></div>
<div class="w3-col l2 m3 s3"><input id="rad_unitsRain1" type="radio" class="w3-radio" name="rad_unitsRain" value="mm" checked onclick="gauges.setUnits(this);"><label id="lab_unitsRain1" for="rad_unitsRain1">mm</label></div>
<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="F" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">mm</label></div>
the value="F" looks like it was copied from the temps section above line 214

should be something like:

Code: Select all

<div class="w3-col l3 m3 s5"><span id="lang_rainfall">Rainfall</span></div>
<div class="w3-col l2 m3 s3"><input id="rad_unitsRain1" type="radio" class="w3-radio" name="rad_unitsRain" value="mm" checked onclick="gauges.setUnits(this);"><label id="lab_unitsRain1" for="rad_unitsRain1">mm</label></div>
<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="in" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">Inch</label></div>
Mark should confirm.
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: new template - minor chart units error

Post by philpugh »

Change the line
<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="F" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">mm</label></div>
to
<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="in" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">Inch</label></div>
and it seems to work correctly
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: new template - minor chart units error

Post by philpugh »

Posting collision!
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: new template - minor chart units error

Post by ConligWX »

OK amended my one above it now works.

line:216

Code: Select all

<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="in" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">Inch</label></div>
User avatar
piconut
Posts: 33
Joined: Sun 17 Feb 2013 3:44 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win10
Location: Austin, TX, USA

Re: new template - minor chart units error

Post by piconut »

ConligWX wrote: Tue 30 Mar 2021 8:00 pm OK amended my one above it now works.

line:216

Code: Select all

<div class="w3-rest"><input id="rad_unitsRain2" type="radio" class="w3-radio" name="rad_unitsRain" value="in" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">Inch</label></div>
Thank you. That fixed it.

http://www.austexweather.com/gauges.htm
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: new template - minor chart units error

Post by mcrossley »

Included in the next release, thanks for the report.
Post Reply