Moode Forum
[How to do instruction] mpc insert Radio Station - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9)
+--- Thread: [How to do instruction] mpc insert Radio Station (/showthread.php?tid=3143)



mpc insert Radio Station - vikozo - 11-09-2020

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


RE: mpc insert Radio Station - the_bertrum - 11-09-2020

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".