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 Tuesday June 22, 2010 at 05:40
zedmtrappe
Long Time Member
Joined:
Posts:
July 2008
35
Hi - I think this should be quite simple to do but so far is eluding me!

I've got Spotify (music streaming app) running on a PC with an IP address of 192.168.1.4

Also on this machine I have an app called 'Spotify Remote' which is a webserver program running on port 8080, which allows very basic control of Spotify from any browser enabled device on the network:

Simply type the following commands into the browser for control:

192.168.1.4:8080/playpause
192.168.1.4:8080/next
192.168.1.4:8080/previous

( took the http:// out so they didn't show up as links)


Would it be possible to have ProntoScript 'send' these commands from a TSU9600? (TSU9600 on the same network with IP 192.168.1.203)

I'm a complete newb when it comes to TCIP etc but I was imagining something like:

var socket = new TCPSocket(true);
socket.connect("192.168.1.4", 8080, 3000);
socket.write("playpause");
socket.close();

would have worked...

or

var socket = new TCPSocket(true);
socket.connect("192.168.1.4", 8080, 3000);
socket.write("192.168.1.4:8080/playpause");// again took http// out
socket.close();

but neither do :-(

Am I close?

Any help greatly appreciated


Zack


Hosting Services by ipHouse