Update temp.inc.sh
This commit is contained in:
@@ -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 -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 -u "${PW_ESP_USER}:${PW_ESP_PASS}" http://${PW_REMOTE_SENSORS[${1}]}:8090/sensor/front_humidity})
|
||||
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})
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user