Skip to content

Kyrgyzstan ๐Ÿ‡ฐ๐Ÿ‡ฌ CAA Registry โ€‹

Namekg-caa-registry
CountryKyrgyzstan
Registration prefixEX-
Data sourcehttps://caa.kg/en/node/46
FormatStatic HTML table
Run frequencyWeekly (Tuesday, 17:10 UTC)
Depends on Mictronics for ICAO hexYes โ€” 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 columnImportedNotes
โ„– ะฟ/ะฟโŒ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):

bash
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
json
{
    "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.

bash
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
json
{
    "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 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_kg_caa_registry_{name}/config for each of the three stats above.