KHHERRMANN.de/ |
08:21 9.Nov 2025 CET |
The scripts are published under GPL V3.
Update: Rafael Laboissiere sent me back an improved version of this script which does also the pdf-to-images conversion (with helper programs). You can find his version on the alioth website.
$ at 00:05 15.3.2008
at> getradio.pl dlf 56
at> [Ctrl-D]
To record the stereo (!) ogg stream of the weekly (every Sat
00:05) crime story from "Deutschlandfunk" on Sat 3/15/2008.
"at" will start the script at 00:05 on 15.3.2008, the script fetches
the webpages, extracts the streaming link and starts in this case
wget to download the ogg-stream. If the wget process dies it will
restart it with a little delay to avoid too quick restarts. If the
endtime (56 minutes in above example) is reached the wget process
is stopped (and no restarting).
Right now the script takes two arguments:
Usage:
getradio.pl [br2|br4|wdr3|wdr5|dlr|einslive|figaro] duration
and can handle the following German radio stations: Bayrischer
Rundfunk br2 and br4, Westdeutscher Rundfunk WDR3, WDR5 and
einslive, Mitteldeutscher Rundfunk Figaro and the two channels of
Deutschlandradio -- Deutschlandfunk and Deutschlandradio Kultur.
Extending the script to other stations based on the examples is
pretty easy I think once you take a peek into the html-source of the
webpages which lets you start the internet radio.
If you happen to preprogram a lot of these for the next month
you'll find the usual output of atq rather unhelpful. Another
little script helps getting
all relevant information from the programmed getradio jobs (start
time, channel, duration, jobid for canceling, where the files will
end up,..) and outputs them in chronological order and warns of
duplicates:
start date and time chan ID dur target dir
2008-03-15 20:05:00 dlf Sat 1004 115 /home/khh
2008-03-15 22:00:00 ???? Sat 1013 ?? /home/khh <- not a proper entry (unknown channel, not getradio.pl,..)
2008-03-16 15:00:00 br2 Sun 1011 60 /home/khh
2008-03-19 20:30:00 br2 Wed 1012 60 /home/khh
I had to modify the script when switching to ubuntu, maybe the old
version is helpful for somebody as well.
Licene for the scripts is GPL V3.