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 9 made on Tuesday January 21, 2020 at 16:34
randman
Long Time Member
Joined:
Posts:
June 2003
423
Below is a (very) simple example:

// This is the callback
function processResponse(rcvd)
{
var jsonObj = JSON.parse(rcvd);
// Response to a successful http runevent request is:
// {"Response":"ok"}
// Note: actual response depends on HomeSeer JSON request (see HomeSeer doc)
var jsonObj = JSON.parse(rcvd);
if (jsonObj.Response == "ok") {
// Success!...
} else {
// Failure...
}
}


Hosting Services by ipHouse