Update powerwall.sh

This commit is contained in:
2023-11-06 18:49:58 -06:00
parent 31fde3b80d
commit 445ee307f6

View File

@@ -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