HBmonitor/templates/hblink_table.html

116 lines
6.3 KiB
HTML
Raw Normal View History

2018-06-22 10:34:14 -04:00
<h3>HBlink Status Tables:</h3>
<table style="width:100%; font: 10pt arial, sans-serif">
<colgroup>
2018-11-30 19:31:50 -05:00
<col style="width: 15%" />
2018-12-11 17:29:10 -05:00
<col style="width: 30%" />
<col style="width: 10%" />
<col style="width: 4%" />
<col style="width: 4%" />
<col style="width: 12%" />
2018-11-30 19:33:28 -05:00
<col style="width: 15%" />
2018-12-11 17:29:10 -05:00
<col style="width: 10%" />
2018-06-22 10:34:14 -04:00
</colgroup>
<tr style="width:100%; font: 10pt arial, sans-serif; background-color:#666666; color:white">
2018-12-07 21:09:25 -05:00
<th>Homebrew Protocol<br>Master Systems</th>
2018-12-05 10:14:34 -05:00
<th>ID/Callsign/Location<br>IP:Port/Time Connected</th>
<th>Frequency</th>
<th>ColorCode<br>LinkedTS</th>
2018-11-30 19:29:07 -05:00
<th>Slot</th>
<th>Call<br>Type</th>
<th>Source<br>Subscriber</th>
<th>Destination</th>
2018-06-22 10:34:14 -04:00
</tr>
2018-11-08 09:17:20 -05:00
{% for _master in _table['MASTERS'] %}
2018-06-22 10:34:14 -04:00
<tr>
2018-12-02 14:33:45 -05:00
<td style="font-weight:bold" rowspan="{{ (_table['MASTERS'][_master]['PEERS']|length * 2) +1 }}"> {{_master}}<br><div style="font: 8pt arial, sans-serif">{{_table['MASTERS'][_master]['REPEAT']}}</div></td>
2018-11-10 16:53:04 -05:00
</tr>
{% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].iteritems() %}
<tr>
2018-12-05 10:14:34 -05:00
<td rowspan="2">{{ _client }}, {{ _cdata['CALLSIGN'] }}, {{ _cdata['LOCATION'] }}<br><div style="font: 8pt arial, sans-serif">{{ _cdata['IP'] }}:{{ _cdata['PORT'] }} / {{ _cdata['CONNECTED'] }}</div></td>
2018-12-02 14:33:45 -05:00
<td rowspan="2">{{ _cdata['RX_FREQ'] }}<br>{{ _cdata['TX_FREQ'] }}</td>
<td rowspan="2">{{ _cdata['COLORCODE'] }}<br>{{ _cdata['SLOTS'] }}</td>
2018-11-30 15:31:07 -05:00
2018-12-07 21:09:25 -05:00
<td style="background-color:#{{ _cdata[1]['BGCOLOR'] }}; color:#{{ _cdata[1]['COLOR'] }}">TS1</td>
<td style="background-color:#{{ _cdata[1]['BGCOLOR'] }}; color:#{{ _cdata[1]['COLOR'] }}">{{ _cdata[1]['TYPE'] }}</td>
<td style="background-color:#{{ _cdata[1]['BGCOLOR'] }}; color:#{{ _cdata[1]['COLOR'] }}">{{ _cdata[1]['SUB'] }}</td>
<td style="background-color:#{{ _cdata[1]['BGCOLOR'] }}; color:#{{ _cdata[1]['COLOR'] }}">{{ _cdata[1]['DEST'] }}</td>
2018-11-30 15:31:07 -05:00
<tr>
2018-12-07 21:09:25 -05:00
<td style="background-color:#{{ _cdata[2]['BGCOLOR'] }}; color:#{{ _cdata[2]['COLOR'] }}">TS2</td>
<td style="background-color:#{{ _cdata[2]['BGCOLOR'] }}; color:#{{ _cdata[2]['COLOR'] }}">{{ _cdata[2]['TYPE'] }}</td>
<td style="background-color:#{{ _cdata[2]['BGCOLOR'] }}; color:#{{ _cdata[2]['COLOR'] }}">{{ _cdata[2]['SUB'] }}</td>
<td style="background-color:#{{ _cdata[2]['BGCOLOR'] }}; color:#{{ _cdata[2]['COLOR'] }}">{{ _cdata[2]['DEST'] }}</td>
2018-11-30 15:31:07 -05:00
</tr>
2018-11-10 16:53:04 -05:00
</tr>
{% endfor %}
2018-11-08 09:17:20 -05:00
{% endfor %}
2018-06-22 10:34:14 -04:00
</table>
2018-12-07 21:09:25 -05:00
<br>
2018-06-22 10:34:14 -04:00
<table style="width:100%; font: 10pt arial, sans-serif">
<colgroup>
<col style="width: 15%" />
2018-12-11 17:29:10 -05:00
<col style="width: 30%" />
<col style="width: 10%" />
<col style="width: 4%" />
<col style="width: 4%" />
<col style="width: 12%" />
2018-12-05 14:45:11 -05:00
<col style="width: 15%" />
2018-12-11 17:29:10 -05:00
<col style="width: 10%" />
2018-06-22 10:34:14 -04:00
</colgroup>
<tr style="width:100%; font: 10pt arial, sans-serif; background-color:#666666; color:white">
2018-12-07 21:09:25 -05:00
<th>Homebrew Protocol<br>Peer Systems</th>
2018-12-05 14:45:11 -05:00
<th>ID/Callsign/Location<br>Master IP:Port</th>
2018-12-11 17:29:10 -05:00
<th>Connected<br>TX/RX/Lost</th>
2018-12-05 14:45:11 -05:00
<th>LinkedTS</th>
<th>Slot</th>
<th>Call<br>Type</th>
<th>Source<br>Subscriber</th>
<th>Destination</th>
2018-06-22 10:34:14 -04:00
</tr>
2018-12-07 21:09:25 -05:00
{% for _peer, _pdata in _table['PEERS'].iteritems() %}
2018-06-22 10:34:14 -04:00
<tr>
2018-12-05 14:45:11 -05:00
<td style="font-weight:bold" rowspan="2"> {{ _peer}}</td>
<td rowspan="2">{{ _table['PEERS'][_peer]['RADIO_ID'] }}, {{_table['PEERS'][_peer]['CALLSIGN']}}, {{_table['PEERS'][_peer]['LOCATION']}}<br><div style="font: 8pt arial, sans-serif">Master: {{ _table['PEERS'][_peer]['MASTER_IP'] }}:{{ _table['PEERS'][_peer]['MASTER_PORT'] }}</div></td>
2018-12-06 13:19:10 -05:00
<td rowspan="2"; style={{ 'background-color:#00ff00' if _table['PEERS'][_peer]['STATS']['CONNECTION'] == 'YES' else ';background-color:#ff0000' }}>{{ _table['PEERS'][_peer]['STATS']['CONNECTED'] }}<br><div style="font: 8pt arial, sans-serif">{{ _table['PEERS'][_peer]['STATS']['PINGS_SENT'] }} / {{ _table['PEERS'][_peer]['STATS']['PINGS_ACKD'] }} / {{ _table['PEERS'][_peer]['STATS']['PINGS_SENT'] - _table['PEERS'][_peer]['STATS']['PINGS_ACKD'] }}</div></td>
2018-12-06 12:51:07 -05:00
<td rowspan="2"> {{ _table['PEERS'][_peer]['SLOTS'] }}</td>
2018-12-05 14:45:11 -05:00
2018-12-07 21:09:25 -05:00
<td style="background-color:#{{ _pdata[1]['BGCOLOR'] }}; color:#{{ _pdata[1]['COLOR'] }}">TS1</td>
<td style="background-color:#{{ _pdata[1]['BGCOLOR'] }}; color:#{{ _pdata[1]['COLOR'] }}">{{ _pdata[1]['TYPE'] }}</td>
<td style="background-color:#{{ _pdata[1]['BGCOLOR'] }}; color:#{{ _pdata[1]['COLOR'] }}">{{ _pdata[1]['SUB'] }}</td>
<td style="background-color:#{{ _pdata[1]['BGCOLOR'] }}; color:#{{ _pdata[1]['COLOR'] }}">{{ _pdata[1]['DEST'] }}</td>
2018-12-05 14:45:11 -05:00
<tr>
2018-12-07 21:09:25 -05:00
<td style="background-color:#{{ _pdata[2]['BGCOLOR'] }}; color:#{{ _pdata[2]['COLOR'] }}">TS2</td>
<td style="background-color:#{{ _pdata[2]['BGCOLOR'] }}; color:#{{ _pdata[2]['COLOR'] }}">{{ _pdata[2]['TYPE'] }}</td>
<td style="background-color:#{{ _pdata[2]['BGCOLOR'] }}; color:#{{ _pdata[2]['COLOR'] }}">{{ _pdata[2]['SUB'] }}</td>
<td style="background-color:#{{ _pdata[2]['BGCOLOR'] }}; color:#{{ _pdata[2]['COLOR'] }}">{{ _pdata[2]['DEST'] }}</td>
2018-12-05 14:45:11 -05:00
</tr>
2018-06-22 10:34:14 -04:00
</tr>
{% endfor %}
</table>
2018-12-07 21:09:25 -05:00
<br>
<table style="width:100%; font: 10pt arial, sans-serif">
<colgroup>
<col style="width: 10%" />
2018-12-07 21:09:25 -05:00
<col style="width: 20%" />
<col style="width: 70%" />
</colgroup>
<tr style="width:100%; font: 10pt arial, sans-serif; background-color:#666666; color:white">
2018-12-07 21:09:25 -05:00
<th>OpenBridge Systems</th>
2018-12-05 14:45:11 -05:00
<th>Network ID<br>Target IP:Port</th>
<th>Active Calls</th>
</tr>
{% for _openbridge in _table['OPENBRIDGES'] %}
<tr>
<td style="font-weight:bold"> {{ _openbridge}} </td>
2018-12-05 14:45:11 -05:00
<td>{{ _table['OPENBRIDGES'][_openbridge]['NETWORK_ID'] }}<br><div style="font: 8pt arial, sans-serif">{{ _table['OPENBRIDGES'][_openbridge]['TARGET_IP'] }}:{{ _table['OPENBRIDGES'][_openbridge]['TARGET_PORT'] }}</div></td>
2018-12-07 21:09:25 -05:00
<td>{% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] %}({{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] }} >> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][1] }}) {% endfor %}</td>
</tr>
{% endfor %}
</table>