diff --git a/templates/hblink_table.html b/templates/hblink_table.html index 0d6cc23..e12fdf7 100755 --- a/templates/hblink_table.html +++ b/templates/hblink_table.html @@ -2,28 +2,37 @@

Master Systems

- - + + + + {% for _master in _table['MASTERS'] %} - + {% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].iteritems() %} - + + + + + + + + {% endfor %} {% endfor %} diff --git a/web_tables.py b/web_tables.py index 7346e2e..84a17f1 100755 --- a/web_tables.py +++ b/web_tables.py @@ -130,6 +130,7 @@ def build_hblink_table(_config): _stats_table['MASTERS'][_hbp]['PEERS'][int_id(_client)] = {} _stats_table['MASTERS'][_hbp]['PEERS'][int_id(_client)]['CALLSIGN'] = _hbp_data['PEERS'][_client]['CALLSIGN'] _stats_table['MASTERS'][_hbp]['PEERS'][int_id(_client)]['TX_FREQ'] = _hbp_data['PEERS'][_client]['TX_FREQ'][:3] + '.' + _hbp_data['PEERS'][_client]['TX_FREQ'][3:7] + _stats_table['MASTERS'][_hbp]['PEERS'][int_id(_client)]['RX_FREQ'] = _hbp_data['PEERS'][_client]['RX_FREQ'][:3] + '.' + _hbp_data['PEERS'][_client]['RX_FREQ'][3:7] _stats_table['MASTERS'][_hbp]['PEERS'][int_id(_client)]['COLORCODE'] = _hbp_data['PEERS'][_client]['COLORCODE'] _slots = _hbp_data['PEERS'][_client]['SLOTS'] if (_slots <= '2'):
HBP System ID/Callsign/Location
IP:Port/KeepAlives
Frequency ColorCode
LinkedTS
Realtime Status (to come)
{{ _master}} {{ _master}}
{{ _client }}, {{ _cdata['CALLSIGN'] }}, {{ _cdata['LOCATION'] }}
{{ _cdata['IP'] }}:{{ _cdata['PORT'] }} / {{ _cdata['PINGS_RECEIVED'] }}
TX: {{ _cdata['RX_FREQ'] }}
RX: {{ _cdata['TX_FREQ] }}
TX: {{ _cdata['RX_FREQ'] }}
RX: {{ _cdata['TX_FREQ'] }}
{{ _cdata['COLORCODE'] }}
{{ _cdata['SLOTS'] }}
TS1
TS2