Git Product home page Git Product logo

controltower's Introduction

CircleCI codecov

We saw flights landing in nearby Tegel airport from our office, and wondered where all those airplanes came from. So I made this, and now we just ask Slack for answers. Also learned some Clojure.

screenshot

Features

The control tower bot supports any airport with scheduled flights in the world. To look for flights use the command /spot followed by either the IATA code of the airport, the name of the city in english or random to look at a random airport e.g. /spot TXL or /spot Berlin. If the control tower doesn't see any flights in the air, you get back the current weather in that location.

The airplane will sport the most common color for the airline it belongs to. Most airlines are included.

On Slack the bot needs permissions for slash commands, and incoming hooks. At work we have a dedicated channel #planespotting for planespotting where each sighting is posted, allowing everyone on comment on it.

Note:

  • Running the spotting commands on the designated channel will post a response to that channel, visible to members
  • Running the commands anywhere will post privately and is visible only to you -- this way you don't need to change channels

Disclaimer

Airport data from OurAirports

Airline data comes from Aviation Stack

Airline colors to create the airplanes were kindly provided by the awesome folks at AirHex

Icons made by Freepik from www.flaticon.com

Maps from MapBox and OpenStreetMap

License

Eclipse Public License 2.0

controltower's People

Contributors

jcpsantiago avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

controltower's Issues

Get flights from any airport in the world

There is info about the runways of each airport in the world, including coordinates. It's possible to create bounding boxes for each.

Dealing with multiple boxes
Even an airport with only one runway will have more than 1 bounding box, and it's not obvious from the data which direction is in use at any given time.

  • query all bounding boxes and keep only flights towards/from the airport
  • query the boxes one by one in a loop
  • maybe it's possible to use wind speed/direction to choose direction

Command to get info about airports

Since there is freely available information about airports, the control tower could have an endpoint providing this information.

  • picture of the airport from mapbox
  • current time and weather
  • general information about runways, year of opening, maybe some stats from Wikipedia

Search could be by IATA or just city e.g. /airport DXB or /airport Dubai returns either the specific airport or the airports in that city.

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.