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

Multiple concurrent socket output. #76

Open
DickvanNoort opened this issue Mar 8, 2021 · 3 comments
Open

Multiple concurrent socket output. #76

DickvanNoort opened this issue Mar 8, 2021 · 3 comments

Comments

@DickvanNoort
Copy link

Besides the output to a logfile only one of the 3 (n, N and J) sockets outputs seems to be supported.
If both -n and -j are selected only one output seems to be generated. No error message is shown.
If only -n or -j is selected it works fine.
The switch code in acarsdec.c seems to fill 'netout' with only the last of the 3 possible parameters that appear in the parameter list.

My request is to support multiple concurrent socket output feeds so I can feed the data in both PP and in JSON format.

Cheers,
Dick

@jaymot123
Copy link

I would like to be able to send messages in JSON format to two different ACARS aggregator sites, so I'd like to request that acarsdec be able to support multiple -j options. Basically that acarsdec not be limited to only one -j, -n and/or -N output. Thank you.

@DickvanNoort
Copy link
Author

DickvanNoort commented May 3, 2022 via email

@jaymot123
Copy link

Thank you, DickvanNoort. That should do exactly what I'll want when the time comes to feed the second ACARS aggregation site.

f00b4r0 added a commit to f00b4r0/acarsdec that referenced this issue Aug 13, 2024
This commit enables the use of multiple concurrent outputs, using the
following syntax:

acarsdec --output format:destination:parameters [--output ...]

Where "format" is one of:
- "oneline" for single line text decoding
- "full" for full text decoding
- "monitor" for live decoding
- "pp" for PlanePlotter
- "native" for Acarsdec native format
With CJSON support enabled:
- "json" for JSON output
- "routejson" for flight route output in JSON format

and "destination" is one of:
- "file" for file (including stdout) output
- "udp" for network output over UDP
With MQTT support enabled:
- "mqtt" for MQTT output

Not all combinations of format and destination are valid, acarsdec will
complain if an invalid combination is chosen.

params are described in respective source file (TODO: update usage())

Fixes: TLeconte#76
f00b4r0 added a commit to f00b4r0/acarsdec that referenced this issue Aug 17, 2024
This commit enables the use of multiple concurrent outputs, using the
following syntax:

acarsdec --output format:destination:parameters [--output ...]

Where "format" is one of:
- "oneline" for single line text decoding
- "full" for full text decoding
- "monitor" for live decoding
- "pp" for PlanePlotter
- "native" for Acarsdec native format
With CJSON support enabled:
- "json" for JSON output
- "routejson" for flight route output in JSON format

and "destination" is one of:
- "file" for file (including stdout) output
- "udp" for network output over UDP
With MQTT support enabled:
- "mqtt" for MQTT output

Not all combinations of format and destination are valid, acarsdec will
complain if an invalid combination is chosen.

params are described in respective source file (TODO: update usage())

Fixes: TLeconte#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants