Skip to content

nathnp/Flighty-To-HTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flighty To HTML

This script will convert a Flighty csv flight log, into a nice HTML table. Airport codes will also link to FlightRadar24 for info on that airport.

DateAirlineFlightRouteAircraft Type NameTail Number
2025-05-13Delta 2780DALATLBoeing 717-200N955AT
2025-05-10Delta 2711BWIATLBoeing 757-200N6704Z
2025-03-25Southwest 3548IADDENBoeing 737-700N213WN
2025-01-12Southwest 1893DENBWIBoeing 737-700N954WN
2022-09-24Spirit 1435ATLBWIAirbus A321N671NK

It will also output a simple stats tables

FlightsAirportsAirlinesAircraft
261224

Usage

  1. Export your Flighty flight log, and save it to your computer.

  2. Run ./flights.sh <PATH TO FLIGHT LOG>

  3. Use the HTML tables however you want.

Exporting Flighty Log

  1. Click on your profile picture.

  2. Click Setting.

  3. Scroll down and click Account Data.

  4. Click Export Your Flights.

  5. Enter your email.

  6. Save the log from the email from Flighty.

Adding Airlines

To add extra airline names, add both the ICAO code (its in the flights log), and the Airline name to the awk section of the script. For example, to add Air Koryo, do the following.

  1. Look for the folowing section in the script.
airline["SWA"] = "Southwest";
airline["DAL"] = "Delta";
airline["NKS"] = "Spirit";
  1. Add the wanted airline.
airline["SWA"] = "Southwest";
airline["DAL"] = "Delta";
airline["NKS"] = "Spirit";
airline["KOR"] = "Air Koryo";
  1. (optinal) Question why you flew on Air Koryo.

Fun Extra

You can add little airline logos to the airline names if you want. Here is an example.

airline["SWA"] = "Southwest <img src='/assets/ali/swa.png' width='16'/>";
airline["DAL"] = "Delta <img src='/assets/ali/dal.png' width='16'/>";
airline["NKS"] = "Spirit <img src='/assets/ali/nks.png' width='16'/>";

About

Converts flighty csv into HTML table

Resources

Stars

Watchers

Forks

Languages