Feeding from an ADSBExchange image

Discussions on how to feed traffic into the FlyRealTraffic network to improve coverage
Post Reply
admin
Site Admin
Posts: 61
Joined: Sun Aug 18, 2024 9:03 am

Feeding from an ADSBExchange image

Post by admin »

Some older versions of ADSBExchange images don't have a current version of readsb running.

beast_reduce_plus_out is required to be able to associate your uuid with your RT account - so the only option you have is to upgrade your readsb to the latest version.

This involves fetching the latest source, compiling it, and installing it. Try the following. Note this is different from the installation instructions on the readsb git. I'm showing you how to do a manual install, that will let you go back to your existing version of readsb if anything goes wrong, so we won't create the deb package, but only build the readsb binary, save a copy of the existing readsb binary, and replace it with the newly built one. If something goes wrong, you simply copy the old readsb version back.

- login to your pi with a terminal
- run the following commands:

Code: Select all

sudo apt update
sudo apt install --no-install-recommends --no-install-suggests -y \
    git build-essential debhelper libusb-1.0-0-dev \
    librtlsdr-dev librtlsdr0 pkg-config fakeroot \
    libncurses-dev zlib1g-dev zlib1g libzstd-dev libzstd1
git clone --depth 20 https://github.com/wiedehopf/readsb.git
cd readsb
build this latest version of readsb:

Code: Select all

make RTLSDR=yes
now save a copy of the old readsb:

Code: Select all

sudo mv /usr/bin/readsb /usr/bin/readsb.old
Head to https://www.flyrealtraffic.com/feeder_config/ and generate a UUID that pairs your RT license key with your feed identification
Copy/paste the line from the last step and add it to the readsb config file into the NET_OPTIONS part. Either use nano or vi as the editor:

Code: Select all

sudo vi /etc/default/readsb
or

Code: Select all

sudo nano /etc/default/readsb


It should look something like this:

Code: Select all

--net-connector feed.flyrealtraffic.com,30004,beast_reduce_plus_out,uuid=<insert the UUID you generated in the first step>
Give it a minute (or less) after starting your feed and on your next login, your RT license is now professional level
You can check the status of your feed by entering your RT license number on the feeder config page: https://www.flyrealtraffic.com/feeder_config/

Start the new readsb version:

Code: Select all

sudo service readsb stop
sudo cp readsb /usr/bin/readsb
sudo service readsb start
check readsb is running:

Code: Select all

journalctl -u readsb -n 200
This gives you the last 200 entries of the readsb service - this should show something like this:

Feb 17 04:42:26 RT001 systemd[1]: Started readsb ADS-B receiver.
Feb 17 04:42:26 RT001 readsb.sh[651]: invoked by: /usr/bin/readsb --gain 32.8 --device-type rtlsdr --ppm 0 ....
Feb 17 04:42:26 RT001 readsb.sh[651]: [2025-02-17 04:42:26.564 GMT] readsb starting up.
Feb 17 04:42:26 RT001 readsb.sh[651]: readsb version: 3.14.1647 wiedehopf git: fc0cab9 (committed: Thu Feb 13 22:10:15 2025 0000)
Feb 17 04:42:26 RT001 readsb.sh[651]: Using lat: -33.87476, lon: 151.20624
Feb 17 04:42:26 RT001 readsb.sh[651]: 30002: Raw TCP output port
Feb 17 04:42:26 RT001 readsb.sh[651]: 30005: Beast TCP output port
Feb 17 04:42:26 RT001 readsb.sh[651]: 30001: Raw TCP input port
Feb 17 04:42:26 RT001 readsb.sh[651]: 30004: Beast TCP input port
Feb 17 04:42:26 RT001 readsb.sh[651]: 30104: Beast TCP input port
Feb 17 04:42:26 RT001 readsb.sh[651]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 1090)
Feb 17 04:42:26 RT001 readsb.sh[651]: Found Rafael Micro R820T tuner
Feb 17 04:42:26 RT001 readsb.sh[651]: BeastReduce TCP output: Connection established: feed.flyrealtraffic.com (52.42.87.42) port 30004
Feb 17 04:42:27 RT001 readsb.sh[651]: rtlsdr: tuner gain set to 32.8 dB
Feb 17 04:42:27 RT001 readsb.sh[651]: Allocating 16 zero-copy buffers
Post Reply