How To Install Dump1090 Mutability 1.15-dev On RPI Raspbian Buster

dump1090-1.15

 

Install pre-built package of dump1090-mutability_1.15~dev on RPi/Raspbian

 

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/dump1090/master/install_dump1090_mut_1.15.sh)"

Build dump1090-mutability_1.15~dev from source

sudo apt update 

sudo apt install -y build-essential debhelper rtl-sdr libusb-1.0-0-dev 

sudo apt install -y git lighttpd pkg-config fakeroot curl cron 


wget -O ~/librtlsdr0_0.5.3-11+b2_armhf.deb "http://ftp.us.debian.org/debian/pool/main/r/rtl-sdr/librtlsdr0_0.5.3-11+b2_armhf.deb"  

sudo dpkg -i librtlsdr0_0.5.3-11+b2_armhf.deb


wget -O ~/librtlsdr-dev_0.5.3-11+b2_armhf.deb "http://ftp.us.debian.org/debian/pool/main/r/rtl-sdr/librtlsdr-dev_0.5.3-11+b2_armhf.deb"  

sudo dpkg -i librtlsdr-dev_0.5.3-11+b2_armhf.deb
sudo mkdir ~/build-dump-mut
cd ~/build-dump-mut
sudo git clone https://github.com/mutability/dump1090.git
cd ~/build-dump-mut/dump1090
sudo dpkg-buildpackage -b
cd ~/build-dump-mut
sudo dpkg -i dump1090-mutability_1.15~dev_*.deb
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:

sudo nano /etc/default/dump1090-mutability
#after making changes, save file (Ctrl+o) and exit (Ctrl+x)

#Restart
sudo systemctl restart dump1090-mutability

BUG FIX:
The map in browser will show following:





Give following commands to remove this bug
Code:
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules" 

sudo reboot
STEP (7): ADD TERRAIN LIMIT RINGS
Dump1090-mutability v1.15~dev can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.[/FONT]
(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.

(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=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 2 rings in the wget command above. i.e. the 10,000 feet (3048 meters), and 40,000 feet (12192 meters).
Important:
Use altitude in meters in the wget URL above.
Do NOT use feet.

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




STEP (9): RANGE CIRCLES - Kms or nm
Range Circle default unit is nm (metric=false). 
To change to km, change "metric=false" to "metric=true"
Press ctrl+w, type Metric = false , then press Enter key. The cursor will jump to Metric = false; change false to true as shown in red.

Metric = true;

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: