diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 0a5aca32..f344d553 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1606,8 +1606,8 @@ SENDTEMP(){ DIVIDER . . 40 for SENSORa in ${PW_SENSOR_ORD[@]}; do # echo "HERE: ${SENSORa}" - ([[ "${SENSORa}" = *"-Probe"* ]] || [[ "${SENSORa}" = *"-Usage"* ]]) && cw=25 || cw=30 - # cw=30 + # ([[ "${SENSORa}" = *"-Probe"* ]] || [[ "${SENSORa}" = *"-Usage"* ]]) && cw=25 || cw=30 + cw=30 if [ "${PW_SENSOR_TYPE[${SENSORa}]}" != "esxi" ] && ([ "${PW_SENSOR_TYPE[${SENSORa}]}" == "lacrosse" ] || ([ "${PW_REMOTE_SENSORS[${SENSORa}]}" != "" ] && [ "$(CHECK_HOST ${PW_REMOTE_SENSORS[${SENSORa}]})" != "false" ])); then SENSORS_CHECK=(${SENSORa}) for SENSOR in "${SENSORS_CHECK[@]}"; do @@ -1619,7 +1619,7 @@ SENDTEMP(){ else GAUGESH="'F" fi - [ "${last_sensor}" != "" ] && [ "${last_sensor%%-*}" != "${SENSOR%%-*}" ] && echo + [ "${last_sensor}" != "" ] && [ "${last_sensor%%-*}" != "${PW_DESC_TEMP[${SENSOR}]%%-*}" ] && echo if [ "${mqtt_conn}" != "" ] && [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then mqtt_message=`${mqtt_conn} -t tele/${SENSORa}/SENSOR -C 1` echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c @@ -1738,7 +1738,7 @@ SENDTEMP(){ echo -e "${SENSOR_DESC}${spc}No Data" fi - last_sensor=${SENSOR} + last_sensor=${PW_DESC_TEMP[${SENSOR}]} done fi