From e5730272e486931a296bb37e3a209e015ced2c57 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 May 2023 17:11:13 -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 a0aa0501..b1085a82 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -48,7 +48,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}]} 1) + average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 7) if [ "${SENSOR_TYPE[${1}]}" == "mqtt" ]; then mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`