Open ZeroChaos- opened 2 years ago
I have no idea what's wrong. Trunk Recorder refuses to load. Kneel before Stod!
Ugh, I found it. This is an incarnation of https://github.com/robotastic/trunk-recorder/issues/724
Min broken case
0123,464100000,,shortname,longname,whatever,bob
Min working case
0123,464100000,100 PL,shortname,longname,whatever,bob
Basically, if you don't have something in for tone, it fails. This is broken for a lot of reasons.
1.) Not every analog station uses tones 2.) channelFile is used by conventionalDMR and conventionalP25 which don't use tones.
I know the tone stuff is a no-op at this moment, but when that support is added, the digital modes will all break since the tone won't ever be detected.
ok - the easy fix for this is to improve the parsing of the Channels file so it can handle the tone field being empty.
A better fix is probably looking at how we handle digital conventional channels... to the point in #724 - maybe we don't really need a channels file for conventional digital.
I also ran into this, though my issue was that my CSV included the column headers as shown on https://github.com/robotastic/trunk-recorder/blob/master/docs/CONFIGURE.md#channelfile but actually there shouldn't be any headers in the CSV.
A better fix is probably looking at how we handle digital conventional channels... to the point in #724 - maybe we don't really need a channels file for conventional digital.
I can't speak for all conventional digital systems, but it is fairly common for conventional P25 deployments to use the default talkgroup (1) across everything. For instance, the only way to discriminate Police (TG 1) from Fire (TG 1) is by the frequency used. Using a channel.csv to assign metadata by frequency is a reasonable solution for both conventional and conventional p25.
As far as conventional DMR or other single-frequency trunks, I don't have any in my area, but it does sound like they operate in a way that would benefit more from a talkgroup.csv. Maybe depending on whether a talkgroupsFile or channelFile is specified, it can drive whether a system looks up metadata by TG or frequency?
Min test case json
Min test case channels.csv