mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-11-25 17:28:47 -05:00
Update web_tables.py
Add color to text TX/RX in OpenBridge table
This commit is contained in:
parent
3b9b2bc524
commit
c74abc5028
@ -80,6 +80,7 @@ LOGBUF = deque(100*[''], 100)
|
|||||||
RED = 'ff6347'
|
RED = 'ff6347'
|
||||||
BLACK = '000000'
|
BLACK = '000000'
|
||||||
GREEN = '90EE90'
|
GREEN = '90EE90'
|
||||||
|
GREEN2 = '008000'
|
||||||
BLUE = '0000ff'
|
BLUE = '0000ff'
|
||||||
ORANGE = 'ff8000'
|
ORANGE = 'ff8000'
|
||||||
WHITE = 'ffffff'
|
WHITE = 'ffffff'
|
||||||
@ -425,6 +426,10 @@ def rts_update(p):
|
|||||||
CTABLE['MASTERS'][system]['PEERS'][peer][timeSlot]['DEST'] = ''
|
CTABLE['MASTERS'][system]['PEERS'][peer][timeSlot]['DEST'] = ''
|
||||||
|
|
||||||
if system in CTABLE['OPENBRIDGES']:
|
if system in CTABLE['OPENBRIDGES']:
|
||||||
|
if trx == 'RX':
|
||||||
|
CTABLE['OPENBRIDGES'][system]['COLOR'] = GREEN2
|
||||||
|
if trx == 'TX':
|
||||||
|
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))
|
||||||
if action == 'END':
|
if action == 'END':
|
||||||
|
Loading…
Reference in New Issue
Block a user