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

Using 2 instances of acarsdec on rpi #81

Closed
keukenrol opened this issue Apr 28, 2022 · 4 comments
Closed

Using 2 instances of acarsdec on rpi #81

keukenrol opened this issue Apr 28, 2022 · 4 comments

Comments

@keukenrol
Copy link

keukenrol commented Apr 28, 2022

Hi

I am interested in using 2 instances of acarsdec with two different rtl dongles. Reason being that the dongles have a bandwidth of 2.4MHz which is too narrow to cover both 131 and 136MHz acars channels.
What should be the best method? Call the program twice with different parameters and run in background?

Second question: Is it possible to have a web preview?

Third question: Can the logs be written realtime to a csv? I would love to show them on my custom webpage and possibly link them to the basestation.sqb from VRS like they did with acarsdeco2.

Kind regards

@TLeconte
Copy link
Owner

  • I never try that, but yes you must be able to run 2 acarsdec instances with different rtl device number (ie : -r 0 and -r 1 )
    But where will you send the results ?
  • What do you mean by a web preview ? An integrated web server ?
  • You want that I add a csv format to -o option ?

@keukenrol
Copy link
Author

keukenrol commented Apr 29, 2022

  • I never try that, but yes you must be able to run 2 acarsdec instances with different rtl device number (ie : -r 0 and -r 1 )
    But where will you send the results ?

By for example using a csv :).

  • What do you mean by a web preview ? An integrated web server ?

Yes, I come from acarsdeco2, where all decoded messages are shown on a webpage.

  • You want that I add a csv format to -o option ?

Yes, by integrating this it is easy to display the acars yourself on a webpage, no need to implement the webserver in acarsdec then. In case you use two instances, I think it would be good to have the option to also set a filename.

For example:
Instance 1: acarsdec -r 0 131.550 131.725 131.825 -o csv acars_131.csv
Instance 2: acarsdec -r 1 136.750 136.900 136.950 -o csv acars_136.csv

Thanks for your reply, appreciate it.

@TLeconte
Copy link
Owner

I will not code an integrated web server, not my domain.
Don't json a good format for the log ? Because it already exist : -o 4
I don't think csv is a good format for acars because there are \n in message acars body
There is already the -l option to tell where acarsdec save its log

@keukenrol
Copy link
Author

Allright, fairly new to it all. I'll use the json. Thanks!

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

2 participants