-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rdio scanner auto-populate / Better TG info for plugins #635
Conversation
@chuot For your visibility since this affects the rdio-scanner plugin. I've been running this for the last several days, and it has successfully been a way to pull TG info from the csv and automatically populate the fields in Rdio-Scanner. ex:
|
I'm wondering if it would be useful to pass along the info for all patched talkgroups as well (rdio could then in theory display alpha info for everything in the patch). As an alternative to sending alpha tag and group info with each call, it may be possible to send all of that talkgroup info to rdio on startup using the setup_systems() function in the plugin. It could then update everything in the rdio gui at once in case any of the alpha tags have changed, rather than having to wait for a call on that talkgroup to come through to get the new info. Not sure if the rdio API would handle that as-is or not. |
While it can be done in the admin interface, I don't believe the rdio API presently has an endpoint to just upload a talkgroup.csv in bulk. For practical reasons, I would be somewhat against pushing an entire talkgroup set by default anyway. While the rdio interface is really nice, it can get bogged down with a large number of TGs, and it can be extremely cumbersome to use/manage when it has the full csv for a large system. A couple hundred unnecessary buttons on the mobile app, or a seemingly-endless dropdown menu can make the user experience pretty rough. Auto-populating talk groups as the calls come in at least guarantees that the TR instance is able to receive those TGs or rdio scanner may have recordings archived. I am not sure the state (or future) of rdio-scanner auto-updating existing TGs with updated info from TR. At the moment, it is only supposed to work when populating new TGs, or updating TGs with empty fields such as "" or "-". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you break this into 2 different PRs? The first to add additional Talkgroup fields to the Call_Info struct and the second to make changes to the Rdio plugin? I can approve the call_info ones, but I would want @chuot to review the changes to Rdio plugin
Sure! I'll split the PR as soon as I get a free moment. It would be great to get some feedback from the Rdio Scanner side, but core of this is just to connect the dots from information currently in the trunk recorder talkgroup.csv to the RS API endpoint which already accepts |
@taclane Sorry for being late. It's been a crazy week and things have piled up. First of all, I want to thank you for handling this issue. Everything looks clean and compliant with the Rdio Scanner API. Would the new call_info structure allow us to retrieve the number of errors and spikes that were missing from v4 (issue #602)? @robotastic Changes approved |
@robotastic It looks like chuot is okay with the changes to the plugin, but let me know if you'd still prefer I break this apart. @chuot This PR alone shouldn't be able to pull the spikes and error counts out of the |
@taclane Thanks a lot! |
@taclane Could you check out the |
@robotastic |
Great - I will merge that branch in! If everything looks good, then we can cancel this PR. |
The rdio scanner plugin has been attempting to auto-populate "Talkgroup Groups" using the variable
tg_group
. The plugin currently is only provided the Tallkgroup ID# and Alpha Text, and cannot access other talkgroup information that may have been read in from the csv.Complicating things,
tg_group
is presently creating downstream issues since it is a string variable assigned an integer without type conversion. This is resulting in non-printable characters and other garbage overwriting TG group assignments in Rdio-Scanner as seen below:While the simple fix is to correct the type error, or
tg_group = "";
, the optimum solution would be to let plugins have all the talkgroup data loaded from the CSV to pass on as needed.The call .json and other plugins could benefit by retaining this data as well.
The inability for plugins to have all the TG data was noted in the following rdio-scanner issues:
chuot/rdio-scanner#123
chuot/rdio-scanner#115
This PR works independently of #630.