If the RPi is shut down or restarted while it's writing data on the jsonl files, the line might be only partially written, and the first line after reboot will be concatenated to form an invalid line. This is more likely to happen when the data is collected more often (e.g. every second).
Recovering from this is not difficult, since it only affects individual lines and detecting and discarding the truncated line is trivial, however it would be better to prevent this.
If the RPi is shut down or restarted while it's writing data on the
jsonlfiles, the line might be only partially written, and the first line after reboot will be concatenated to form an invalid line. This is more likely to happen when the data is collected more often (e.g. every second).Recovering from this is not difficult, since it only affects individual lines and detecting and discarding the truncated line is trivial, however it would be better to prevent this.