Page 1 of 8 123 ... LastLast
Results 1 to 10 of 78

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

  1. #1
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,764

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

    .
    Last revision/update: April 05, 2017

    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


    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.


    Below is a step-by-step method to built & install dump1090-mutability_1.15~dev from source code, and then steps to install data feeders FR24, FA, and PF.

    STEP (1): UPDATE THE OPERATING SYSTEM
    Code:
    sudo apt-get update

    STEP (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


    STEP (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

    STEP (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

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

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

    STEP (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


    STEP (8): ADD TERRAIN LIMIT RINGS
    Dump1090-mutability v1.15~dev 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.





    (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 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 (9) VIEW MAP
    To view map, type following address in your browser:
    http://<ip address of your RPi on your LAN>/dump1090/gmap.html







    STEP (10): ADDITIONAL RANGE CIRCLES
    By default, range circles are provided at 100, 150, and 200 nm.
    To add Range Circles, edit file config.js of html folder
    Code:
    cd ~
    cd /usr/share/dump1090-mutability/html
    sudo nano config.js
    (a) By default, there are 3 circles at 100, 150, and 200 nm/km. to add more circles at 250 & 300 nm/km, add these numbers in config.js file as shown below
    Press ctrl+w, then type SiteCirclesDistances and press Enter key. The cursor will jump to SiteCirclesDistances. Add additional distances as shown in red.
    SiteCirclesDistances = new Array(100,150,200,250,300);

    (b) 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;



    STEP (11): INSTALLATION OF FR24 DATA FEEDER:
    Install FR24 feeder from instructions on this page: https://www.flightradar24.com/raspberry-pi using command
    Code:
    sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
    During above command, it will present a signup wizard, asking for email, sharing key, latitude, longitude, antenna height etc.

    After sign-in details, it will ask choice for receiver configuration. ENTER VALUES SHOWN IN RED BELOW

    Step 4.1 - Receiver selection:
    1 - DVBT Stick (USB)
    -----------------------------------------------------
    2 - SBS1/SBS1er (USB/Network)
    3 - SBS3 (USB/Network)
    4 - ModeS Beast (USB/Network)
    5 - AVR Compatible (DVBT over network, etc)
    6 - microADSB (USB/Network)
    7 - SBSx via Basestation (localhost:30006)
    Enter your receiver type (1-7)$: 4


    Step 4.2 - Please select connection type:
    1 - Network connection
    2 - USB directly to this computer
    Enter your connection type (1-2)$: 1


    Step 4.3A - Please enter your receiver's IP address/hostname
    $: 127.0.0.1

    Step 4.3B - Please enter your receiver's data port number
    $: 30005


    Step 5.1 - Would you like to enable RAW data feed on port 30002 (yes/no)$:no

    Step 5.2 - Would you like to enable Basestation data feed on port 30003 (yes/no)$:no

    Step 6A - Please select desired logfile mode:
    0 - Disabled
    1 - 48 hour, 24h rotation
    2 - 72 hour, 24h rotation
    Select logfile mode (0-2)$:0

    Step 6B - Please enter desired logfile path (/var/log):
    $:/var/log


    Post Install configuration/Re-configuration of FR24 feeder
    The FR24 Feeder can be configured on the page http://<IP of RPi>:8754/settings.html. The "Receiver" and "Host/IP" setting should be either "ModeS Beast(TCP), 127.0.0.1:30005" or "AVR(TCP), 127.0.0.1:30002" as shown in screenshots below.

    Fr24feeder settings Beast(TCP) dump1090 mutability.png . Fr24feeder Settings AVR(TCP) External dump1090.png

    Re-configuration can also be done through SSH
    Code:
    ~ $ sudo fr24feed --reconfigure
    #after reconfiguration
    ~$ sudo service fr24feed restart
    .
    .

    STEP (12): INSTALLATION OF FLIGHTAWARE DATA FEEDER:
    Install Flightaware feeder from instructions on this page:
    http://flightaware.com/adsb/piaware/install (STEP 2 ONLY)

    .

    STEP (13): INSTALLATION OF PLANEFINDER DATA FEEDER:
    Install Planefinder feeder from instructions on this page:
    http://forum.planefinder.net/threads...241/#post-2451
    Last edited by abcd567; 2017-04-06 at 00:27.

  2. #2
    Passenger
    Join Date
    May 2016
    Location
    Long Island, New York, USA
    Posts
    2
    Thank you for this. I followed along and I can get the website to load but I get an error:
    "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."

    I am new to all of this and I have the stock FR software running on Pi2. Do I need to modify my FR24 Feeder Settings?
    Thanks again.

  3. #3
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,764
    COLORING RANGE CIRCLES ALTERNATE RED/BLUE dump1090-mutability version 1.15~dev

    Code:
    #enter the html folder
    cd /usr/share/dump1090-mutability/html/
    
    #make a copy of script.js by the name script_orig.js before modifications.
    #this way you will have a backup copy in case somrthing goes wrong.
    sudo cp script.js script_orig.js
    
    #open file script.js for editing
    sudo nano script.js
    The last command above will open the file "script.js" for editing
    Press Ctrl+w, then type siteCircle, then press Enter key. The cursor will jump to following line:

    if (SiteCircles) {

    Make changes as shown in red below, save the file and exit the editor.
    Reload the Browser to see map with colored circles.

    Code:
        if (SiteCircles) {
                            var circleColor = ['#FF0000', '#0000FF'];
                            for (var i=0; i < SiteCirclesDistances.length; ++i) {
                            var circleStyle = new ol.style.Style({
                                    fill: null,
                                    stroke: new ol.style.Stroke({
                                            //color: '#000000',
                                            color: circleColor[i%2],
                                            lineDash: [3, 3],  //add this line only if you want dashed circles
                                            width: 1
                                    })
                            });
    
                            //for (var i=0; i < SiteCirclesDistances.length; ++i) {
                                    var distance = SiteCirclesDistances[i] * 1000.0;
                                    if (!Metric) {
                                            distance *= 1.852;
                                    }
    
                                    var circle = make_geodesic_circle(SitePosition, distance, 360);
                                    circle.transform('EPSG:4326', 'EPSG:3857');
                                    var feature = new ol.Feature(circle);
                                    feature.setStyle(circleStyle);
                                    StaticFeatures.push(feature);
                            }
                    }
    Last edited by abcd567; 2017-07-25 at 17:12.

  4. #4
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,764
    @KingSpud:
    It seems for some reason dump1090-mutability did not start when you gave command
    Code:
    sudo /etc/init.d/dump1090-mutability restart
    Try rebooting the RPi
    Code:
    sudo reboot
    Most likely the error will go away after reboot, as reboot will restart dump1090-mutability
    Last edited by abcd567; 2017-07-25 at 17:10.

  5. #5
    Passenger
    Join Date
    May 2016
    Location
    Long Island, New York, USA
    Posts
    2
    Sorry for the late response.
    So after reboot lighttpd did not run as it did before. Checking the status shows that its running and normal.
    Reinstalled and still had no success in getting the pages to load.
    Ran the configuration for dump1090 and added --net --net-http-port 8080.
    Works now.

    DUMP1090 85 231.jpg

  6. #6
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,764
    @KingSpud
    Port 8080 is for dump1090's internal web server. The external web server lighttpd performs much better. Try to run this code and see if the lighttpd server starts working.

    Code:
    sudo lighty-enable-mod dump1090
    sudo /etc/init.d/lighttpd force-reload

  7. #7
    Passenger
    Join Date
    May 2016
    Location
    MMIO
    Posts
    44
    i dont see flags on mine, how can be added?

    edit: i see on your dump page, the message Pi 2 - DUMP1090

    mine is old Model B 1 so it only shows DUMP1090.

    im next to purchase some RPi3 to play with them and add more locations.
    Last edited by dedicados; 2016-05-31 at 12:38.

  8. #8
    Passenger Pasajero311's Avatar
    Join Date
    May 2016
    Posts
    2
    Hello good afternoon
    that image must be installed on the SD of ?? piaware-jessie-full-sd-card-2.1-5 or fr24-raspberry-pi-1.0.18-5

  9. #9
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,764
    Quote Originally Posted by Pasajero311 View Post
    Hello good afternoon
    that image must be installed on the SD of ?? piaware-jessie-full-sd-card-2.1-5 or fr24-raspberry-pi-1.0.18-5
    Dump1090-mutability v1.15~dev can be installed on both of these.

    Both these already have dump1090. The reason to remove dump1090/dump1090-mutability (standard version) and install dump1090-mutability v1.15~dev is because v1.15~dev is more efficient and functional than dump1090/dump1090-mutability (standard version).

    To uninstall/remove dump1090 from piaware or flightradar24 installation, see Step 3 in the procedure (First post on page 1)

    3) REMOVE/UNINSTALL DUMP1090 AND DUMP1090-MUTABILITY IF THESE ARE ALREADY INSTALLED, SO AS TO HAVE A CONFLICT FREE INSTALLATION.
    Last edited by abcd567; 2016-06-14 at 17:38.

  10. #10
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,764
    To give different colors to Terrain Limit Rings, edit file script.js:

    Code:
    cd ~
    cd /usr/share/dump1090-mutability/
    
    #IF ALREADY NOT DONE, make a back-up copy of all files in html folder before editing/modifying, so that you can revert if something goes wrong
    sudo mkdir orig-html
    sudo cp html/*.* orig-html/
    
    #check that all files in html folder are copied to orig-html folder
    dir orig-html
    
    #output should show
    config.js    formatter.js  markers.js      spinny.gif
    dbloader.js  gmap.html     planeObject.js  style.css
    flags.js     layers.js     script.js       upintheair.json
    
    #now edit the file script.js in folder html
    cd html
    sudo nano script.js
    The last command above will open file script.js for editing.
    Now go to line which starts with var ringStyle, by following method:
    Press Ctrl+w, and type "request.done" (without inverted commas) and press Enter
    The cursor will jump to line starting with request.done
    In the code starting from this line, add extra code shown in red color, and also comment-out one line as shown in red.
    Save (Ctrl+o) and Exit (Ctrl+x)
    Go to web browser open & refresh gmap.html page, and range rings will appear in different colors.

    request.done(function(data) {
    var terrainColor = [ '#8844BB', '#FF6600', '#339933', '#FF00FF'];
    for (var i = 0; i < data.rings.length; ++i) {
    var ringStyle = new ol.style.Style({
    fill: null,
    stroke: new ol.style.Stroke({
    color: terrainColor[i],
    width: 2
    })
    });

    //comment out the line below
    // for (var i = 0; i < data.rings.length; ++i) {
    var geom = new ol.geom.LineString();
    var points = data.rings[i].points;
    if (points.length > 0) {
    for (var j = 0; j < points.length; ++j) {
    geom.appendCoordinate([ points[j][1], points[j][0] ]);
    }
    geom.appendCoordinate([ points[0][1], points[0][0] ]);
    geom.transform('EPSG:4326', 'EPSG:3857');

    var feature = new ol.Feature(geom);
    feature.setStyle(ringStyle);
    StaticFeatures.push(feature);
    }
    }
    });



    .
    Last edited by abcd567; 2017-02-22 at 19:09.

Posting Permissions

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