Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: How To Get VRS-Like Coverage Map on RPi

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

    How To Get VRS-Like Coverage Map on RPi

    If you don't want to run 24/7 your Windows/Mac + VRS, you can still generate VRS-like coverage plot, as well as Charts by running modeSMixer2 right in your RPi which is already running 24/7. No need to run Windows/Mac 24/7.


    STEP-1:
    Go to following page:
    http://xdeco.org/?page_id=30

    At top you will find ModeSDeco2 ❌. Ignore it, you dont need it.

    Scroll down till you see ModeSMixer2 ✔. This is what you need.
    Scroll down a little further till you see ARM sign
    ARM.jpg


    On Windows/Mac Desktop/Laptop, download one of the following which matches your OS:

    For Raspberry Pi 2/3 with Jessie
    modesmixer2_rpi2-3_20170924.tgz

    OR

    For Raspberry Pi 2/3 with Stretch
    modesmixer2_rpi2-3_deb9_20170924.tgz

    OR

    For Raspberry Pi 1 B+ with Jessie
    modesmixer2_rpi1_20170506.tgz


    STEP-2:
    In Pi, create a new folder mm2
    Code:
    sudo mkdir mm2
    STEP-3:
    On Windows / Mac computer, download and install file transfer App Filezilla.

    https://filezilla-project.org/download.php?show_all=1

    STEP-4:
    Using Filezilla, upload from Windows/Mac computer, to Pi's folder mm2, the downloaded file
    modesmixer2_rpi2-3_20170924.tgz
    OR
    modesmixer2_rpi2-3_deb9_20170924.tgz
    OR
    modesmixer2_rpi1_20170506.tgz

    Alternative to STEPS 1 to 4.
    I have uploaded the modeSMixer2 files to my Dropbox account. From there, it can be downloaded directly on Pi using wget command as follows. No need for Filezilla

    Code:
    #Create a folder mm2 to hold ModeSMixer2 files
    sudo mkdir mm2
    
    #Download ModeSMixer file directly to mm2 folder of Pi
    #Use one of the following commands according to your OS
    
    #FOR Pi 2/3 with JESSIE or Piaware SD card image
    sudo wget -O mm2/modesmixer2_rpi2-3_20170924.tgz "https://www.dropbox.com/s/fm8zclxxq0kg8u4/modesmixer2_rpi2-3_20170924.tgz?dl=1"     
    
    
    #FOR Pi 2/3 with STRETCH
    sudo wget -O mm2/modesmixer2_rpi2-3_deb9_20170924.tgz  "https://www.dropbox.com/s/vzuviwuy0610tu5/modesmixer2_rpi2-3_deb9_20170924.tgz?dl=1"     
    
    
    #FOR Pi 1 B+ with JESSIE or Piaware SD card image
    sudo wget -O mm2/modesmixer2_rpi1_20170506.tgz "https://www.dropbox.com/s/hpt66mrk81w9fjo/modesmixer2_rpi1_20170506.tgz?dl=1"
    .

    STEP-5:
    Unzip the downloaded file

    Code:
    #Move to folder mm2
    cd mm2
    
    #Give one of the following 2 commands according to the file you have downloaded
    
    #For RPi 2/3 with JESSIE
    sudo tar xvzf modesmixer2_rpi2-3_20170924.tgz
    
    #FOR RPi 2/3 with STRETCH
    sudo tar xvzf modesmixer2_rpi2-3_deb9_20170924.tgz
    
    #For RPi 1 B+ with JESSIE
    sudo tar vxzf modesmixer2_rpi1_20170506.tgz
    STEP-6:
    Inside folder mm2, create a new file mm2.sh

    Code:
    cd mm2
    sudo nano mm2.sh
    .

    For RPi 2/3

    COPY-PASTE following text to blank file mm2.sh

    Code:
    #!/bin/sh
    cd /home/pi/mm2/
    ./modesmixer2  --inConnectId 127.0.0.1:30005:ADSB  --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location xx.xxxx:yy.yyyy     
    
    #In above code, replace xx.xxxx by your latitude, and yy.yyyy by your longitude
    .

    For RPi 1 B+
    COPY-PASTE following text to blank file mm2.sh

    Code:
    #!/bin/sh
    cd /home/pi/mm2/
    ./modesmixer2_rpi1  --inConnectId 127.0.0.1:30005:ADSB  --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location xx.xxxx:yy.yyyy     
    
    #In above code, replace xx.xxxx by your latitude, and yy.yyyy by your longitude
    .

    Alternatively, instead of above text, copy-paste following text to file mm2.sh.
    This text is broken into parts for ease of viewing/future editing, but still works OK.

    .

    For RPi 2/3
    COPY-PASTE following text to blank file mm2.sh

    Code:
    /home/pi/mm2/modesmixer2 \
     --inConnectId 127.0.0.1:30005:ADSB \
     --inConnectId 127.0.0.1:30105:MLAT \
     --web 8787 \
     --location xx.xxxx:yy.yyyy \
    .
    For RPi 1 B+
    COPY-PASTE following text to blank file mm2.sh

    Code:
    /home/pi/mm2/modesmixer2_rpi1 \
     --inConnectId 127.0.0.1:30005:ADSB \
     --inConnectId 127.0.0.1:30105:MLAT \
     --web 8787 \
     --location xx.xxxx:yy.yyyy \
    .

    STEP-7:
    Make file `mm2.sh` executeable

    Code:
    cd mm2
    sudo chmod +x mm2.sh
    STEP-8:
    To Manually Start modeSMixer2

    Code:
    cd mm2
    ./mm2.sh & disown
    Exit terminal
    The script will keep running even after closing the terminal due to ` & disown ` in the above command. You can stop it by reboot, or by command `sudo killall modesmixer2`


    STEP-9:
    To Automatically start ModeSMixer2 at boot/reboot:

    Open file rc.local for editing

    Code:
    sudo nano /etc/rc.local
    Add following line just above the last, single-worded line (i.e. above exit0 )
    Code:
     /home/pi/mm2/mm2.sh &
    Save (Ctrl+o) and close file (Ctrl+x)

    Now the ModeSMixer2 will automatically start at Boot / Reboot.


    STEP-10:
    Go to page ip-of-pi:8787 . This will show Charts. To see map, Click item Map on menu bar.

    On map, you will see range plot being built, like VRS.

    On map, the MLAT planes are shown green, and ADS-B planes are shown white.
    .
    .
    MAP WITH VRS-LIKE COVERAGE PLOT



    .

    CHARTS




    .
    Last edited by abcd567; 2018-05-10 at 00:51. Reason: To restore images

  2. #2
    Passenger
    Join Date
    May 2018
    Posts
    13
    I have a littte Question.
    How do you bypass the fact that all data are gone after each restart?

  3. #3
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,206
    Conan_89
    All data (graphs, charts, range plot on map) get cleared at restart, and unfortunately there is no option to bypass this behaviour.

  4. #4
    Passenger
    Join Date
    Jun 2018
    Location
    Mainz, Germany
    Posts
    5
    Hi,
    When I try
    ./mm2.sh & disown
    to start, I always get the following error:
    error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
    Last edited by Oblivian; 2018-06-13 at 09:45.

  5. #5
    Passenger
    Join Date
    May 2018
    Posts
    13
    oh, that's a pity, thank you for the answer.

  6. #6
    Flight attendant
    Join Date
    Nov 2016
    Posts
    95
    I had some time yesterday and set this up and working on a spare RPi - thanks again abcd567 for the clear instructions.

    I'm assuming the "For Development Purposes Only" watermark on the Google map is embedded into Modesmixer2. Is there any option to use Open Maps or the Bing Maps API ?

    Cheers

    ylis

  7. #7
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,206
    ylis:

    Since June 11, 2018, the water mark is shown if a Google map is seen on internet. No water mark is shown if map is viewed within the Local Network.

    This is from Google themselves and happens on maps of dump1090, VRS, and modeSMixer too.

    This can be avoided by obtaining Google Key by user.

    In dump1090, this key is to be added in file /usr/share/dump1090-mutability/html/gmap.html

    In VRS, the key can be inserted by going to tools >> options >> data source >> select google map, and add key

    modeSMixer2 has not yet issued version in which Google key can be added. Expected new version soon.
    Last edited by abcd567; 2018-06-24 at 00:28.

  8. #8
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,206
    To add Google API Key in file gmap.html of dump1090-mutability:

    1. Give following command to open file gmap.html in editor nano:
    Code:
    sudo nano /usr/share/dump1090-mutability/html/gmap.html
    2. Above command will open file gmap.html for editing. ADD script line shown in red, and in it replace YOUR_KEY_HERE by your actual Google Key.

    3. Save changes (Ctrl+o) and close file (Ctrl+x).

    4. Reboot Pi (not necessary but preferable).

    5. Go to map page. If it gives problems, try Clear browser cache (Ctrl+Shift+Delete) and browser force reload (Ctrl+F5).


    <html>
    <head>
    <meta charset="utf-8"/>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=geometry"></script>
    <script type="text/javascript" src="config.js"></script>
    <script type="text/javascript" src="planeObject.js"></script>
    <script type="text/javascript" src="script.js"></script>
    <script type="text/javascript" src="coolclock/excanvas.js"></script>
    <script type="text/javascript" src="coolclock/coolclock.js"></script>
    <script type="text/javascript" src="coolclock/moreskins.js"></script>
    <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE&libraries=geometry"></script>

    <title>DUMP1090</title>
    </head>

    .

  9. #9
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,206
    To add Google key to VRS, please see this post:

    https://forum.flightradar24.com/thre...l=1#post106749

    .

  10. #10
    Flight attendant
    Join Date
    Nov 2016
    Posts
    95
    abcd567:

    FYI - the watermark is appearing on my local network:

    RPi VRS.jpg

Posting Permissions

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