Update temp.inc.sh

This commit is contained in:
2025-07-19 15:01:01 -05:00
parent 062d0f69c2
commit 91e1ea4ce5

View File

@@ -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