Moode Forum

Full Version: mpc insert Radio Station
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

my wish was to play a Radio Station every Week on a spezial Time 19:00!

Code:
mpc insert [RadioStationName]
mpc next
this would work in a bashscript with a Song but not with a Radiostation.

But, Clear the List of your moOde  select your Radiostation
hit the ... (3 dots)

Save playlist give them a Name you like

Code:
# mpc lsplaylists
should show your saved "playlist"

in my Case it is called KanalK

nano /usr/local/bin/yourStation.sh


Code:
#!/bin/bash
# mpc lsplaylists
mpc clear
mpc load KanalK
mpc play
/var/www/vol.sh 90

chmod +x the file

edit your Crontab and add the path/file and the time you wish to play it!

have a nice day
vinc
There's a built in clock radio function you could use also. Add the station you want to the play queue, then click the three dots next to the station name in the queue and select "Use for clock radio".