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:28] – [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 82: | Line 82: | ||
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: | ||
- | | + | <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:// | [[http:// | ||
anonradio.txt · Last modified: 2023/06/30 23:46 by hc9