Update temp.inc.sh
This commit is contained in:
@@ -86,6 +86,9 @@ CHECKTEMP(){
|
|||||||
[ "${PW_ACTION}" != "" ] && echo
|
[ "${PW_ACTION}" != "" ] && echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GET_LACROSSE_INFO "ServerRoomLA"
|
||||||
|
echo "HERE: ${DEVICE_INFO[@]}"
|
||||||
|
|
||||||
CHECKTEMPSENSOR(){
|
CHECKTEMPSENSOR(){
|
||||||
echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
|
echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
|
||||||
echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
|
echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
|
||||||
@@ -108,8 +111,7 @@ CHECKTEMPSENSOR(){
|
|||||||
|
|
||||||
elif [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then
|
elif [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then
|
||||||
GET_LACROSSE_INFO "${1}"
|
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
|
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ]; then
|
||||||
temp_c=$(vcgencmd measure_temp)
|
temp_c=$(vcgencmd measure_temp)
|
||||||
|
|||||||
Reference in New Issue
Block a user