Hi
I want to control my power amp with gpio on/off before playing and after playing.
gpio wiring has been tested in volumio plugin but I want to use Picoreplayer instead of volumio.
The logic will be
1. before start(when you start to play a music)
-> activate usb port(to turn off usb dac) if it turned off (might need to restart squeeze cmd..)
-> turn on gpio
-> play music
2. pause/stop
-> delay
-> turn off gpio
-> deactivate usb port(to turn off usb dac)
For pause/stop, somehow I can implement it using bash script daemon by monitoring status
However, the start part blocks me. because it could make a delay to turn on the power amp after music is started in player side as it uses polling.
Are there some ways to monitor or interrupt the play process from LMS and execute my logic ? e.g. plugin?
I tried to set up gpio power in Squeezelite settings. and I assumed the button means the one in player choice menu in LMS, but it didn't work..(when I used pcp-gpio cmd, it worked well in console)
Thank you in advance
I want to control my power amp with gpio on/off before playing and after playing.
gpio wiring has been tested in volumio plugin but I want to use Picoreplayer instead of volumio.
The logic will be
1. before start(when you start to play a music)
-> activate usb port(to turn off usb dac) if it turned off (might need to restart squeeze cmd..)
-> turn on gpio
-> play music
2. pause/stop
-> delay
-> turn off gpio
-> deactivate usb port(to turn off usb dac)
For pause/stop, somehow I can implement it using bash script daemon by monitoring status
However, the start part blocks me. because it could make a delay to turn on the power amp after music is started in player side as it uses polling.
Are there some ways to monitor or interrupt the play process from LMS and execute my logic ? e.g. plugin?
I tried to set up gpio power in Squeezelite settings. and I assumed the button means the one in player choice menu in LMS, but it didn't work..(when I used pcp-gpio cmd, it worked well in console)
Thank you in advance