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:03] – [On Linux or BSD] hc9anonradio [2021/03/12 19:19] – [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://anonradio.net/listen in your web browser, and launch the web player. The easiest way to start listening is to visit http://anonradio.net/listen in your web browser, and launch the web player.
  
-Alternatively, you can use your favorite media player to open the live stream at "''http://anonradio.net:8000/anonradio''"+Alternatively, you can use your favorite media player to open the live stream at ''http://anonradio.net:8000/anonradio''
  
 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://anonradio.net:8000/anonradio+  - enter: ''http://anonradio.net:8000/anonradio''
  
 To get around occasional drops in the stream which may occur when DJs/programs are changing, select Playback -> Repeat One. To get around occasional drops in the stream which may occur when DJs/programs are changing, select Playback -> Repeat One.
Line 42: Line 42:
  
   - Go to Media -> Open Network Stream   - Go to Media -> Open Network Stream
-  - Enter the address http://anonradio.net:8000/anonradio and press the **Play** button+  - Enter the address ''http://anonradio.net:8000/anonradio'' and press the **Play** button
  
 Using the ncurses interface ("nvlc"): Using the ncurses interface ("nvlc"):
Line 70: Line 70:
   - In ''ncmpcp'', press ''2'' to access playlists   - In ''ncmpcp'', press ''2'' to access playlists
   - Press ''a'' to add a station.   - Press ''a'' to add a station.
-  - Add ''http://anonradio.net:8000/anonradio'' and press enter.+  - Add ''http://anonradio.net:8000/anonradio'' and press ''enter''.
  
 **SoX** (http://sox.sourceforge.net) **SoX** (http://sox.sourceforge.net)
Line 78: Line 78:
   $ play -t mp3 http://anonradio.net:8000/anonradio.m3u   $ play -t mp3 http://anonradio.net:8000/anonradio.m3u
  
-note: the "playcommand is part of the "SoXprogram.+note: the ''play'' command is part of the ''SoX'' program.
  
 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" &amp;&amp; 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]] - traditional link (using [[wp>Revision_Control_System|RCS]])
  
-$Id: anonradio.html,v 1.17 2019/01/15 05:34:50 jgw Exp $ 
anonradio.txt · Last modified: 2023/06/30 23:46 by hc9