Update temp.inc.sh
This commit is contained in:
@@ -662,6 +662,7 @@ SENDTEMP(){
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
||||||
|
[ "${last_sensor}" != "" ] && [ "${last_sensor}" != "${SENSOR%%-*}" ] && echo
|
||||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then
|
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then
|
||||||
mqtt_message=`${mqtt_conn} -t tele/${SENSORa}/SENSOR -C 1`
|
mqtt_message=`${mqtt_conn} -t tele/${SENSORa}/SENSOR -C 1`
|
||||||
echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
|
echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
|
||||||
@@ -721,7 +722,6 @@ SENDTEMP(){
|
|||||||
echo -e "${SENSOR}${spc}No Data"
|
echo -e "${SENSOR}${spc}No Data"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
[ "${last_sensor}" != "${SENSOR%%-*}" ] && echo
|
|
||||||
last_sensor=${SENSORa%%-*}
|
last_sensor=${SENSORa%%-*}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user