I have installed the FA package manually and then re-run the script without selecting to install the FA.
It worked perfectly.
I have installed the FA package manually and then re-run the script without selecting to install the FA.
Thanks Oliver. Fully agree with you. That is what I mostly do.
The hand-built/hand-configured attempt is just to excercise the brain, to kill the spare time, and to satisfy curiosity.
Continued …hand-built/hand-configured dump1090-fa.
1- Removed old start-up method (init.d)
sudo rm /etc/init.d/dump1090-fa sudo update-rc.d dump1090-fa remove sudo systemctl daemon-reload
2 - Created new start-up method (systemd/dump1090-fa.service)
2.1 - Copied file
dump1090-fa.service from cloned source-code to folder
sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.service /lib/systemd/system/dump1090-fa.service
2.2 - Created required directory
default.target.wants to hold symlink
sudo mkdir /etc/systemd/system/default.target.wants
2.3 - Created symlink
sudo ln -s ~/build-dump-fa/dump1090/debian/dump1090-fa.service /etc/systemd/system/default.target.wants/
2.4 - Checked symlink
ls -l /etc/systemd/system/default.target.wants/dump1090-fa.service lrwxrwxrwx 1 root root 58 Aug 21 01:53 /etc/systemd/system/default.target.wants/dump1090-fa.service -> /home/pi/build-dump-fa/dump1090/debian/dump1090-fa.service
2.5 - Rebooted Pi
2.6 - After reboot checked status
2.6.1 - dump1090-fa
sudo systemctl status dump1090-fa -l ● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization) Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2018-08-21 02:17:02 EDT; 3s ago Docs: https://flightaware.com/adsb/piaware/ Main PID: 3109 (dump1090-fa) CGroup: /system.slice/dump1090-fa.service └─3109 /usr/bin/dump1090-fa --device-index 0 --gain -10 --ppm 0 --net-bo-port 30005 --max-range 360 --net --net-heartbeat 60 -- Aug 21 02:17:02 raspberrypi systemd: Started dump1090 ADS-B receiver (FlightAware customization). Aug 21 02:17:02 raspberrypi dump1090-fa: Tue Aug 21 02:17:02 2018 EDT dump1090-fa starting up. Aug 21 02:17:02 raspberrypi dump1090-fa: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00000000) Aug 21 02:17:02 raspberrypi dump1090-fa: Detached kernel driver Aug 21 02:17:02 raspberrypi dump1090-fa: Found Rafael Micro R820T tuner Aug 21 02:17:03 raspberrypi dump1090-fa: rtlsdr: enabling tuner AGC
2.6.2 - Piaware
pi@raspberrypi:~ $ sudo systemctl status piaware -l ● piaware.service - FlightAware ADS-B uploader Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2018-08-21 02:13:29 EDT; 19min ago Docs: https://flightaware.com/adsb/piaware/ Main PID: 408 (piaware) CGroup: /system.slice/piaware.service ├─ 408 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json ├─3451 /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,localhost:30104 └─3460 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx Aug 21 02:18:05 raspberrypi piaware: piaware has successfully sent several msgs to FlightAware! Aug 21 02:19:04 raspberrypi piaware: 22 msgs recv'd from dump1090-fa (22 in last 5m); 22 msgs sent to FlightAware Aug 21 02:24:04 raspberrypi piaware: 93 msgs recv'd from dump1090-fa (71 in last 5m); 93 msgs sent to FlightAware Aug 21 02:29:04 raspberrypi piaware: 163 msgs recv'd from dump1090-fa (70 in last 5m); 163 msgs sent to FlightAware Aug 21 02:32:34 raspberrypi piaware: mlat-client(3451): Receiver status: connected Aug 21 02:32:34 raspberrypi piaware: mlat-client(3451): Server status: synchronized with 46 nearby receivers Aug 21 02:32:34 raspberrypi piaware: mlat-client(3451): Receiver: 8.4 msg/s received 3.9 msg/s processed (46%) Aug 21 02:32:34 raspberrypi piaware: mlat-client(3451): Server: 0.0 kB/s from server 0.0kB/s TCP to server 0.1kB/s UDP to server Aug 21 02:32:34 raspberrypi piaware: mlat-client(3451): Results: 5.1 positions/minute Aug 21 02:32:34 raspberrypi piaware: mlat-client(3451): Aircraft: 0 of 1 Mode S, 2 of 2 ADS-B used
2.6.3 - Planefinder
2018-08-21 06:17:04.347864 [-] TCP connection established: 127.0.0.1:30005 2018-08-21 06:18:50.328681 [-] Successfully sent 41 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:20:34.287589 [-] Successfully sent 33 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:22:17.945602 [-] Successfully sent 32 aircraft updates across 10 packets (5.00KB) 2018-08-21 06:24:01.559075 [-] Successfully sent 37 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:24:03.78770 [-] User location has been verified. 2018-08-21 06:25:45.478128 [-] Successfully sent 41 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:27:29.530524 [-] Successfully sent 26 aircraft updates across 10 packets (5.00KB) 2018-08-21 06:29:04.835623 [V] Performing NTP sync (0.planefinder.pool.ntp.org)... 2018-08-21 06:29:04.895812 [V] NTP sync succeeded with settings: 2018-08-21 06:29:04.896023 [V] Stratum: 1 2018-08-21 06:29:04.896143 [V] System clock time: 1534832944.8958 2018-08-21 06:29:04.896229 [V] Corrected clock time: 1534832944.9275 2018-08-21 06:29:04.896308 [V] Corrected clock time: 1534832944.9132 (est) 2018-08-21 06:29:04.896377 [V] NTP drift: 0.0010s/min 2018-08-21 06:29:04.896439 [V] NTP offset: 0.0317s 2018-08-21 06:29:13.265125 [-] Successfully sent 28 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:30:57.524170 [-] Successfully sent 30 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:32:41.216236 [-] Successfully sent 28 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:34:25.279779 [-] Successfully sent 22 aircraft updates across 10 packets (6.00KB) 2018-08-21 06:34:39.877218 [V] Low-traffic detected, restarting client (this is standard behaviour and is safe to ignore) 2018-08-21 06:34:39.877668 [-] Closed TCP connection: 127.0.0.1:30005 2018-08-21 06:34:39.877765 [-] Client restarted successfully 2018-08-21 06:34:39.878574 [-] TCP connection established: 127.0.0.1:30005 2018-08-21 06:35:03.741624 [V] Low-traffic detected, restarting client (this is standard behaviour and is safe to ignore)
2.6.3 - SkyView Map
Usually you’d do this via “systemctl enable”
Thanks Oliver for pointing out this. I was not aware of it, knew only
ln -s method. Next time I will use it.
I discovered that I have made a mistake in creating symlink.
Instead of creating symlink to file
I created symlink to the copy of same file in cloned directory, i.e. to
However it is still working ok (for now).
Result of working late at night
Thanks for all your help and guidance.
Installing dump1090-fa on Debian 9.5 amd64 (on Intel PC).
The asdsb-receiver project script (JProchazka) failed due to packages for bladeRF (same as it happened on RPi).
Installed by hand, and it works fine. Thanks to Oliver @obj for guidance.
1- INSTALL PRE-REQUISITES
sudo apt update sudo apt install git sudo apt install libncurses5-dev sudo apt install librtlsdr-dev sudo apt install make sudo apt install pkg-config sudo apt install build-essential
2 - BUILD
sudo mkdir ~/build-dump-fa cd ~/build-dump-fa sudo git clone https://github.com/flightaware/dump1090.git cd ~/build-dump-fa/dump1090 sudo make BLADERF=no
3 - TEST
cd ~/build-dump-fa/dump1090 sudo ./dump1090 Thu Aug 23 10:58:16 2018 EDT dump1090-fa starting up. rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832UFA, SN 00000001) Detached kernel driver Found Rafael Micro R820T tuner rtlsdr: tuner gain set to 49.6 dB
4 - CONFIGURATION & INSTALLATION TO AUTO-START AT BOOT
sudo cp -r ~/build-dump-fa/dump1090/dump1090 /usr/bin/dump1090-fa sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.default /etc/default/dump1090-fa sudo cp ~/build-dump-fa/dump1090/debian/dump1090-fa.service /lib/systemd/system/dump1090-fa.service sudo systemctl enable dump1090-fa.service sudo adduser --system dump1090 sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules" sudo reboot
5 - SETUP WEB SERVER AND SKYVIEW MAP
sudo apt install lighttpd sudo mkdir /usr/share/dump1090-fa sudo cp -r ~/build-dump-fa/dump1090/public_html /usr/share/dump1090-fa/html sudo cp ~/build-dump-fa/dump1090/debian/lighttpd/89-dump1090-fa.conf /etc/lighttpd/conf-available/89-dump1090-fa.conf sudo lighty-enable-mod dump1090-fa sudo service lighttpd force-reload
ENABLED RANGE CIRCLES AND CENTER MARKER
sudo nano /usr/share/dump1090-fa/html/config.js
Edited following entries
SiteShow = true; // true to show a center marker
SiteLat = xx.xxxx; // position of the marker
SiteLon = yy.yyyy;
I would add the step #1 the installation of netcat - for the case that dump978 is to be installed. That failed too…
sudo apt install netcat
How do I shut down dump1090-mutability after I am done using ads-b receiver web portal? I want to use my rtl-sdr in GQRX as well.
How do I restart dump1090-mutability the with the correct arguments so the webportal can see it running? WQhat are the correct arguments?
I can see the arguments in Task Manager using the ‘command line’ option but the line is too long and it doesn’t allow copy and pasting.
ADSB Receiver Project installed and ran successfully on Lubuntu 18.04.02.
shut down temporarily :
sudo systemctl stop dump1090-mutability or
sudo service dump1090-mutability stop
(to restart use same commands substituting
shut down - prevent start after reboot
dpkg-reconfigure dump1090-mutability then select [No] in first screen and press
the ‘enter’ key. then continue pressing ‘enter’ for the next 3 pop-up screens. now
dump1090-mutability will be deactivated until you run the same command again, select [yes] and confirm your settings in the screens that follow.
that will stop the decoder and ‘release’ the receiver for use by other programs
such as GQRX.
Not sure about the web portal, I think is still there ‘dormant’ and not interfering with other software, so no need to ‘touch it’
I appreciate your reply. That was no doubt a helpful reply. I did post a Feature Request for this sort of thing. It did work.
How do I check to see if the “Advanced Features” are turned on or off?
And how can I change them? Running the “.install” again doesn’t offer that option anymore.
when you select ‘Advanced Features’ will ask you to install Sqlite or MySql.
do you remember installing any of these ?
another way is to watch the disk capacity. if it is dropping fast, it probably means
that your traffic is logged by mutability.
also in the admin/maintenance page it will show the size of database if any.
I don’t have those databases in admin page.
However, I see that the “Disk I/O Bandwidth” is averaging/current 44kB/sec Writes. Zero reads current.
I am using basic HTML function. I need to change the range rings. How do I change it? Do I need to rerun the script? whats the command for dpkg to reconfigure the html functionality?
SiteCirclesDistances = new Array(100,200,250);
to whatever range you need, add, delete or modify these numbers.
as per my earlier post. when you select [yes] it will take you through
all the configuration steps
It works! The heywatsthat site has made my jaws drop! It’s range rings are very close to what I see in the real world. I see the terrain also has a bit of influence on reception.
My last question is how do i make it work for MLAT with my flightaware account? I chose Flightaware Piaware in the script.
I don’t have a flight feeder account and i don’t have any of the 4 it asks for. All I have is the Flightaware Pro Stick and the ADSB Receiver Project installed. This day is getting worse.
Ok, first step done.
What about second step, ModeS Multilatration (MLAT) radio button Mlat enabled checked?
I editted my reply. I dont have any flight feeder attached to my account here.