Update web_tables.py

This commit is contained in:
Waldek 2019-09-14 21:07:38 +02:00 committed by GitHub
parent 4ccf00a0b1
commit 61527e4ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,7 +511,7 @@ def process_message(_message):
## log only to file if system is NOT OpenBridge event (not logging open bridge system, name depends on your OB definitions) AND transmit time is LONGER as 2sec (make sense for very short transmits) ## log only to file if system is NOT OpenBridge event (not logging open bridge system, name depends on your OB definitions) AND transmit time is LONGER as 2sec (make sense for very short transmits)
#if int(float(p[9])) > 2: #if int(float(p[9])) > 2:
# log_lh_message = '{},{},{},{},{},{},{},TS{},TG{},{},{},{}'.format(_now, p[9], p[0], p[1], p[3], p[5], alias_call(int(p[5]), subscriber_ids), p[7], p[8],alias_tgid(int(p[8]),talkgroup_ids),p[6], alias_short(int(p[6]), subscriber_ids)) # log_lh_message = '{},{},{},{},{},{},{},TS{},TG{},{},{},{}'.format(_now, p[9], p[0], p[1], p[3], p[5], alias_call(int(p[5]), subscriber_ids), p[7], p[8],alias_tgid(int(p[8]),talkgroup_ids),p[6], alias_short(int(p[6]), subscriber_ids))
# lh_logfile = open('/opt/HBmonitor/lastheard.log', "a") # lh_logfile = open('/opt/HBmonitor/log/lastheard.log', "a")
# lh_logfile.write(log_lh_message + '\n') # lh_logfile.write(log_lh_message + '\n')
# lh_logfile.close() # lh_logfile.close()
elif p[1] == 'START': elif p[1] == 'START':