Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 11 made on Wednesday September 9, 2020 at 13:28
Fischi
Long Time Member
Joined:
Posts:
January 2011
114
On September 8, 2020 at 18:16, Lyndel McGee said...
Are you using the Philips HTTP Library? If so, it's pretty simple.

Use the getHTTP function. You will have to edit your original URL below to supply the correct IP address. I presume you have a widget on current page with a tag of "MyLabel".

var myURL = "htt_p://XXX.XXX.XXX.XX:85/HomeSeer_REST_API.aspx?function=getdevicestatusvaluebyid&m1=2012&m2=value";
// remove the underscore in htt_p above.
function installResponse(textualResponse) {
GUI.widget("MyLabel").label =textualResponse;
}

com.philips.HttpLibrary.getHTTP(myURL, installResponse);

Lyndel,
I have this running OK, I'll try Randman's approach a liitle bit later.
My question is :
I have multiple devices -not only 2012- . (getdevicestatusvaluebyid&m1=2012)
How to get the data from other devices (2008,846,2034 ...) into the in the appropriate widgets ?

&m2=value is always the same, only &m1= is different depending on the device number
I hope you know what I mean
Fischi


Hosting Services by ipHouse