OP25 Boatbod TG priority

jschmall

Member
Premium Subscriber
Joined
Jul 15, 2017
Messages
80
Location
Anderson, CA
I have a question regarding the priority numbering for TG's. How granular can the numbering be? Does the numbering system have to be 1, 2, 3, 4, etc or can it be 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, etc.. I'm hoping to create sub-levels of priorities within blocks of TG's.

I notice that when I specify numbers with decimals, all talkgroups assume a priority of (3) in stderr.2.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,375
Location
Talbot Co, MD
I have a question regarding the priority numbering for TG's. How granular can the numbering be? Does the numbering system have to be 1, 2, 3, 4, etc or can it be 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, etc.. I'm hoping to create sub-levels of priorities within blocks of TG's.

I notice that when I specify numbers with decimals, all talkgroups assume a priority of (3) in stderr.2.
Does this help?
Code:
                    if len(row) >= 3:
                        try:
                            prio = int(row[2])
                        except ValueError as ex:
                            prio = TGID_DEFAULT_PRIO
                    else:
                        prio = TGID_DEFAULT_PRIO
So as you can see, the priority has to be an integer, but there is no limit on the range, so you could use negative numbers, set a priority value on every tgid, or change the default value. (The latter would require editing the tk_p25.py module, so probably less desirable).
 

jschmall

Member
Premium Subscriber
Joined
Jul 15, 2017
Messages
80
Location
Anderson, CA
Does this help?
Code:
                    if len(row) >= 3:
                        try:
                            prio = int(row[2])
                        except ValueError as ex:
                            prio = TGID_DEFAULT_PRIO
                    else:
                        prio = TGID_DEFAULT_PRIO
So as you can see, the priority has to be an integer, but there is no limit on the range, so you could use negative numbers, set a priority value on every tgid, or change the default value. (The latter would require editing the tk_p25.py module, so probably less desirable).
Ok that makes sense. I will move from decimals to whole values. Doesn’t really matter how I do it in the end as every TG will have a priority set. Thanks boatbod.
 
Top