Update temp.inc.sh

This commit is contained in:
2024-04-21 16:41:54 -05:00
parent 22241c1246
commit c755683e2e

View File

@@ -129,9 +129,9 @@ CHECKTEMP(){
if [ "${average}" = "" ] && [ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ]; then
if [ $(bc -l <<< "$(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old | cut -d'~' -f 1) < ${temp_f}") -eq 1 ]; then
reading="${reading} ${idsCL[LightRed]}\u1F885 "
reading="${reading} ${idsCL[LightRed]}\u2B08 \u2197 "
elif [ $(bc -l <<< "${temp_f} < $(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old | cut -d'~' -f 1)") -eq 1 ]; then
reading="${reading} ${idsCL[LightGreen]}\u1F886 "
reading="${reading} ${idsCL[LightGreen]}\u2B0A \u2198 "
elif [ "${temp_f}" == "$(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old | cut -d'~' -f 1)" ]; then
reading="${reading} ${idsCL[LightCyan]}\u27F7 "
else