-
Notifications
You must be signed in to change notification settings - Fork 90
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
Labels
Comments
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. |
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.
If the format you want to send to both destinations is the same (like both JSON) you can use an UDP repeater like this one:
https://github.com/UnionPacific/udp-repeater
Only if the format is not the same the program has to be changed.
Cheers,
Dick
|
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
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
The text was updated successfully, but these errors were encountered: