Update temp.inc.sh
This commit is contained in:
@@ -665,11 +665,10 @@ SENDTEMP(){
|
||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then
|
||||
GAUGESH="'%"
|
||||
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then
|
||||
GAUGESH="'R"
|
||||
GAUGESH="'RPM"
|
||||
else
|
||||
GAUGESH="'F"
|
||||
fi
|
||||
echo "HERE: ${GAUGESH}"
|
||||
[ "${last_sensor}" != "" ] && [ "${last_sensor}" != "${SENSOR%%-*}" ] && echo
|
||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then
|
||||
mqtt_message=`${mqtt_conn} -t tele/${SENSORa}/SENSOR -C 1`
|
||||
@@ -736,7 +735,7 @@ SENDTEMP(){
|
||||
fi
|
||||
(( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"
|
||||
fi
|
||||
[ "${1}" != "" ] && echo -e "${SENSOR}${spc}${temp_f}${GUAGESH} / ${average1}${GUAGESH} / ${average7}${GUAGESH}" || echo -e "${SENSOR}${spc}${temp_f}${GUAGESH}"
|
||||
[ "${1}" != "" ] && echo -e "${SENSOR}${spc}${temp_f}${GAUGESH} / ${average1}${GAUGESH} / ${average7}${GAUGESH}" || echo -e "${SENSOR}${spc}${temp_f}${GAUGESH}"
|
||||
|
||||
else
|
||||
echo -e "${SENSOR}${spc}No Data"
|
||||
|
||||
Reference in New Issue
Block a user