Skip to content

Callsign specific transformations do not occur #16

Open
@nealmcconnell-bp

Description

@nealmcconnell-bp

I tested with 6.1.0 and 8.0.0b2. Neither appear to be able to perform transformation on items/sections within the .ini config file, like in the docs.

[aprscot]
COT_URL = tcp://takserver.example.com:8088

[W2GMD-9]
COT_TYPE = a-f-G-U-C
COT_STALE = 600
COT_NAME = Medic 52

[NB6F-2]
COT_NAME = Transport 2

It seems this functionality was lost around the timeframe when the other pytak clients were making use of known_craft.csv. The issue lies in how the configuration is being passed to create_tasks. The pytak.cli() function is responsible for loading the configuration and passing it to create_tasks, but it seems to be passing a SectionProxy object instead of the full ConfigParser object. Only the first(aprscot) section is used.
It seems that aprscot needs to be updated to operate in the same way as aiscot and adsbcot, with the use of known_craft for custom transformations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions