Difference between revisions of "Broadcastify/RTLSDR-Airband"

From The RadioReference Wiki

Line 165: Line 165:
Insert this Audio web tag at the end of the html code to auto play the streams...
Insert this Audio web tag at the end of the html code to auto play the local icecast server VHF audio streams...
--- BOF /var/www/html/index.html ---
--- BOF /var/www/html/index.html ---

Latest revision as of 10:10, 15 July 2020

RTLSDR-Airband or rtl_airband receives analog radio voice channels and produces audio streams which can be routed to various outputs.


Broadcastify Fully Supports RTLSDR-Airband or rtl_airband.

RTLSDR-Airband or rtl_airband - User's Manual:

RTLSDR-Airband or rtl_airband support multiple frequency channel scanning features.

Here is a custom rtl_airband.conf config file for Broadcastify server and local Icecast server if you have it setup in your Raspberry Pi unit.

Else you can set "disable = true;" if you do not need that section profile enabled. Otherwise set "disabled = false;" if you need that section profile to be enabled for active usage.

--- BOF /usr/local/etc/rtl_airband.conf ---

# Sample file of "rtl-airband.conf" output to icecast streaming server
# RTLSDR-Airband - User's Manual:

# index = 0 => First dongle 
# index = 1 => Second dongle

devices: ({
  type = "rtlsdr";
  index = 0;
  gain = 22.9;
  correction = 0;
  mode = "scan";
# squelch = 30; # Uncomment to set squelch manually
      freqs = ( 118200000, 119450000, 121900000, 124200000 );      # MODIFY_YOUR_AIRPORT_AIRBAND_FREQUENCY
      labels = ( "Tower", "S-Approach", "Ground", "N-Approach" );      # MODIFY_YOUR_AIRPORT_AIRBAND_FREQUENCY_NAME_LABELS
      outputs: (

	  # For local IceCast server
          type = "icecast";
          server = "";
          port = 8000;
          mountpoint = "LOCAL";
          name = "Airport_ICAO";
          genre = "ATC";
          username = "source";
          password = "hackme";
          send_scan_freq_tags = false;
	  description = "LOCAL IceCast Server";
	  # For remote BroadCastify server
          disable = false;      # THIS_PROFILE_TEMPLATE_ACTIVE_IN_USED
          type = "icecast";
          server = "";     # FROM_YOUR_RR_FEED_PROVIDER_PAGE
          port = 80;      # PORT_OF_RR_FEED_PROVIDER_ICECAST_SERVER_USUALLY_8000
	  genre = "ATC";
          username = "source";
          send_scan_freq_tags = false;
	# If you need more outputs, put under here ...

	# NOTICE: Make sure you remove the comma at the end of the profile segment template. 
        # e.g. From "}," to "}" else you get an error. For the last profile template segment only.


--- EOF /usr/local/etc/rtl_airband.conf ---

Recommended RTL-Airband sample compile script for Raspberry Pi 2/3 uses V3D GPU mode by Tomasz Lemiech

--- BOF /root/ ---

cd ~
apt-get install build-essential libmp3lame-dev libshout3-dev libconfig++-dev libraspberrypi-dev librtlsdr-dev git cmake libfftw3-dev -y
git clone
cd RTLSDR-Airband
git checkout unstable
make help
sleep 10
cp /usr/local/etc/rtl_airband.conf /usr/local/etc/rtl_airband.conf.old
rm /usr/local/etc/rtl_airband.conf -R -f
make clean
make PLATFORM=rpiv2
make install
cd ~

--- EOF /root/ ---

Instruction to activate and run at service mode...

Else see here is the summary of commands on the shell terminal...

sudo chown root.root /etc/systemd/system/rtl_airband.service
sudo chmod 0777 /etc/systemd/system/rtl_airband.service
sudo systemctl disable rtl_airband
sudo systemctl daemon-reload
sudo systemctl enable rtl_airband
sudo systemctl restart rtl_airband
sudo systemctl status rtl_airband

--- BOF /etc/systemd/system/rtl_airband.service ---

Description=SDR AM/NFM demodulator

ExecStart=/usr/local/bin/rtl_airband -Fe -c /usr/local/etc/rtl_airband.conf
# The program may exit only due to startup failure (eg. misconfiguration)
# or due to failure of all SDR devices (eg. disconnection). In either case,
# there is no point to restart it, because it would fail once again.


--- EOF /etc/systemd/system/rtl_airband.service ---

Insert this Audio web tag at the end of the html code to auto play the local icecast server VHF audio streams...

--- BOF /var/www/html/index.html ---

                  <b>WMSA - Sultan Abdul Aziz Shah Airport - Subang - Air Traffic Controller</b><br>
                  <audio controls autoplay> <source src="" type="audio/mpeg">Click to play</audio>
                  <b>WMKK - Kuala Lumpur International Airport - Sepang - Air Traffic Controller</b><br>
                  <audio controls> <source src="" type="audio/mpeg">Click to play</audio>

--- EOF /var/www/html/index.html ---

  • Acknowledgement to Tomasz Lemiech for his constant guide and tutorial mentoring to make this simplifed manual guide easy for newbies... a big "Thank You" to him... else I would not have perfected my RTL-Airband audio streaming at ;)

Multiple source streaming sample file config @ by

Also reference to another thread posting ...