update
This commit is contained in:
@@ -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 '
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user