diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 14a02448..d0adbf76 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -711,8 +711,10 @@ CHECKTEMPSENSOR(){ 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 if [ "${1}" == "ServerRoom_Monitor_Front" ]; then + echo "http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity} " 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 + echo "http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/back_humidity} " 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`