diff --git a/groups/hardware/raspberry-pi.py b/groups/hardware/raspberry-pi.py index 15cf894..03cde52 100644 --- a/groups/hardware/raspberry-pi.py +++ b/groups/hardware/raspberry-pi.py @@ -3,8 +3,8 @@ 'telegraf': { 'config': { 'inputs': { - 'file': [{ - 'files': ["/sys/class/thermal/thermal_zone0/temp"], + 'exec': [{ + 'commands': ["/bin/bash -c \"cat /sys/class/thermal/thermal_zone0/temp | xargs -I '{}' expr {} / 1000\""], 'name_override': "cpu_temperature", 'data_format': "value", 'data_type': "integer",