Update temp.inc.sh

This commit is contained in:
2023-12-26 18:40:14 -06:00
parent 9ab90195d1
commit b8cdc442cb

View File

@@ -584,7 +584,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
#### LOGGING OF SERVERROOM SENSOR DIFFERENCE
if [ "${SENSOR}" == "ServerRoomLA-Probe" ]; then
# if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.log.sr.difference)) -ge 300 ]; then
echo -en "HERE: ${temp_f} - ${ServerRoomTH} = "
echo -en "HERE: ($(date +'%Y-%m-%d %H:%M:%S')) ${temp_f} - ${ServerRoomTH} = "
if [ "${temp_f}" != "" ] && [ "${ServerRoomTH}" != "" ]; then
[ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference
temp_difference=$(bc <<< "scale=2; ${ServerRoomTH}-${temp_f}")