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

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.5.260-02062024'
VERS='2.5.261-02062024'
noheader=' update service dailytemp confsync -r -report '
@@ -63,6 +63,7 @@ if [ -f ${PW_FOLDER}/settings.local.conf ]; then
declare -A PW_INVERTER_MODES
declare -A PW_INVERTER_ERRORS
declare -A PW_LACROSSE_ID
declare -A PW_SENSOR_DEVICEID
source ${PW_FOLDER}/settings.local.conf

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