Skip to content

Aircraft data

Traffic display looks up aircraft details (registration, model, operator) in the OpenSky aircraft database, and type details in a CSV compiled from OpenAircraftType. Whitebox mirrors both files at:

AIRCRAFT_DATA_URL=https://whitebox.hel1.your-objectstorage.com/aircraft_db/v1
File Contents
opensky_aircraft_database.csv OpenSky metadata snapshot, about 100 MB
aircraft_types.csv Compiled OpenAircraftType data, about 700 KB

Installation

The backend image build downloads both files into /opt/whitebox/managed_assets/aircraft_data/, so a running device needs no network access for them. The build fails if a file is missing, empty, or not the expected CSV. To build from another copy, pass the AIRCRAFT_DATA_URL build argument to packaging/docker/backend.base.Dockerfile.

Updating the mirror

Maintainers with write access to the bucket build both files with:

packaging/scripts/maintenance/build_aircraft_data.sh <output-dir> [OPENSKY_SNAPSHOT]

OPENSKY_SNAPSHOT is the YYYY-MM of an OpenSky metadata snapshot; it needs curl, git and Python 3. Upload both files to aircraft_db/v1/ with public read access and Content-Type: text/csv, then download them from the public URLs and check that they are byte-identical. Images built afterwards use the new data. A change to the file format needs a new aircraft_db/v2/ path so existing builds keep working.