diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index e41b9865..ba5882b4 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -713,8 +713,8 @@ CHECKTEMPSENSOR(){ if [ "${temp_c}" != "" ]; then if [ "${1}" == "ServerRoom_Monitor_Front" ]; then echo "\"${PW_ESP_USER}:${PW_ESP_PASS}\" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity | jq '.value" - curl -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity | jq '.value' - temp_h=$(curl -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity | jq '.value') + curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity | jq '.value' + temp_h=$(curl -m 8 -s -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity | jq '.value') echo "1: $temp_h" elif [ "${1}" == "ServerRoom_Monitor_Back" ]; then echo "\"${PW_ESP_USER}:${PW_ESP_PASS}\" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/back_humidity | jq '.value"