Page 11 of 11 FirstFirst ... 91011
Results 101 to 103 of 103

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

  1. #101
    Flight attendant
    Join Date
    Feb 2016
    Location
    South Germany
    Posts
    57
    Quote Originally Posted by abcd567 View Post
    I don't know. I never paid any attention to color of Plane Icons.
    May be it is related to altitude of the plane, but I am not sure.
    Color is coming from config.js. See:
    Code:
    cd ~
    cd /usr/share/dump1090-mutability/html
    sudo nano config.js
    Code:
    // These settings control the coloring of aircraft by altitude.
    // All color values are given as Hue (0-359) / Saturation (0-100) / Lightness (0-100)
    ColorByAlt = {
            // HSL for planes with unknown altitude:
            unknown : { h: 0,   s: 0,   l: 40 },
    
            // HSL for planes that are on the ground:
            ground  : { h: 120, s: 100, l: 30 },
    
            air : {
                    // These define altitude-to-hue mappings
                    // at particular altitudes; the hue
                    // for intermediate altitudes that lie
                    // between the provided altitudes is linearly
                    // interpolated.
                    //
                    // Mappings must be provided in increasing
                    // order of altitude.
                    //
                    // Altitudes below the first entry use the
                    // hue of the first entry; altitudes above
                    // the last entry use the hue of the last
                    // entry.
                    h: [ { alt: 2000,  val: 20 },    // orange
                         { alt: 10000, val: 140 },   // light green
                         { alt: 40000, val: 300 } ], // magenta
                    s: 85,
                    l: 50,
            },
    
            // Changes added to the color of the currently selected plane
            selected : { h: 0, s: -10, l: +20 },
    
            // Changes added to the color of planes that have stale position info
            stale :    { h: 0, s: -10, l: +30 },
    
            // Changes added to the color of planes that have positions from mlat
            mlat :     { h: 0, s: -10, l: -10 }
    };

  2. #102
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,118
    Quote Originally Posted by abcd567 View Post
    May be it is related to altitude of the plane, but I am not sure.


    Quote Originally Posted by jrf View Post
    Code:
    // These settings control the coloring of aircraft by altitude.
    
                    // These define altitude-to-hue mappings
                    
                    h: [ { alt: 2000,  val: 20 },    // orange
                         { alt: 10000, val: 140 },   // light green
                         { alt: 40000, val: 300 } ], // magenta


    @jrf:
    Thanks for pointing out.
    So my assumtion was right that colors likely represent altitude.
    Last edited by abcd567; 2018-04-16 at 21:09.

  3. #103
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,118
    RTL-SDR V3 Dongle
    Enabling Auto Switch-ON of Bias-T in dump1090-mutability v1.15~dev.


    There is a method posted on the RTL-SDR Blog on April 28, 2018, which is applicable to Piaware/dump1090-fa and uses bias-t start command through file dump1090-fa.service.


    This method does not apply to dump1090-mutability v1.15~dev, as the dump1090-mutability.service files are automatically generated by "systemd-sysv-generator", and all the changes made by user are overwritten at restart / reboot.

    The dump1090-mutability.service starts dump1090-mutability through the file /etc/init.d/dump1090-mutability, which is not overwritten at reboot/restart. I have therefore added bias-t start and logging script in that file, and it works OK.

    STEP-1:

    Build package rtl_biast

    Code:
    #First installed Packages needed to build and to fulfill dependencies 
    
    sudo apt-get install git  
    sudo apt-get install cmake 
    sudo apt-get install libusb-1.0 
    
    #Now build rtl_biast 
    git clone https://github.com/rtlsdrblog/rtl_biast 
    cd rtl_biast 
    sudo mkdir build 
    cd build 
    sudo cmake .. 
    sudo make 
    
    #TEST-1 
    cd src 
    ./rtl_biast -b 1 
    usb_claim_interface error -6 
    
    #TEST-2 
    sudo systemctl stop dump1090-mutability 
    ./rtl_biast -b 1 
    Found Rafael Micro R820T tuner

    STEP-2:

    (1) Open file /etc/init.d/dump1090-mutability in editor.

    Code:
    sudo nano /etc/init.d/dump1090-mutability
    (2) In the file opened, scroll down to following portion of code
    (You can quickly reach there by pressing Ctrl+w, then typing do_start then pressing Enter Key).

    Code:
    # Function that starts the daemon/service 
    # 
    do_start() 
    { 
    
         #      Return 
         #      0 if daemon has been started 
         #      1 if daemon was already running 
         #      2 if daemon could not be started
    (3) Insert following 2 lines
    Code:
    /home/pi/rtl_biast/build/src/rtl_biast -b 1 >> /var/log/biast.log 2>&1 
    
    date >> /var/log/biast.log
    The lines should be inserted at location shown below:


    Code:
    # Function that starts the daemon/service 
    # 
    do_start() 
    {
    
              /home/pi/rtl_biast/build/src/rtl_biast -b 1 >> /var/log/biast.log 2>&1 
              date >> /var/log/biast.log  
    
             #   Return        
             #      0 if daemon has been started 
             #      1 if daemon was already running 
             #      2 if daemon could not be started
    (4) Save file (Ctrl+o) and Close editor (Ctrl+x)

    (5) Reload daemon to incorporate changes, then restart dump1090-mutability.
    Code:
    sudo systemctl daemon-reload 
    sudo systemctl restart dump1090-mutability
    Check log
    Code:
    cat /var/log/biast.log 
    Found Rafael Micro R820T tuner 
    Tue May 1 14:25:06 EDT 2018
    .

    Explanation of code:
    "/home/pi/rtl_biast/build/src/rtl_biast -b 1" switches on the bias t
    ">> /var/log/biast.log 2>&1" sends output (stdout+stderr) to file /var/log/biast.log
    "date >> /var/log/biast.log" timestamps the log

    .

    If you are interested only in switching-on the bias-t, and are not interested in creating biast log, then only one short line (i.e. /home/pi/rtl_biast/build/src/rtl_biast -b 1) need to be added as shown below:

    Code:
    # Function that starts the daemon/service 
    #
    do_start() 
    { 
             /home/pi/rtl_biast/build/src/rtl_biast -b 1 
    
             #   Return 
             #      0 if daemon has been started 
             #      1 if daemon was already running 
             #      2 if daemon could not be started
    Last edited by abcd567; 2018-05-05 at 06:50.

Posting Permissions

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