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 1 made on Thursday September 30, 2010 at 08:34
jimmymac
Lurking Member
Joined:
Posts:
November 2009
2
Hi All,

I'm now into the swing of things with Prontoscript but I'm looking at my first time of creating a TCP function and need help please...

We have an IPPower 9258 device - [Link: opengear.com]

You can directly control the unit using http commands - the one given as an example in the user manual that I need to use is...

[Link: admin]

'admin' is the user name and '12345678' the password.

I need to open a socket and then login to send the command:

/Set.cmd?CMD=SetPower+P61=0

This turns of power port 2 (for a Sky HD box)

Then after a short while send

/Set.cmd?CMD=SetPower+P61=1

This powering the sky box back on - i.e. to power cycle the sky box when it freezes up.

I'm wondering how to do this as the manual shows login and the control command as one string.

After looking at the developers guide I tried the following to do an initial test but had no luck...

var socket = new TCPSocket(true);
socket.connect("192.168.1.230", 80, 3000);
socket.write("[Link: admin]");
socket.close();

Can anyone point me in the right direction please?

Also, I'm looking around for programming courses for javascript and http anyone got any suggestions?


Hosting Services by ipHouse