How to Install dump1090-mutability_1.15~dev on RPi

ab cd

Senior Member
#1
The "dump1090-mutability_1.15~dev" is development version of dump1090-mutability, and has many additional functionality. It is preferred & installed by lot of users. However there is no .deb package available for installation, and one has to built it from the source code.

NOTE:
The dump1090-mutability_1.15~dev is NOT compatible with Pi24 img and Piaware img. Do not attempt to install it on Pi24 img or Piaware img.


TO HAVE A TROUBLE FREE INSTALLATION, IT IS RECOMMENDED TO HAVE A FRESH INSTALL, AS SHOWN BELOW:
(a) Format microSD Card
(b) Write Raspbian Image.
(c) Install dump1090-mutability.
(d) Install data feeders.
It is important that first dump1090-mutability is installed, and data feeders are installed after dump1090-mutability has been installed.


Below is a step-by-step method to built & install dump1090-mutability_1.15~dev from source code.

1) UPDATE THE OPERATING SYSTEM
Code:
sudo apt-get update
2) INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
Code:
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y debhelper
sudo apt-get install -y rtl-sdr
sudo apt-get install -y librtlsdr-dev
sudo apt-get install -y libusb-1.0-0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y fakeroot
sudo apt-get install -y curl
sudo apt-get install -y cron
sudo apt-get install -y lighttpd


3) DOWNLOAD / CLONE THE SOURCE FILES TO YOUR RPi
Code:
cd ~/
sudo mkdir install-dump
cd install-dump
sudo git clone https://github.com/mutability/dump1090.git

4) BUILD THE DUMP1090-MUTABILITY PACKAGE
Note: This is a lengthy process, and seems to freez at several occasions. Please be patient, and let the process take it's time to finish.
Code:
cd ~/install-dump/dump1090
sudo dpkg-buildpackage -b

5) INSTALL THE DUMP1090-MUTABILITY PACKAGE
Code:
cd ~/install-dump
sudo dpkg -i dump1090-mutability_1.15~dev_*.deb

6) CONFIGURE THE WEB SERVER
Code:
sudo lighty-enable-mod dump1090
sudo /etc/init.d/lighttpd force-reload

7) DUMP1090-MUTABILITY POST INSTALLATION CONFIGURATION
Code:
sudo dpkg-reconfigure dump1090-mutability
For most settings, accept default settings by pressing "Enter".
For following settings, enter values as shown:
(a) RTL-SDR dongle to use: 0
(b) Your receiver's Latitude (in decimal format): xx.xxxx
(c) Your receiver's Longitude (in decimal format): yy.yyyy
(d) Interface address to bind to (blank for all interfaces): remove default 127.0.0.1 and leave blank.

For advance users:Alternatively, you can change the settings by editing the configuration file shown below:
Code:
sudo nano /etc/default/dump1090-mutability
#after making changes, save file (Ctrl+o) and exit (Ctrl+x)

#restart dump1090-mutability
sudo /etc/init.d/dump1090-mutability restart

#alternative command to restart dump1090-mutability
sudo service dump1090-mutability restart


8) ADD TERRAIN LIMIT RINGS
Dump1090-mutability can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

(a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:

What is the Maximum Range I Can Get?

(b) Once your panorama is generated, look near the top left of your newly created panorama page. You will see URL of your panorama there. The URL will be http://www.heywhatsthat.com/?view=XXXXXXXX where XXXXXXXX is the ID for your panorama.

See screenshot below.


heywhatsthat ID.png



(c) Use following command to download the generated panorama's JSON file "upintheair.json" to your RPi, and save it in the folder "/usr/share/dump1090-mutability/html" (replace XXXXXXXX in the command below by your panorama's ID).
Code:
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=3048,7620,12192"
You can create as many rings as you want by adding elevations (in meters) at the end of URL given in the wget command above after "&alts=", separated by commas.

10,000 ft = 3048 m
20,000 ft = 6096 m
25,000 ft = 7620 m
30,000 ft = 9144 m
40,000 ft = 12192 m

Hence if you want to add all the 5 elevation rings noted above, the string at the end of wget URL will become "&alts=3048,6096,7620,9144,12192"

To keep map un-cluttered, I have used only 3 rings in the wget command above. i.e. the 10,000 feet (3048 meters), 25,000 feet (7620 meters), and 40,000 feet (12192 meters).
Important:
Use altitude in meters in the wget URL above.
Do NOT use feet.


9) RESTART dump1090-mutability
Code:
sudo /etc/init.d/dump1090-mutability restart
10) VIEW MAP
To view map, type following address in your browser:
http://<ip address of your RPi on your LAN>/dump1090/gmap.html


dump1090-mutability 1.15~dev.png
 
Last edited:
#2
Many thanks AB CD for all your work in this very interesting hobby. I'm a very new user of Raspberry Pi and may be trying to run before learning to crawl by attempting to install Mutability 1.15 Dev.

All going swimmingly until step 6 in your above instructions "INSTALL THE DUMP1090-MUTABILITY PACKAGE" -

sudo dpkg -i dump1090-mutability_1.15~dev_*.deb results in a message - dpkg: error: need an action option.

It then lists a number of possible steps to correct the situation.

Have you come across the problem and have you a suggestion that can help me to finish the project?

Many thanks in advance.

Noel
 

ab cd

Senior Member
#3
@Noel White:
The statement sudo dpkg -i dump1090-mutability_1.15~dev_*.deb contains an action option "-i" after dpkg.
The action option -i means install.
It seems due to typing error. Either " - " is missed or " i " is missed, or a space is left between - and i.
Better copy-paste the command from Step 6 of my first post into the terminal
 
#4
Many thanks AB CD, spot on, you hit the nail right on the head. :D

I placed a space between the - and i. Did it three times and made the same mistake each time. Senior's moment, the trouble is they are getting closer and closer together. :confused:

Thanks again, really appreciate all your efforts and Oliver's contribution to this program.

Noel
 

ab cd

Senior Member
#7
Hi

I got problems at step 5 ( 5) BUILD THE DUMP1090-MUTABILITY PACKAGE )

It shows as follow



Can help me solved it ?

Thanks ~

Allen
Unmet build dependecies: librtlsdr-dev

Either following command in STEP-3 did not execute properly, or you forgot to execute it.
Code:
sudo apt-get install -y librtlsdr-dev
Execute this command first, watch for any erro messages, and if there is no error message and the package librtlsdr-dev gets installed ok, then repeat STEP(5)
 
Last edited:

ab cd

Senior Member
#9
I have now contacted Oliver Jowett, the author of dump1090-mutability, and got his reply as follows:

"I am travelling for the next week, will look once I’m back".

We have to wait for a week or two for the solution of issue "failure of dump1090-mutability when installed on Raspbian STRETCH".
 

ab cd

Senior Member
#11
Hi. Are you using the latest stretch on the rpi ? if so mutability 1.5 dev fails to work
Workarounds for Raspbian Stretch

(1) Dump1090-mutability fails to open DVB-T.
Map does not show planes, and gives following warning:
Problem fetching data from dump1090.
AJAX call failed (error: Not Found). Maybe dump1090 is no longer running?
The displayed map data will be out of date.
Reason: Missing rtl-sdr.rules.

Workaround: (AFTER installation of dump1090-mutability v1.15~dev):
Code:
sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"

sudo reboot

(2) FlightRadar24’s fr24feed fails to install by bash script.

Reason: Missing package “dirmngr”.

Workaround:
Code:
sudo apt-get update
sudo apt-get install dirmngr

sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
#Enter details when prompted.
 
Last edited: