Update temp.inc.sh

This commit is contained in:
2023-12-26 21:56:35 -06:00
parent a52aae8d77
commit 35f0ada043

View File

@@ -735,7 +735,20 @@ SENDTEMP(){
fi
(( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"
fi
[ "${1}" != "" ] && echo -e "${SENSOR}${spc}${temp_f}${GAUGESH} / ${average1}${GAUGESH} / ${average7}${GAUGESH}" || echo -e "${SENSOR}${spc}${temp_f}${GAUGESH}"
if [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then
temp_f_disp=$(IDS_NUMBER_FORMAT ${temp_f})
if [ "${1}" != "" ]; then
average1_disp=$(IDS_NUMBER_FORMAT ${average1})
average7_disp=$(IDS_NUMBER_FORMAT ${average7})
fi
else
temp_f_disp=${temp_f}
if [ "${1}" != "" ]; then
average1_disp=${average1}
average7_disp=${average7}
fi
fi
[ "${1}" != "" ] && echo -e "${SENSOR}${spc}${temp_f_disp}${GAUGESH} / ${average1_disp}${GAUGESH} / ${average7_disp}${GAUGESH}" || echo -e "${SENSOR}${spc}${temp_f_disp}${GAUGESH}"
else
echo -e "${SENSOR}${spc}No Data"