Giter Club home page Giter Club logo

adsb-flightalert's Introduction

adsb-flightalert 0.5

This little (very experimental, tell me about all the awful bugs in my beginner-level code!) Python module will let you parse an aircraft.json file from a running dump1090 or readsb instance and return a list with all flights that match certain criteria. Right now only exact matches are supported.

I found plenty of scripts and apps for parsing data from the APIs of flight tracker websites, but nothing for really digging into locally-received data and triggering an alert.

You can filter based on any key found in an aircraft record. For example:

  • squawk = 7700
  • callsign = blah
  • ...or any other key used in aircraft.json!

You can also specify a (single, right now) geofence box by specifying a pair of coordinates in a list, bottom-left then top-right coordinate.

There is one main function, parseJSONfile() - send it two variables:

  • a string with the path to the aircraft.json file including trailing slash (like /run/dump1090-fa/ for example)
  • a list containing tuples of string pairs in the form: ("filter key", "search text") - note: area search needs a list and not a string.

An example script is provided to show how to use it with some basic logic to help suppress alert spam. You should get an idea of how to use the library with it. Basically you want to set up a main loop, sleep for a time delay (check as often as you deem necessary), set a variable with the results of the parsing function and then do what you want with the returned data. Use your imagination! The example logs to STDOUT.

adsb-flightalert's People

Contributors

mpentler avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mysteraitch

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.