Ok, ok… I get it. I still instinctively confuse piaware and FA. I meant it exactly as you wrote it, I just couldn’t express it correctly.
Ahhh. If I use it on command line I try to start a 2nd instance instead of adding/changing any parameter. So I haven’t to wonder
So best is to edit the config file add/change commands/values and restart the service? Hope so…
…I’m glad I was able to amuse and entertain you a little
But seriously: I get it now.
@wiedehopf
Yes, you’re right. I probably misinterpreted something due to my lack of English skills.
What I couldn’t figure out, despite all my efforts, is how to enter the sections. That’s nowhere declared in the linked wiki.
In readsb, the four lines that exist so far always begin with “yx_OPTIONS=”. In the help file (readsb --help), the headline of the 1st block is “General options.” However, entries from this can already be found in, for example, “DECODE_OPTIONS”; there is no “GENERAL_OPTIONS” option group in readsb by default.
Is this just for clarity? Do these groups, or rather their names, play no role in readsb and can therefore be named as desired?
Before I lay my hand on it, I’d rather ask…
Another discrepancy:
For example, “readdb --help” says --lat=<lat> Reference/receiver surface latitude.
The definition is therefore --parameter=value
But in readdb, this is consistently specified as --parameter value
Is both valid here, i.e., with either an equals sign or a space?
Ok… Why simple when you can do it complicated
Apparently, I’m getting on your nerves; it’s been understood, and the matter will be remedied immediately.
My answer above gives you tools to figure out stuff.
If i just say it doesn’t matter if you use space or equal, you will repeat asking about things which can be tested very easily. It will not apply to other programs where = might not work.
If you’re curious about the raw data, try this command but replace the ICAO address / hex with a plane that is currently being received.
viewadsb --show-only 780A3E
You’ll probably need to Ctrl-C to stop it and then read some of the data.
There is also --filter-DF=17 you can add to only show a specific type.
I actually don’t know what it’s for. I only came across it because I was trying to generate as much write activity on the SD card as possible with readsb using the options parameters.
I missed the fact that, unlike all the others, a filename is required here.
Ultimately, I want to move everything that readsb writes to or reads from the SD card to an external drive (Samba share) to ensure the SD card has the longest possible lifespan. Because if it’s stuck in the mast with ZERO under the antenna, you won’t be able to access it easily…
graphs1090 by default is very disk friendly as well, even makes /var/cache/fontconfig a tmpfs to avoid frequent writes to that.
Only writes to disk every 24h.
So that interested readers don’t have to wade through the entire thread, here’s a final summary:
Basic idea:
Mount the SDR (here: FlightAware Stick Pro Plus) directly on/under the DIY antenna, including the minicomputer, directly in the mast. This eliminates cable losses and any necessary preamplifiers for long antenna leads.
Requirements:
The minicomputer must fit inside the mast. Therefore, only systems such as a Raspberry Zero and similarly slim derivatives are suitable.
Attempt #1:
For price and performance reasons, the first minicomputer was a BananaPI M2 Zero.
Ultimately operated with DietPI (I can now highly recommend it. All subsequent attempts are based on DietPI), it turned out that the BananaPI had a hardware problem with the USB interfaces. With two brand new BananaPI M2 Zeros, it was impossible to get the SDR to work! Other operating systems also produced the same result.
Attempt #2:
A RaspBerry PI ZERO 2 was used as the second minicomputer. This one worked right away.
Attempt #3
Another candidate is a RADXA ZERO 3W or 3E with a PoE HAT (Radxa). These also worked right away with DietPI and the SDR. Another advantage is the high performance of these clones, which were previously unknown to me. The CPU (Rockchip RK3566) runs at up to 1.8GHz and can also be overclocked to 2GHz (with appropriate cooling, of course); however, this is completely unnecessary here.
And another advantage that appeals to me is the ability to add a USB port to the header by re-soldering a few resistors. This eliminates the hassle and wasted space with angled USB-C connectors and potentially loose connections.
The clone also has an onboard eMMC. However, I haven’t yet figured out how to use it effectively with DietPI.
One final word/image on load:
Readsb is installed with additional options set, tar1090, Graph, TimeLaps, Samba, and NetData.
Despite all of this, the CPU runs at an average of 1.4GHz and an average load of 15%.
Why does the /run/readsb directory, which is set for various things in /etc/default/readsb, disappear as soon as the service is stopped?
I don’t understand the point of this…
Sorry, but that wasn’t my question…
Firstly, /run/… was only given as an example and has nothing to do with the core question. Secondly, it doesn’t answer the question of why the folder created at runtime is deleted when the service is stopped.
That’s not quite right. Even in a default installation, /run/readsb is created and used at least from the readsb.service
And apart from readsb, a lot of writing is done to the SD card, especially when using Timelapse.
The idea is essentially to offload all necessary and additional write operations to a network share. This, of course, also applies to the temporary files from the service call itself: --write-json /run/readsb --quiet
But since the service deletes this folder when it exits, it simply doesn’t work; the service on the PI has no rights to delete a share on the NAS…
Due to a lack of knowledge and terminology, I may have expressed myself a bit convolutedly or stupidly, but with your knowledge, it should be easy to understand what I’m getting at… If you want to…