Update temp.inc.sh

This commit is contained in:
2024-08-22 22:18:21 -05:00
parent 4d7a57b9a8
commit 6bebff2ab5

View File

@@ -1577,6 +1577,9 @@ SENDTEMP(){
temp_h=`IDS_NUMBER_FORMAT $(curl -m 8 -s http://${PW_REMOTE_SENSORS[${SENSORa}]}:8090/sensor/${PW_SENSOR_DEVICEID[${SENSORa}]/temperature/humidity} | jq '.value') 2 yes`
fi
elif [ "${PW_SENSOR_TYPE[${1}]}" == "tuya" ]; then
IFS=: read -r temp_c temp_h <<< $(GET_TUYA_TEMP ${1}); unset IFS
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then
if [[ "${SENSORa}" = *"CPU"* ]]; then
temp_c=$(vcgencmd measure_temp)