Announcement

Collapse
No announcement yet.

How to Install dump1090-mutability on RPi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • abcd567
    replied
    STEP (10): 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 "ModeS Beast(TCP), 127.0.0.1:30005" as shown in screenshots below.



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

    STEP (11): INSTALLATION OF FLIGHTAWARE DATA FEEDER:
    http://flightaware.com/adsb/piaware/install (STEP 2 ONLY)

    .

    STEP (12): INSTALLATION OF PLANEFINDER DATA FEEDER:
    http://forum.planefinder.net/threads...241/#post-2451

    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) {
                            [COLOR="#FF0000"]var circleColor = ['#FF0000', '#0000FF'];[/COLOR]
                            [COLOR="#FF0000"]for (var i=0; i < SiteCirclesDistances.length; ++i) {[/COLOR]
                            var circleStyle = new ol.style.Style({
                                    fill: null,
                                    stroke: new ol.style.Stroke({
                                            [B][COLOR="#FF0000"]//[/COLOR][/B]color: '#000000',
                                            [COLOR="#FF0000"]color: circleColor[i%2],[/COLOR]
                                            [COLOR="#FF0000"]lineDash: [3, 3],[/COLOR]  //add this line only if you want dashed circles
                                            width: 1
                                    })
                            });
    
                            [B][COLOR="#FF0000"]//[/COLOR][/B]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 Oblivian; 2019-07-18, 04:50.

    Leave a comment:


  • abcd567
    started a topic How to Install dump1090-mutability on RPi

    How to Install dump1090-mutability on RPi

    .
    Last update: December 23, 2020


    NOTE:
    (1) Do NOT install the dump1090-mutability on Pi24 img and Piaware img. Bothe these images already have their integral dump1090.


    (2) 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 5).
    (d) Install data feeders FR24, Flightaware, & Planefinder (Steps 6, 7, & 8).




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

    1 - INSTALLATION

    (A) RPi 2, 3, and 4 with Raspbian BUSTER
    Package Install of dump1090-mutability (EB_VERSION) from repository.


    Code:
    sudo apt update
    sudo apt install dump1090-mutability
    
    sudo usermod -a -G plugdev dump1090
    sudo systemctl restart dump1090-mutability

    (B) RPi 2 & 3 with Raspbian STRETCH
    Package Install of dump1090-mutability_1.15~dev (pre-built package from Github)

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

    2 - POST INSTALLATION CONFIGURATION
    Code:
    sudo dpkg-reconfigure dump1090-mutability  
    
    #After configuration is completed, restart dump1090-mutability
    sudo systemctl restart dump1090-mutability
    For most settings, accept default settings by pressing "Enter". At some screens, pressing "Enter" wont move screen to next step. In this situation, first press "Tab" key to turn "OK" button red on screen, hen press "Enter" key.
    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


    3 - OPTIONAL: 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 "&amp;amp;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 1 ring in the wget command above. i.e. the 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








    4 - VIEW MAP
    To view map, type following address in your browser:

    IP-of-RPi/dump1090/gmap.html







    5 - TO CHANGE RANGE CIRCLES TO KMS
    Range Circle by default are in nm (nautical miles).
    To change to kms, issue following command:
    Code:
    sudo nano /usr/share/dump1090-mutability/html/config.js
    Scroll down till you see following line:
    Metric = false;

    Change Metric=false to Metric = true;

    Save file (Ctrl+O) and close it (Ctrl+x)

    Reload browser (Ctrl+F5)


    .
    Last edited by abcd567; 2020-12-26, 05:57.
Working...
X