User Tools

Site Tools


anonradio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
anonradio [2021/03/06 04:28] – [On Linux or BSD] hc9anonradio [2021/03/06 07:15] – [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:
  
-  #!/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 'printf "\n anonradio stream terminated... \n" && exit 0' 2 +if [ -x $(which sox) ]; then 
-    clear +  trap 'printf "\n anonradio stream terminated... \n" && exit 0' 2 
-    while [ 1 ] +  clear 
-      do clear +  while [ 1 ] 
-      printf "\nSDF ANONradio - http://anonradio.net - ^C to cancel\n" +    do clear 
-      sox -V0 -t mp3 http://anonradio.net:8000/anonradio.m3u -d +    printf "\nSDF ANONradio - http://anonradio.net - ^C to cancel\n" 
-      sleep 5 +    sox -V0 -t mp3 http://anonradio.net:8000/anonradio.m3u -d 
-    done +    sleep 5 
-  else +  done 
-    echo 'sox(1) not found or not executable - exiting...' +else 
-    exit 1 +  echo 'sox(1) not found or not executable - exiting...' 
-  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 ''CNTL+C'' keys. See the "sox(1)" manpage for the full list of options.+</file> 
 + 
 +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 ''CNTL+C'' keys. See the "sox(1)" [[finding_help|manpage]] for the full list of options.
  
 ---- ----
 [[http://sdf.org/?tutorials/anonradio|ANONRADIO]] - legacy link [[http://sdf.org/?tutorials/anonradio|ANONRADIO]] - legacy link
  
anonradio.txt · Last modified: 2023/06/30 23:46 by hc9