-
Notifications
You must be signed in to change notification settings - Fork 19
Installing dump1090 fa
-
Alternative to manual installation: https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-dump1090-fa
-
Manual installation and configuring location is explained on this page.
-
skip to "dump1090-fa package installation" if you don't use FR24
expand/collapse
Fix readonly problems with pi24 image:
sudo mount -o remount,rw /
sudo sed -i -e 's?$(mount | grep " on / " | grep rw)?{ mount | grep " on / " | grep rw; }?' /usr/lib/fr24/fr24feed_updater.sh
Open the fr24feed settings:
sudo nano /etc/fr24feed.ini
Change the first 5 lines except for the fr24key to the values shown below:
receiver="beast-tcp"
fr24key="xxxxxxxxxxxxxxxx"
host="127.0.0.1:30005"
bs="no"
raw="no"
Ctrl-o and enter to save, Ctrl-x to exit
To activate the settings, restart fr24feed:
sudo systemctl restart fr24feed
expand/collapse
(piaware will not be installed, the piaware-repository is where apt install will get the dump1090-fa package from)
Execute the following commands:
wget -O piaware.deb http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.8.0_all.deb
sudo dpkg -i piaware.deb
sudo apt update
sudo apt upgrade -y
sudo apt remove -y dump1090-mutability
sudo apt remove -y dump1090
sudo rm /etc/lighttpd/conf-enabled/89-dump1090.conf
sudo apt install -y dump1090-fa
You should now have the map available at the IP-address of your pi: http://IP-address/dump1090-fa/
If it's not working try the following commands:
wget -O /tmp/rtl-sdr.rules https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules
sudo cp /tmp/rtl-sdr.rules /etc/udev/rules.d/
sudo reboot
expand/collapse
Open the configuration file:
sudo nano /etc/default/dump1090-fa
In this line:
RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"
change the number after gain, -10 is the maximum, 49 is the next lower value you can try. (further advice which gain to use: https://discussions.flightaware.com/t/thoughts-on-optimizing-gain/44482/2)
Available gain settings:
0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4
28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 -10
Ctrl-o and enter to save, Ctrl-x to exit
Then restart dump1090-fa to apply the new gain:
sudo systemctl restart dump1090-fa
expand/collapse
You can also configure your location to have the map navigate there automatically when you open the page:
sudo nano /etc/default/dump1090-fa
Add lat and lon to the decoder options line like in the following example:
DECODER_OPTIONS="--lat 50.1 --lon 10.0 --max-range 360"
Ctrl-o and enter to save, Ctrl-x to exit
Then restart dump1090-fa to apply the settings:
sudo systemctl restart dump1090-fa
To check if everything worked, you can take a look at the log:
sudo journalctl -e -u dump1090-fa