Foggy wrote: > Is there a way I can send commands from a script on the Pi to > Squeezeslave on the pi - specifically play and pause??? > > The reason I ask is that, with my limited ability I am very close to > creating a motion detecting Squeezebox. > The plan is to have Muzak in the loo that continues playing the current > playlist when someone uses the cloakroom and stops when they leave. > So far I am part of the way there by using the camera and running > 'motion' to play a specified mp3 file, the next step is to replace this > command by sending a 'play' command to squeezeslave and a 'pause' when > the room is empty. > Does this sound feasible? > > Obviously having a camera in the cloakroom isn't great, but once I get > it working I might look at using a PIR. > > Cheers > > Foggy
Hi Foggy, I think it is normal practise to control the Raspberry Pi via LMS. ( echo "$MAC $STRING"; echo exit ) | nc $LMSIP 9090 MAC=mac address of Raspberry Pi STRING=LMS command i.e. play, pause LMSIP=LMS ip address If nc is not available try netcat. You may not need to include $MAC. The LMS CLI is documented on your LMS via Help on the web interface. regards Greg ------------------------------------------------------------------------ Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=104334 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
