Update temp.inc.sh
This commit is contained in:
@@ -137,6 +137,8 @@ CHECKTEMP(){
|
||||
else
|
||||
reading="${reading} "
|
||||
fi
|
||||
else
|
||||
reading="${reading} "
|
||||
fi
|
||||
|
||||
else
|
||||
@@ -302,11 +304,13 @@ CHECKTEMP(){
|
||||
|
||||
if [ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old ]; then
|
||||
if [ $(bc -l <<< "$(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old | cut -d'~' -f 1) < ${temp_f}") -eq 1 ]; then
|
||||
echo -en "${reading} ${idsCL[LightRed]}\u2B06 "
|
||||
echo -en " ${idsCL[LightRed]}\u2B06 "
|
||||
elif [ $(bc -l <<< "${temp_f} < $(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old | cut -d'~' -f 1)") -eq 1 ]; then
|
||||
echo -en " ${idsCL[LightGreen]}\u2B07 "
|
||||
elif [ "${temp_f}" == "$(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}-${sensorname// /_}.old | cut -d'~' -f 1)" ]; then
|
||||
echo -en " ${idsCL[LightCyan]}${idsST[Bold]}~${idsST[Reset]} "
|
||||
else
|
||||
echo -en " "
|
||||
fi
|
||||
else
|
||||
echo -en " "
|
||||
|
||||
Reference in New Issue
Block a user