MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.33k stars 395 forks source link

Option for GPIO for RPi 1/2/.../zero #758

Open thedipling opened 4 years ago

thedipling commented 4 years ago

Feature Description

Since I used a RPi 1B for the installation of Phoniebox an I had a lot of trouble to get the gpio-service getting up and running. I would request an option to set GPIOs depending on the hardware and/or needs

What functionality would you like to see in your phoniebox?

  1. During the installation you can choose your raspberry and the appropriate GPIOs will be activated
  2. In the WebUI you can see the GPIOs active
  3. There is an option in the WebUI to change and/or activate GPIOs an users demands

How do you envision the feature to work from a users perspective?

a chapter in the Options

Further information that might help

N/A

s-martin commented 4 years ago

I think providing GPIO settings in the web UI could be a good idea. Should be in some kind of advanced settings section.

For the moment you can edit the file /home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py to adjust the GPIO settings to your device.

For more info see also here: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Using-GPIO-hardware-buttons But be aware that you don't need any pullup resistors anymore. @MiczFlor I think we should update that page.

Kyokuhin-b commented 3 years ago

Hi, i can't find the gpio-buttons.py

Where is placed in the last update? I can't find it on "code" also.

greetings

Frederic

thedipling commented 3 years ago

From which version did you do your update? as far as I see the 2.2 changed a lot - so you will find that settings in

./settings/gpio_settings.ini

and in./scripts/playout_controls.sh

you will find the script itself.