From b429330bd8695f3365eedd2cc30e8b375b5bb079 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 13 Sep 2025 19:38:13 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 6aad68e4..14a02448 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -710,7 +710,13 @@ CHECKTEMPSENSOR(){ elif [ "${PW_SENSOR_TYPE[${1}]}" == "espdev" ]; then if ! temp_c=$(curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/${PW_SENSOR_DEVICEID[${1}]} | jq '.value'); then TIMEOUT=1; fi if [ "${temp_c}" != "" ]; then - temp_h=`IDS_NUMBER_FORMAT $(curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/${PW_SENSOR_DEVICEID[${1}]/temperature/humidity} | jq '.value') 2 yes` + if [ "${1}" == "ServerRoom_Monitor_Front" ]; then + temp_h=`IDS_NUMBER_FORMAT $(curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity} | jq '.value') 2 yes` + elif [ "${1}" == "ServerRoom_Monitor_Back" ]; then + temp_h=`IDS_NUMBER_FORMAT $(curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/back_humidity} | jq '.value') 2 yes` + else + temp_h=`IDS_NUMBER_FORMAT $(curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/${PW_SENSOR_DEVICEID[${1}]/temperature/humidity} | jq '.value') 2 yes` + fi fi elif [ "${PW_SENSOR_TYPE[${1}]}" == "tuya" ]; then