URL Temperature Value

Posted on
Fri May 08, 2020 4:35 pm
Kamen offline
Posts: 7
Joined: May 02, 2020

URL Temperature Value

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!

Posted on
Mon May 11, 2020 9:50 am
jay (support) offline
Site Admin
User avatar
Posts: 16209
Joined: Mar 19, 2008
Location: Austin, Texas

Re: URL Temperature Value

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

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests