easy-peasy radio script
Posted: Tue Feb 25, 2014 7:47 am
You probably already know that I am sucker for 'dialog's in terminals. The following script needs a file in which you paste your favourite radio stream URLs
/usr/local/bin/bbqownradio
and here is a sample file you can use as radiolist - no blank lines please!
/usr/local/share/radiolist
Remember: sudo chmod a+x /usr/local/bin/bbqownradio
some random list: <removed due to bitching>
/usr/local/bin/bbqownradio
Code: Select all
#!/bin/bash
# BBQOWNRADIO
. /usr/share/doc/dialog/examples/setup-vars
. /usr/share/doc/dialog/examples/setup-tempfile
ar=()
while read n s ; do
ar+=($n "$s")
done < /usr/local/share/radiolist
dialog --clear --cancel-label "OFF" --menu "Stations" 0 0 0 "${ar[@]}" 2> $tempfile
retval=$?
case $retval in
$DIALOG_CANCEL)
killall mpg123 ; exit 0;;
esac
mpg123 -C -q -@ `cat $tempfile` &
reset
clear
echo "Now playing: `cat $tempfile`"
exit 0
/usr/local/share/radiolist
Code: Select all
http://mp3-live.swr.de/swr1bw_s.m3u
http://4broadcast.de/radioin.m3u
http://tranceradio.ch/listen.m3u
http://voxsc1.somafm.com:8600
http://www.friskyradio.com/frisky.m3u
http://shouthostdirect13.streams.bassdrive.com:8202
http://streamer-dtc-aa03.somafm.com:80/stream/1018
http://broadcast.infomaniak.ch/traxx002-low.mp3
http://broadcast.informaniak.ch/traxx003-low.mp
http://broadcast.informaniak.ch/traxx013-low.mp3
http://voxsc1.somafm.com:8300
http://voxsc1.somafm.com:8384
http://voxsc1.somafm.com:7000
http://voxsc1.somafm.com:8040
http://voxsc1.somafm.com:8062
http://voxsc1.somafm.com:8700
http://voxsc1.somafm.com:8900
http://voxsc1.somafm.com:8500
http://voxsc1.somafm.com:8090
http://voxsc1.somafm.com:2200
http://voxsc1.somafm.com:8880
http://webradio.radiof.de:8000/
http://www.dradio.de/streaming/dlf.m3u
http://205.164.62.21:8030/
http://www.coolradio.de/streams/cooljazz-128.m3u
http://www.jazzradio.net/docs/stream/jazzradio.pls
http://ams02.egihosting.com:5050/
http://air.radiolla.com/radiolla192k
http://air.radiolla.com/jiraffe192k
http://air.radiolla.com/volta192k
http://air.radiolla.com/equalyza192k
http://air.radiolla.com/ilma192k
some random list: <removed due to bitching>