Sabiá Academy
Tutorials · from install to your hundredth flight

Sabiá Academy

Hands-on lessons for running your own Sabiá: set up the server, connect the simulator, plan trips, work the datalink and keep your logbook safe. Follow them in order the first time, then come back to the one you need. Each module ends in a checkride, and a capstone trip of your own leads to the certificate.

Module 1

Ground school

Get a Sabiá server running on a machine you control. It can be any computer that stays on: a home server, a mini PC, or the simulator PC itself. The simulator only needs to reach it over the network.

LESSON 1.1

Install the server

By the endSabiá running as a service, you signed in as operator, and the installer's closing output saved for lesson 2.1.

Get Sabiá running on your own machine. The installer does it in one command. You can also run the Docker image (lesson 1.3) or build from source, below.

You need Linux (x64, glibc) or Windows 10/11An internet connection
Required steps · with the installer

Run one command as your normal user, not as root. On Linux:

$ curl -fsSL https://raw.githubusercontent.com/oshogun/sabia/main/packaging/install.sh | bash

On Windows, in PowerShell:

PS> irm https://raw.githubusercontent.com/oshogun/sabia/main/packaging/install.ps1 | iex

The installer downloads its own copy of Node 24 and the latest Sabiá release, so nothing else needs installing first. It creates your ingest token and a self-signed certificate, asks for your operator password twice, and registers a service: on Linux it starts at boot, on Windows at logon. On Windows it may ask once for administrator permission, to open the port in the firewall.

At the end it prints what the MCDU needs: the server addresses, the ingest token, and the certificate's path and fingerprint. Keep that output for lesson 2.1. Then open the https:// address it printed, accept the certificate warning, and sign in as operator.

The Sabiá sign-in page: the Sabiá bird logo, username and password fields, and a Sign in button.
The sign-in page. The username is operator unless you chose another one, and the password is the one you set during the install.
ReferenceWhere it goes

Everything lives in one folder: ~/.local/share/sabia on Linux, %LOCALAPPDATA%\Sabia on Windows. Your logbook, settings and certificate are in there too. Run the same command again to update. Options such as another port or folder are in docs/setup.md. The installer already sets up HTTPS, so lesson 1.2 is a single step for you.

OptionalBuild from source instead

Build Sabiá yourself if you want to run the newest code on main or change it.

You need gitNode.js 24 through nvmOpenSSL
  1. Get the code and select Node 24. The repository pins Node 24 in .nvmrc, and nvm reads it.

    $ git clone https://github.com/oshogun/sabia.git
    $ cd sabia
    $ nvm install
    $ nvm use
  2. Install the dependencies and build. The server and the web app each have their own dependencies.

    $ npm install
    $ (cd client && npm install)
    $ npm run build
  3. Create your operator account. Sabiá has exactly one user: you. The command asks for a password on a hidden line. The server refuses to start until an account exists.

    $ npm run set-password
  4. Start it on this machine only. On a loopback address Sabiá serves plain HTTP, which is fine for a first look. Open http://localhost:3000 and sign in.

    $ BIND_HOST=127.0.0.1 npm start
    [HTTP] Server running at http://127.0.0.1:3000

    The log also warns that no ingest token exists yet. That's expected: the next step creates one.

  5. Create an ingest token. This is the secret the MCDU sends with its telemetry. Open Settings, go to Ingest tokens (MCDU), give it a label such as the simulator PC's name, and choose Create token. Copy the token from the dialog before you close it: Sabiá shows it only this once. You'll type it into the MCDU in lesson 2.1.

The Settings page behind a Token created dialog. A yellow notice says to copy the token now because it won't be shown again, above the token and a copy button.
A new ingest token, shown once. Sabiá keeps only a fingerprint of it, so if you lose it, create another and revoke the old one.
From source: use Node 24Node 24 is the only version Sabiá is tested on: CI, the installers and the Docker image all run it, and .nvmrc pins it. A new terminal starts on whatever Node is the default, so run nvm use in every new terminal.
ReferenceEnvironment variables, not a config file

Sabiá reads all of its settings from the environment and checks them at startup. A bad value prints a [Config] line naming the variable, and the server exits before it touches the database. The installer keeps them in sabia.env, in the install folder. The full list is in docs/configuration.md.

Next: HTTPS on your network →
LESSON 1.2

HTTPS on your network

By the endEvery browser you use opens Sabiá over HTTPS, and you know which certificate file the MCDU needs.

To reach Sabiá from the simulator PC, your phone or anywhere else, the server has to listen on your network. It does that over HTTPS only.

After lesson 1.1Your server's LAN address or hostname
Required steps
  1. Trust the certificate once in each browser. Open your server's https:// address, for example https://192.168.0.30:3000. The browser warns about the self-signed certificate the first time; accept it for this site.

  2. Note the certificate file for the MCDU. With the installer it's certs/sabia.crt in the install folder, made for this machine's names and addresses. From source, make your own first, below. You'll give this file to the MCDU in lesson 2.1.

From source onlyMake your own certificate

By default Sabiá listens on every address (BIND_HOST=0.0.0.0), and on anything other than loopback it refuses to start without a certificate. You have two choices: a certificate from a public authority for a domain you own, or a self-signed certificate for your home network. These steps make a self-signed one.

  1. Generate a certificate that names your server. Put every way you'll reach the server in subjectAltName. Replace the IP and hostname with yours.

    $ mkdir -p certs
    $ openssl req -x509 -newkey rsa:2048 -nodes -days 825 \
        -keyout certs/sabia-key.pem -out certs/sabia-cert.pem \
        -subj "/CN=sabia" \
        -addext "subjectAltName=IP:192.168.0.30,DNS:sabia.local"
  2. Point Sabiá at the pair and start it. Set both variables together: setting only one of them is a startup error.

    $ export TLS_CERT_FILE="$(pwd)/certs/sabia-cert.pem"
    $ export TLS_KEY_FILE="$(pwd)/certs/sabia-key.pem"
    $ npm start
    [HTTP] Server running at https://0.0.0.0:3000
  3. Keep it running. Sabiá has no process manager of its own. Run npm start under systemd with Restart=on-failure, pm2, or a tmux session. Stopping it with SIGTERM or Ctrl+C is safe: it closes the database cleanly first.

ReferenceWith a real certificate

If your server has a certificate from a public authority (Let's Encrypt, for example), point TLS_CERT_FILE and TLS_KEY_FILE at it. Nothing needs to trust it by hand, and the MCDU's certPath stays empty.

ReferenceThe plain-HTTP escape hatch

ALLOW_PLAINTEXT_HTTP=1 lets the server serve plain HTTP on your network. Your password and ingest token then travel unencrypted, so keep it to a trusted network you control, or to trying things out.

Next: Run it with Docker →
LESSON 1.3

Run it with Docker

By the endSabiá running in Docker, with your logbook in a flights.db file you can back up.

An alternative to lessons 1.1 and 1.2: run the published image, oshogun/sabia on Docker Hub, with Docker Compose. It's built for amd64 and arm64 and includes Chromium for PDF export.

You need Docker and Docker Compose
Required steps
  1. Get the Compose file and create the files it mounts. Do this in an empty folder that will hold your logbook. If flights.db doesn't exist yet, Docker creates a directory with that name and your logbook won't be saved in it.

    $ curl -fsSLO https://raw.githubusercontent.com/oshogun/sabia/main/docker-compose.yml
    $ touch flights.db
    $ mkdir -p flight_plans navdata
  2. Set the secrets and pull the image. Compose passes these from your shell or a .env file; none are baked into the image. INGEST_TOKEN is optional: you can skip it and create an ingest token on the Settings page instead, as in lesson 1.1.

    $ export INGEST_TOKEN="$(openssl rand -hex 24)"
    $ export ALLOW_PLAINTEXT_HTTP=1   # trusted LAN only; see below for TLS
    $ docker compose pull
  3. Create the operator account inside the container, then start it.

    $ printf '%s\n' 'your-password' | \
        docker compose run --rm -T msfslogger node dist/setPassword.js
    $ docker compose up -d
    $ docker compose logs -f
ReferenceHTTPS in the container

Uncomment the ./certs:/app/certs:ro mount in docker-compose.yml, set TLS_CERT_FILE and TLS_KEY_FILE to the paths inside the container, and drop ALLOW_PLAINTEXT_HTTP.

ReferenceA specific version

Compose runs oshogun/sabia:latest. To stay on one release, set SABIA_VERSION, for example export SABIA_VERSION=1.2.0, before pull and up.

ReferenceBuild the image yourself

From a clone of the repository, export COMPOSE_FILE=docker-compose.yml:docker-compose.build.yml adds an override that builds the image from your code. Then run docker compose build instead of pull; the other steps stay the same.

Next: Checkride →

Checkride: ground school

Four scenarios. Pick an answer to see why. Get three right to pass.

You built from source and open a new terminal to start the server. node --version prints v22. What do you do before npm start?

To reach Sabiá from your phone, you set TLS_CERT_FILE and restart, but forget TLS_KEY_FILE. What happens?

You start a source build on your network, with the default BIND_HOST, no certificate and no ALLOW_PLAINTEXT_HTTP. What happens?

After your first docker compose up, flights.db in your folder turns out to be a directory. What did you skip?

Module 2

First flight

Connect the simulator, fly, and see what Sabiá records without you pressing anything.

LESSON 2.1

Connect the MCDU

By the endThe web app's header reads Connected · Idle.

Install the Sabiá MCDU on the simulator PC and point it at your server.

You need Windows 10 or 11MSFS 2020, MSFS 2024 or FSXNode 24Your server URL and ingest token

The MCDU is a separate Windows app with its own repository, oshogun/sabia_mcdu. Download the installer from its latest release, the MSI or the setup .exe, and run it. The installers aren't code-signed, so Windows SmartScreen warns you the first time; choose to run it anyway. The app starts its helper process with the PC's own node, so install Node 24 first. Upgrading from MCDU 1.x, which ran on Node 20? Install Node 24 before you upgrade. MCDU 2.x needs your Sabiá server at 1.0.0 or newer. It opens on the STATUS page. The keys work like an airliner's CDU: press a line select key next to a row to use it, type into the scratchpad, and press MENU to get back to the menu.

Required steps
  1. Open CFG NETWORK from MENU. Enter the server URL, for example https://192.168.0.30:3000, and the ingest token exactly: the one you created on Settings, or the one the installer printed.

  2. Set certPath only for a self-signed certificate. Point it at certs/sabia.crt in the install folder if you used the installer, or at the sabia-cert.pem file from lesson 1.2. With a publicly trusted certificate, leave it empty. Save with R6 or EXEC.

  3. Pick your simulator on CFG SIM: MSFS 2020, MSFS 2024 or FSX.

  4. Press START> on STATUS. Start the simulator and load a flight, or just its main menu. The status tag in the web app's header changes from Sim not connected to Connected · Idle.

The header status tag

TagMeaning
Checking...The page is waiting for its first answer from the server.
Sim not connectedThe server is up but no telemetry is arriving.
Connected · IdleThe MCDU is sending data and no flight is in progress.
Recording · aircraftA flight is being logged.
Paused · aircraftThe sim is paused; the flight clock is stopped.
Server unreachableYour browser can't reach the server.
OptionalAI traffic

To see other aircraft on the live map, turn traffic on in the MCDU's CFG TRAFFIC page. The server accepts traffic by default; TRAFFIC_ENABLED=0 turns it off on that side. Each side has its own setting.

ReferenceComing from the msfslogger client

MCDU 1.0.0 doesn't upgrade an old msfslogger install; it installs next to it as a new app. Your server URL, token and simulator choice carry over. Uninstall the old msfslogger entry from Windows once you no longer need it.

ReferenceManaging ingest tokens

Every token you create is listed under Ingest tokens (MCDU) in Settings, with its label, when it was created and when it was last used. Give each simulator PC its own token. Revoke stops a token on its very next request, with no restart. To change a token, create the new one, enter it in the MCDU, then revoke the old one.

The Ingest tokens (MCDU) section of Settings: a notice that INGEST_TOKEN is being ignored, and a table of two tokens, Cockpit PC (MSFS 2024) and Laptop (FSX), each with an ID, created and last-used times, and a Revoke button.
Two ingest tokens. The cockpit PC's has been used; the laptop's hasn't yet.
Installed with a token already?The installer puts its token in INGEST_TOKEN. The first token you create on Settings replaces it at once, and an MCDU still using the old one is turned away until you enter the new one. Sabiá asks before it does this. Revoke every Settings token and INGEST_TOKEN works again.
Changing the certificate, or INGEST_TOKEN, laterChange the server first and restart it, then update CFG NETWORK and restart the MCDU's uplink. If the MCDU stops working right after a server change, check this order first. Tokens from Settings need no restart.
LESSON 2.2

What happens when you fly

By the endYou can say when a flight starts and ends, and explain an entry in your log that surprised you.

There is no record button. Learn how Sabiá decides when you're parked, flying and landed, so the logbook never surprises you.

After lesson 2.1

The MCDU sends the server a sample of the aircraft's state about once a second. The server watches those samples and moves between three states. Each change needs several samples in a row, so a bounce on the runway or a single glitch doesn't start or end a flight.

FLYING → IDLE after 10 landed samples (on ground, <5 kt), or at once on a crash or when the sim exits

At each step

  • When you park, Sabiá finds the nearest airport and opens a ground session, which the Home page shows under Ground position. If you have an active trip, it also looks for the leg that departs from here.
  • When you take off, the flight starts, links to a planned leg if one matches (lesson 3.3), and files OUT and OFF messages to the flight's ACARS thread.
  • While you fly, a track point is recorded every 5 seconds with position, altitude, airspeed, ground speed, heading and vertical speed.
  • When you land and slow below 5 kt, the flight closes with its final stats, the leg is marked flown or diverted, and ON and IN are filed.
The Home page's live panel during a flight: Recording, Airbus A320neo, 270 knots, 445 knots ground speed, 38,000 ft, heading 294, next waypoint BGC, 185 nm remaining, and the live map.
The Home page while a flight is recording. The next waypoint and remaining distance appear when the flight is linked to a planned leg.

Pauses, crashes and restarts

  • Pausing in any form, including active pause and the pause menu, stops the clock and the track. The flight stays open.
  • Flight time is the time between recorded points, counted only for gaps of 60 seconds or less. A pause or a dropped connection doesn't inflate it.
  • A crash or quitting the sim ends the flight where it is.
  • Restarting the server in the middle of a flight is fine: when telemetry comes back, Sabiá picks the same flight up again.
The Home page while parked: Ground position shows Detected, SBBE Val de Cans International Airport, with a manual entry form below and the flight log totals.
Parked at the gate. If Sabiá couldn't work out your airport or stand, set them by hand with Set ground position.
Next: Read a flight →
LESSON 2.3

Read a flight

By the endYour first flight read from top to bottom, with a note of your own on it.

Find your way around a flight's page and add your own notes.

After your first logged flight
Required steps
  1. Open your first flight from All flights, from the Home page's recent flights, or from the trip tree in the side navigation.

  2. Add a note. In the Notes tile, click Add notes, write what you want to remember about the flight, and click Save.

What's on the page

From top to bottom:

  • Stats: duration, distance, maximum altitude and airspeed, number of track points, and the departure and arrival airports.
  • Notes you write yourself, always on the page. Click the pencil, or double-click the text, to edit them in place. Edit flight details changes the aircraft name, and the notes too.
  • Planned leg: the leg this flight flew, whether it linked automatically or by hand, and how far from the planned destination you landed.
  • Flight plan: Attach PDF keeps your paperwork with the flight. PDF exports include it.
  • Track and Replay tabs with the map, and the altitude profile underneath.
  • Actions: ACARS messages, Export PDF, Export KML and Delete flight. Deleting asks for confirmation first.
A flight page for an Airbus A320neo from Santos Dumont to Salvador: 1 hour 37 minutes, 683 nm, 37,025 ft, notes, and the Planned Leg section showing Flown, linked automatically at takeoff, with its SID, STAR and approach.
A flight linked to its planned leg. The section shows the procedures from the plan and that the leg was flown 0.6 nm from plan.
Next: Checkride →

Checkride: first flight

Four scenarios. Pick an answer to see why. Get three right to pass.

You pause the sim for 20 minutes in cruise, then fly on. What happens to the logged flight time?

Your home server reboots while you're over the Atlantic. What should you expect when it comes back?

The header says Sim not connected while the MCDU shows its uplink running. What do you check first?

You land, roll out and stop on the runway to wait. When does the flight close?

Module 3

Flight planning

Load your routes before you fly them. Sabiá then knows where each flight was supposed to go and links flights to legs by itself.

LESSON 3.1

Import Little Navmap plans

By the endYour Little Navmap routes listed as planned legs.

Turn .lnmpln files from Little Navmap into planned legs.

You need Little NavmapOne or more saved plans
Required steps
  1. Save your route in Little Navmap in its own format, .lnmpln.

  2. Choose where the legs go. On Prefiles, pick a trip in Import into, or leave it on No trip for loose legs that belong to no trip yet. On a trip's page, they're added to that trip.

  3. Click Choose .lnmpln files under Import a Little Navmap plan (.lnmpln) and pick one file or several. When you upload several, Sabiá orders them into a chain where it can, matching each leg's destination to the next leg's departure.

The Prefiles page with import panels for Little Navmap and SimBrief, filters, and three planned legs: KSFO to KLAX, KMRY to KSFO and SBGR to SBEG.
Prefiles lists every planned leg, whether it belongs to a trip or not. Filter by status, trip or text.
OptionalMove a leg later

Click Move to trip on its row, on Prefiles or in a trip's leg table. Pick a trip or No trip under Move to, then click Move. The leg goes to the end of that trip. A leg that is linked to a flight, flown or diverted can't be moved.

ReferenceWhy the distance can look short

Little Navmap saves departures, arrivals and approaches by name only, without their waypoints. The distance Sabiá shows for a plan covers the en-route part, and the import tells you when that's the case. With navdata on the maps (lesson 4.3), the procedures can be drawn in full.

Next: SimBrief and dispatch →
LESSON 3.2

SimBrief and dispatch

By the endA leg that carries SimBrief's fuel, weights and filed route.

Pull your latest SimBrief flight plan straight into Sabiá, with the dispatch figures that power the load sheet and clearance.

You need A SimBrief accountYour SimBrief pilot ID
Required steps
  1. Open Settings and enter your number in SimBrief Pilot ID. Save it. You only do this once.

  2. Generate your flight plan in SimBrief as usual.

  3. Click Import from SimBrief on Prefiles, where the leg goes to the trip picked in Import into or stays loose, or on a trip's page to add it to that trip. Sabiá fetches your most recent plan with its route, cruise altitude and dispatch data. The MCDU can do the same from its FPLN page.

The Settings page with a SimBrief section holding the pilot ID and a SayIntentions section for an optional API key.
The top of Settings: your SimBrief pilot ID and, optionally, a SayIntentions.AI key. Your ingest tokens, MCP tokens and password are further down (lessons 2.1 and 5.5).
What the dispatch data unlocksA leg imported from SimBrief carries fuel, weights and the filed route. That's what the ACARS load sheet and pre-departure clearance are generated from (lesson 4.1). A leg imported only from Little Navmap has none, so those two requests answer No dispatch data on file.
LESSON 3.3

Active trips and leg matching

By the endAn active trip whose next takeoff links to its leg without a click.

Mark a trip active so every takeoff finds its leg by itself, and learn what to do when it doesn't.

After lesson 3.1 or 3.2A trip with planned legs
Required steps
  1. Create a trip. On All flights, use New trip, then import legs into it from its page.

  2. Click Set as active trip on the trip's page. Only one trip can be active; the tag Active trip shows which. Clear active trip turns it off.

  3. Fly the next leg. At takeoff, Sabiá looks for a leg of the active trip that departs within 10 nm of where you lifted off. If exactly one qualifies, the flight links to it.

  4. Land. Within 10 nm of the leg's destination, the leg becomes flown. Anywhere else, it becomes diverted. Either way the flight keeps its link, and the leg records how far off you landed.

10 nm SBFZ planned departure Takeoff 4 nm away links automatically Takeoff 14 nm away no match: link it by hand A leg is skipped when it is · already flown, skipped or linked · missing a departure airport · one of two eligible legs here
A trip's legs table: five legs marked Flown with date, duration, distance and deviation from plan, and a sixth leg still Planned with Link flight and Skip actions.
A trip in progress. Each flown leg shows how far from plan it landed; the next one waits with Link flight and Skip.

When the match doesn't happen

  • Link by hand: Link flight on the leg's row, or the planned-leg section of the flight's page. Unlink undoes it and puts the flight back in the trip it was in before.
  • Skip a leg you won't fly with Skip, so it stops being a candidate.
  • Ambiguous matches are never guessed. If two legs you haven't flown both depart within 10 nm of your takeoff, nothing links; pick the right one by hand.
Position reportsWhile you fly a linked leg, Sabiá files a position report to ACARS every 10 minutes, with the next waypoint, remaining distance and ETA. Change the interval with POSITION_REPORT_INTERVAL_MIN, or set it to 0 to turn reports off.
Next: Checkride →

Checkride: flight planning

Four scenarios. Pick an answer to see why. Get three right to pass.

You take off from a runway 14 nm from the planned departure airport. What happens?

You imported a leg from Little Navmap only. Why does REQUEST LOADSHEET answer that there's no dispatch data?

Your active trip is SBGR–SBRJ, SBRJ–SBGR and SBGR–SBEG, none flown yet. You take off from Guarulhos for the first leg. What happens?

Bad weather sends you to an alternate 40 nm from the planned destination. What happens to the leg?

Module 4

In the cockpit

The tools you use during a flight and just after it.

LESSON 4.1

Work the ACARS datalink

By the endA weather report, a load sheet and a PDC in a leg's ACARS thread.

Use the simulated ACARS thread: weather, load sheet, clearance, and the messages Sabiá files for you.

After lesson 3.2 for the load sheet and PDC

Every flight and every planned leg has its own message thread. Open it with ACARS messages on a flight's page, or ACARS on a leg's row, so you can request a clearance before you've even pushed back. The same thread is on the MCDU's DATALINK pages in the cockpit.

Filed for you

MessageWhen
OUTFiled at takeoff, timed from when you left your parked position. If Sabiá never saw you parked, it uses the takeoff time and says so.
OFFTakeoff.
POS REPORTEvery 10 minutes on a linked leg: position, level, ground speed, next waypoint, ETA.
ONTouchdown.
INThe flight ends: you've landed and slowed below 5 kt.

Sent by you

Required steps
  1. Weather: type an ICAO code and press REQUEST WX, or use the buttons for your departure and destination. The METAR and TAF come back from aviationweather.gov.

  2. Canned downlinks: WX REQUEST, GATE REQUEST and REQUEST PUSHBACK add a fixed message to the thread.

  3. Load sheet and clearance: REQUEST LOADSHEET returns weights and fuel from the SimBrief plan. REQUEST CLEARANCE returns a PDC with your route, initial altitude and squawk. Both need a leg imported from SimBrief.

The ACARS page for a flight: send buttons for WX, gate, pushback, load sheet and clearance, a weather request field, the SayIntentions section, and IN, ON and position report messages.
A finished flight's thread, newest first, with the automatic IN and ON messages and a position report.
Next: Add SayIntentions.AI →
LESSON 4.2

Add SayIntentions.AI

By the endYour ATC transcript in the flight's thread, and your PDC in your live SayIntentions session.

Optional. Bring your SayIntentions.AI ATC conversation into the logbook, and send your PDC to your live session.

You need A SayIntentions.AI accountYour pilot API key
Required steps
  1. Save your key in Settings under SayIntentions API Key. Without it, the ACARS page shows the SayIntentions section switched off, with a note on how to turn it on.

  2. Link a flight. On the flight's ACARS page, link it to your SayIntentions session. Then import the ATC transcript into the same thread as the rest of your messages.

  3. Send your PDC. Once a clearance is on file, send it into your live SayIntentions session, where it arrives as a real CPDLC message. This works from a flight's thread or a planned leg's.

Off by defaultSabiá never contacts SayIntentions.AI until you save a key, and then only when you use these controls.
Next: Navdata on the maps →
LESSON 4.3

Navdata on the maps

By the endAirports, airways and runways from your own simulator drawn under a flight's track.

Draw airports, navaids, fixes, airways and runways from your own simulator under your tracks.

You need The MCDU running

The MCDU reads the simulator's navigation database and syncs a copy to your server. Once the server has it, a Navdata panel appears on the flight, trip and live maps. Every layer starts off; turn on the ones you want.

Required steps
  1. Open a flight's map and find the Navdata panel on it.

  2. Turn on the layers you want and zoom in on an airport you've flown from. Each layer shows from its own zoom level; runways from 12, once the airport's detail has been fetched.

ReferenceLayers, coverage and fetching detail
LayerShows from zoom levelCoverage
Airports6Complete worldwide
Airways7Where the sim has been asked
Navaids8Where the sim has been asked
Waypoints9Where the sim has been asked
Runways12Airports whose detail has been fetched
  • Coverage notes: the panel tells you when an area is Not fetched here yet, None here or partly fetched.
  • Fetch detail: for an airport known only by its position, Fetch detail asks the MCDU to fetch its runways and procedures the next time it checks in.
  • Expanded routes: a plan's departure, arrival, approach and airways are drawn in full where the data allows. A Little Navmap custom approach is drawn as a dashed computed straight-in from the runway.
  • Zoom stays put: a map fits the whole route when it loads. Once you zoom or pan, it stays where you left it.
San Francisco International with the Navdata panel's layers on: runways 10L/28R, 10R/28L, 1L/19R and 1R/19L labelled, and the recorded track ending on the airport.
Runways appear from zoom 12. They come from the simulator's own data, so they match the scenery you flew.
Keep navdata.db to yourselfThe data is whatever your simulator provides, which may include Navigraph data you licensed. Don't publish or share navdata.db. It isn't part of backups because it's rebuildable: delete it and the MCDU sends a fresh copy.
Next: Replay a flight →
LESSON 4.4

Replay a flight

By the endA finished flight playing back at the speed you choose, with its instruments.

Watch any completed flight again with its instruments.

You need A completed flight with at least two points
Required steps
  1. Open the Replay tab on a flight's page. The link now ends in ?view=replay, so you can bookmark it or send it to yourself.

  2. Press play. Pick a speed from 1× to 64× (16× is the default) or drag the scrubber. Follow aircraft keeps the map on the aircraft.

  3. Read the instruments under the map: UTC time, elapsed time, altitude, IAS, ground speed, heading, vertical speed, state and point number.

Replay of a Kodiak 100 flight from Homer to King Salmon, paused at 18:21:34Z, 36 minutes in, at 9,517 ft and 140 knots, with the scrubber, speed selector and Follow aircraft checkbox.
Paused halfway across Cook Inlet.
ReferenceKeyboard and recording gaps
KeyDoes
SpacePlay or pause
← / →Seek 5 replay-seconds
Shift + ← / →Seek 30 replay-seconds
Home / EndJump to the start or the end
Gaps in the recordingWhere the log has a gap longer than 30 seconds, such as a pause, the replay holds the aircraft still for 2 seconds and shows Recording gap with the real length, instead of waiting it out.
Next: Checkride →

Checkride: in the cockpit

Four scenarios. Pick an answer to see why. Get three right to pass.

You load the aircraft on the runway with the engines running and take off without ever parking. What does the OUT message say?

You want your PDC while still at the gate, before any flight exists. Where do you ask for it?

You paused for 15 minutes in cruise. What does the replay do when it reaches that point?

A friend without a Navigraph subscription asks for your navdata.db. What do you do?

Module 5

Logbook care

Your logbook lives on your machine, so looking after it is up to you. None of it takes long.

LESSON 5.1

Tidy up the log

By the endFlights grouped into trips, and a split flight merged back into one.

Group flights into trips, merge a flight that got split in two, and fix what the automatic logging couldn't know.

After a few logged flights

On All flights, select flights with their checkboxes. The toolbar then offers New trip, Add to trip, Combine selected and export.

The All flights page: a search field, a New Trip button, and flights grouped by trip with aircraft, date, duration, distance, maximum altitude and speed.
Flights grouped by trip, with ungrouped flights at the end.

Merge a split flight

  1. Select the two halves on All flights and click Combine selected. Confirm: the two originals are replaced by one flight with both tracks.

  2. Fill in the airports on the server, since combining doesn't look them up again:

    $ npm run backfill-icao
Why flights splitIf the connection between the MCDU and the server drops for long enough, or the sim hangs, one real flight can end up as two entries. Pauses never cause this.
Next: Export PDF and KML →
LESSON 5.2

Export PDF and KML

By the endA flight or trip saved as a PDF, and its track open in Google Earth.

Take your flights out of Sabiá as a printable PDF or a track file for Google Earth.

You need Nothing extra
  • PDF: Export PDF on a flight or a trip. The server renders it from the app's own print layout in a headless browser, so it looks like what you see, on a light page. Flight-plan PDFs you attached are added at the end.
  • KML: Export KML on a flight or a trip, or on a selection from All flights. Open it in Google Earth or any mapping tool that reads KML.
PDF export of a Boeing 787-10 flight from JFK to Heathrow: stats, a track map across the North Atlantic and the altitude profile.
A flight exported to PDF.
Without your attached plansPDF exports include your attached flight plans unless you ask for them without: add ?plans=0 to the export link.
Next: Back up and update →
LESSON 5.3

Back up and update

By the endA checked backup of your logbook, and the steps to restore it and to update Sabiá.

Keep safe copies of your logbook, restore one, and move to a newer version of Sabiá.

You need A shell on the server

Back up

Required steps

Your whole logbook is flights.db, plus attached PDFs in flight_plans/. Don't copy the database with cp while the server runs: recent changes may still be in its -wal file. Use the backup command, which is safe while the server is live.

$ npm run backup                       # → backups/<timestamp>/
$ npm run backup -- /mnt/nas/sabia      # or a folder of your choice

It takes a consistent snapshot, checks the copy opens and passes an integrity check, and copies flight_plans/ next to it. It's made to run from cron: run it from the Sabiá folder with Node 24 on the path.

Installed with the installer?There's no npm on an installed server. From the install folder, run the backup with Sabiá's own Node: ./node/bin/node --env-file=sabia.env dist/backup.js on Linux, or .\node\node.exe --env-file=sabia.env dist\backup.js on Windows. The installer prints both, with your folder filled in, at the end of every install.

Restore

  1. Stop the server.

  2. Replace flights.db, and flight_plans/ if you're restoring attachments, with the copies from the backup folder. A backup has no -wal or -shm files to worry about.

  3. Start the server again.

When a release is outUpdate to the latest version

Sabiá has numbered releases since 1.0.0 (26 Sep 2026), listed on GitHub Releases with notes on what changed. The main branch always has the newest code, and each release is a tag on it. Back up first, check the release notes for anything marked BREAKING, then update the way you installed. From source:

$ git pull
$ (cd client && npm ci)   # only when client/package.json changed
$ npm run build
# then restart the server the way you run it

With the installer: run the same install command again. It keeps your logbook, your ingest token and your certificate, and it puts the previous version back if the new one doesn't come up.

With Docker: docker compose pull && docker compose up -d. If you build the image from a clone, git pull && docker compose build && docker compose up -d.

ReferenceChanging your password

While you can sign in, change it on Settings under Operator password. It asks for your current password, and signs out every other browser.

ReferenceForgot your password?

Run npm run set-password on the server and choose a new one. On an installed server, run dist/setPassword.js with Sabiá's own Node, the same way as the backup above. It takes effect immediately, with no restart.

Next: Troubleshooting →
LESSON 5.4

Troubleshooting

By the endYou know where to look first when something breaks, and what the common messages mean.

The problems people actually hit, and how to fix each one.

Tip The server logs to its terminal with prefixes like [Config], [Ingest] and [FlightManager]
You seeWhyFix
Server exits with [Config] …A missing or invalid settingThe message names the variable. Common: only one of the TLS pair set, no TLS on a network address.
[Auth] WARNING: no ingest token exists, and the MCDU can't connectNo ingest token on Settings and no INGEST_TOKENCreate one on Settings and enter it in the MCDU
Refusing to start: no operator account existsNo account yetnpm run set-password
better-sqlite3 fails to load, naming better_sqlite3.nodeNo prebuilt binary for this platform or CPURun Sabiá on Windows or Linux, x64 or arm64, or in Docker. Changing Node doesn't help
Sim not connected with the MCDU runningURL, token or certificateCheck CFG NETWORK: exact token, reachable URL, certPath for a self-signed certificate
Stopped working after changing the tokenOne side still has the old valueEnter the token that's in force in the MCDU and restart its uplink. For INGEST_TOKEN, restart the server first. Tokens from Settings replace INGEST_TOKEN.
429 when signing in10 failed attempts in 15 minutesWait, or restart the server
Takeoff didn't link to the legNo active trip, over 10 nm away, or two eligible legs from the same fieldLink it by hand from the flight or the leg
Load sheet or PDC says no dispatch dataNo SimBrief plan on file for the legImport the leg from SimBrief
Flight time looks shortPauses and dropped connections aren't countedExpected behaviour
No Navdata panel on the mapsThe server has no navdata yetLet the MCDU sync; in Docker, mount the navdata folder, not the file
The MCDU's STATUS shows a launch failureNode 24 isn't installed, or isn't on PATHInstall Node 24, or point the MCDU's nodePath setting at it
The MCDU's STATUS shows NODE 24 REQD FOR NAVDATAThe MCDU found a Node other than 24. The sim link and datalink work, navdata stays offInstall Node 24, or point nodePath at a Node 24 node.exe, and restart the MCDU
flights.db is a folderDocker created ittouch flights.db before the first docker compose up

To check the server is up from a script or a monitor, request GET /api/status: a 200 means it's running. More in docs/troubleshooting.md.

Next: Connect an AI assistant →
LESSON 5.5

Connect an AI assistant

By the endAn AI assistant answering questions about your logbook.

Optional. Let an AI assistant such as Claude read your logbook and make a few careful edits, through Sabiá's MCP server.

You need An MCP client, such as Claude Code or Claude Desktop

The MCP endpoint is off until you give it its own token. It's separate from the ingest token, so revoking one never affects the other.

Required steps
  1. Create a token on Settings. Under MCP tokens, give it a label such as the assistant's name and choose Create token. Copy it from the dialog: it's shown only once. The endpoint turns on straight away, with no restart.

  2. Add the server to your client. The endpoint is https://<your-server>:3000/mcp, sent over HTTP with the header Authorization: Bearer <token>. With Claude Code:

    $ claude mcp add --transport http sabia https://192.168.0.30:3000/mcp \
        --header "Authorization: Bearer sbm_your-token"

    The client has to trust your server's certificate, just like the MCDU.

  3. Ask about your flying. "How many hours did I fly in September?", "Summarise my last trip", "Create a trip called Alaska bush week and add my last four flights to it".

The MCP tokens section of Settings, listing one token labelled Claude Desktop with its ID, created time, last used Never, and a Revoke button.
An MCP token for Claude Desktop. Revoke it here to cut the assistant off on its next request.
ReferenceThe MCP_TOKEN variable

Setting MCP_TOKEN in the environment and restarting also turns the endpoint on. A token from Settings replaces it while one exists.

What it can and can't doIt has 18 tools. Fourteen only read: flights, trips, planned legs, stats, ACARS threads, weather, and your live status. The four that write can set a flight's notes, create a trip, add a flight to a trip, and import a SimBrief plan as a loose leg. It can't delete or combine anything, export, or change settings or credentials.
Next: Checkride →

Checkride: logbook care

Four scenarios. Pick an answer to see why. Get three right to pass.

The server is running. What's the right way to take a backup?

You combined two halves of a flight and the result has no arrival airport. What do you run?

You've forgotten your password and can't sign in. What do you do?

You ask your AI assistant, connected over MCP, to delete a duplicate flight. What happens?

Graduation

Capstone trip

Put Modules 1 to 5 together on one trip of your own: plan it, fly it, review it and archive it. Tick each task as you do it. With every lesson ticked and every checkride passed, finishing the capstone unlocks your certificate.

By the endA two-leg trip planned, flown, reviewed and backed up, with its route printed on your certificate.

You need A working setup from Modules 1 and 2A SimBrief accountTime for two flights

1Plan

2Fly

3Review

4Archive

0 of 11 capstone tasks done

Graduation

Your certificate

Tick all 18 lessons, pass the five checkrides and finish the capstone trip, and this section issues your Sabiá Academy certificate with your capstone route on it. It's made in your browser from your own progress: nothing is sent anywhere, and nobody checks it.

0 / 34
  • Lessons ticked0 / 18
  • Checkrides passed0 / 5
  • Capstone tasks done0 / 11

Finish the lessons, checkrides and capstone to unlock your certificate.