Get temp from DietPi

HAve a tight space so wnat to monitor the temperature of the orange pi zero board

Have installed exec binding throught the paper UI
Added the following to items

Number System_Temperature_CPU "Temperature CPU [%.1f C]" <temperature> (System_Temperature_Chart) { exec="<[cat /sys/class/thermal/thermal_zone0/temp:10000:REGEX((.*?))]"

And get nothing. This is the output from shell

cat /sys/class/thermal/thermal_zone0/temp

maybe a permissions issue, so what’s the output of

ls -l /sys/class/thermal/thermal_zone0/temp


groups openhab


Might be. Thanks. Changed to 777 but that didn’t fix it

-r--r--r-- 1 root root
openhab : openhab tty dialout

:frowning: hmm… Maybe you have to use the complete path for cat (i.e. /bin/cat instead of cat)

Nope. Nothing works. HAd to uninstall exec binding 2 and install the legacy version and everything started to work

Number System_Temperature_CPU "Temperature CPU [%.1f C]" <temperature> (System_Temperature_Chart) { exec="<[/bin/cat /sys/class/thermal/thermal_zone0/temp:10000:REGEX((.*?))]" }

Running manually all fine
# /bin/cat /sys/class/thermal/thermal_zone0/temp