GithubHelp home page GithubHelp logo

flight-demo's Introduction

FlightAware Data Fetcher

This Python script fetches flight data from the FlightAware API and stores it in an InfluxDB database.

Prerequisites

What things you need to install the software and how to install them:

Installing

A step by step series of examples that tell you how to get a development environment running:

  1. Clone the repository
  2. Install dependencies with pip install pandas requests influxdb3-python
  3. Create a secret.py file with your FlightAware API key and InfluxDB token
  4. Run the script with python flightAware.py

Running the script

The script runs in an infinite loop, fetching flight data every 5 minutes, you could make it shorter or longer, but this API is not free. It fetches data for flights within a specified bounding box and stores the data in an InfluxDB database. There is a link to a website to create your own boundbox, for example where you live.

Things to Note

  1. The test files can be used to test a json file and input into influxdb before you start calling the API for real. Make sure you are happy with the data you are sending in first.
  2. The JSON file can be uploaded into Grafana and if you choose to send the same data as me should populate effectivley.

Work to be done

  1. Change the open sky API to be the new influxdb v3 python library instead of v2.
  2. Submit this project to flight aware so they can use it as an example
  3. Attach all the youtube video into this read me.
  4. Add instructions on how to run this on github actions
  5. Add real test files
  6. Find a good way to save and use the way points.
  7. Create other front ends for the project in superset, etc.

flight-demo's People

Contributors

zoesteinkamp avatar

Watchers

Jakub Bednář avatar Michael Hall 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.