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