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:

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
--------------------

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



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=117119

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

Reply via email to