This commit is contained in:
2024-02-06 21:40:12 -06:00
parent 2d629a0b34
commit 240a25bc96
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.5.275-02062024'
VERS='2.5.276-02062024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -1028,7 +1028,7 @@ SENDTEMP(){
fi
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[${SENSORa}]}/w1_slave | tail -n1 | cut -d "=" -f2) ; then TIMEOUT=1; fi
if ! temp_c=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${PW_REMOTE_SENSORS[${SENSORa}]} cat /sys/bus/w1/devices/${PW_SENSOR_DEVICEID[${SENSORa}]}/w1_slave | tail -n1 | cut -d "=" -f2) ; then TIMEOUT=1; fi
[ "${temp_c}" != "" ] && temp_c=$(echo "scale=2; ${temp_c}/1000" | bc)
else