Update temp.inc.sh

This commit is contained in:
2023-12-14 17:58:40 -06:00
parent 7770998dd6
commit bd3a086a0c

View File

@@ -86,6 +86,9 @@ CHECKTEMP(){
[ "${PW_ACTION}" != "" ] && echo
}
GET_LACROSSE_INFO "ServerRoomLA"
echo "HERE: ${DEVICE_INFO[@]}"
CHECKTEMPSENSOR(){
echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
@@ -108,8 +111,7 @@ CHECKTEMPSENSOR(){
elif [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then
GET_LACROSSE_INFO "${1}"
echo "HERE: ${DEVICE_INFO[@]}"
# temp_c=${DEVICE_INFO['probe_temp']}
temp_c=${DEVICE_INFO['probe_temp']}
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ]; then
temp_c=$(vcgencmd measure_temp)