Hi everybody,
I've just finished setting up a Pi Zero W with an IQAudio hat to be used to stream the output of a magnificent Wega Concept 51k stereo system to a Denon AVR via Airplay.
The PCP running on the zero has the streaming function activated, and everything works nicely.
The IQAudio hat comes with a pushbutton connected to GPIO27; What I would like to achieve is that pressing this pushbutton does the same as if I had started the playback of the streaming URL.
Before, I used a script:
I couldn't find information on how to link the push button to the sh script. I've tried the push button with the gpio-shutdown tweak of PCP. It works fine with the "off" option.
But how could I send the CLI commands instead?
Thanks a lot for advice
Martin
I've just finished setting up a Pi Zero W with an IQAudio hat to be used to stream the output of a magnificent Wega Concept 51k stereo system to a Denon AVR via Airplay.
The PCP running on the zero has the streaming function activated, and everything works nicely.
The IQAudio hat comes with a pushbutton connected to GPIO27; What I would like to achieve is that pressing this pushbutton does the same as if I had started the playback of the streaming URL.
Before, I used a script:
Code:
#!/bin/sh
telnet 192.168.50.115 9090 <<EOF #telnet zum PCP-Raspi
aa%3Aaa%3A89%3Abd%3Ab7%3A51 playlist play http%3A%2F%2F192.168.50.108%3A8000%2Fphono
aa%3Aaa%3A89%3Abd%3Ab7%3A51 mixer volume 50
quit
EOF
But how could I send the CLI commands instead?
Thanks a lot for advice
Martin