This commit is contained in:
mwiegand 2021-10-13 01:34:19 +02:00
parent f82eceae2e
commit 0b8b769b12

View file

@ -4,7 +4,7 @@
'config': {
'inputs': {
'exec': [{
'commands': ["/bin/bash -c \"cat /sys/class/thermal/thermal_zone0/temp | xargs -I '{}' expr {} / 1000\""],
'commands': ["/bin/bash -c 'expr $(cat /sys/class/thermal/thermal_zone0/temp) / 1000'"],
'name_override': "cpu_temperature",
'data_format': "value",
'data_type': "integer",