Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Webtags <#rmonth> and <#ryear> report 0.0

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
KarlS
Posts: 136
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Webtags <#rmonth> and <#ryear> report 0.0

Post by KarlS »

I use my own templates to generate extra web files. One of these templates has a section like this:

Code: Select all

...
$rmonth = <#rmonth>;     // The total rainfall so far this month
$ryear = <#ryear>;          // The total rainfall so far this year
...
This code isn't working any more. The output is:

Code: Select all

...
$rmonth = 0.0;     // The total rainfall so far this month
$ryear = 0.0;          // The total rainfall so far this year
...
I found an old file from June (v3133) that still had correct values. I tripple checked the template file, but it hasn't been changed for over a year, so maybe a bug has crept into CMX after June?? :o
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by water01 »

Sorry no the webtags are working fine, suggest you look at the file that is requesting them as that looks like a PHP request.

Here are mine using my PHP template.

Code: Select all

$rmonth                     = "1.09";  //  total rainfall so far this month  
$ryear                      = "28.05";  //  total rainfall so far this year 
as of

Code: Select all

$datelong                   = "Tuesday, December 21, 2021";  //  current date (example format: Monday, January 23, 2011)    
David
Image
User avatar
KarlS
Posts: 136
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by KarlS »

water01 wrote: Tue 21 Dec 2021 8:31 pm Sorry no the webtags are working fine, suggest you look at the file that is requesting them as that looks like a PHP request.
@water01: You are right, CMX does still calculate those two webtags, just not all the time. Waking up in the middle of the night I had the reason why CMX was reporting 0 in my template file. Early in November I had brought the Ecowitt WH40 rain gauge into the basement and taken out the battery. There is absolutely no use measuring rain during 5 month of snow and sub-zero temperatures! So this morning I inserted a battery into the WH40 and BINGO! ... the webtags are calculated again. :)

Question for Mark: Is there a reason for only calculating monthly/yearly rain aggregates if a rain gauge is reporting to CMX. I've taken down the rain gauge of my old WH1080 for 10+ years and never had a problem, simply because there was no way for CMX to detemine if the rain gauge was reporting.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by mcrossley »

I haven't checked the code but the station type you are using now is probably flagging missing primary data.

Your MXdiags log file will contain relevant messages if this is the case.

Try enabling the "no sensor check" option.... Station Settings -> Common Options -> Sensor Check

With that enabled, take your batteries out again and see if it carries on working.
User avatar
KarlS
Posts: 136
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by KarlS »

mcrossley wrote: Wed 22 Dec 2021 1:35 pm Try enabling the "no sensor check" option.... Station Settings -> Common Options -> Sensor Check
Thank you Mark, that did the trick. Best wishes for the upcoming holidays to you and the whole Cumulus community. Maybe you won't get a white Christmas, but it should be a little bit warmer than our forecast.

Forecast.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by mcrossley »

Brrr! Too chilly for me :lol:

Thanks for the thoughts
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by billy »

If you need some warmth …

8E2CB309-9831-4794-84E3-50773002C2D1.jpeg
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by mcrossley »

Nooo, too hot!

I'm a baby bear, not too hot, not too cold :lol:
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: Webtags <#rmonth> and <#ryear> report 0.0

Post by billy »

Thursday's 50.7 max at Onslow (in the Pilbara) equalled the Australian record high temp (set in 1960 at Oodnadatta) ... a trifle too warm for most of us ;)
Post Reply