Update temp.inc.sh
This commit is contained in:
@@ -298,9 +298,10 @@ CHECKTEMP_SERVICE(){
|
|||||||
declare -A last_temp
|
declare -A last_temp
|
||||||
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - 'Check Temp' Service Startup" >> ${PW_LOGFILE}
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - 'Check Temp' Service Startup" >> ${PW_LOGFILE}
|
||||||
while true; do
|
while true; do
|
||||||
|
echo starting
|
||||||
|
start=`date +%s`
|
||||||
source ${PW_FOLDER}/defaults.inc
|
source ${PW_FOLDER}/defaults.inc
|
||||||
|
|
||||||
# start=`date +%s`
|
|
||||||
# time="$(date +%H)$(date +%M)"
|
# 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
|
||||||
@@ -626,7 +627,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
|
|||||||
|
|
||||||
done
|
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
|
sleep 10
|
||||||
done # &
|
done # &
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user