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

Problem with User Alarm Settings and webtag "CPUTemp"

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
HAT
Posts: 9
Joined: Mon 01 Jan 2024 6:28 pm
Weather Station: Ecowitt 2550
Operating System: DietPi with RPi 4b
Location: Germany

Problem with User Alarm Settings and webtag "CPUTemp"

Post by HAT »

Hello,

Raspberry Pi 4b
Cumulus 4.3.3 (build 4070)
Data Source: Ecowitt-Cloud

The following problem:
I would like to set up an email alarm that sends me an email if the CPU temperature is above 50 degrees Celsius.
I have entered the following in “User Alarm Settings”:
Enabled: yes
Alarm name: CPU temperature
Web tag: <#CPUTemp rc=y>
Type: Above
Value: 50
Email: yes
Email message: CPU-Temp. above 50°C. CPU-Temp is {0}°C.
Latch: no

Unfortunately this does not work. The error message is displayed:
2025-01-30 12:46:10 - User Alarm (CPU temperature): Error parsing web tag value: <#CPUTemp rc=y>
What am I doing wrong?

Greetings to all members
HAT
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Problem with User Alarm Settings and webtag "CPUTemp"

Post by water01 »

I do not think #CPUTemp has any parameters it just returns xxx.x and cannot be formatted.
David
Image
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: Problem with User Alarm Settings and webtag "CPUTemp"

Post by mcrossley »

Indeed it does. I missed that one, I'll get it fixed for the next release.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Problem with User Alarm Settings and webtag "CPUTemp"

Post by HansR »

Interesting. I have a custom log with <#CPUtemp rc=y> and I never noticed but I did wonder why the chart was so jumping around integers iso a smooth curve :oops:
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
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: Problem with User Alarm Settings and webtag "CPUTemp"

Post by mcrossley »

Looks like you "fixed it" Hans?

Your page shows the rc=y has not effect...

Code: Select all

<#CPUTemp rc=y>	33,1 °C


The original poster: the error message is slightly misleading in the is case. The error is not in parsing the web tag to a value (the rc=y will be ignored), but in parsing the output as floating-point number which is expecting a dot decimal.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Problem with User Alarm Settings and webtag "CPUTemp"

Post by HansR »

mcrossley wrote: Thu 30 Jan 2025 11:23 pm Looks like you "fixed it" Hans?

Your page shows the rc=y has not effect...

Code: Select all

<#CPUTemp rc=y>	33,1 °C
Haha... I did not fix anything. It is a difference in parsing my realtimecustomlog file (an analogue to the CMX realtime file) where javascript splits the line on spaces, while when parsing the datafile of the customlog the C# code for creating the json, splits the logfile data line on the comma.

[EDIT:] Removed nonsense lines
Last edited by HansR on Fri 31 Jan 2025 8:28 am, edited 3 times in total.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Problem with User Alarm Settings and webtag "CPUTemp"

Post by HansR »

@Mark: but actually, thinking it over, why can't the rc=y not be a property of the numbers systemwide (i.e. a setting to use the culture setting) After all, it is an output qualifier so it has nothing to do with the data acquisition and/or storage of the data. Or am I overlooking something now?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
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: Problem with User Alarm Settings and webtag "CPUTemp"

Post by mcrossley »

That would affect everything though, including the dashboard and web site data. How many people would want to do that?
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Problem with User Alarm Settings and webtag "CPUTemp"

Post by HansR »

mcrossley wrote: Fri 31 Jan 2025 9:19 am That would affect everything though, including the dashboard and web site data. How many people would want to do that?
Yes, I think I did not think it through to the end. It is confusing. Sorry for the remark.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
HAT
Posts: 9
Joined: Mon 01 Jan 2024 6:28 pm
Weather Station: Ecowitt 2550
Operating System: DietPi with RPi 4b
Location: Germany

Re: Problem with User Alarm Settings and webtag "CPUTemp"

Post by HAT »

Hello,

Thank you for your quick answers.

It would be nice if this could be changed in the next Cumulus update.
So that sending an error message when a certain CPU temperature is exceeded works.

I have another question regarding the “User Alarm Settings”. I can't find a solution.
I'll open another post for that.

Greetings to all members
HAT
Post Reply