Update temp.inc.sh

This commit is contained in:
2024-02-06 19:37:55 -06:00
parent d493a7f6ef
commit f5c32ea974

View File

@@ -1027,6 +1027,7 @@ SENDTEMP(){
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "ds18b20" ]; then
if ! temp_c=$(ssh -q -o ConnectTimeout=5 -o ConnectionAttempts=2 root@${PW_REMOTE_SENSORS[${SENSORa}]} cat /sys/bus/w1/devices/${PW_SENSOR_DEVICEID[${1}]}/w1_slave | tail -n1 | cut -d "=" -f2) ; then TIMEOUT=1; fi
echo "HERE: ${temp_c}"
[ "${temp_c}" != "" ] && temp_c=$(echo "scale=2; ${temp_c}/1000" | bc)
else