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
#3
(11-12-2020, 02:35 PM)Tim Curtis Wrote: Put the commands in a script file /home/pi/myscript.sh

mpc clear
mpc load Mp3
mpc play

Then specify the script file in the CMD field

/home/pi/myscript.sh

Remember to mark the script file as executable
sudo chmod +x /home/pi/myscript.sh

And put a shebang as the first line
#!/bin/bash

Thank you for your reply Tim

i am bit confused  I have 2 play list one call "Radio" and the other call "MP3"
I see you shown me how to do myscript    but how would i go back to "Radio" playlist
if i press the second button  would i have to make another myscript to go back to Radio
Huh
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

Forum Jump: