Thank you for your donation!


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


Stuck on gpio pin clear-load-play-list
#4
You could have the script accept an input argument.

myscript.sh Mp3
myscript.sh Radio

In the script $1 represents the first input argument. You would use the command below instead of mpc load Mp3

mpc load $1

Button 1 CMD field = /home/pi/myscript.sh,Mp3
Button 2 CMD field = /home/pi/myscript.sh,Radio
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Stuck on gpio pin clear-load-play-list - by avior - 11-12-2020, 02:30 PM
RE: stuck on gpio pin - by Tim Curtis - 11-12-2020, 02:35 PM
RE: stuck on gpio pin - by avior - 11-12-2020, 03:26 PM
RE: Stuck on gpio pin clear-load-play-list - by Tim Curtis - 11-12-2020, 04:56 PM

Forum Jump: