steveg wrote: > Hello and thanks to the wonderful people who keep on developing this > audio player. > > I've finally got round to adding a relay to the power supply to my amp > and driving the relay using a GPIO pin using help from 'another forum' > (http://www.pinkfishmedia.net/forum/archive/index.php/t-165465.html) - > from Greg > > And it works great! (I made a few mods to the script, but those posts > got me pretty close). Really awesome. I'm a stickler for zombie power > draw. I can put up with the PI running 24/7, but not the amp. Now I just > stop playing music and the amp turns itself off after <1min delay- this > makes the sleep function so much more useful! > > And now I have seen that there is a new version of piCorePlayer. I > installed the new version (this is well thought out - too easy to > install), got my relay script working again, and then started messing > around with shairport-sync. This will be great for the WAF, although I'm > trying to phase out iDevices from the house... > > Shairport-sync works great, so far. Once enabled and installed, the > AirPlay setting appears on the iPad, and music will start playing, but > both through AirPlay and whatever LMS was playing. That gets a bit > confusing - auto pause on the other service would be nice. And then once > I do pause LMS (to just play the AirPlay music), the script detects that > LMS is not playing and shuts off my Amp. Drat, I've outsmarted myself. I > could keep playing LMS at zero volume, but this is supposed to be about > increasing the WAF :-) > > I've had a look on google, but couldn't work it out - does anyone know > how to detect if shairport-sync is playing so I can add that to my > script? I'm also very interested in this. I have a powered speaker that turns off by itself after 20min of no sound. I'm planning on wiring a relay to mimick the effect of the tactile speaker power button, and an optoisolator to detect if the power on led is on (to avoid turning off the speaker if it's already on)
This coupled with the script in the thread you linked should work. Of course as you said there is the issue of shairport Still, I can't help thinking that there are more efficient ways of detecting if lms is playing than polling all the time (but I am not criticising, its already great that it's working) Is it possible to have a script called from picoreplayer whenever lms/shairport player is started, and another when stopped? ------------------------------------------------------------------------ Chluz's Profile: http://forums.slimdevices.com/member.php?userid=63178 View this thread: http://forums.slimdevices.com/showthread.php?t=97803 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
