From 7b3ef36f52a07ac2f16b28642a23e48458ea8a97 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 21:13:35 -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 4727dbd7..3b1aeda2 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -379,7 +379,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ fi elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "remotesystem" ]; then - temp_c=$(ssh root@${PW_REMOTE_SENSORS[${SENSOR}]} vcgencmd measure_temp) + temp_c=$(ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${PW_REMOTE_SENSORS[${SENSOR}]} vcgencmd measure_temp) temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} temp_h=''