update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.5.227-01312024'
|
VERS='2.5.230-02012024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
@@ -589,14 +589,14 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
|
|||||||
if [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then
|
if [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then
|
||||||
SENDNOTICE "${SENSOR} Online" "${SENSOR} Sensor is back online"
|
SENDNOTICE "${SENSOR} Online" "${SENSOR} Sensor is back online"
|
||||||
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is back online" >> ${logtemp}
|
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
|
fi
|
||||||
if [ -f ${PW_TMPFOLDER}/${SENSOR}-error.sent ]; then
|
if [ -f ${PW_TMPFOLDER}/${SENSOR}-error.sent ]; then
|
||||||
SENDNOTICE "${SENSOR} Data" "${SENSOR} is reporting data again"
|
SENDNOTICE "${SENSOR} Data" "${SENSOR} is reporting data again"
|
||||||
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is reporting data again" >> ${logtemp}
|
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is reporting data again" >> ${logtemp}
|
||||||
rm -f ${PW_TMPFOLDER}/${SENSOR}-error.*
|
rm -f ${PW_TMPFOLDER}/${SENSOR}*
|
||||||
elif [ $(ls ${PW_TMPFOLDER}/${SENSOR}-error.* 2>/dev/null | wc -l) -gt 0 ]; then
|
elif [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then
|
||||||
rm -f ${PW_TMPFOLDER}/${SENSOR}-error.*
|
rm -f ${PW_TMPFOLDER}/${SENSOR}*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then
|
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user