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
How to in excruciating detail…
To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.
I have chosen to use a more old school method of spam prevention.
To post a comment here, you need to:
- Configure a newsreader¹ to connect to the server
- Open the newsgroup called
¹ Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).koldfront.dk
on port1119
using nntps (nntp over TLS).lantern.koldfront
and post a follow up to the article.Or, you can fill in this form: