Update powerwall.sh
This commit is contained in:
@@ -202,6 +202,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
declare -A last_temp
|
declare -A last_temp
|
||||||
while true; do
|
while true; do
|
||||||
# start=`date +%s`
|
# 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}/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
|
if [ ! -f ${PW_TMPFOLDER}/.sentdaily ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.sentdaily)) -gt 600 ]; then
|
||||||
touch ${PW_TMPFOLDER}/.sentdaily
|
touch ${PW_TMPFOLDER}/.sentdaily
|
||||||
|
|||||||
Reference in New Issue
Block a user