diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 1545d4a9..87560680 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -101,12 +101,11 @@ CHECKTEMPSENSOR(){ else average='' fi - - echo "HERE: ${1}-${PW_SENSOR_TYPE[${1}]}" - + if [ "${PW_SENSOR_TYPE[${1}]}" == "mqtt" ]; then mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1` echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c + echo "HERE: ${1} - ${temp_c}" elif [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then temp_c=$(GET_LACROSSE_INFO "${PW_LACROSSE_ID[${1}]}")