EliasOenal / multimon-ng

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

Group message per line #153

Open HobbyKonijn opened 4 years ago

HobbyKonijn commented 4 years ago

I have a question, is it possible to print grouped messages per line. FLEX|2020-05-14 16:46:50|1600/2/K/A|11.100|002029568 000120999 000120178|ALN|A1 13178 Rit 41339 Amstelveen Ds. O.G. Heldringstraat 1185CL FLEX|2020-05-14 16:47:07|1600/2/K/A|11.109|002029568 000108999 000104999 000104761 000104760 000104759 000104758 000104528 000103566 000103550|ALN|Herhaalde alarmering P 2 Herbez./kazern. 11-Kazerne Purmerend Gorslaan Purmerend FLEX|2020-05-14 16:47:29|1600/2/K/A|11.121|001523180|ALN|B1 Salvialaan OEGSTG : 16180 FLEX|2020-05-14 16:47:33|1600/2/K/A|11.123|000726105|ALN|B1 Bunschoten-Spakenburg 47831

Like: FLEX|2020-05-14 16:46:50|1600/2/K/A|11.100|002029568|ALN|A1 13178 Rit 41339 Amstelveen Ds. O.G. Heldringstraat 1185CL FLEX|2020-05-14 16:46:50|1600/2/K/A|11.100|000120999|ALN|A1 13178 Rit 41339 Amstelveen Ds. O.G. Heldringstraat 1185CL FLEX|2020-05-14 16:46:50|1600/2/K/A|11.100|000120178|ALN|A1 13178 Rit 41339 Amstelveen Ds. O.G. Heldringstraat 1185CL

When I use Pagermon I will only see the group id. My preferences is to see each individual per line, because now with pagermon i'm missing like a Lifeliner when it's broadcasted in a groupcall.

If I look at the code like line: demod_flex.c if ((flex->Decode.capcode >= 2029568) && (flex->Decode.capcode <= 2029583)) { flex_groupmessage = 1; I see the group handling but I got no clue how to get it in individual lines.

HobbyKonijn commented 4 years ago

Found already solution, used lined above Bierviltje and added an argument like if perline it will do the old code above new solution of Bierviltje and in not it use the new code. Now I get each code in a new line.

woestric commented 4 years ago

Found already solution, used lined above Bierviltje and added an argument like if perline it will do the old code above new solution of Bierviltje and in not it use the new code. Now I get each code in a new line.

Hi HobbyKonijn,

I am experiencing the same problem since upgrading pagermon with image, How and where did you eactly solve it. DId you make your own copy?

It would be wonderfull if pagermon could anticipate on the change but that will be difficult. Hope to hear from you.

HobbyKonijn commented 4 years ago

@woestric Used following script to print per line instead of groupcalls:

demod_flex.c (individual).txt

Replace old demod_flex.c and compile mulimon_ng use cmake to recompile:

If you run now pagermon, you should get: 27-06-2020 10:40:10: 001420999: A2 (DIA: ja) AMBU 17122 Mijnsherenlaan 3081GA Rotterdam ROTTDM bon 78074 27-06-2020 10:40:10: 001420022: A2 (DIA: ja) AMBU 17122 Mijnsherenlaan 3081GA Rotterdam ROTTDM bon 78074 27-06-2020 10:40:11: 002029568: A2 (DIA: ja) AMBU 17122 Mijnsherenlaan 3081GA Rotterdam ROTTDM bon 78074 Each line is printed instead of 1 group call and 002029568 is the group indicator.

woestric commented 4 years ago

Thnx!

Zanoroy commented 3 years ago

@HobbyKonijn I have implemented the changes into my version located at https://github.com/Zanoroy/multimon-ng. Any chance you could download the update and test it. If you are happy with the results I will get a Pull Request made to move the update into the base master version here.

You will need to change the GroupCalls value to 0 within demod_flex.c before compiling because the default is to output on a single line.