Hi Folks,
I've been evaluating MyFlightBook (MFB) and Garmin Pilot (GP) logbooks. I have 772 flights in my ForeFlight (FF) logbook so obviously I'm not moving them by hand. I've been using Gemini LLM (AI) to help me come up with directions to translate logbook formats from FF into a form that MFB or GP will ingest without error. Obviously, there are some things that don't convert or map and some screwy formats on both sides, but I've gotten most of my FF logbook converted. It's also biased towards the type of flying I do, which is GA pilot (PPL, Instrument, CPL) for recreation
The biggest magic happens once I've got the translate instructions cleaned up how I want them. I feed them into Gemini and ask it to create a Python program to do the conversion. Then I run the program, then import the resulting CSV into my destination logbook. I'd rather not put up the Python program here, because I would be leery of running someone else's code on my computer, but using Gemini, ChatGPT, or one of the other LLMs, you should be able to create a program (in any language you want!!) and run it yourself. This is totally software developer nerd territory.
Here are the LLM prompts I use and attach the Translator CSV file to the prompt:
Note that you have to edit the FF CSV export file and remove everything above the flights header. I don't see how to import all your aircraft into GP and MFB figures it out for you from just your flight log.
So as a help to others doing the same thing, here are my translate instructions in CSV form (attached with a txt extension for forum software). So the steps are:
1. Change the extension to csv.
2. Open the translation file with pretty much any spreadsheet program to make it more readable. (Or use a text editor if you enjoy reading raw CSV)
3. Review it, and modify it if necessary,
4. Save as a CSV file
5. Feed it into your LLM using the prompts above. You might have to modify the prompt based on your LLM's peculiarities.
6. Copy the program into a text editor (or IDE) and save with the appropriate extension for your language (.py for Python, etc.)
7. Run using the command line or inside your developer environment to create a CSV file in the proper format.
8. Using the MFB or GP import web pages, import the new CSV file.
If anyone wants to create a website that contains the translator program that makes this much easier, feel free.
Hope this isn't too complicated, but it's easier and less error prone than trying to edit the export log files by hand.
I've been evaluating MyFlightBook (MFB) and Garmin Pilot (GP) logbooks. I have 772 flights in my ForeFlight (FF) logbook so obviously I'm not moving them by hand. I've been using Gemini LLM (AI) to help me come up with directions to translate logbook formats from FF into a form that MFB or GP will ingest without error. Obviously, there are some things that don't convert or map and some screwy formats on both sides, but I've gotten most of my FF logbook converted. It's also biased towards the type of flying I do, which is GA pilot (PPL, Instrument, CPL) for recreation
The biggest magic happens once I've got the translate instructions cleaned up how I want them. I feed them into Gemini and ask it to create a Python program to do the conversion. Then I run the program, then import the resulting CSV into my destination logbook. I'd rather not put up the Python program here, because I would be leery of running someone else's code on my computer, but using Gemini, ChatGPT, or one of the other LLMs, you should be able to create a program (in any language you want!!) and run it yourself. This is totally software developer nerd territory.
Here are the LLM prompts I use and attach the Translator CSV file to the prompt:
"Here are some translator instructions in a CSV file to convert a ForeFlight CSV logbook (ff_log.csv) to a MyFlightBook CSV logbook file (mfb_log.csv). Please create a Python program to do the mappings and transformations. Do not give me all of your thinking process. Just provide the Python program and a short summary."
"Here are some translator instructions in a CSV file to convert a ForeFlight CSV logbook (ff_log.csv) to a Garmin Pilot CSV logbook file (gp_log.csv). Please create a Python program to do the mappings and transformations. Do not give me all of your thinking process. Just provide the Python program and a short summary."
Note that you have to edit the FF CSV export file and remove everything above the flights header. I don't see how to import all your aircraft into GP and MFB figures it out for you from just your flight log.
So as a help to others doing the same thing, here are my translate instructions in CSV form (attached with a txt extension for forum software). So the steps are:
1. Change the extension to csv.
2. Open the translation file with pretty much any spreadsheet program to make it more readable. (Or use a text editor if you enjoy reading raw CSV)
3. Review it, and modify it if necessary,
4. Save as a CSV file
5. Feed it into your LLM using the prompts above. You might have to modify the prompt based on your LLM's peculiarities.
6. Copy the program into a text editor (or IDE) and save with the appropriate extension for your language (.py for Python, etc.)
7. Run using the command line or inside your developer environment to create a CSV file in the proper format.
8. Using the MFB or GP import web pages, import the new CSV file.
If anyone wants to create a website that contains the translator program that makes this much easier, feel free.
Hope this isn't too complicated, but it's easier and less error prone than trying to edit the export log files by hand.