Page 1 of 20 12311 ... LastLast
Results 1 to 10 of 195

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

Hybrid View

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

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

    .
    Last revision/update: January 19, 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.

    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.


    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 build-essential debhelper rtl-sdr   
    
    sudo apt-get install -y librtlsdr-dev libusb-1.0-0-dev pkg-config   
    
    sudo apt-get install -y fakeroot curl cron lighttpd


    STEP (3): DOWNLOAD / CLONE THE 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 (4): 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 (5): INSTALL THE DUMP1090-MUTABILITY PACKAGE
    Code:
    cd ~/build-dump-mut
    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
    BUG FIX - RASPBIAN STRETCH:
    In Raspbian Stretch dump1090-mutability doed not provide output data.
    The map in browser (ip-of-pi/dump1090/gmap.html), will show following warning:
    "Problem fetching data from dump1090."





    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 (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=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): 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;



    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

    Even if you are using a DVB-T USB Stick, when doing "Receiver selection", do NOT choose receiver "1 - DVBT Stick (USB)", as this will downgrade your dump1090-mutability from ver 1.15 to ver 1.14
    Choose receiver " 4 - ModeS Beast (USB/Network)"


    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; 2019-01-20 at 00:56.

  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
    Passenger
    Join Date
    Aug 2017
    Posts
    7
    Hello

    I getting this error message after i followed all steps described in post #1 [ i'm running : Raspbian GNU/Linux 9 (stretch) ]

    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.
    The following instructions did not fix it, i'm still getting the message when browsing : ip/dump1090/gmap.html

    Code:
    sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
    sudo /etc/init.d/dump1090-mutability restart
    sudo reboot
    I'm newbie,
    dump1090-fa is NOT installed so far, as post#1 does not mention to do so.
    Should i have dump1090-fa installed or dump1090-mutability is the only one needed ?

    Code:
    apt-cache policy dump1090-fa
    dump1090-fa:
    Installed: (none)
    Candidate: 3.5.3
    Version table:
    3.5.3 500
    500 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf Packages
    Code:
    apt-cache policy dump1090-mutability
    dump1090-mutability:
    Installed: 1.15~dev
    Candidate: 1.15~dev
    Version table:
    *** 1.15~dev 100
    100 /var/lib/dpkg/status
    Code:
    apt-cache policy piaware
    piaware:
    Installed: 3.5.3
    Candidate: 3.5.3
    Version table:
    *** 3.5.3 500
    500 http://flightaware.com/adsb/piaware/files/packages jessie/piaware armhf Packages
    100 /var/lib/dpkg/status
    Would you please help me ?
    Last edited by lcn; 2018-03-01 at 09:29.

  4. #4
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,653
    First of all I apologize for late reply. I missed your post, and just now noticed it.

    Quote Originally Posted by lcn View Post
    I getting this error message after i followed all steps described in post #1 [ i'm running : Raspbian GNU/Linux 9 (stretch) ]
    Most likely this is a hardware problem. Either the dongle is not plugged into Pi properly and firmly, or is defective. Another possibility is that the dongle is not getting enough current due to bad or undersized 5v DC power adapter.

    1. Unplug the dongle from Pi, then replug the dongle into Pi firmly, reboot, and check again.

    2. Check and tighten antenna cable connection to dongle.

    3. If above does not solve the problem, test your dongle by method given in this thread:
      Is My DVB-T RTL SDR Dongle Healthy?.

      Use OPTION-2, which is much easier as you have dongle plugged into Raspberry Pi

    4. If all above fails, try another larger capacity 5V DC adapter.



    Quote Originally Posted by lcn View Post
    dump1090-fa is NOT installed so far, as post#1 does not mention to do so.
    Should i have dump1090-fa installed or dump1090-mutability is the only one needed ?
    Only one dump1090 is necessary. As you already have dump1090-mutability v1.15~dev installed you dont need dump1090-fa or any other version. Infact installing more than one type of dump1090 causes clash between the dumps, and results in malfunction.
    Last edited by abcd567; 2018-03-16 at 22:20.

  5. #5
    Passenger
    Join Date
    Feb 2017
    Posts
    5

    Which is better 1090-mutability or 1090-fa ?

    Quote Originally Posted by abcd567 View Post
    First of all I apologize for late reply. I missed your post, and just now noticed it.


    Only one dump1090 is necessary. As you already have dump1090-mutability v1.15~dev installed you dont need dump1090-fa or any other version. Infact installing more than one type of dump1090 causes clash between the dumps, and results in malfunction.
    I had 1090 mutability installed and feeding Flightaware, FR24, Plane Finder and ADS-B exchange. About every 30 days my Pi-stretch would stop feeding FA, but still feed all the others with no problem. I would update everything and reboot to start feeding FA again.
    The last time I did that I found I was no longer using mutability but had 1090-fa installed and running.
    With 1090-mutability I had the map set up with my line of sight visibility contours for various altitudes which you pointed out how to do on previous posts.
    Of course with 1090-fa that's gone.
    I suspect that the on that last update FA replaced 1090 mutability with their own 1090 version.

  6. #6
    Flight attendant
    Join Date
    Feb 2016
    Location
    South Germany
    Posts
    57

    Some packages are not installable?

    I am trying to setup a new PI with the original stretch image (Version 2018-03-13) from https://www.raspberrypi.org/ and the steps from post one.
    I did an update and a dist-upgrade.
    I first tried with the lite image but could not install git.
    Then I re-imaged with the stretch desktop image and could install git, build-essential (but they already had been installed). Debhelper failed. I went on with the next packages but then librtlsdr-dev failed. I stopped there. Any ideas anyone?
    Code:
    pi@raspberrypi:~ $ sudo apt-get install -y git
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    git is already the newest version (1:2.11.0-3+deb9u2).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    pi@raspberrypi:~ $ sudo apt-get install -y build-essential
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    build-essential is already the newest version (12.3).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    pi@raspberrypi:~ $ sudo apt-get install -y debhelper
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package debhelper is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'debhelper' has no installation candidate
    pi@raspberrypi:~ $ sudo apt-get install -y rtl-sdr
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
      librtlsdr0
    The following NEW packages will be installed:
      librtlsdr0 rtl-sdr
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 76.8 kB of archives.
    After this operation, 261 kB of additional disk space will be used.
    Get:1 http://archive.raspberrypi.org/debian stretch/main armhf librtlsdr0 armhf 0.5.3-11+rpt1 [25.1 kB]
    Get:2 http://archive.raspberrypi.org/debian stretch/main armhf rtl-sdr armhf 0.5.3-11+rpt1 [51.7 kB]
    Fetched 76.8 kB in 0s (198 kB/s)
    Selecting previously unselected package librtlsdr0:armhf.
    (Reading database ... 124697 files and directories currently installed.)
    Preparing to unpack .../librtlsdr0_0.5.3-11+rpt1_armhf.deb ...
    Unpacking librtlsdr0:armhf (0.5.3-11+rpt1) ...
    Selecting previously unselected package rtl-sdr.
    Preparing to unpack .../rtl-sdr_0.5.3-11+rpt1_armhf.deb ...
    Unpacking rtl-sdr (0.5.3-11+rpt1) ...
    Setting up librtlsdr0:armhf (0.5.3-11+rpt1) ...
    Processing triggers for libc-bin (2.24-11+deb9u3) ...
    Processing triggers for man-db (2.7.6.1-2) ...
    Setting up rtl-sdr (0.5.3-11+rpt1) ...
    pi@raspberrypi:~ $ sudo apt-get install -y librtlsdr-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     librtlsdr-dev : Depends: libusb-1.0-0-dev but it is not installable
    E: Unable to correct problems, you have held broken packages.
    JRF: T-EDNY19
    South Germany

  7. #7
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,653
    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.

  8. #8
    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.

  9. #9
    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

  10. #10
    Passenger
    Join Date
    Jul 2011
    Posts
    22
    Quote Originally Posted by abcd567 View Post
    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.
    Question to the Captain abcd567 if I may -

    I have gone down a different route to the above. Restarted from scratch and reformed the SD card, upgraded to Jessie then a fresh installed of dump1090-mutability v1.15~dev. All going swimmingly.

    Now would like to add PiAware and FR24 but worried, that as both these programs use the standard dump1090 software, that there maybe a conflict with the already installed dump1090-mutability v1.15. Have done a search of the various forums but cannot find any discussion if this would be the case.

    Can I just go ahead with the installation of PiAware and FR24 and trust that that the presence of dump1090-mutability v1.15 will override/stop the older dump1090 software being installed?

    Many thanks in advance for your assistance.

Posting Permissions

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