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 37 made on Saturday October 27, 2018 at 11:21
kapsreiter
Long Time Member
Joined:
Posts:
November 2006
47
hi

i created this user now:

its working at the pc but not at the pronto
pronto is online.



{"devicetype":"pronto#tom"}

[
{
"success": {
"username": "lVfthQzyz9ZbNsUyndnZT9WBBOQ852HY3fEcPUVg"
}
}
]


so what should look this code now, this is still not working:



var socket = new TCPSocket(false);
var result="";


var JSON_on='{"on":true}';

function getInfos(commands)
{
socket.write('PUT /api/lVfthQzyz9ZbNsUyndnZT9WBBOQ852HY3fEcPUVg/groups/1/action HTTP/1.1\r\nContent-Length: '+commands.length+'\r\n\r\n'+commands);

}

socket.onConnect = function()
{
getInfos(JSON_on);
};

socket.onData = function()
{

};

socket.onClose = function()
{
socket = null
}

socket.onIOerror = function() {
System.print("error");
try {
socket.close()
socket = null
} catch(e) {}
}

socket.connect('10.0.0.2', 80, 3000);



________________________________________-

where must i ad what now?

i don't know where i see this infos at chrome? and how to paste it in the code :-(

could you check it and paste it for me please

Last edited by kapsreiter on October 27, 2018 14:49.


Hosting Services by ipHouse