diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index e0d20e9f..c1d84b67 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -119,6 +119,9 @@ CHECKTEMP(){ [ ${DETAILS} -eq 0 ] && [ "${last_sensor%%-*}" == "${SENSOR%%-*}" ] && [ "${last_sensor}" != "Offsite-ServerRoom" ] && [ "${last_sensor}" != "Powerwall-Switch" ] && echo -en "\033[1A" c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR_DESC}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR_DESC}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}Pulling data ... " + + echo "HERE: '${PW_TMPFOLDER}/${SENSOR}.down'" + if [ ! -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then IFS=: read -r temp_f temp_h <<< $(CHECKTEMPSENSOR ${SENSOR}); unset IFS if [ "${temp_f}" != "timeout" ] && [ "${temp_f}" != "offline" ]; then