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 5 made on Thursday February 12, 2009 at 07:04
raven77m
Lurking Member
Joined:
Posts:
February 2009
8
I think I got the password thing figured out (I added the static IP of my remote to the trusted address in the PowerHome webserver). But I still can't seem to get this to work. I ran the debug script and found a few problems, but I fixed those and now I get no errors and it still doesn't work. Below is two of the MANY variations I tried, any idea's?

var socket = new TCPSocket(false);
socket.onConnect = function()
{
socket.write("GET /ph-cgi/evalformula?formula=ph_insteon('LROOMLIGHTS', ion, int(255)) HTTP/1.0\r\n\r\n");
socket.close();
};
socket.onClose = function()
{
};
socket.onIOError = function(e)
{
label = "Error: " + e;
};
socket.connect("192.168.1.2", 88, 3000);

Here is another one I tired...

var socket = new TCPSocket(true);
socket.connect('192.168.1.2', 88, 3000);
socket.write("GET /ph-cgi/evalformula?formula=ph_insteon('LROOMLIGHTS', ion, int(255)) HTTP/1.0\r\n\r\n");
socket.close();

If I enter the address below in IE or Firefox it turns the light on every time.

192.168.1.2:88/ph-cgi/evalformula?formula=ph_insteon('LAMPDIM', ion, int(255))

Thanks again for any input, I am starting to get a little frustrated.
:)


Hosting Services by ipHouse