Update temp.inc.sh
This commit is contained in:
1 parent
525af245ad
commit
1f2f1f5c24
1 file changed
+1
@@ -756,6 +756,7 @@ CHECKTEMPSENSOR(){
|
||||
fi
|
||||
|
||||
elif [ "${PW_SENSOR_TYPE[${1}]}" == "ds18b20" ]; then
|
||||
echo "HERE: cat /sys/devices/w1_bus_master1/${PW_SENSOR_DEVICEID[${1}]}/w1_slave"
|
||||
if ! temp_c=$(${SSHCMD} root@${PW_REMOTE_SENSORS[${1}]} cat /sys/devices/w1_bus_master1/${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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user