Results 1 to 10 of 111

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,719

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

    .
    Last update: July 17, 2019



    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.
    EDIT: .deb packge added, see METHOD-1

    NOTE:
    (1) The dump1090-mutability_1.15~dev is NOT compatible with Pi24 img and Piaware img

    (2) Even if you are using a DVB-T USB Stick, in FR24 settings, DO NOT choose Receiver "DVB-T", as this will downgrade dump1090-mutability from ver 1.15~dev to ver 1.14. Choose Receiver ModeS Beast (USB/Network)



    TO HAVE A TROUBLE FREE INSTALLATION, IT IS REQUIRED TO MAKE A FRESH INSTALL, AS SHOWN BELOW:
    (a) Format microSD Card
    (b) Write Raspbian Image.
    (c) Install dump1090-mutability (Steps 1 to 10).
    (d) Install data feeders FR24, Flightaware, & Planefinder (Steps 11, 12, & 13).

    It is important that first dump1090-mutability is installed, and data feeders are installed after dump1090-mutability has been installed.

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


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

    METHOD-2:
    Build dump1090-mutability_1.15~dev from source


    STEP (1): UPDATE THE SYSTEM & INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
    Code:
    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


    STEP (2): DOWNLOAD SOURCE FILES TO YOUR RPi
    Code:
    sudo mkdir ~/build-dump-mut
    cd ~/build-dump-mut
    sudo git clone https://github.com/mutability/dump1090.git

    STEP (3): BUILD THE DUMP1090-MUTABILITY PACKAGE
    Note: This is a lengthy process, and seems to freez at several occasions. Please be patient.
    Code:
    cd ~/build-dump-mut/dump1090
    sudo dpkg-buildpackage -b

    STEP (4): INSTALL THE DUMP1090-MUTABILITY PACKAGE
    Code:
    cd ~/build-dump-mut
    sudo dpkg -i dump1090-mutability_1.15~dev_*.deb

    STEP (5): UPDATE librtlsdr0 and librtlsdr-dev
    Code:
    sudo apt install librtlsdr0 librtlsdr-dev

    STEP (6): 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
    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;
    Attached Images Attached Images
    Last edited by abcd567; 2019-07-20 at 09:25.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •