Thank you for your donation!


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


Instruction Guide mpc insert Radio Station
#1
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
Raspberry Pi3B+ --> HiFiBerry DAC+ PRO --> Cyrus | Pre - Pre Amplifier --> D. Klimo | Kent monoblocks --> Piega | Piega LDR 8.2
Raspberry Pi3B+ --> HiFiBerry AMP2 --> Visaton FRS 8 30W 4Ω
Reply
#2
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".
----------------
Robert
Reply


Forum Jump: