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
#39
Hi,

Multiple commands have to be placed in a script file. You would enter the script file path as the CMD in GPIO button config.

Example:

1. Create the script file

Code:
pi@rp3:~ $ sudo nano test.sh

pi@rp3:~ $ cat test.sh
#!/bin/bash
mpc stop && mpc play 5

pi@rp3:~ $ sudo chmod +x test.sh

2. In GPIO button config set CMD = /home/pi/test.sh

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Use hardware momentary switches to control moOde - by Tim Curtis - 08-02-2019, 03:29 AM

Forum Jump: