Update temp.inc.sh

This commit is contained in:
2023-12-26 18:42:40 -06:00
parent b8cdc442cb
commit 107a64ef9e

View File

@@ -298,9 +298,10 @@ CHECKTEMP_SERVICE(){
declare -A last_temp
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - 'Check Temp' Service Startup" >> ${PW_LOGFILE}
while true; do
echo starting
start=`date +%s`
source ${PW_FOLDER}/defaults.inc
# 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
@@ -626,7 +627,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
done
# end=`date +%s`; runtime=$((end-start)); echo "runtime: ${runtime}, pausing for 60secs..."
end=`date +%s`; runtime=$((end-start)); echo "runtime: ${runtime}, pausing for 60secs..."
sleep 10
done # &
}