From 7360a0f85de1d0977973c80e1bafcf29ddfd8958 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 May 2023 17:28:50 -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 e40c60dd..f91ea043 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -19,7 +19,7 @@ CHECKTEMP(){ cw=20; echo # echo -e "${idsCL[Yellow]}Sensor Temperature(s) ${idsCL[Green]}normal${idsCL[Default]} /${idsCL[Yellow]}warning${idsCL[Default]}/ ${idsCL[Red]}critical${idsCL[Default]}" - echo -e "${idsCL[Cyan]}Sensor Temperature(s) Current / 7DayAVG ${idsCL[Green]}normal${idsCL[Default]} /${idsCL[Yellow]}warning${idsCL[Default]}/ ${idsCL[Red]}critical${idsCL[Default]}" + echo -e "${idsCL[Cyan]}Sensor Temperature(s) Current / 3DayAVG ${idsCL[Green]}normal${idsCL[Default]} /${idsCL[Yellow]}warning${idsCL[Default]}/ ${idsCL[Red]}critical${idsCL[Default]}" DIVIDER . yellow 85 if [ "${1}" != "" ]; then # reading=$(CHECKTEMPSENSOR ${1}) @@ -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}]} 7) + average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 3) if [ "${SENSOR_TYPE[${1}]}" == "mqtt" ]; then mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`