Ich hatte das Ding für eine Volumio Installation aus China. Es funktionierte bei mir etwa 1 Tag.
Ich weiß nicht warum.
Einstellungen waren bei Volumio wie beim hifi Berry amp. Deshalb würde ich mal gucken welche Pins tatsächlich benutzt werden und dann die freien für die Schalter nutzen.
vielen Dank erstmal für den Tipp, immerhin läuft jetzt die Lautstärkenansteuerung, aber sobald ich auf next oder prev gehe kommt folgende Fehlermeldung in der Konsole wenn ich das python script ausführe um zu testen.
/bin/sh: 1: ./scripts/playout_controls.sh: not found
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gpiozero/pins/rpigpio.py", line 213, in _call_when_changed
super(RPiGPIOPin, self)._call_when_changed()
File "/usr/lib/python2.7/dist-packages/gpiozero/pins/pi.py", line 268, in _call_when_changed
method()
File "/usr/lib/python2.7/dist-packages/gpiozero/mixins.py", line 323, in _fire_events
self._fire_activated()
File "/usr/lib/python2.7/dist-packages/gpiozero/mixins.py", line 355, in _fire_activated
super(HoldMixin, self)._fire_activated()
File "/usr/lib/python2.7/dist-packages/gpiozero/mixins.py", line 301, in _fire_activated
self.when_activated()
File "/home/pi/gpio-buttons.py", line 35, in def_next
check_call("./scripts/playout_controls.sh -c=playernext", shell=True)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './scripts/playout_controls.sh -c=playernext' returned non-zero exit status 127
kann mir einer dazu was sagen? Die Datei ist definitiv vorhanden.