Update temp.inc.sh

This commit is contained in:
2023-12-30 13:57:20 -06:00
parent 8355e54674
commit e160631015

View File

@@ -416,9 +416,9 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
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 [ -f ${PW_TMPFOLDER}/${SENSOR}-error* ]; then
rm -f ${PW_TMPFOLDER}/${SENSOR}-error.*
fi
[ ! -f ${PW_TMPFOLDER}/${SENSOR}-error* ] && rm -f ${PW_TMPFOLDER}/${SENSOR}-error*
if [ "${SENSOR}" == "ServerRoomTH" ]; then
temp_f=`echo "scale=2; ${temp_c}*1.8+32+${PW_ServerRoomTH_Dev}" | bc`