-
Hi all, i want to have a toggle function for the audio output. I found this Hack and now i am able to switch the audio output via In the linked Hack thread it is mentioned, that the script is called via RFID, and button would be possible. At the moment, i can only execute the script via the console command. I had a look in the Could someone please help me to run the script via a button press? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What I recall from my memory and briefly checked in the files on my testing RPi, I edited the following files and inserted these commands:
No guarantee it works, I can't test at the moment because the GPIO in my testing RPi is broken :-( |
Beta Was this translation helpful? Give feedback.
-
Good Morning, thanks for your input @manajoe. I adjusted a bit of your code ( add GPIO Button
add function
add script to called function
in the
Any idea how to fix this? =/ EDIT:
|
Beta Was this translation helpful? Give feedback.
Good Morning,
thanks for your input @manajoe. I adjusted a bit of your code (
fuction_calls.py
has a small error)I think it is almost working.
add GPIO Button
sudo nano RPi-Jukebox-RFID/settings/gpio_settings.ini
add function
nano RPi-Jukebox-RFID/components/gpio_control/function_calls.py
add script to called function
nano RPi-Jukebox-RFID/scripts/playout_controls.sh