This commit is contained in:
2024-02-01 16:03:50 -06:00
parent e4b73ba815
commit 1b146a2020
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.5.227-01312024'
VERS='2.5.230-02012024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -589,14 +589,14 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
if [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then
SENDNOTICE "${SENSOR} Online" "${SENSOR} Sensor is back online"
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is back online" >> ${logtemp}
rm -f ${PW_TMPFOLDER}/${SENSOR}.down
rm -f ${PW_TMPFOLDER}/${SENSOR}*
fi
if [ -f ${PW_TMPFOLDER}/${SENSOR}-error.sent ]; then
SENDNOTICE "${SENSOR} Data" "${SENSOR} is reporting data again"
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is reporting data again" >> ${logtemp}
rm -f ${PW_TMPFOLDER}/${SENSOR}-error.*
elif [ $(ls ${PW_TMPFOLDER}/${SENSOR}-error.* 2>/dev/null | wc -l) -gt 0 ]; then
rm -f ${PW_TMPFOLDER}/${SENSOR}-error.*
rm -f ${PW_TMPFOLDER}/${SENSOR}*
elif [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then
rm -f ${PW_TMPFOLDER}/${SENSOR}*
fi
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then