ADS-B Receiver Project Setup Scripts

Cool, thank you.

does anyone know which dump1090 is being worked on more, the mutability branch or the FA branch? Can’t tell if they abandoned Mutability to focus on FA. Or which one is better to run at this point.

I am mostly working on dump1090-fa these days but I plan to backport the generic bits when I have some time.

I use both versions of dump1090, and did not notice any difference in performance.
However the User Interfaces (gmap) of mutability & fa are somewhat different.

Also the method to configure are different.
sudo dpkg-reconfigure dump1090-mutability works
sudo dpkg-reconfigure dump1090-fa does NOT works

CONFIGURE DUMP1090-MUTABILITY



pi@raspberrypi:~ $ sudo dpkg-reconfigure dump1090-mutability
Package configuration

 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ Configuring dump1090-mutability β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚                                                                           β”‚
 β”‚ dump1090 can be started automatically via an init-script. Otherwise, the  β”‚
 β”‚ init-script does nothing; you must run dump1090 by hand.                  β”‚
 β”‚                                                                           β”‚
 β”‚ You can modify the options used when automatically starting dump1090 by   β”‚
 β”‚ running "dpkg-reconfigure dump1090-mutability" as root, or by editing     β”‚
 β”‚ /etc/default/dump1090-mutability.                                         β”‚
 β”‚                                                                           β”‚
 β”‚ Start dump1090 automatically?                                             β”‚
 β”‚                                                                           β”‚
 β”‚                    <Yes>                       <No>                       β”‚
 β”‚                                                                           β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


CONFIGURE DUMP1090-FA IN PIAWARE IMAGE (SD CARD)



pi@piaware:~$ sudo dpkg-reconfigure dump1090-fa
Enabling lighttpd integration..
already enabled
Run /etc/init.d/lighttpd force-reload to enable changes
Restarting lighttpd..
pi@piaware:~$


pi@piaware:~$ cat /boot/piaware-config.txt
#
# This file configures the Piaware sdcard image
# configuration. Whenever the system boots, this
# file is read and its contents are used to
# configure the system.
..............
..............
..............
# RECEIVER CONFIGURATION
#

# Type of ADS-B receiver to use with piaware.
# This is used when configuring dump1090-fa and piaware.
# Supported types are:
#
#  rtlsdr:    a USB-connected RTL2832U DVB-T dongle using librtlsdr/dump1090.
#  beast:     a USB-connected Mode-S Beast.
#  radarcape: a network-connected Radarcape.
#  other:     a network-connected receiver that produces Beast binary output.
#  relay:     like "other", but will use a local relay so that only one
#             connection to the receiver is needed, and also forwards output
#             to the local dump1090 for map display.
#
receiver-type rtlsdr

# For a receiver type of 'rtlsdr', these control dongle settings
rtlsdr-device-index 0
rtlsdr-gain 32.8   # updated by fa_piaware_config
rtlsdr-ppm 0

# For a receiver type of 'radarcape', radarcape-host should be set to
# the IP or hostname of the Radarcape
radarcape-host your-radarcape-hostname

# For a receiver type of 'other' or 'relay', receiver-host and receiver-port
# should set to the IP/hostname and port to connect to for data.
receiver-host your-receiver-hostname
receiver-port 30005
...................
..................
..................
pi@piaware:~$


CONFIGURE DUMP1090-FA ON ARMBIAN



pi@orangepipc:~$ sudo dpkg-reconfigure dump1090-fa
[sudo] password for pi:
Enabling lighttpd integration..
already enabled
Run /etc/init.d/lighttpd force-reload to enable changes
Restarting lighttpd..
pi@orangepipc:~$

pi@orangepipc:~$ cat /etc/default/dump1090-fa
# dump1090-fa configuration
# This is read by the systemd service file as an environment file,
# and evaluated by some scripts as a POSIX shell fragment.

# If you are using a PiAware sdcard image, this config file is regenerated
# on boot based on the contents of piaware-config.txt; any changes made to this
# file will be lost.

RECEIVER_OPTIONS="--device-index 0 --gain 32.8  --ppm 0 --net-bo-port 30005"
DECODER_OPTIONS="--max-range 300"
NET_OPTIONS="--net --net-heartbeat 60 --net-ro-size 1000 --net-ro-interval 1 --net-ri-port 0 --net-ro-port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005"
JSON_OPTIONS="--json-location-accuracy 1"
pi@orangepipc:~$


@ABCD567: Thanks, you continue to be so helpful. Appreciate it!

is there any compelling performance reasons for us to use the -fa version currently?

@jcinnb
Forgot to mention that in addition to β€œsudo dpkg-reconfigure dump1090-mutability”, the dump1090-mutability can also be configured by editing file /etc/default/dump1090-mutability



pi@raspberrypi:~ $ cat /etc/default/dump1090-mutability
# dump1090-mutability configuration file
# This is a POSIX shell fragment.
# You can edit this file directly, or use
# "dpkg-reconfigure dump1090-mutability"

# Set to "yes" to start dump1090 on boot.
START_DUMP1090="yes"

# User to run dump1090 as.
DUMP1090_USER="dump1090"

# Logfile to log to
LOGFILE="/var/log/dump1090-mutability.log"

#
# Receiver options
#

# RTLSDR device index or serial number to use
# If set to "none", dump1090 will be started in --net-only mode
DEVICE="0"

# RTLSDR gain in dB.
# If set to "max" (the default) the maximum supported gain is used.
# If set to "agc", the tuner AGC is used to set the gain.
GAIN=49.6

# RTLSDR frequency correction in PPM
PPM="0"

#
# Decoding options
#

# If yes, fixes messages with correctable CRC errors.
FIX_CRC="yes"

# If set, supplies a reference location for local position decoding.
LAT="43.5xxx"
LON="-79.6xxx"

# If set, provides the absolute maximum receiver range used to
# filter bad position reports, and to determine when local position
# decoding is safe to use. Specify this in nautical miles (NM).
MAX_RANGE="300"

#
# Networking options
#

# Port to listen on for raw (AVR-format) input connections. 0 disables.
RAW_INPUT_PORT="30001"

# Port to listen on for raw (AVR-format) output connections. 0 disables.
RAW_OUTPUT_PORT="30002"

# Port to listen on for SBS-format output connections. 0 disables.
SBS_OUTPUT_PORT="30003"

# Port to listen on for Beast-format input connections. 0 disables.
BEAST_INPUT_PORT="30004,30104"

# Port to listen on for Beast-format output connections. 0 disables.
BEAST_OUTPUT_PORT="30005"

# TCP heartbeat interval in seconds. 0 disables.
NET_HEARTBEAT="60"

# Minimum output buffer size per write, in bytes.
NET_OUTPUT_SIZE="500"

# Maximum buffering time before writing, in seconds.
NET_OUTPUT_INTERVAL="1"

# TCP buffer size, in bytes
NET_BUFFER="262144"

# Bind ports on a particular address. If unset, binds to all interfaces.
# This defaults to binding to localhost. If you need to allow remote
# connections, change this.
#NET_BIND_ADDRESS="127.0.0.1"

#
# Misc options
#

# Interval (in seconds) between logging stats to the logfile. 0 disables.
STATS_INTERVAL="3600"

# Path to write json state to (for use with an external webserver). Blank disables.
JSON_DIR="/run/dump1090-mutability"

# Interval between writing json state (in seconds). 0 disables.
JSON_INTERVAL="1"

# Accuracy of receiver location to write to json state, one of "exact" / "approximate" / "none"
JSON_LOCATION_ACCURACY="approximate"

# Set to yes to log all decoded messages
# This can get large fast!
LOG_DECODED_MESSAGES="no"

# Additional options that are passed to the Daemon.
EXTRA_ARGS=""
pi@raspberrypi:~ $


I can’t push the 3.3 update out from the web site because by default those options are disabled after an installation using these scripts. Is there any reason not to run the two commands:

sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes

And then tell the update to push?

Thanks Keith.
I just now gave above two commands to my Pi, rebooted, and red notices below on my FA stats page disappeared
This PiAware device has auto-updates disabled in the local configuration.
This PiAware device has manual updates disabled.

I then sent command β€œUpgrade All Installed Debian Packages” from FA stats page, and right now upgrading is in progress.

Thanks for being the guinea pig! Please let us know if that works successfully and I’ll give it a go.

My install is using -mutability but I replaced the map with the fa version using these instructions. I assume (hope) this update won’t change anything because I quite like my map page. I’ll take a backup of that directory first anyway.

Upgrade completed successfully. No problem encountered during or after upgrade.
My system:
Pi B+, Raspbian Jessie, dump1090-mutability v1.15~dev, data feeders FA, PF, FR24, adsbexchange, collectd/rrdtools and system graphs.

…
…

[2017-01-28 08:13 EST] run-apt-get(2162): Removing β€˜diversion of /boot/overlays/wittypi.dtbo to /usr/share/rpikernelhack/overlays/wittypi.dtbo by rpikernelhack’
[2017-01-28 08:13 EST] run-apt-get(2162): run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.38+ /boot/kernel.img
[2017-01-28 08:13 EST] run-apt-get(2162): run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.38+ /boot/kernel.img
[2017-01-28 08:13 EST] run-apt-get(2162): run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.38-v7+ /boot/kernel7.img
[2017-01-28 08:13 EST] run-apt-get(2162): run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.38-v7+ /boot/kernel7.img
[2017-01-28 08:13 EST] run-apt-get(2162): Setting up libraspberrypi-bin (1.20161215-1) …
[2017-01-28 08:13 EST] run-apt-get(2162): Setting up piaware (3.3.0) …
[2017-01-28 08:13 EST] run-apt-get(2162): Reloading rsyslog configuration…
[2017-01-28 08:13 EST] 3958 msgs recv’d from dump1090-mutabi (354 in last 5m); 3958 msgs sent to FlightAware
[2017-01-28 08:14 EST] run-apt-get(2162): Processing triggers for libc-bin (2.19-18+deb8u7) …
[2017-01-28 08:14 EST] run-apt-get(2162): Processing triggers for ca-certificates (20141019+deb8u2) …
[2017-01-28 08:16 EST] run-apt-get(2162): Updating certificates in /etc/ssl/certs… 10 added, 10 removed; done.
[2017-01-28 08:16 EST] run-apt-get(2162): Running hooks in /etc/ca-certificates/update.d…done.
[2017-01-28 08:16 EST] update request complete
[2017-01-28 08:18 EST] 4426 msgs recv’d from dump1090-mutabi (468 in last 5m); 4426 msgs sent to FlightAware
[2017-01-28 08:23 EST] mlat-client(1110): Receiver status: connected
[2017-01-28 08:23 EST] mlat-client(1110): Server status: synchronized with 68 nearby receivers
[2017-01-28 08:23 EST] mlat-client(1110): Receiver: 99.2 msg/s received 38.6 msg/s processed (39%)
[2017-01-28 08:23 EST] mlat-client(1110): Server: 0.7 kB/s from server 0.0kB/s TCP to server 0.6kB/s UDP to server
[2017-01-28 08:23 EST] mlat-client(1110): Results: 328.0 positions/minute
[2017-01-28 08:23 EST] mlat-client(1110): Aircraft: 8 of 23 Mode S, 8 of 10 ADS-B used
[2017-01-28 08:23 EST] 4898 msgs recv’d from dump1090-mutabi (472 in last 5m); 4898 msgs sent to FlightAware
[2017-01-28 08:28 EST] 5320 msgs recv’d from dump1090-mutabi (422 in last 5m); 5320 msgs sent to FlightAware
[2017-01-28 08:33 EST] 5797 msgs recv’d from dump1090-mutabi (477 in last 5m); 5797 msgs sent to FlightAware

Yup, worked perfectly for me as well.


[2017-01-28 13:59 GMT] manual update (user-initiated via their flightaware control page) requested by adept server
[2017-01-28 13:59 GMT] performing manual update, action: packages
[2017-01-28 13:59 GMT] *** running command '/usr/lib/piaware/helpers/run-apt-get update' and logging output
[2017-01-28 13:59 GMT] run-apt-get(885): /etc/apt/trusted.gpg.d/flightaware-archive-keyring.gpg does not exist; installing it
[2017-01-28 13:59 GMT] run-apt-get(885): /etc/apt/sources.list.d/piaware.list does not exist; creating it
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://archive.raspberrypi.org jessie InRelease
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://mirrordirector.raspbian.org jessie InRelease
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://archive.raspberrypi.org jessie/main armhf Packages
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://archive.raspberrypi.org jessie/ui armhf Packages
[2017-01-28 13:59 GMT] run-apt-get(885): Get:1 http://flightaware.com jessie InRelease [1,841 B]
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
[2017-01-28 13:59 GMT] run-apt-get(885): Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
[2017-01-28 13:59 GMT] run-apt-get(885): Get:2 http://flightaware.com jessie/piaware armhf Packages [2,510 B]
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://archive.raspberrypi.org jessie/main Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://archive.raspberrypi.org jessie/main Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://archive.raspberrypi.org jessie/ui Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/main Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://flightaware.com jessie/piaware Translation-en_US
[2017-01-28 13:59 GMT] run-apt-get(885): Ign http://flightaware.com jessie/piaware Translation-en
[2017-01-28 13:59 GMT] run-apt-get(885): Fetched 4,351 B in 16s (268 B/s)
[2017-01-28 14:00 GMT] run-apt-get(885): Reading package lists...
[2017-01-28 14:00 GMT] *** attempting to upgrade all packages to the latest
[2017-01-28 14:00 GMT] *** running command '/usr/lib/piaware/helpers/run-apt-get upgrade-all' and logging output
[2017-01-28 14:00 GMT] run-apt-get(976): Reading package lists...
[2017-01-28 14:00 GMT] run-apt-get(976): Building dependency tree...
[2017-01-28 14:00 GMT] run-apt-get(976): Reading state information...
[2017-01-28 14:00 GMT] run-apt-get(976): 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
[2017-01-28 14:00 GMT] run-apt-get(976): Reading package lists...
[2017-01-28 14:00 GMT] run-apt-get(976): Building dependency tree...
[2017-01-28 14:00 GMT] run-apt-get(976): Reading state information...
[2017-01-28 14:00 GMT] run-apt-get(976): The following packages will be upgraded:
[2017-01-28 14:00 GMT] run-apt-get(976): piaware
[2017-01-28 14:00 GMT] run-apt-get(976): 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[2017-01-28 14:00 GMT] run-apt-get(976): Need to get 1,874 kB of archives.
[2017-01-28 14:00 GMT] run-apt-get(976): After this operation, 9,216 B of additional disk space will be used.
[2017-01-28 14:00 GMT] run-apt-get(976): Get:1 http://flightaware.com/adsb/piaware/files/packages/ jessie/piaware piaware armhf 3.3.0 [1,874 kB]
[2017-01-28 14:00 GMT] run-apt-get(976): Reading changelogs...
[2017-01-28 14:00 GMT] run-apt-get(976): Fetched 1,874 kB in 7s (264 kB/s)
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 5%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 10%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 15%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 20%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 25%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 30%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 35%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 40%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 45%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 50%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 55%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 60%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 65%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 70%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 75%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 80%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 85%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 90%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 95%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 100%
[2017-01-28 14:00 GMT] run-apt-get(976): (Reading database ... 38112 files and directories currently installed.)
[2017-01-28 14:00 GMT] run-apt-get(976): Preparing to unpack .../piaware_3.3.0_armhf.deb ...
[2017-01-28 14:00 GMT] run-apt-get(976): A running PiAware (pid 706) is managing this upgrade.
[2017-01-28 14:00 GMT] run-apt-get(976): It will restart itself once the upgrade is complete.
[2017-01-28 14:00 GMT] run-apt-get(976): Unpacking piaware (3.3.0) over (3.1.0) ...
[2017-01-28 14:00 GMT] run-apt-get(976): Processing triggers for libc-bin (2.19-18+deb8u7) ...
[2017-01-28 14:00 GMT] run-apt-get(976): Processing triggers for systemd (215-17+deb8u6) ...
[2017-01-28 14:00 GMT] run-apt-get(976): Processing triggers for man-db (2.7.0.2-5) ...
[2017-01-28 14:00 GMT] run-apt-get(976): Setting up piaware (3.3.0) ...
[2017-01-28 14:00 GMT] run-apt-get(976): Reloading rsyslog configuration..
[2017-01-28 14:00 GMT] run-apt-get(976): Processing triggers for libc-bin (2.19-18+deb8u7) ...
[2017-01-28 14:00 GMT] update request complete
[2017-01-28 14:04 GMT] 4125 msgs recv'd from dump1090-mutabi (3593 in last 5m); 4125 msgs sent to FlightAware
[2017-01-28 14:09 GMT] 7462 msgs recv'd from dump1090-mutabi (3337 in last 5m); 7462 msgs sent to FlightAware
[2017-01-28 14:13 GMT] mlat-client(830): Receiver status: connected
[2017-01-28 14:13 GMT] mlat-client(830): Server status: synchronized with 145 nearby receivers
[2017-01-28 14:13 GMT] mlat-client(830): Receiver: 1301.3 msg/s received 233.7 msg/s processed (18%)
[2017-01-28 14:13 GMT] mlat-client(830): Server: 1.1 kB/s from server 0.0kB/s TCP to server 2.2kB/s UDP to server
[2017-01-28 14:13 GMT] mlat-client(830): Results: 505.0 positions/minute
[2017-01-28 14:13 GMT] mlat-client(830): Aircraft: 30 of 63 Mode S, 44 of 122 ADS-B used
[2017-01-28 14:14 GMT] 10734 msgs recv'd from dump1090-mutabi (3272 in last 5m); 10734 msgs sent to FlightAware

I have the adv. Features enabled in the portal. But right now i am using VRS on the same machine. Is there a (easy) way to deactivate the adv. Features? I also rerun the install, but there isn’t a feature to reinstall without advanced features, i guess

Once I installed advanced features by mistake, and was unable to get rid of it, whatever I do.

Finally I got fed up and formatted microSD card, wrote Raspbian Jessie image, and then ran automated installation script.

Sounds not really god

Also the purge Feature seem not to bee working
If i try to delete old entries, the database size stays the same

In which file I can change the name DUMP1090 below the clock in the map view ?

open config.js and scroll down to bottom to:

// Controls page title, righthand pane when nothing is selected
PageName = β€œDUMP1090”

my config.js is located here: /usr/share/dump1090-mutability/html/config.js

sudo vi /usr/share/dump1090-mutability/html/config.js
sudo vi /usr/share/dump1090-fa/html/config.js
restart lighttpd after you have updated the file. You may also need to refresh your browser.

You can add or change the range rings, disable the clocks/flags, enable the extra MAPS(U.S. only), enable bing and mapzen maps in this file too.

I normally think in statute miles etc. but can not get the change to take from the admin page. After several formats and reloads still the same story. This problem shows up before I load any of the add on things like Flight Aware etc. Anyone with any help would be appreciated.

Do you mean this setting in config.js ?

…
// – Output Settings -------------------------------------
// Show metric values
// The Metric setting controls whether metric (m, km, km/h) or
// imperial (ft, NM, knots) units are used in the plane table
// and in the detailed plane info. If ShowOtherUnits is true,
// then the other unit will also be shown in the detailed plane
// info.
Metric = true;
ShowOtherUnits = true;
…

Change it as you like (true or false) and restart as described before.