Monthly Archive for February, 2008

Automatic http stream download of NRK Radio

For a long time, I have wanted to fetch my favorite radio program stream every Thursday and Saturday. This radio program streams their music as a oog file on a http-stream.
My cron-setup:

~/radio$ crontab -l
# m h  dom mon dow   command
# (see man 5 crontab)
 
# Automatic Lt.WEE (nrk-mp3) downloader, every thu+sat 20:00-24:00
0 20 * * 4,6 screen -dmS ltWEE.SCREEN ~/radio/fetch-nrkmp3.sh ltWEE
30 0 * * 5,7 ~/radio/killfetch.sh ltWEE
 
# anotherprogram download example
# 0 10 * * 3 screen -dmS anotherprogram.SCREEN ~/radio/fetch-nrkmp3.sh anotherprogram
# 5 11 * * 3 ~/radio/killfetch.sh anotherprogram
# exampleprogram on anotherstation. You need to make ~/radio/fetch-anotherstation.sh
# 0 12 * * 0 screen -dmS exampleprogram.SCREEN ~/radio/fetch-anotherstation.sh exampleprogram
# 5 15 * * 0 ~/radio/killfetch.sh exampleprogram

Continue reading ‘Automatic http stream download of NRK Radio’