Aller au contenu

Commands

Flights Command

The flights command lists flights based on provided filters or all flights if no filters are given.

Available Filters

Filter Type Description
airline str Filter by airline ICAO code(s).
registration str Filter by aircraft registration(s).
aircraft_type str Filter by aircraft type(s).
bounds str Geographical bounds to filter flights.

Example Usage

# List all flights
atc_tracker flights

# List flights for a specific airline
atc_tracker flights --airline=DLH

# List flights for multiple airlines
atc_tracker flights --airline=DLH --airline=BAW

# List flights for a specific aircraft registration
atc_tracker flights --registration=N12345

# List flights for a specific aircraft type
atc_tracker flights --aircraft_type=A320

# List flights within specific geographical bounds
atc_tracker flights --bounds=40.7128,-74.0060,34.0522,-118.2437

Output

The function prints a table of flight information including:

  • Model
  • Call Sign
  • Status (On ground/In flight)
  • DEP-ARR (Departure and Arrival airports)
  • ETA (Estimated Time of Arrival)
  • Altitude
  • Ground Speed
  • Heading
  • Squawk
  • Registration

The function also highlights flights with emergency squawk codes (7500, 7600, 7700) in red. If the user presses 'q', the function stops listing flights and exits.

Airport Command

The airport command fetches and displays detailed information about an airport, including general details, runways, departures, and arrivals.

Example Usage

# Display details for a specific airport by IATA or ICAO code
atc_tracker airport JFK

# Display details for another airport
atc_tracker airport LHR

Output

The function prints detailed information about the airport including:

  • General airport details such as name, location, timezone, elevation, coordinates, runways, rating, website, and weather.
  • Detailed information about each runway.
  • Departure flight details including flight number, callsign, airline code, destination, estimated time of departure, status, aircraft model, registration, and gate.
  • Arrival flight details including flight number, callsign, airline code, origin, estimated time of arrival, status, aircraft model, registration, and gate.

Tracking Command

The track command allows you to track a specific flight in real-time, providing continuous updates on its status and other relevant details.

Example Usage

# Track a flight by its registration number
atc_tracker track N12345

Output

The function prints real-time information about the flight including:

  • Callsign
  • Airline
  • Aircraft Model
  • Registration
  • Status (On ground/In flight)
  • Latitude
  • Longitude
  • Altitude (with trend indicators)
  • Ground Speed (with trend indicators)
  • Vertical Speed
  • Heading
  • ICAO 24bit Address
  • Squawk
  • Departure Airport
  • Destination Airport
  • Scheduled Departure Time
  • Real Departure Time
  • Scheduled Arrival Time
  • Estimated Arrival Time
  • Flight Progress (as a progress bar)

The function updates the information every few seconds until the user presses 'q' to stop tracking and exit.