Skip to content

Installs and runs Virtual Radar Server on Stratux with offline maps and complete aircraft database

License

Notifications You must be signed in to change notification settings

egite/Virtual-Radar-Server-on-Stratux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

Virtual-Radar-Server-on-Stratux

Installs and runs Virtual Radar Server on Stratux with offline maps and complete aircraft database.

The script VRS-on-Stratux.sh will install on Stratux nearly everything needed to run Virtual Radar Server in offline mode (since we don't have internet in the sky) so you get a complete map of the US and full database of all US, Canadian and many international aircraft with proper silhouettes and operator flags.

Installation includes (nearly all are automatic):

  • mono
  • Virtual Radar Server
    • webadmin plugin
    • tileservercache plugin
    • preconfigured config files for zero required setup
    • Silhouettes
    • Operator flags
  • 'imagemagick' (to use 'mogrify' to reformat bitmaps to compatible format for VRS)
  • Custom python GDL90 to SBS converter to make all Stratux output available to VRS
  • Custom built comprehensive database with all US and Canadian aircraft and many international aircraft
  • Manual download of OpenStreet maps to zoom level 13 for VRS (and optionally for Stratux's map)

The custom python program I wrote connects to Stratux's UDP port 4000 and translates the data into SBS format. It makes those data available on TCP port 33333, which VRS then connects to. If you are outside the US, you don't need the python program since the 1090 data are available on port 30003 of Stratux, but it doesn't cause any issues running the python program in the absence of UAT data. However, since I only include a US OpenStreet map, you will need to assemble your own map for offline use if you're outside the US.

If you enable the "Show Traffic Source in Callsign" option in Stratux's settings, my python program will filter out all non-ADS-B traffic and only pass along UAT traffic on port 33333. In this way, the "UAT" receiver in VRS can be selected to view only UAT traffic and the "ADS-B" receiver can be used to see just ADS-B traffic from the 1090 receiver on port 30003. The default setting is to use the "Merged Feed" of both receivers (port 30003 from dump1090 and the GDL90-translated-to-SCS data on port 33333) so that both traffic sources are visible unless otherwise selected in VRS.

How to install:

  • I suggest a 32 GB minimum size sdcard, though you can fit everything on 16 GB if you're strategic about it.
  • Connect your Stratux to the internet.
  • Connect to your Stratux's settings page and add '127.0.0.1' in the "Static IPs" list.
    • Do not skip this step, or you won't see UAT traffic in VRS.
  • Enable developer mode then reboot.
  • Enable persistent logging then reboot.
  • ssh into the Stratux (defaults are pi/raspberry).
  • Run the following from the command line:

It will take some time to download all the necessary files and packages. When it's done, you'll need to download several large files from Google Drive. These files don't have direct links because of their size, so you'll need to download them from a browser on a computer then use 'scp' to copy from that computer to the Pi.

After completing those steps, reboot your Stratux. It may take a couple of minutes for VRS to start up. You can check for the VRS process with 'ps -eaf|grep mono'. After VRS starts, go to Stratux's main status page. You should see links for VRS at the bottom. It may take 10-20 seconds for VRS to serve its pages (longer if VRS isn't yet running). The VRS icon will take you to VRS only when you are connected to Stratux via its wifi link, otherwise, use the text links.

The username and password for VRS' administration page is indicated in parenthesis next to the Admin link. Be sure to always include '127.0.0.1' on the list of Stratux static IPs in Stratux's 'Settings' page.

When you have confirmed VRS is functioning properly, turn off persistent logging in Stratux's settings and reboot. If you later want to make configuration changes to VRS, you'll need to first reenable persistent logging, reboot, make changes in VRS then disable persistant logging when you're done then reboot (with persistent logging off, changes made to VRS' settings will be lost on the next Stratux reboot). Keeping persistent logging on risks a corrupted sdcard if you shut off the Stratux without shutting it down through the webpage.

About

Installs and runs Virtual Radar Server on Stratux with offline maps and complete aircraft database

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published