-
Notifications
You must be signed in to change notification settings - Fork 35
Automatic installation for readsb
Compile / install script for https://github.com/wiedehopf/readsb
- installs wiedehopf's readsb (fork of readsb / dump1090-fa)
- change gain and location using easy commands
- automatically reconfigures fr24feed/rbfeeder so they work with this standalone decoder (if installed)
Paste or enter the following commands:
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/readsb-install.sh)"
- Don't forget to set your location as described below!
- Don't forget to set the gain as described below!
- available at http://address-of-pi/tar1090
- see more about tar1090 here: https://github.com/wiedehopf/tar1090#tar1090
Optionally add other interfaces:
- Automatic adjustment: https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-gain-optimization-for-readsb-and-dump1090-fa
- Recommendations for manual adjustment: https://github.com/wiedehopf/adsb-scripts/wiki/Optimizing-gain
Manual Command:
sudo readsb-gain 43.9
Use this command specifying latitude, then longitude:
sudo readsb-set-location 50.12344 10.23429
sudo journalctl --no-pager -u readsb
- If you have any issues, try a reboot an rerun the install script.
- Otherwise you can open an issue here on github with the above log and the output of the install script included
- If you would rather report the issue via discord, contact wiedehopf here: https://discord.com/invite/n9dGbkTtZm
sudo nano /etc/default/readsb
make changes, save with Ctrl-O and enter, exit with Ctrl-X then restart the service:
sudo systemctl restart readsb
For available options see:
readsb --help
If you have an airspy, just run the airspy-conf script after installing readsb, DON'T add extra connection in readsb the data is fed into readsb by airspy_adsb. https://github.com/wiedehopf/airspy-conf#airspy-conf
Remote data source (radarcape or similar): Configure net-only and a receiver with another IP address as a data source
sudo sed -i -e 's/RECEIVER_OPTIONS.*/RECEIVER_OPTIONS="--net-only --net-connector 192.168.2.7,30005,beast_in"/' /etc/default/readsb
sudo systemctl restart readsb
Change 192.168.2.7 to the correct IP address and 30005 to the correct port if the beast data are available on another port.
DON'T connect to 127.0.0.1:30005, that will create a data loop.
sudo apt remove readsb
Note that this script might have changed the fr24feed and rbfeeder configuration. Those configurations won't be restored by the uninstall, you'll have to reconfigure them yourself if you want to use the builtin decoder of either of them. I'd recommend against that, if readsb for some reason doesn't work for you or causes issues and that's the reason for the uninstall, try dump1090-fa: https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-dump1090-fa