-
Notifications
You must be signed in to change notification settings - Fork 20
Feed adsb exchange just the command lines
https://github.com/adsbxchange/readsb
Some hints if you have trouble building: https://github.com/wiedehopf/adsb-wiki/wiki/Building-readsb-from-source
readsb --net --net-only --quiet --net-beast-reduce-interval 0.5 --net-connector feed.adsbexchange.com,30004,beast_reduce_out,feed.adsbexchange.com,64004 --net-heartbeat 60 --net-ro-size 1280 --net-ro-interval 0.2 --net-ro-port 0 --net-sbs-port 0 --net-bi-port 0 --net-bo-port 0 --net-ri-port 0 --net-connector 127.0.0.1,30005,beast_in
You can also install the package and add this to your command line arguments in the configuration file:
--net-beast-reduce-interval 0.5 --net-connector feed.adsbexchange.com,30004,beast_reduce_out,feed.adsbexchange.com,64004
If you need the feeder to use less internet bandwidth, i'd recommend increasing --net-beast-reduce-interval to 1 or even 2. In that case you might also not want to use MLAT as it also uses a bit of bandwidth. Typical data usage ADS-B: 1 kB/s per 10 aircraft being received. Typical data usage MLAT: varies, 1 to 2 kB/s for a receiver that sees 50 aircraft. bandwidth usage does not necessarily increase with aircraft count.
https://github.com/adsbxchange/mlat-client
It's recommended to install into a python virtualenv
git clone --depth 5 https://github.com/adsbxchange/mlat-client.git /tmp/mlat-client
cd /tmp/mlat-client
VENV=/usr/local/share/adsbexchange/venv
mkdir -p $VENV
/usr/bin/python3 -m venv $VENV
source $VENV/bin/activate
python3 setup.py build
python3 setup.py install
/usr/local/share/adsbexchange/venv/bin/mlat-client --input-type dump1090 --no-udp --input-connect localhost:30005 --server feed.adsbexchange.com:31090 --user your_user_123_unique --lat 50.12345 --lon 10.12345 --alt 255m --results beast,connect,localhost:30104 --results basestation,listen,31003
Username must be unique, coordinates need to precise to 5 m / 15 ft. Synchronisation can be checked here: http://adsbx.org/sync
adsbexchange would appreciate if you would generate an UUID for the above clients to use, but it's not required at least for now:
sudo mkdir -p /usr/local/share/adsbexchange
cat /proc/sys/kernel/random/uuid | sudo tee /usr/local/share/adsbexchange/adsbx-uuid
File location is hard-coded for the moment in mlat-client, for readsb there is the option --uuid-file /usr/local/share/whatever.uuid
Uses more bandwidth than using readsb and is NOT recommended.
/usr/bin/socat -u TCP:localhost:30005 TCP:feed.adsbexchange.com:30005