Replies: 6 comments 13 replies
-
Thanks, I was triggered because users find the command line much more intuitive than the JSON, but the JSON is easier to set with a menu system. I agree, this needs to be streamlined/clarified. Will have a look, thanks! More feedback always welcome :-) |
Beta Was this translation helpful? Give feedback.
-
It looks like if you specify the dongle in the json and cmd-line, it will set up two parallel receivers, but since the dongle can be opened only once it terminates with an error:
So in principle it will read from command line and applies settings in order they appear there and then followed by the parameters set in the config file. So some parameters will be overwritten by the config, e.g. ( That is how it is now and it is confusing. Maybe for the menu system I should a) keep it simple and only manage start/stop of the program and ask the user to set the other parameters in the cmd-file or b) allow for both and accept we get some confusion like just described. |
Beta Was this translation helpful? Give feedback.
-
also think we need to add an option to disable a systemd service (next to start and stop)... |
Beta Was this translation helpful? Give feedback.
-
Yes I was wondering which installation build I should use - I ended up choosing the "source build". Do you need to also use the same build for all subsequent updates? An extra suggestion re the cmd-file is to create it with a basic default set of options for an RTL-SDR dongle (I assume the majority of users have these?) with comment lines explaining the options - much like this default file from graphs1090: https://github.com/wiedehopf/graphs1090/blob/master/default It might be easier to comment out parameters and require the user to edit and uncomment them if they need to. Something along the lines of the following would work with your current cmd-file structure:
|
Beta Was this translation helpful? Give feedback.
-
I'm one of those who don't like configuration using JSON. I find it very overloaded and hard to read. I prefer configuring using regular text files. "parameter" "value" "#comment" |
Beta Was this translation helpful? Give feedback.
-
Have you considered using yaml instead of json? It is much easier to read and edit by humans but holds the same data structures as json. Depending on your environment (language/libraries) it could be very easy to switch to yaml or even support both json and yaml for the best compatibility. It also allows for comments as requested in another thread here. |
Beta Was this translation helpful? Give feedback.
-
Hi Jasper,
As requested, this is to provide some further feedback on the new configuration tool and config files approach.
Clearly this is still early-stage, but I think it will help a lot of users who are new to AIS-catcher as it evolves.
For context, I'm new to ship tracking and using RTL-SDR dongles but have been feeding a number of aircraft tracking websites from a Raspberry Pi4B using an Airspy Mini receiver for four years. I use wiedehopf's readsb, tar1090 and graphs1090 software - his approach to configuring the apps probably influences my opinions. I initially set up my AIS-catcher feed using abcd567a's installer (https://github.com/abcd567a) with an RTL-SDR dongle on a Pi4B - it is working well.
I'm experimenting with AIS-catcher and the config tool on a Pi5B with an Airspy R2 attached to an ads-b antenna without an LNA, which much to my surprise, is actually receiving some AIS messages. My thoughts so far:
If I've understood correctly, a lot of parameters appear to be able to be placed in either the config.json or config.cmd file, with the config tool populating the config.json - At this early stage, the documentation doesn't make it clear if there is a preferred location for the parameters, and if one file has priority where the parameter has been specified in both files. For someone like me coming from a flight tracking background, the inclination is to edit the config.cmd file because the json structure is unfamiliar.
I managed to get the test rig running by using the config tool to specify the receiver, etc and then adding entries to config.cmd for the other parameters. The contents of the two files were
(serial number and location edited for privacy) and
(If the parameters look a bit strange, it is because I carried them over from my RTL-SDR setup, and I also sometimes like to make default settings explicit.) These settings work fine:
However if I also specify the serial number at the start of the config.cmd:
ais-catcher fails:
I also tried specifying a different serial number from the json file in the cmd file, and that also failed.
I haven't tried doing this with other parameters.
So the current approach appears to work as long as users only specify things in one place.
As you say in the readme, this is at an early stage - hope the feedback is useful.
John
Beta Was this translation helpful? Give feedback.
All reactions