This commit is contained in:
2025-07-27 20:10:05 -05:00
parent 071bed1fe7
commit 8a7b8eba82
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PW_VERS='2.12.8-07192025'
PW_VERS='2.12.10-07272025'
noheader=' update service dailytemp confsync -r -report test '

View File

@@ -923,7 +923,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
if [ -f ${PW_TMPFOLDER}/${SENSORa}-error.sent ]; then
SENDNOTICE "${SENSOR_DESC} Data" "${SENSORa} is reporting data again"
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} - Sensor is reporting data again" >> ${logtemp}
elif [ -f ${PW_TMPFOLDER}/${SENSORa}.shutdown ]; then
elif [ -f ${PW_TMPFOLDER}/${SENSORa}.shutdown ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/${SENSORa}.shutdown)) -ge 300 ]; then
SENDNOTICE "${SENSOR_DESC} Data" "${SENSORa} has been powered up"
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} has been powered up" >> ${logtemp}
fi