diff --git a/powerwall.sh b/powerwall.sh index 13a49ab2..f6f92a0c 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -202,6 +202,7 @@ CHECKTEMP_SERVICE(){ declare -A last_temp while true; do # start=`date +%s` + time="$(date +%H)$(date +%M)" 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