Skip to content

🇦🇺 au-casa

CountryAustralia
Registration prefixVH-
Data sourcehttps://services.casa.gov.au/CSV/acrftreg.csv
FormatCSV (fixed URL)
Run frequencyWeekly (Tuesday, 07:10 UTC)
Depends on Mictronics for ICAO hexYes — this runner does not publish ICAO hex addresses; VH-{Mark} registrations are resolved via RediSearch against Mictronics records (idx:aircraft:mictronics). Must run after the mictronics runner.

How it works

The CASA register CSV is downloaded from a fixed URL and parsed with csv.DictReader (BOM-tolerant utf-8-sig decoding). Rows whose suspendstatus is suspended are filtered out before lookup. Registrations (VH- + Mark) are resolved to icao_hex in batches of 100 via RediSearch against the Mictronics index, then a type sanity check compares tokens extracted from the CASA Model column against the existing Mictronics type_designator/manufacturer_model fields, rejecting the match only when both sides have tokens and none overlap. Airframe and Engtype are decoded from CASA's plain-English categories (e.g. Power Driven AeroplaneAirplane, TurbofanTurbo-fan) and regholdCountry full country names are mapped to ISO 3166-1 alpha-2 codes, with unmapped values passed through as-is. 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.

Whenever a record has an aircraft.type_designator, aircraft:type:{type_designator} is looked up in Redis (populated by the mictronics runner) and, if found, its manufacturer_model and wake_turbulence_category are each set directly on this record (independently — a type entry with only one of the two still sets that one) — unconditionally, regardless of whether Mictronics also has values for the same hex. This runner's own type_designator is sourced directly from CASA and is authoritative; merge_aircraft.lua's "registry wins over mictronics" precedence rule guarantees these values take priority at read time either way. The lookup is not a hard dependency — a missing reference table entry, or the table not existing yet, leaves the record exactly as it would have been without this step.

Columns

Source columnImportedNotes
MarkCombined with VH- prefix; used as the Mictronics lookup key
Manuaircraft.manufacturer
TypePresent in source; not read by this runner
Modelaircraft.model; also used for the type sanity check against Mictronics
Serialaircraft.serial_number
MTOWPresent in source; not read by this runner
engnumaircraft.powerplant.count
Engmanuaircraft.powerplant.manufacturer
Engtypeaircraft.powerplant.type, decoded (e.g. TurbopropTurbo-prop); Not Applicable omits the field
Engmodelaircraft.powerplant.model
FueltypePresent in source; not read by this runner
regTypePresent in source; not read by this runner
regholdnameregistrant.names[0]
regholdadd1 / regholdadd2registrant.street[]
regholdSuburbregistrant.city
regholdStateregistrant.administrative_area
regholdPostcoderegistrant.postal_code
regholdCountryregistrant.country, mapped to ISO 3166-1 alpha-2
regholdCommdatePresent in source; not read by this runner
regopNamePresent in source; not read by this runner
regopadd1 / regopadd2Present in source; not read by this runner
regopSuburbPresent in source; not read by this runner
regopStatePresent in source; not read by this runner
regopPostcodePresent in source; not read by this runner
regopCountryPresent in source; not read by this runner
regopCommdatePresent in source; not read by this runner
DatefirstregPresent in source; not read by this runner
gearPresent in source; not read by this runner
Airframeaircraft.type, decoded from CASA's category names
CoAcata / CoAcatb / CoAcatcPresent in source; not read by this runner
PropmanuPresent in source; not read by this runner
PropmodelPresent in source; not read by this runner
TypecertPresent in source; not read by this runner
CountrymanuPresent in source; not read by this runner
Yearmanuaircraft.manufactured_date (4-digit year → YYYY-01-01T00:00:00Z)
RegexpirydatePresent in source; not read by this runner
suspendstatusUsed only as a filter (suspended rows are dropped); not stored
suspenddatePresent in source; not read by this runner
ICAOtypedesigaircraft.type_designator; also used to look up aircraft:type:{type_designator} in Redis, setting aircraft.manufacturer_model and aircraft.wake_turbulence_category when found
IDERA_Authorised_PartyPresent in source; not read by this runner

See specs/data-dictionary.yaml (au-casa 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 7C4F42 | python3 -m json.tool --sort-keys --no-ensure-ascii
json
{
    "aircraft": {
        "manufactured_date": "2008-01-01T00:00:00Z",
        "manufacturer": "CESSNA AIRCRAFT COMPANY",
        "manufacturer_model": "CESSNA 172 Skyhawk",
        "model": "172S",
        "powerplant": {
            "count": 1,
            "manufacturer": "TEXTRON LYCOMING",
            "model": "IO-360-L2A",
            "type": "Piston"
        },
        "serial_number": "172S10673",
        "type": "Airplane",
        "type_designator": "C172",
        "wake_turbulence_category": "Light"
    },
    "icao_hex": "7C4F42",
    "military": false,
    "registrant": {
        "administrative_area": "NSW",
        "city": "PARRAMATTA",
        "country": "AU",
        "names": [
            "WESTPAC BANKING CORPORATION"
        ],
        "postal_code": "2150",
        "street": [
            "Level 34 Tower 8 Parramatta Square",
            "10 Darcy St"
        ]
    },
    "registration": "VH-PXW",
    "source": "au-casa"
}
bash
docker run --rm --network host redis:latest redis-cli EVAL "$(cat ./shared/lua/merge_aircraft.lua)" 0 7C4920 | python3 -m json.tool --sort-keys --no-ensure-ascii
json
{
    "aircraft": {
        "manufactured_date": "2008-01-01T00:00:00Z",
        "manufacturer": "AIRBUS INDUSTRIE",
        "manufacturer_model": "AIRBUS A-380-800",
        "model": "A380-842",
        "powerplant": {
            "count": 4,
            "manufacturer": "ROLLS ROYCE LTD",
            "model": "RB211 Trent 972-84",
            "type": "Turbo-fan"
        },
        "serial_number": "0014",
        "type": "Airplane",
        "type_designator": "A388",
        "wake_turbulence_category": "Heavy"
    },
    "icao_hex": "7C4920",
    "military": false,
    "registrant": {
        "administrative_area": "NSW",
        "city": "MASCOT",
        "country": "AU",
        "names": [
            "QF BOC 2008-1 PTY LIMITED"
        ],
        "postal_code": "2020",
        "street": [
            "10 Bourke Rd"
        ]
    },
    "registration": "VH-OQA",
    "source": "au-casa"
}

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/au-casa/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_au_casa_{name}/config for each of the three stats above.