From 42b0b7a1da671dabd4d984a791dd2eca90f9dd08 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 May 2023 17:00:02 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index d51e53f9..feef613c 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -46,7 +46,7 @@ CHECKTEMP(){ CHECKTEMPSENSOR(){ echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit - average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 7) + average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 1) if [ "${SENSOR_TYPE[${1}]}" == "mqtt" ]; then mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`