Skip to content

Moldova ๐Ÿ‡ฒ๐Ÿ‡ฉ CAA Registry โ€‹

Namemd-caa-registry
CountryMoldova
Registration prefixER-
Data sourcehttps://www.caa.md/modules/filemanager/files/documentum/Registrul_Aerian_al_Republicii_Moldova.pdf
FormatPDF (static URL, no header row)
Run frequencyWeekly (Tuesday, 14:10 UTC)
Depends on Mictronics for ICAO hexYes โ€” the Moldova CAA register does not publish ICAO hex (Mode S) addresses; registrations are resolved via RediSearch against Mictronics records (idx:aircraft:mictronics). Must run after the mictronics runner.

How it works โ€‹

The register PDF is downloaded from a static URL and parsed with pdfplumber.extract_table(), which works reliably here. The table has no header row, so columns are addressed by fixed 0-based position (Nr., Type of aircraft, Registration, Serial No., Operator) rather than by name. Rows whose registration column does not start with ER- are discarded during parsing. Type of aircraft and serial number are both whitespace-collapsed, since pdfplumber can represent a wrapped cell's text with an embedded newline rather than a space. Every written record explicitly sets military: false โ€” this register is exclusively civil, and the explicit value ensures a stale military: true flag (from Mictronics or a prior record on a reused hex) is corrected on re-registration.

Columns โ€‹

Source columnImportedNotes
Nr. (position 0)โŒSequence number; parsed but not stored
Type of aircraft (position 1)โœ…Whitespace-collapsed โ†’ aircraft.model
Registration (position 2)โœ…ER-prefix filter; used as the Mictronics lookup key
Serial No. (position 3)โœ…Whitespace-collapsed โ†’ aircraft.serial_number
Operator (position 4)โŒ3-letter operator code only; parsed but not stored

See specs/data-dictionary.yaml (md-caa-registry entry) for full column semantics and cross-source schema notes.

Example Output โ€‹

Read back the merged record for a given ICAO hex (combines this runner's data with Mictronics and any other sources that have written to the same key):

bash
docker run --rm --network host redis:latest redis-cli EVAL "$(cat ./shared/lua/merge_aircraft.lua)" 0 504E62 | python3 -m json.tool --sort-keys --no-ensure-ascii
json
{
    "aircraft": {
        "manufacturer": "CESSNA",
        "manufacturer_model": "CESSNA 172 Skyhawk",
        "model": "Cessna 172H",
        "serial_number": "345",
        "type_designator": "C172"
    },
    "data_sources": [
        "mictronics",
        "md-caa-registry"
    ],
    "icao_hex": "504E62",
    "military": false,
    "registration": "ER-COA"
}
bash
docker run --rm --network host redis:latest redis-cli EVAL "$(cat ./shared/lua/merge_aircraft.lua)" 0 504E60 | python3 -m json.tool --sort-keys --no-ensure-ascii
json
{
    "aircraft": {
        "manufacturer": "BOEING",
        "manufacturer_model": "BOEING 747-200",
        "model": "Boeing 747-243F",
        "serial_number": "22545",
        "type_designator": "B742"
    },
    "data_sources": [
        "mictronics",
        "md-caa-registry"
    ],
    "icao_hex": "504E60",
    "military": false,
    "registration": "ER-BAR"
}

Configuration โ€‹

See Data Runners for the full list of environment variables every runner reads. This runner writes aircraft:registry:{icao_hex} with a fixed 14-day TTL (ENRICHMENT_TTL_SECONDS in shared/timing.py).

MQTT โ€‹

Published once, at the end of a run, to SkyFollower/runner/md-caa-registry/statistic/{name} (all retained):

Topic suffixValueFormat
records_importede.g. 271Integer as string
last_run_ate.g. 2026-07-07T14:32:01.123456+00:00ISO 8601 UTC
last_run_statusSuccess or FailureString

Home Assistant autodiscovery configs are also published (retained) to homeassistant/sensor/SkyFollower_runner_md_caa_registry_{name}/config for each of the three stats above.