Kyrgyzstan ๐ฐ๐ฌ CAA Registry โ
| Name | kg-caa-registry |
| Country | Kyrgyzstan |
| Registration prefix | EX- |
| Data source | https://caa.kg/en/node/46 |
| Format | Static HTML table |
| Run frequency | Weekly (Tuesday, 17:10 UTC) |
| Depends on Mictronics for ICAO hex | Yes โ this runner does not publish ICAO hex addresses; registrations are resolved via RediSearch against Mictronics records (idx:aircraft:mictronics). Must run after the mictronics runner. |
How it works โ
The register is a single static HTML page containing one table with bilingual Russian/English headers and rowspan-merged cells for the Operator/Owner and Type columns (a value spans multiple registration rows). The table is walked row-by-row, expanding rowspans into a uniform grid so every row carries a full set of column values regardless of which rows the source PDF/HTML visually merged. Registration and serial number cells are stripped of whitespace and passed through a homoglyph translation table, since some cells use Cyrillic look-alike characters (ะ, ะฅ) in place of Latin E/X in the EX- prefix. Manufacture dates appear either as DD.MM.YYYY or as a Russian/English month name plus year (e.g. ะะฐัั 2010), both normalized to ISO date strings. 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 |
|---|---|---|
| โ ะฟ/ะฟ | โ | Always empty in data rows; a visual row-number placeholder, not stored |
| ะญะบัะฟะปัะฐัะฐะฝั/Operator (ะกะพะฑััะฒะตะฝะฝะธะบ/Owner) | โ | Rowspan-expanded; โ registrant.names[0] |
| ะขะธะฟ ะะก/Type of Aircraft | โ | Rowspan-expanded; โ aircraft.model |
| ะ ะตะณะธัััะฐั. ะฝะพะผะตั/Registration | โ | EX- prefix; Cyrillic homoglyphs normalized; used as the Mictronics lookup key |
| ะะฐัะฐ ัะตะณะธัััะฐัะธะธ/Date of Registration | โ | Parsed but not stored |
| ะกะตัะธะนะฝัะน โ/Serial Number | โ | โ aircraft.serial_number |
| ะะฐัะฐ ะฟัะพะธะทะฒะพะดััะฒะฐ/Date of Manufacture | โ | โ aircraft.manufactured_date (DD.MM.YYYY โ YYYY-MM-DD; Month YYYY โ YYYY-01-01) |
See specs/data-dictionary.yaml (kg-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 6010AF | python3 -m json.tool --sort-keys --no-ensure-ascii{
"aircraft": {
"manufactured_date": "2010-03-17",
"manufacturer": "DIAMOND",
"manufacturer_model": "DIAMOND DA-42 Guardian",
"model": "Diamond DA-42M-NG",
"serial_number": "42MN003",
"type_designator": "DA42"
},
"data_sources": [
"mictronics",
"kg-caa-registry"
],
"icao_hex": "6010AF",
"military": false,
"registrant": {
"names": [
"Sky KG Airlines"
]
},
"registration": "EX-11001"
}Note: this registry has no GA singles or Pipers, so the "small aircraft" example above is a Diamond DA42M-NG โ a twin-engine trainer/utility aircraft โ rather than a 150/172.
docker run --rm --network host redis:latest redis-cli EVAL "$(cat ./shared/lua/merge_aircraft.lua)" 0 6010E2 | python3 -m json.tool --sort-keys --no-ensure-ascii{
"aircraft": {
"manufactured_date": "1987-04-02",
"manufacturer": "BOEING",
"manufacturer_model": "BOEING 747-200",
"model": "Boeing 747-222B",
"serial_number": "23737",
"type_designator": "B742"
},
"data_sources": [
"mictronics",
"kg-caa-registry"
],
"icao_hex": "6010E2",
"military": false,
"registrant": {
"names": [
"Aerostan"
]
},
"registration": "EX-47001"
}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/kg-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_kg_caa_registry_{name}/config for each of the three stats above.