From fcb731e5d4bab06afceb38958b8da65b53aa6cfc Mon Sep 17 00:00:00 2001 From: Waldek Date: Tue, 17 Sep 2019 21:12:27 +0200 Subject: [PATCH] Add files via upload New version --- templates/bridge_table.html | 40 +++++++++++++++++ templates/hblink_table.html | 88 +++++++++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 templates/bridge_table.html create mode 100644 templates/hblink_table.html diff --git a/templates/bridge_table.html b/templates/bridge_table.html new file mode 100644 index 0000000..ac0132c --- /dev/null +++ b/templates/bridge_table.html @@ -0,0 +1,40 @@ +
+ .: Bridge status :.  +{% for _bridge, _bridge_data in _table.items() %} + + + + + + + + + + + +

{{ _bridge }}

+ + + + + + + + + + + {% for system, _system_data in _table[_bridge].items() %} + + + + + + + + + + + {% endfor %} +
SystemSlotTG IDStatusTimeoutTimeout ActionConnect TG IDsDisconnect TG IDs
{{ system }}{{ _table[_bridge][system]['TS'] }}{{ _table[_bridge][system]['TGID'] }}{{ _table[_bridge][system]['ACTIVE'] }}{{ _table[_bridge][system]['EXP_TIME'] }}{{ _table[_bridge][system]['TO_ACTION'] }}{{ _table[_bridge][system]['TRIG_ON'] }}{{ _table[_bridge][system]['TRIG_OFF'] }}
+{% endfor %} +
diff --git a/templates/hblink_table.html b/templates/hblink_table.html new file mode 100644 index 0000000..3149060 --- /dev/null +++ b/templates/hblink_table.html @@ -0,0 +1,88 @@ +{% include 'lastheard.html' %} +
+ .: HBlink status :.  + + + + + + + + + + + {% for _master in _table['MASTERS'] %} + + + + + {% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].items() %} + + + + + + + + + + + + + + {% endfor %} +{% endfor %} +
HB Protoxol
Master Systems
Callsign (DMR Id)
Location
Time ConnectedSlotSource SubscriberDestination
{{_master}}
{{_table['MASTERS'][_master]['REPEAT']}}
{{ _cdata['CALLSIGN'] }} + (Id: {{ _client }}) +    Hotspot/RPT: {{ _cdata['SLOTS'] }} +
   RX: {{ _cdata['RX_FREQ'] }} +
   TX: {{ _cdata['TX_FREQ'] }} +
   Soft_Ver: {{_cdata['SOFTWARE_ID'] }} +
   Hardware: {{_cdata['PACKAGE_ID'] }}
+
{{_cdata['LOCATION']}}
{{ _cdata['CONNECTED'] }}TS1{{ _cdata[1]['SUB'] }}{{ _cdata[1]['DEST'] }}
TS2{{ _cdata[2]['SUB'] }}{{ _cdata[2]['DEST'] }}
+
+ + + + + + + + + + {% for _peer, _pdata in _table['PEERS'].items() %} + + + + + + + + + + + + + + + {% endfor %} +
HB Protocol
Peer Systems
Callsign (DMR Id)
Master IP:Port
Connected
TX/RX/Lost
SlotSource SubscriberDestination
{{ _peer}}
Mode: {{ _table['PEERS'][_peer]['MODE'] }}
{{_table['PEERS'][_peer]['CALLSIGN']}}(Id: {{ _table['PEERS'][_peer]['RADIO_ID'] }})   Linked Time Slot: {{ _table['PEERS'][_peer]['SLOTS'] }}

Master: {{ _table['PEERS'][_peer]['MASTER_IP'] }}:{{ _table['PEERS'][_peer]['MASTER_PORT'] }}
{{ _table['PEERS'][_peer]['STATS']['CONNECTED'] }}
{{ _table['PEERS'][_peer]['STATS']['PINGS_SENT'] }} / {{ _table['PEERS'][_peer]['STATS']['PINGS_ACKD'] }} / {{ _table['PEERS'][_peer]['STATS']['PINGS_SENT'] - _table['PEERS'][_peer]['STATS']['PINGS_ACKD'] }}
TS1{{ _pdata[1]['SUB'] }}{{ _pdata[1]['DEST'] }}
TS2{{ _pdata[2]['SUB'] }}{{ _pdata[2]['DEST'] }}
+ +
+ + + + + + + + {% for _openbridge in _table['OPENBRIDGES'] %} + + + + + + + {% endfor %} +
OpenBridge SystemsNetwork IDActive Calls
{{ _openbridge}}
Net ID: {{ _table['OPENBRIDGES'][_openbridge]['NETWORK_ID'] }}
{% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] %}({{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] }} | {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][1] }} >> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][2] }}) {% endfor %}
+