This commit is contained in:
2025-07-12 21:57:48 -05:00
parent 29f7728365
commit 7203025321
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PW_VERS='2.11.18-07122025'
PW_VERS='2.11.19-07122025'
noheader=' update service dailytemp confsync -r -report test '

View File

@@ -1232,7 +1232,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
if [ ! -f ${PW_TMPFOLDER}/temp.warn.${SENSOR}.pre ]; then
touch ${PW_TMPFOLDER}/temp.warn.${SENSOR}.pre
elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.warn.${SENSOR}.pre)) -ge 120 ]; then
elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.warn.${SENSOR}.pre)) -ge 600 ]; then
# if (( $(bc <<< "${temp_diff} >= 1") )); then
touch ${PW_TMPFOLDER}/temp.warn.${SENSOR}.pre
SENDNOTICE "${SENSOR_DESC} ${GAUGE} WARNING" "WARNING ${GAUGE}: ${temp_f}${GAUGESH} - (Difference of ${temp_diff}${GAUGESH})" 1
@@ -1249,7 +1249,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
if [ ! -f ${PW_TMPFOLDER}/temp.crit.${SENSOR}.pre ]; then
touch ${PW_TMPFOLDER}/temp.crit.${SENSOR}.pre
elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.crit.${SENSOR}.pre)) -ge 120 ]; then
elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.crit.${SENSOR}.pre)) -ge 300 ]; then
# if (( $(bc <<< "${temp_diff} >= 1") )); then
touch ${PW_TMPFOLDER}/temp.crit.${SENSOR}.pre
SENDNOTICE "${SENSOR_DESC} ${GAUGE} CRITICAL" "CRITICAL ${GAUGE}: ${temp_f}${GAUGESH} - (Difference of ${temp_diff}${GAUGESH})" 1