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

ab cd

Senior Member
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 -b "unmaintained" 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:
(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,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:
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
 
@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
 
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
 
Hi

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

It shows as follow

36630956251_18f9d75855_b.jpg


Can help me solved it ?

Thanks ~

Allen
 
Hi

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

It shows as follow

36630956251_18f9d75855_b.jpg


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:
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".
 
Hi

Thanks your reply~~
I use latest official image. >__< "

I will find a old image file and try again

Thanks all .


ALLEN
 
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:
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:
(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.
(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:
[/FONT][/FONT][/INDENT]
[FONT=Arial][FONT=Arial][INDENT]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"[/INDENT]
[INDENT]

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


View attachment 2535
Would this work on dump1090-fa?
 
Would this work on dump1090-fa?

Can you please elaborate what do you mean by "this"?

There are so many things in this post, some are specific to dump1090-mutability ver 1.15~dev, and some applicable to both dump1090-fa and dump1090-mutability ver 1.15~dev.
 
I meant getting the panorama json file to display in the rings.

For dump1090-fa, in step (8), replace dump1090-mutability by dump1090-fa in this command:


So it will become


NOTE
Replace XXXXXXXX by actual heywhatsthat panorama ID
 
Last edited:
Hello ab cd,
I am keeping your email for dump1090 mutability for future reference, just two questions, can you erase an SD card and install the program in some way over SSH? and will it be OK in Buster?
I have decided to start with a fresh SD card and program for PF and get that running smoothly before I consider anything else.
Thanks.
Great email.
Stay well
Colin
 
Hello Collin
(1) I am not aware of any method to erase microSD card and write fresh image to it using SSH while the microSD card is plugged into RPi.

As far as I know, the only way is to slip out microSD card from RPi, slip it into a card reader plugged to a laptop/dedktop and erase it or write a fresh image.

(2) The method given in the first post of this thread to build dump1090-mutability's package from source code worked ok for Jessie and Stretch, but it does NOT make a successful dump1090-mutability on Buster, as it is no more maintained by its author.

Luckily it's package has been added to Buster's repository and it can be very easily installed on Buster by following commands

Code:
sudo apt install dump1090-mutability

sudo usermod -a -G plugdev dump1090

sudo systemctl restart dump1090-mutability


To Configure /Reconfigure
Code:
sudo dpkg-reconfigure dump1090-mutability
 
Last edited:
Thanks for that ab cd,
Very much appreciated, I was hoping to do it with SSH as it is all in the loft, not my favourite place, I've only got to think about loft insulation and I start itching.
It has a 32 GB card so I am following your email to install it and will just shove the other installation over to one side till I can either remove it or if I have enough things to do up there bring it down and re-do the card.
Many thanks again.
Regards.
Colin
Stay well
 
Back
Top