From 76b64032e07f588acca54eba714a76e609889fed Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 28 Jan 2024 11:03:47 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index cda89065..7367ee15 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.5.172-01282024' +VERS='2.5.173-01282024' noheader=' update service dailytemp confsync -r -report ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 9a8505e9..7e514acc 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -337,7 +337,6 @@ CHECKTEMP_SERVICE(){ while true; do start=$(date +%s) - source ${PW_FOLDER}/defaults.inc # time="$(date +%H)$(date +%M)" # if [ ! -f ${PW_TMPFOLDER}/temp.* ] && [ $(date +%H)$(date +%M) -ge 0700 ] && [ $(date +%H)$(date +%M) -lt 0705 ]; then @@ -378,6 +377,8 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ logtemp=${PW_LOGFOLDER}/log-temp-${SENSORa} touch ${PW_TMPFOLDER}/ztemprun.${SENSORa}.running + source ${PW_FOLDER}/defaults.inc + [ ! -f ${logtemp} ] && touch ${logtemp} [ -f ${PW_TMPFOLDER}/ztemprun.${SENSORa}.done ] && rm -f ${PW_TMPFOLDER}/ztemprun.${SENSORa}.done [ $(expr `date +%s` - $(stat -c %Y ${logtemp})) -ge $(echo "scale=0; ${PW_LOG_INTERVAL_NORMAL}*60" | bc) ] && relog=1 || relog=0