This commit is contained in:
2024-02-06 18:33:51 -06:00
parent e356c91897
commit 7a351bb95e
2 changed files with 6 additions and 1 deletions

View File

@@ -279,6 +279,10 @@ CHECKTEMPSENSOR(){
TIMEOUT=1
fi
fi
elif [ "${PW_SENSOR_TYPE[${1}]}" == "ds18b20" ]; then
if ! temp_c=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${PW_REMOTE_SENSORS[${1}]} cat /sys/bus/w1/devices/${PW_SENSOR_DEVICEID[${1}]}/w1_slave | tail -n1 | cut -d "=" -f2) ; then TIMEOUT=1; fi
[ "${temp_c}" != "" ] && temp_c=$(ROUND_NUMBER ${temp_c} 2)
fi
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then