From c057ebef49679a6c1c1fdf74610cb9c3213c771f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 21 Jun 2025 17:12:12 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 4a03879d..0200d040 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -122,6 +122,7 @@ CHECKTEMP(){ [ ${REPORT} -eq 0 ] && echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR_DESC}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}Pulling data ... " if [ ! -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then + CHECKTEMPSENSOR ${SENSOR} IFS=: read -r temp_f temp_h <<< $(CHECKTEMPSENSOR ${SENSOR}); unset IFS if [ "${temp_f}" != "timeout" ] && [ "${temp_f}" != "offline" ]; then [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]] && temp_f_disp=$(IDS_NUMBER_FORMAT ${temp_f} 0) || temp_f_disp=${temp_f} @@ -756,7 +757,7 @@ CHECKTEMPSENSOR(){ fi elif [ "${PW_SENSOR_TYPE[${1}]}" == "ds18b20" ]; then - echo "HERE: ${1} - ${PW_SENSOR_DEVICEID[${1}]}/" + echo "HERE: ${1} - ${PW_SENSOR_DEVICEID[${1}]}" 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)