07-27-2021, 12:03 AM
(07-22-2021, 02:10 PM)Tim Curtis Wrote: Alternatively
Code:mpc add PLAYABLE_URL
# Example for Groove Salad station
mpc add http://ice1.somafm.com/groovesalad-128-aac
ETA: You can find the playable url via Audio info or Edit the station
Thank you!
SSH'd in
changed directories to: /home/pi/
sudo nano preset1.sh
MPC clear
MPC add https://streams.radiomast.io/d01056xxxxx...xxxxxxxxxx
MPC play
saved and then typed:
sudo chmod +x preset1.sh to make executable
then setup Button 1 "ON" PIN 17 CMD /home/pi/preset1.sh
this works like a charm
duplicated for a few other presets