Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide Use hardware momentary switches to control moOde
#56
The parameters look ok. You will need to add some debug to the python script to see if the callback function that's mapped to the pin is actually being executed.

Code:
sudo nano /var/www/command/gpio-buttons.py

add a print statement to the code block below then save (Ctrl-x y return (or enter)

Code:
       def sw_1_event(channel):
           subprocess.call(sw_1_cmd)
           print('Executed: ' + sw_1_cmd)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Use hardware momentary switches to control moOde - by Tim Curtis - 04-12-2020, 02:17 PM

Forum Jump: