Moldova ๐ฒ๐ฉ CAA Registry โ
| Name | md-caa-registry |
| Country | Moldova |
| Registration prefix | ER- |
| Data source | https://www.caa.md/modules/filemanager/files/documentum/Registrul_Aerian_al_Republicii_Moldova.pdf |
| Format | PDF (static URL, no header row) |
| Run frequency | Weekly (Tuesday, 14:10 UTC) |
| Depends on Mictronics for ICAO hex | Yes โ 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 column | Imported | Notes |
|---|---|---|
| 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):
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{
"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"
}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{
"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 suffix | Value | Format |
|---|---|---|
records_imported | e.g. 271 | Integer as string |
last_run_at | e.g. 2026-07-07T14:32:01.123456+00:00 | ISO 8601 UTC |
last_run_status | Success or Failure | String |
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.