From 813b67d5c4002a25cf0ce10b7b8a3faa3779fece Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 22 Oct 2023 20:45:42 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index a0c5f4cc..d1a2f64e 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -224,17 +224,17 @@ CHECKTEMP_SERVICE(){ for SENSOR in "${SENSORS_CHECK[@]}"; do if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then - mqtt_message=`${mqtt_conn} -t tele/${SENSOR}/SENSOR -C 1` + # mqtt_message=`${mqtt_conn} -t tele/${SENSOR}/SENSOR -C 1` echo $mqtt_message | cut -d':' -f 7 | cut -d',' -f 1 | read temp_h echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then - temp_c=$(vcgencmd measure_temp) + # temp_c=$(vcgencmd measure_temp) temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} temp_h='' elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "remotesystem" ]; then - temp_c=$(ssh root@${PW_REMOTE_SENSORS[${SENSOR}]} vcgencmd measure_temp) + # temp_c=$(ssh root@${PW_REMOTE_SENSORS[${SENSOR}]} vcgencmd measure_temp) temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} temp_h=''