Configuraiton Clean-up
This commit is contained in:
parent
7d09fd82ec
commit
6b4fa3b479
@ -40,7 +40,7 @@ except:
|
||||
try:
|
||||
for section in config.sections():
|
||||
if section == 'GLOBAL':
|
||||
pass
|
||||
PATH = config.get(section, 'PATH')
|
||||
|
||||
elif section == 'REPORTS':
|
||||
REPORTS = {
|
||||
@ -192,7 +192,7 @@ peer_ids = {}
|
||||
talkgroup_ids = {}
|
||||
|
||||
try:
|
||||
with open(curdir+'/subscriber_ids.csv', 'rU') as subscriber_ids_csv:
|
||||
with open(PATH+'subscriber_ids.csv', 'rU') as subscriber_ids_csv:
|
||||
subscribers = csv.reader(subscriber_ids_csv, dialect='excel', delimiter=',')
|
||||
for row in subscribers:
|
||||
subscriber_ids[int(row[1])] = (row[0])
|
||||
@ -200,7 +200,7 @@ except ImportError:
|
||||
logger.warning('subscriber_ids.csv not found: Subscriber aliases will not be available')
|
||||
|
||||
try:
|
||||
with open(curdir+'/peer_ids.csv', 'rU') as peer_ids_csv:
|
||||
with open(PATH+'peer_ids.csv', 'rU') as peer_ids_csv:
|
||||
peers = csv.reader(peer_ids_csv, dialect='excel', delimiter=',')
|
||||
for row in peers:
|
||||
peer_ids[int(row[1])] = (row[0])
|
||||
@ -208,7 +208,7 @@ except ImportError:
|
||||
logger.warning('peer_ids.csv not found: Peer aliases will not be available')
|
||||
|
||||
try:
|
||||
with open(curdir+'/talkgroup_ids.csv', 'rU') as talkgroup_ids_csv:
|
||||
with open(PATH+'talkgroup_ids.csv', 'rU') as talkgroup_ids_csv:
|
||||
talkgroups = csv.reader(talkgroup_ids_csv, dialect='excel', delimiter=',')
|
||||
for row in talkgroups:
|
||||
talkgroup_ids[int(row[1])] = (row[0])
|
||||
|
@ -5,6 +5,7 @@
|
||||
# There are no global options at this time
|
||||
#
|
||||
[GLOBAL]
|
||||
PATH: /absolute/path/to/DMRlink
|
||||
|
||||
|
||||
# STDOUT REPORTING CONFIG
|
||||
|
3
rcm.py
3
rcm.py
@ -109,7 +109,8 @@ class rcmIPSC(IPSC):
|
||||
pass
|
||||
|
||||
def xcmp_xnl(self, _network, _data):
|
||||
print('({}) XCMP/XNL Packet Received From: {}' .format(_network, h(_data)))
|
||||
#print('({}) XCMP/XNL Packet Received From: {}' .format(_network, h(_data)))
|
||||
pass
|
||||
|
||||
def group_voice(self, _network, _src_sub, _dst_sub, _ts, _end, _peerid, _data):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user