Update temp.inc.sh

This commit is contained in:
2023-12-26 18:37:31 -06:00
parent ce4b43e1f0
commit 4753843d92

View File

@@ -584,7 +584,6 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
#### LOGGING OF SERVERROOM SENSOR DIFFERENCE
if [ "${SENSOR}" == "ServerRoomLA" ]; then
# if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.log.sr.difference)) -ge 300 ]; then
if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ]; then
echo -en "HERE: ${temp_probe_f} - ${ServerRoomTH} = "
if [ "${temp_probe_f}" != "" ] && [ "${ServerRoomTH}" != "" ]; then
[ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference
@@ -595,7 +594,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
else
echo 0
fi
fi
# fi
elif [ "${SENSOR}" == "ServerRoomTH" ]; then
export ServerRoomTH=${temp_f}
fi