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:
( 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();