PhJuke - Music Jukebox for Photon |
||||||||||||||
Home Page
|
![]() |
Remote Control via the NetworkIf you want to control PhJuke from another host, add the line port n to your preferences file ($HOME/.phjuke), where n is a number between 1024 and 65535. (Edit your preferences file while PhJuke isn't running, since it overwrites the file on exit.) PhJuke accepts TCP connections on the specified port number and speaks a simple text network protocol. It recognizes the following commands, which may be terminated with a carriage return (^M) or newline (^J). PhJuke responds with any data requested by the command, then a three-digit status code and a text status message. Currently only two status codes are defined, 200 (success) and 500 (command unrecognized). All results are newline-terminated.
Future additions to the network protocol, depending on demand, may include track selection and playlist management as well as server-initiated status updates. For remote control from a Windows system using hotkeys, I recommend the TCP plugin for Girder, the favorite automation package among the home theater PC crowd. It has a bit of a learning curve, but is very powerful. Steven Grimm |