04-12-2020, 02:17 PM
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.
add a print statement to the code block below then save (Ctrl-x y return (or enter)
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)