Update temp.inc.sh

This commit is contained in:
2024-02-14 22:05:27 -06:00
parent 550dc717fe
commit 4e1577fda1

View File

@@ -88,15 +88,6 @@ CHECKTEMP(){
if [ ! -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}"
if [ "${avgdays}" != "noavg" ]; then
if [[ "${avgdays^^}" = *"M"* ]]; then
avgdays_disp="${avgdays::-1} Minute"
elif [[ "${avgdays^^}" = *"H"* ]]; then
avgdays_disp="${avgdays::-1} Hour"
elif [[ "${avgdays^^}" = *"D"* ]]; then
avgdays_disp="${avgdays::-1} Day"
elif [[ "${avgdays}" =~ ^[0-9]+$ ]]; then
avgdays_disp="${avgdays::-1} Day"
fi
echo -en "Pulling data and calculating ${avgdays_disp} average ... "
else
echo -en "Pulling data ... "