Code Monkey home page Code Monkey logo

chartserver's Introduction

Aviation Chart Server displays FAA charts and OpenStreetMaps with animated weather, geo-referenced METARS, TAFS, Pireps, and much more - using node express web server with the OpenLayers map API.

See https://github.com/n129bz/chartmaker for a chart database processing utility that produces FAA charts including Sectional, Terminal, Helicopter, Caribbean, Grand Canyon, IFR Enroute-High, and IFR Enroute-Low mbtiles databases. Chartserver can display any mbtiles databases that are dropped into the /public/data folder.

Chartserver menu options control the display of all geo-referenced markers, including all airports globally by US state or international country.

Chartserver can poll Stratux GPS/AHRS data to plot ownship position and heading over a map, giving basic "moving map" functionality and can also optionally save ownship position data to a separate position history database at user-defined intervals.

Docker image: docker pull n129bz/chartserver:v1.25

To run the image:

docker run -it -p 8500:8500 -p 8550:8550 n129bz/chartserver:v1.25

At the container command prompt, enter:

./runserver.sh

To copy a mbtiles .db file to the container, the container must be running - press Ctrl-c to stop the web server, then open a second terminal and enter the docker cp command:

docker cp <local path to your db file>.db <containerid>:/chartserver/public/data/
after successful filecopy, in the terminal on the running container, enter ./runserver.sh to restart the web server 

Normal Installation: See wiki at https://github.com/n129bz/chartserver/wiki

User-editable values in settings.json:

{
    "savepositionhistory": true,
    "histintervalmsec": 15000,
    "gpsintervalmsec": 1000,
    "wxupdateintervalmsec": 480000,
    "keepaliveintervalmsec": 30000,
    "httpport": 8500,
    "wsport": 8550,
    "startupzoom": 8,
    "useOSMonlinemap": true,
    "debug": false,
    "historyDb": "positionhistory.db",
    "uselocaltime": true,
    "distanceunit": "sm", 
    "usestratux": false,
    "stratuxip": "192.168.10.1",
    "stratuxsituationws": "ws://[stratuxip]/situation",
    "stratuxtrafficws": "ws://[stratuxip]/traffic",
    "animatedwxurl": "https://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi",
    "addswxurl": "https://aviationweather.gov/adds/dataserver_current/httpparam?dataSource=###&requestType=retrieve&format=xml&hoursBeforeNow=1.5&mostRecentForEachStation=true&stationString=",
    "addsurrentxmlurl": "https://aviationweather.gov/adds/dataserver_current/current/###.cache.xml",
    "showattribution": true,
    "lockownshiptocenter": true,
    "ownshipimage": "airplane.png",
    "trafficimage": "red-yellow-traffic.png",
    "usemetricunits": false,
    "distanceunits": {
        "kilometers": "km",
        "nauticalmiles": "nm",
        "statutemiles": "sm"
    },
    "messagetypes": {
        "metars": {
            "type": "metars",
            "token": "###"
        },
        "tafs": {
            "type": "tafs",
            "token": "###"
        },
        "pireps": {
            "type": "pireps",
            "token": "###"
        },
        "airports": {
            "type": "airports",
            "token": ""
        },
        "keepalive": {
            "type": "keepalive",
            "token": "((๐Ÿ’œ))"
        }
    }
}

NOTE for Stratux integration: The server requests position data via winsock connection to the Stratux API. Because the position history database is empty at first run of the app, the setting lockownshiptocenter is true by default. This will allow the application to generate and save some position data so that there will be "last known" longitude and latitude coordinates saved in the database. Once there is at least one position history record, change lockownshiptocenter to false so that you can pan around the map without it re-centering ownship to the center. This will give you basic real-time position of your aircraft on the map.

References:

https://github.com/n129bz/chartmaker
https://github.com/b3nn0/stratux
https://openlayers.org/

Animated weather radar layer over the Sectional chart, ownship image displayed via Stratux integration ANIMWX OpenStreetMap with airport status colored markers and METAR popup
OSMWMETAR Enroute High IFR chart
enroutehigh Multiple layers, layer switcher has OSM, Grand Canyon GA, Helicopter, and animated weather selected MULTI Caribbean chart with color-coded airport features, showing a METAR when hovering mouse over an airport CARIBMETAR Sectional chart zoomed in
SECTCLOSE

chartserver's People

Contributors

n129bz avatar

Stargazers

Chen Ye avatar Gerad Munsch avatar jesse avatar Felix avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.