Fixed raspberry pi cpu temps, actually fixed this time...

pull/81/head
aristocratos 2020-08-10 21:50:15 +02:00
parent f38f5441a3
commit 3208be592f
1 changed files with 1 additions and 1 deletions

View File

@ -2540,7 +2540,7 @@ class CpuCollector(Collector):
if cls.sensor_method == "osx-cpu-temp":
temp = round(float(subprocess.check_output("osx-cpu-temp", text=True).strip().rstrip("°C")))
elif cls.sensor_method == "vcgencmd":
temp = round(float(subprocess.check_output(["vcgencmd", "measure_temp"], text=True)[5:-2]))
temp = round(float(subprocess.check_output(["vcgencmd", "measure_temp"], text=True).strip()[5:-2]))
except Exception as e:
errlog.exception(f'{e}')
cls.got_sensors = False