Update temp.inc.sh
This commit is contained in:
@@ -1606,8 +1606,8 @@ SENDTEMP(){
|
|||||||
DIVIDER . . 40
|
DIVIDER . . 40
|
||||||
for SENSORa in ${PW_SENSOR_ORD[@]}; do
|
for SENSORa in ${PW_SENSOR_ORD[@]}; do
|
||||||
# echo "HERE: ${SENSORa}"
|
# echo "HERE: ${SENSORa}"
|
||||||
([[ "${SENSORa}" = *"-Probe"* ]] || [[ "${SENSORa}" = *"-Usage"* ]]) && cw=25 || cw=30
|
# ([[ "${SENSORa}" = *"-Probe"* ]] || [[ "${SENSORa}" = *"-Usage"* ]]) && cw=25 || cw=30
|
||||||
# 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
|
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})
|
SENSORS_CHECK=(${SENSORa})
|
||||||
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
||||||
@@ -1619,7 +1619,7 @@ SENDTEMP(){
|
|||||||
else
|
else
|
||||||
GAUGESH="'F"
|
GAUGESH="'F"
|
||||||
fi
|
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
|
if [ "${mqtt_conn}" != "" ] && [ "${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
|
||||||
@@ -1738,7 +1738,7 @@ SENDTEMP(){
|
|||||||
echo -e "${SENSOR_DESC}${spc}No Data"
|
echo -e "${SENSOR_DESC}${spc}No Data"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
last_sensor=${SENSOR}
|
last_sensor=${PW_DESC_TEMP[${SENSOR}]}
|
||||||
done
|
done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user