From aacbe61f18d799b9332ca2f2bbad719fae28c2a3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 19 Dec 2023 22:31:53 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults.inc b/defaults.inc index ebfd926e..efa6fa6b 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.5.47-12172023' +VERS='2.5.48-12192023' noheader=' update service dailytemp confsync ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 02a119a8..368cdbc2 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -367,7 +367,7 @@ CHECKTEMP_SERVICE(){ if (( $(bc <<< "${temp_f} < ${temp_warn}") )); then if (( $(bc <<< "${last_temp[${SENSOR//-/}]} > 1") )); then - SENDNOTICE "${SENSOR} BACK TO NORMAL" "NORMAL TEMP: ${temp_f}${GAUGESH} + [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/${SENSORa}.down)) -ge 1800 ] && SENDNOTICE "${SENSOR} BACK TO NORMAL" "NORMAL TEMP: ${temp_f}${GAUGESH} Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}" echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - Back to NORMAL ${GAUGE} - Previous ${GAUGE}: ${last_temp[${SENSOR//-/}]}${GAUGESH}" >> ${logtemp} echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - ${SENSOR} - Back to NORMAL ${GAUGE}" >> ${PW_LOGFILE} @@ -385,7 +385,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}" fi rm -f ${PW_TMPFOLDER}/temp.* - rm -f ${PW_TMPFOLDER}/power.${SENSORa}.off + rm -f ${PW_TMPFOLDER}/power.${SENSORa}.* last_temp[${SENSOR//-/}]=1 # iDS-vMS-Offsite Fan Issue Workaround