Giter Site home page Giter Site logo

mattdy / mmm-flighttracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tbouron/mmm-flighttracker

0.0 1.0 0.0 1.87 MB

MagicMirror module that uses ADS-B systems to track nearby planes

License: Apache License 2.0

CSS 2.96% JavaScript 97.04%

mmm-flighttracker's Introduction

MagicMirror Module: Flight Tracker

MMM-FlightTracker is a module for MagicMirror that allows you to display real time information about gather from nearby planes transponders. The data is received over radio signals, coming from nearby planes that is gather through an ADS-B receiver (this is how FlightRadar24 gets most of its data) connected directly to server running MagicMirror, or over a TCP stream of SBS1 messages.

Screenshot of the Flight Tracker module - Passing by

Screenshot of the Flight Tracker module - At the window

Screenshot of the Flight Tracker module - No planes

Usage

Prerequisites

This module requires that you have librtlsdr installed on your system.

Homebrew (macOS):

brew install librtlsdr

Debian based Linux distros:

apt-get install librtlsdr-dev

It also requires to have either:

Setup

Clone this module into your MagicMirror's modules directory and install the dependencies:

cd modules
git clone https://github.com/tbouron/MMM-FlightTracker
cd MMM-FlightTracker
npm i

then add the module to your MagicMirror's configuration. Here is an example:

/* MagicMirror/config/config.js */
{
    /* ...your other config here */

    modules: [

        /* ...your other modules here */

        {
            module: 'MMM-FlightTracker',
            header: 'Nearby planes',
            position: 'top_left',
            config: {
                interval: Number,
                animationSpeed: Number,
                passingByThreshold: Number,
                orderBy: '(age|altitude|speed|distance):(asc|desc)',
                limit: Number,
                speedUnits: 'metric|imperial|knots',
                altitudeUnits: 'metric|imperial',
                latLng: [55.9411885, -3.2753781],
                showAirline: Boolean,
                showType: Boolean,
                showSpeed: Boolean,
                showAltitude: Boolean,
                showHeading: Boolean,
                client: {
                    mode: 'rtlsdr|network',
                    host: 'acme.com',
                    port: 30003
                }
            }
        }
    ]
}

Configuration options

Configuration key Description Default Required
interval Interval to check if new planes are nearby. This value is in seconds. 1 Yes
animationSpeed Animation speed to display/hide the module when planes come and go. This value is in milliseconds. 1000 No
passingByThreshold The threshold altitude to determine if a plane is "at the window" or just "passing by". If no set (or negative) then all planes will be treated the same way. -1 No
latLng Your current coordinates, as an Array of Number. E.g. [55.9411885, -3.2753781].

When defined, the distance and bearing, from your coordinates to the plane, will be displayed if available (requires the plane's coordinates to be known).
undefined No
orderBy The property to order the list of planes by. The syntax for this configuration option is as follow <property>:<order>.

Valid values for <property> are:
  • age (e.g. most recent or older plane tracked)
  • altitude
  • speed
  • distance (available only if you supply latLng configuration and the plane broadcast its coordinates)

Valid values for <order> are: asc or desc
undefined No
limit Limit the number of planes to display. If not set (or negative) then all tracked planes are displayed. -1 No
speedUnits The unit to use for speed. By default, it will use the unit defined at the global config. Can be metric, imperial or knots. Global unit config No
altitudeUnits The unit to use for altitude and distance to the plane (if latLng is defined). By default, it will use the unit defined at the global config. Can be metric or imperial. Global unit config No
showAirline Whether or not show the airline for each flight, if available. true No
showType Whether or not show the aircraft type for each flight, if available. true No
showSpeed Whether or not show the aircraft speed for each flight, if available. true No
showAltitude Whether or not show the aircraft altitude for each flight, if available. true No
showHeading Whether or not show the aircraft heading for each flight, if available. true No
client The configuration for the ADS-B client. By default, the mode is set to rtlsdr (not other options are needed in this mode). In case of network mode, options host and port are required. {mode: 'rtlsdr'} No

mmm-flighttracker's People

Contributors

tbouron avatar mattdy avatar

Watchers

James Cloos 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.