From a93eac476f2a963cf5c40fbdb57c6d82fd6d073e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 14:39:05 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 295c531a..b332b4e7 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -35,7 +35,7 @@ CHECKTEMP(){ } CHECKTEMP_SERVICE(){ - last_temp=0 + last_temp=1 mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1` while true do @@ -70,7 +70,7 @@ CHECKTEMP_SERVICE(){ echo "($temp_d @ $temp_t) CRITICAL: $temp_f°F" else - last_temp=0 + last_temp=1 # echo "NORMAL TEMP: $temp_f°F" | mail -s "${1} TEMP NORMAL" $email_alert #echo "($temp_d @ $temp_t) normal: $temp_f°F" fi