Update temp.inc.sh

This commit is contained in:
2023-12-14 22:08:46 -06:00
parent 595320be14
commit 793cfc9436

View File

@@ -110,6 +110,7 @@ CHECKTEMPSENSOR(){
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)
temp_c=$(echo ${INFO} | jq -r '.device0 .obs[].ambient_temp')
temp_probe=$(echo ${INFO} | jq -r '.device0 .obs[].probe_temp')
echo "$temp_c - $temp_probe"
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ]; then
temp_c=$(vcgencmd measure_temp)