mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-12-23 01:55:37 -05:00
Update web_tables.py
This commit is contained in:
parent
ececdc379c
commit
530fd6097b
@ -183,11 +183,9 @@ def add_hb_peer(_peer_conf, _ctable_loc, _peer):
|
|||||||
if cip == 44:
|
if cip == 44:
|
||||||
addressIP="HamNET"
|
addressIP="HamNET"
|
||||||
_ctable_peer['SCOLOR'] = "green"
|
_ctable_peer['SCOLOR'] = "green"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
addressIP="Internet"
|
addressIP="Internet"
|
||||||
_ctable_peer['SCOLOR'] = "brown"
|
_ctable_peer['SCOLOR'] = "brown"
|
||||||
|
|
||||||
# Simple translation items
|
# Simple translation items
|
||||||
_ctable_peer['COLORCODE'] = int(_peer_conf['COLORCODE'])
|
_ctable_peer['COLORCODE'] = int(_peer_conf['COLORCODE'])
|
||||||
_ctable_peer['CALLSIGN'] = _peer_conf['CALLSIGN']
|
_ctable_peer['CALLSIGN'] = _peer_conf['CALLSIGN']
|
||||||
@ -439,7 +437,7 @@ def rts_update(p):
|
|||||||
if system in CTABLE['OPENBRIDGES']:
|
if system in CTABLE['OPENBRIDGES']:
|
||||||
if trx == 'RX':
|
if trx == 'RX':
|
||||||
CTABLE['OPENBRIDGES'][system]['COLOR'] = GREEN2
|
CTABLE['OPENBRIDGES'][system]['COLOR'] = GREEN2
|
||||||
if trx == 'TX':
|
else:
|
||||||
CTABLE['OPENBRIDGES'][system]['COLOR'] = RED
|
CTABLE['OPENBRIDGES'][system]['COLOR'] = RED
|
||||||
if action == 'START':
|
if action == 'START':
|
||||||
CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId] = (trx, alias_call(sourceSub, subscriber_ids),'TG{}'.format(destination))
|
CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId] = (trx, alias_call(sourceSub, subscriber_ids),'TG{}'.format(destination))
|
||||||
@ -447,9 +445,6 @@ def rts_update(p):
|
|||||||
if streamId in CTABLE['OPENBRIDGES'][system]['STREAMS']:
|
if streamId in CTABLE['OPENBRIDGES'][system]['STREAMS']:
|
||||||
del CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId]
|
del CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if system in CTABLE['PEERS']:
|
if system in CTABLE['PEERS']:
|
||||||
bgcolor = GREEN
|
bgcolor = GREEN
|
||||||
if trx == 'RX':
|
if trx == 'RX':
|
||||||
|
Loading…
Reference in New Issue
Block a user