From 43cbe5ab9987092f9011b3dbb5fe5f3c3f99e85d Mon Sep 17 00:00:00 2001 From: Naboleo <32004297+Naboleo@users.noreply.github.com> Date: Mon, 3 Aug 2020 21:40:47 +0200 Subject: [PATCH] Update rpi-cpu2mqtt.py Remove path for vcgencmd --- src/rpi-cpu2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index 533c41f..d775fb8 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -48,7 +48,7 @@ def check_memory(): return memory def check_cpu_temp(): - full_cmd = "/opt/vc/bin/vcgencmd measure_temp" + full_cmd = "vcgencmd measure_temp" p = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] cpu_temp = p.replace('\n', ' ').replace('\r', '').split("=")[1].split("'")[0] return cpu_temp