anonradio
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
anonradio [2021/03/06 04:03] – [On Linux or BSD] hc9 | anonradio [2021/03/06 07:18] – [On Linux or BSD] hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ANONRADIO ====== | ====== ANONRADIO ====== | ||
- | <file config /streaming/radio> | + | <file config /streaming radio> |
((( o ))) | ((( o ))) | ||
| | | | ||
Line 18: | Line 18: | ||
The easiest way to start listening is to visit http:// | The easiest way to start listening is to visit http:// | ||
- | Alternatively, | + | Alternatively, |
Don't know how to do that? Fear not! Below are instructions for how to do that with some popular media players. | Don't know how to do that? Fear not! Below are instructions for how to do that with some popular media players. | ||
Line 27: | Line 27: | ||
- File -> Open Network | - File -> Open Network | ||
- | - enter: http:// | + | - enter: |
To get around occasional drops in the stream which may occur when DJs/ | To get around occasional drops in the stream which may occur when DJs/ | ||
Line 42: | Line 42: | ||
- Go to Media -> Open Network Stream | - Go to Media -> Open Network Stream | ||
- | - Enter the address http:// | + | - Enter the address |
Using the ncurses interface (" | Using the ncurses interface (" | ||
Line 70: | Line 70: | ||
- In '' | - In '' | ||
- Press '' | - Press '' | ||
- | - Add '' | + | - Add '' |
**SoX** (http:// | **SoX** (http:// | ||
Line 78: | Line 78: | ||
$ play -t mp3 http:// | $ play -t mp3 http:// | ||
- | note: the "play" | + | note: the '' |
To make it more useful for ANONRADIO use, it's helpful to put it into a shell script like so: | To make it more useful for ANONRADIO use, it's helpful to put it into a shell script like so: | ||
- | "#!/bin/sh -e | + | <file config /shell script> |
- | # anonradio - streams SDF ANONradio via sox(1); | + | #!/bin/sh -e |
- | # retries automatically if stream dropped | + | # anonradio - streams SDF ANONradio via sox(1); |
- | if [ -x $(which sox) ]; then | + | # retries automatically if stream dropped |
- | trap ' | + | if [ -x $(which sox) ]; then |
- | clear | + | trap ' |
- | while [ 1 ] | + | clear |
- | do clear | + | while [ 1 ] |
- | printf "\nSDF ANONradio - http:// | + | do clear |
- | sox -V0 -t mp3 http:// | + | printf "\nSDF ANONradio - http:// |
- | sleep 5 | + | sox -V0 -t mp3 http:// |
- | done | + | sleep 5 |
- | else | + | done |
- | echo ' | + | else |
- | exit 1 | + | echo ' |
- | fi | + | exit 1 |
- | exit 0" | + | fi |
+ | exit 0 | ||
- | The above script will automatically reconnect to the anonradio stream if it gets dropped due to a DJ change or network abberation. Stream is terminated using the '' | + | </ |
+ | |||
+ | The above script will automatically reconnect to the anonradio stream if it gets dropped due to a DJ change or network abberation. Stream is terminated using the '' | ||
+ | |||
+ | ---- | ||
+ | [[http:// | ||
- | $Id: anonradio.html, |
anonradio.txt · Last modified: 2023/06/30 23:46 by hc9