Update temp.inc.sh

This commit is contained in:
2023-12-26 21:51:14 -06:00
parent 6d7a52f319
commit a52aae8d77

View File

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