Skip to content

🇲🇩 md-caa

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 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",
        "wake_turbulence_category": "Light"
    },
    "icao_hex": "504E62",
    "military": false,
    "registration": "ER-COA",
    "source": "md-caa"
}
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",
        "wake_turbulence_category": "Heavy"
    },
    "icao_hex": "504E60",
    "military": false,
    "registration": "ER-BAR",
    "source": "md-caa"
}

Configuration

Reads settings.json (mounted at /app/settings.json):

ParameterRequiredDefaultNotes
redis.hostRedis connection host
redis.port6379
mqtt.hostOmit the whole mqtt block to skip completion-stats publishing entirely
mqtt.port1883
mqtt.usernameOptional MQTT auth; omit for an anonymous broker
mqtt.password
redis_ttl_days14TTL applied to each aircraft:registry:{icao_hex} key written by this runner

MQTT

Published once, at the end of a run, to SkyFollower/runner/md-caa/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_{name}/config for each of the three stats above.