From ace817cd5f3b5863271fdda7a3f06c49e19f907c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 14 Dec 2023 22:26:39 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index fccb157f..1cd0b63f 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -270,7 +270,7 @@ CHECKTEMP_SERVICE(){ echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c elif [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "lacrosse" ]; then - INFO=$(curl -s --get -d "deviceid=${PW_LACROSSE_ID[${1}]}" -d "limit=1" -d "metric=1" -d "timezone=2" https://decent-destiny-704.appspot.com/laxservices/device_info.php | jq) + INFO=$(curl -s --get -d "deviceid=${PW_LACROSSE_ID[${SENSOR}]}" -d "limit=1" -d "metric=1" -d "timezone=2" https://decent-destiny-704.appspot.com/laxservices/device_info.php | jq) temp_probe_c=$(echo ${INFO} | jq -r '.device0 .obs[].ambient_temp') temp_c=$(echo ${INFO} | jq -r '.device0 .obs[].probe_temp') temp_h=$(echo ${INFO} | jq -r '.device0 .obs[].humidity')