koldfront

Jukebox IV - news from the radio #jukebox #programming

After changing the system disk in my jukebox from a 7200 RPM to a 4200 RPM disk (less speed → less heat → less noise) I was pretty happy.

But there was one more thing that would be nice: If it played the radio news every hour.

So I added a little script that pauses mpd, starts vlc (well, actually vlc is forked in the background and the script sleeps a little before it pauses mpd, to minimize the gap), plays the radio for a predetermined length of time, whereafter vlc is killed and mpd unpaused (if it wasn't paused to begin with).

After fiddling a little with the crontab to start the script at the right time, and for how long to keep vlc streaming, I am pretty happy with the result. Good bye P3.

Add comment?

Title:

Name:

Email (won't be displayed online):

Text:

0.0223 s
webcustodian@koldfront.dk