paul- wrote: 
> Your script cannot have any console output either. 
> 
24482
> 
> 
> This script gets executed when squeezlite is launched (Mode: init), and
> again when the "power" status is changed in lms.   To issue a power on
> or power off command.
> 
> However,
> 
> It appears that you are only trying to implement a power off
> script.......which to be honest won't work, as squeezelite quite often
> toggles the state in between streams (when it closes and then opens
> alsa)
> 
> This was purely meant to interface with relays that turn amps on and
> off.
Actually, I do want to use it in this way, to switch on and off an
active speaker that is going to „live“ in the same housing as the PCP
pi. I need the relay to connect during 2-3 seconds in order to activate
the speaker (I‘ve soldered to cables to its power push button), and also
2-3 seconds to switch it off.
Could you give me perhaps a sample script that won‘t prevent squeezelite
from starting? This would it make easier for me to understand how the
script should look like.
Best regards
Martin


+-------------------------------------------------------------------+
|Filename: 7ED7CBDB-1496-4474-B613-8092CB01E56A.jpg                 |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=24482|
+-------------------------------------------------------------------+


PCP (always latest version) on RasPi 3 with PhatDac (player & server)
PCP on several RasPis 2 +3
2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin
------------------------------------------------------------------------
streampunk's Profile: http://forums.slimdevices.com/member.php?userid=66210
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to