Giter Club home page Giter Club logo

dump1090-go-client's Introduction

Go Parser for dump1090

This project isn't so much a library as it is a demonstration of how to poll PiAware Dump1090 parse the data. PiAware is a FlightAware client program that runs on a Raspberry Pi to securely transmit dump1090 ADS-B and Mode S data to FlightAware. In simple terms: it receives position, altitude, and speed from aircraft.

The main place where this project might save people time is the log1090 object model. It is a go struct with json decorations for simple parsing.

To use this, see main.go. Briefly:

   resp, err := http.Get("http://some_host/dump1090-fa/data/aircraft.json")
   if err != nil {
   	log.Fatal("Unable to get data ", err)
   }

   body, err := ioutil.ReadAll(resp.Body)
   if err != nil {
   	log.Fatal("Unable to read body ", err)
   }

   var report Report
   err = json.Unmarshal(body, &report)

Report is an object that gives you an array of Aircraft objects with all the extracted info.

I'd like to reformulate into a useful library that can then be used by other things including telegraf, time permitting. Contributions (in the form of pull requests) are welcome.

Aircraft Data

Aircraft data comes from https://opensky-network.org/datasets/metadata/

dump1090-go-client's People

Contributors

wz2b 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.