Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callsign specific transformations do not occur #16

Open
nealmcconnell-bp opened this issue Jan 27, 2025 · 0 comments
Open

Callsign specific transformations do not occur #16

nealmcconnell-bp opened this issue Jan 27, 2025 · 0 comments

Comments

@nealmcconnell-bp
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant