Page 1 of 1

URL Temperature Value

PostPosted: Fri May 08, 2020 4:35 pm
by Kamen
Hi does anyone know if possible to poll the current temperature sensor values from a http URL ? And if that's possible can someone guide me how to do it! I want to use it in my simple control remote app to get the the current temperature when I press a button it will open a page with the the current value in Safari Thanks in advance!

Re: URL Temperature Value

PostPosted: Mon May 11, 2020 9:50 am
by jay (support)
Yes, it is. This simple script may be good enough:

Code: Select all
import requests
reply = requests.get('URL_HERE')
indigo.variable.updateValue(VARIDHERE, value=reply.text)


Of course, I'm completely guessing since you didn't really provide any specific information - like if you need authentication, what the return value is, etc.

[MODERATOR NOTE]: moved to a more appropriate forum