Update temp.inc.sh

This commit is contained in:
2024-01-27 14:25:09 -06:00
parent 721b67e73f
commit 9996a418af

View File

@@ -184,7 +184,6 @@ CHECKTEMPSENSOR(){
else
temp_c=`IDS_NUMBER_FORMAT $(echo ${INFO} | jq -r '.device0 .obs[].ambient_temp') 2 yes`
fi
temp_timestamp=$(echo ${INFO} | jq -r '.device0 .obs[].timestamp')
else
temp_c=''
fi
@@ -276,11 +275,7 @@ CHECKTEMPSENSOR(){
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
echo -en "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]"
if [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then
echo -e " - ${temp_timestamp}"
else
echo
fi
[ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ] && [[ "${1}" != *"-Probe" ]] && echo -e " - $(echo ${INFO} | jq -r '.device0 .obs[].timestamp')" || echo
fi
else
echo -e "${idsCL[Yellow]}Sensor Offline${idsCL[Default]}"