From 2b8091e9ad7c0bb801ebbc6e2698c61ad40934e0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 28 Oct 2023 15:27:58 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index e378f2ee..bbe6c0ef 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -179,8 +179,7 @@ CHECKTEMP_SERVICE(){ cw=20 declare -A last_temp while true; do - start=`date +%s` - echo go + # start=`date +%s` if [ ! -f ${PW_TMPFOLDER}/temp.* ] && [ $(date +%H)$(date +%M) -ge 0700 ] && [ $(date +%H)$(date +%M) -lt 0705 ]; then if [ ! -f ${PW_TMPFOLDER}/.sentdaily ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.sentdaily)) -gt 600 ]; then touch ${PW_TMPFOLDER}/.sentdaily @@ -425,8 +424,8 @@ Previous Temp: ${last_temp[${SENSOR}]}'F" done - end=`date +%s`; runtime=$((end-start)); echo "runtime: ${runtime}, pausing for 60secs..." - sleep 60 + # end=`date +%s`; runtime=$((end-start)); echo "runtime: ${runtime}, pausing for 60secs..." + sleep 60 done # & } @@ -1159,11 +1158,11 @@ fi if [ "${3}" = "start" ] || [ "${3}" = "" ]; then if [ "${2}" = "temp" ]; then SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" & - CHECKTEMP_SERVICE & + CHECKTEMP_SERVICE elif [ "${2}" = "power" ]; then - CHECKPOWER_SERVICE & + CHECKPOWER_SERVICE elif [ "${2}" = "powerlogger" ]; then - POWERLOGGER_SERVICE & + POWERLOGGER_SERVICE fi elif [ "${3}" = "stop" ]; then