From d493a7f6ef4ca69c1c810df4a5d5dbd9655ed0fa Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 6 Feb 2024 19:35:45 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index de16bca8..081b10f8 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1026,7 +1026,7 @@ SENDTEMP(){ fi elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "ds18b20" ]; then - if ! temp_c=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 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 + 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 [ "${temp_c}" != "" ] && temp_c=$(echo "scale=2; ${temp_c}/1000" | bc) else