From abd3b0361f6b242a3ef08e6d33698acfd3c4ccdc Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Dec 2023 10:15:50 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/defaults.inc b/defaults.inc index 131a7670..c2b11a7b 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.5.30-12152023' +VERS='2.5.31-12152023' noheader=' update service dailytemp confsync ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 25b1de25..0875b866 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -481,13 +481,12 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}" #### LOGGING OF SERVERROOM SENSOR DIFFERENCE if [ "${SENSOR}" == "ServerRoomLA" ]; then - if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.log.sr.difference)) -ge 10 ]; then + if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.log.sr.difference)) -ge 300 ]; then if [ "${temp_probe_f}" != "" ] && [ "${ServerRoomTH}" != "" ]; then [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference temp_difference=$(bc <<< "scale=1; ${temp_probe_f}-${ServerRoomTH}") (( $(bc <<<"${temp_difference} < 0") )) && temp_difference=`echo "scale=1; ${temp_difference} * -1" | bc` - echo "HERE: ${temp_probe_f} - ${ServerRoomTH} = ${temp_difference}" - echo ${temp_difference} >> ${PW_TMPFOLDER}/.log.sr.difference + echo "$(date "+%Y-%m-%d %H:%M:%S")~${temp_difference}" >> ${PW_TMPFOLDER}/.log.sr.difference fi fi elif [ "${SENSOR}" == "ServerRoomTH" ]; then