Skip to content

Instantly share code, notes, and snippets.

@errzey
Created August 10, 2016 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save errzey/7a0d82de1b4fe94af27f793a2d2f8ca2 to your computer and use it in GitHub Desktop.
Save errzey/7a0d82de1b4fe94af27f793a2d2f8ca2 to your computer and use it in GitHub Desktop.
East Bay Regional Communications System TG UID generator. (Moto P25 PhaseII)
#!/usr/bin/env python
if __name__ == '__main__':
stuff = {
'Paramedics Plus' : [(3030000, 3030999)],
'Alameda Co SO Consoles' : [(3011000, 3011999)],
'Alameda Co FD Consoles' : [(3013000, 3013999)],
'Alameda Co FD' : [(3035000, 3035999)],
'Alameda PD Console' : [(3088100, 3088199)],
'Alameda FD' : [(3096000, 3096999)],
'Alameda PD' : [(3098000, 3098999)],
'Alameda Co SO' : [
(3067000, 3067999),
(3068000, 3068999),
(3069000, 3069999)
],
'Albany PD/FD Consoles' : [(3100000, 3100009)],
'Albany FD' : [(3109000, 3109999)],
'Albany PD' : [(3111000, 3111999)],
'Berkeley PD/FD Consoles' : [(3113000, 3113099)],
'Berkeley FD' : [(3122000, 3122999)],
'Berkeley PD' : [(3124000, 3124999)],
'Dublin PD - ACSO' : [(3137000, 3137999)],
'Emeryville PD Consoles' : [(3143000, 3143009)],
'Emeryville PD' : [(3150000, 3150999)],
'Fremont PD Consoles' : [(3153000, 3153009)],
'Fremont FD' : [(3161000, 3161999)],
'Fremont PD' : [(3163000, 3163999)],
'Hayward Fire' : [(3174000, 3174999)],
'Livermore PD Consoles ' : [(3178000, 3178099)],
'Livermore Parks and Rec' : [(3183000, 3183099)],
'Livermore/Pleasanton FD' : [(3187000, 3187999)],
'Livermore PD' : [(3189000, 3189999)],
'Newark PD Consoles' : [(3191100, 3191199)],
'Newark PD' : [(3202000, 3202999)],
'Oakland PD Consoles' : [(3204000, 3204999)],
'Oakland PD' : [
(3214000, 3214999),
(3215000, 3215999),
(3216000, 3216999),
(3217000, 3217999)
],
'Poss Oakland PD' : [(3222000, 3222999)],
'Piedmont Fire' : [(3235000, 3235999)],
'Piedmont PD' : [(3237000, 3237999)],
'Pleasanton PD Consoles' : [(3239000, 3239099)],
'Pleasanton PD' : [(3250000, 3250999)],
'San Leandro PD Consoles' : [(3253100, 3253199)],
'San Leandro PD' : [(3263000, 3263999)],
'Union City PD Consoles' : [(3265000, 3265099)],
'Union City PD' : [(3276000, 3276999)],
'EBR Parks Consoles' : [(3278000, 3278999)],
'EBR Parks District' : [(3283000, 3283999)],
'UC Berkeley Consoles' : [(3286000, 3286009)],
'UC Berkeley' : [
(3286300, 3286399),
(3292000, 3292999),
(3293000, 3293999)
],
'Contra Costa Co SO Consoles' : [(4010000, 4010099)],
'CONFIRE Consoles' : [(4012000, 4012999)],
'Contra Costa Co SO - Bay Station (West County)' : [(4077000, 4077099)],
'Contra Costa Co SO -' : [
(4077100, 4077199),
(4077200, 4077299),
(4077600, 4077699),
(4077700, 4077799)
],
'Contra Costa Co SO - Delta Station (East County)' : [(4077300, 4077399)],
'Contra Costa Co SO - Valley Station (Central County)' : [(4077400, 4077499)],
'Contra Costa Co SO - West County Detention Facility' : [(4077500, 4077599)],
'Brentwood PD' : [(4119000, 4119999)],
'Clayton PD' : [(4131000, 4131999)],
'Concord PD Console' : [(4133000, 4133999)],
'Concord PD' : [(4143000, 4143999)],
'El Cerrito PD/Kensington PD' : [(4169000, 4169999)],
'El Cerrito PW' : [(4170000, 4170099)],
'Hercules PD' : [(4182000, 4182999)],
'Lafayette PD - CCSO' : [(4194000, 4194999)],
'Martinez PD Consoles' : [(4196000, 4196009)],
'Martinez PD' : [(4206000, 4206999)],
'Moraga PD' : [(4219000, 4219999)],
'Oakley PD' : [(4231000, 4231999)],
'Orinda PD - CCCSO' : [(4243000, 4243999)],
'Pinole/Hercules Consoles' : [(4245000, 4245999)],
'Pinole PD' : [(4256000, 4256999)],
'Pittsburg PD' : [(4268000, 4268999)],
'Pleasant Hill PD Consoles' : [(4270000, 4270999)],
'Pleasant Hill PD' : [(4280000, 4280999)],
'Richmond PD/FD Consoles' : [(4282000, 4282999)],
'Richmond FD' : [(4296000, 4296999)],
'Richmond PD & FD' : [(4300000, 4300999)],
'San Pablo PD' : [(4314000, 4314999)],
'San Ramon Valley FPD Consoles' : [(4319000, 4319999)],
'San Ramon Valley FPD' : [(4325000, 4325999)],
'San Ramon PD' : [(4327000, 4327999)],
'Walnut Creek PD Consoles' : [(4329000, 4329999)],
'Walnut Creek PD' : [(4339000, 4339999)]
}
for title, uids in stuff.items():
for uid in uids:
for i in range(uid[0], uid[1]):
# output in any format you want, just print it
# here. This is currently in ProScan format.
print "%d LOGTEXT=%s SITE=*" % (i, title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment