EliasOenal / multimon-ng

GNU General Public License v2.0
925 stars 206 forks source link

FLEX: Suppress timestamp by passing `--flex-no-ts` #225

Closed ramonsmits closed 6 days ago

ramonsmits commented 6 days ago

Suppress timestamp by passing the argument --flex-no-ts

  1. Many users incorrectly assume the timestamp originates from the FLEX message but its the system time. The value is useless when for example passing a recording.
  2. Suppressing the timestamp makes it easier to compare output of this and future versions based on the same input file.

Default:

FLEX|2024-09-12 16:37:13|1600/2/K/A|03.011|002029575 000120111 000120999|ALN|A2 13111 Tweede Oosterparkstraat 1092 Amsterdam 82536

With --flex-no-ts

FLEX|1600/2/K/A|03.011|002029575 000120111 000120999|ALN|A2 13111 Tweede Oosterparkstraat 1092 Amsterdam 82536

With --flex-no-ts --timestamp

2024-09-12 18:40:16: FLEX|1600/2/K/A|03.011|002029575 000120111 000120999|ALN|A2 13111 Tweede Oosterparkstraat 1092 Amsterdam 82536
ramonsmits commented 6 days ago

@EliasOenal Could you consider merging this? It is super useful for diagnosing version differences. If this is merged I can rebase the following PRs (conflict in the help text due to indentation) and make them ready for review:

ramonsmits commented 6 days ago

After testing it seems there are multiple places that write a timestamp. Reverted to draft to included these too.