From af47b5bacc6a41dd887db7af93ef01ed9f4b52cb Mon Sep 17 00:00:00 2001 From: Hristo Date: Mon, 21 Nov 2022 00:35:11 +0200 Subject: [PATCH] update uptime icon --- src/rpi-cpu2mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index 1ed1367..0bb030c 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -58,7 +58,7 @@ def check_cpu_load(): def check_voltage(): try: full_cmd = "vcgencmd measure_volts | cut -f2 -d= | sed 's/000//'" - voltage = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] + voltage = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] voltage = voltage.strip()[:-1] except Exception: voltage = 0 @@ -176,7 +176,7 @@ def config_json(what_config): data["name"] = hostname + " CPU Clock Speed" data["unit_of_measurement"] = "MHz" elif what_config == "uptime_days": - data["icon"] = "mdi:timer" + data["icon"] = "mdi:calendar" data["name"] = hostname + " Uptime" data["unit_of_measurement"] = "days" elif what_config == "wifi_signal":