Page 1 of 1

Invalid CPUtemp value

Posted: Tue 04 Feb 2025 3:45 am
by HansR
If a CPU temperature is invalid or not present - CMX does not get a value? - CMX now gives back the value of -999
Is it possible to make that a null value (to handle it like other webtags)?

Re: Invalid CPUtemp value

Posted: Wed 05 Feb 2025 3:15 pm
by mcrossley
No web tags return null, they all return a string, most return a "-" or "n/a" if a value is not available.

I'll add nv parameter handling to #CPUTemp so you can return an empty string, I'm undecided whether to change the default from -999 to say a "-" dash value.

Re: Invalid CPUtemp value

Posted: Wed 05 Feb 2025 3:27 pm
by HansR
OK. I can live with what you suggest I assume. I will turn an invalid value into an empty string, null or handle it otherwise.
Not yet in b4073 I assume ;)

Re: Invalid CPUtemp value

Posted: Wed 05 Feb 2025 3:31 pm
by mcrossley
No, it will be in 4074