diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 4c54e1f2..05af9414 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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]}"