Page 1 of 1
Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Thu 30 Jan 2025 12:21 pm
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
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Thu 30 Jan 2025 4:55 pm
by water01
I do not think #CPUTemp has any parameters it just returns xxx.x and cannot be formatted.
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Thu 30 Jan 2025 6:23 pm
by mcrossley
Indeed it does. I missed that one, I'll get it fixed for the next release.
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Thu 30 Jan 2025 8:14 pm
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 
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Thu 30 Jan 2025 11:23 pm
by mcrossley
Looks like you "fixed it" Hans?
Your page shows the rc=y has not effect...
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.
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Fri 31 Jan 2025 7:18 am
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...
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
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Fri 31 Jan 2025 7:56 am
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?
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Fri 31 Jan 2025 9:19 am
by mcrossley
That would affect everything though, including the dashboard and web site data. How many people would want to do that?
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Fri 31 Jan 2025 9:41 am
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.
Re: Problem with User Alarm Settings and webtag "CPUTemp"
Posted: Fri 31 Jan 2025 12:04 pm
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