Regarding the Raspberry pi CPU temperature read example provided in this forum, I wanted to try and add a trend of the temperature. However this variable is a STRING. So I wonder if there is any way to convert this value to a variable that could be read by a Trend ?
Br
Morten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Regarding the Raspberry pi CPU temperature read example provided in this forum, I wanted to try and add a trend of the temperature. However this variable is a STRING. So I wonder if there is any way to convert this value to a variable that could be read by a Trend ?
Br
Morten
Hi,
use stringutils library to sperate the value from the string,
then STRING_TO_LREAL or STRING_TO_INT conversion.
BR
Edwin