Update temp.inc.sh
This commit is contained in:
@@ -184,7 +184,6 @@ CHECKTEMPSENSOR(){
|
|||||||
else
|
else
|
||||||
temp_c=`IDS_NUMBER_FORMAT $(echo ${INFO} | jq -r '.device0 .obs[].ambient_temp') 2 yes`
|
temp_c=`IDS_NUMBER_FORMAT $(echo ${INFO} | jq -r '.device0 .obs[].ambient_temp') 2 yes`
|
||||||
fi
|
fi
|
||||||
temp_timestamp=$(echo ${INFO} | jq -r '.device0 .obs[].timestamp')
|
|
||||||
else
|
else
|
||||||
temp_c=''
|
temp_c=''
|
||||||
fi
|
fi
|
||||||
@@ -276,11 +275,7 @@ CHECKTEMPSENSOR(){
|
|||||||
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
|
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
|
||||||
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
[ ${#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]} ]"
|
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
|
[ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ] && [[ "${1}" != *"-Probe" ]] && echo -e " - $(echo ${INFO} | jq -r '.device0 .obs[].timestamp')" || echo
|
||||||
echo -e " - ${temp_timestamp}"
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Yellow]}Sensor Offline${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}Sensor Offline${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user