/
client.html
93 lines (78 loc) · 1.81 KB
/
client.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{% include header.html %}
<body>
<div class="container">
<h1 id="wifi">WiFi Client {{ client['macaddr'] }} </h1>
<h2>{{ timestamp }} </h2>
<table class="table table-striped">
<thead>
</thead>
<tbody>
<tr>
<td>Connected</td>
<td>{{ client['connected_at'] }}</td>
</tr>
<tr>
<td>Channel Width</td>
<td>{{ client['chwidth'] }} </td>
</tr>
<tr>
<td>Station Mode</td>
<td>{{ client.get('stamode', "??") }} </td>
</tr>
<tr>
<td>Vendor</td>
<td>{{ client['vendor'] }}</td>
</tr>
<tr>
<td>TX Packets</td>
<td>{{ client['tx_packets'] }}</td>
</tr>
<tr>
<td>TX Bytes</td>
<td>{{ client['tx_bytes'] }}</td>
</tr>
<tr>
<td>TX Error</td>
<td>{{ client['tx_discard'] + client['tx_failed'] }}</td>
</tr>
<tr>
<td>Retries</td>
<td>{{ client['retries'] }}</td>
</tr>
<tr>
<td>RX Packets</td>
<td>{{ client['rx_packets'] }}</td>
</tr>
<tr>
<td>RX Bytes</td>
<td>{{ client['rx_bytes'] }}</td>
</tr>
<tr>
<td>RX Err</td>
<td>{{ client['rx_err'] }}</td>
</tr>
</tbody>
</table>
<div id="tx_packets" class="graph">
</div>
<div id="tx_bytes" class="graph">
</div>
<div id="rx_packets" class="graph">
</div>
<div id="rx_bytes" class="graph">
</div>
<div id="rx_rssi" class="graph">
</div>
<div id="retries" class="graph">
</div>
<div id="tx_rate" class="graph">
</div>
<div id="rx_rate" class="graph">
</div>
</div> <!-- end container !-->
<script src="/js/d3.js"></script>
<script src="/js/graph_date.js"></script>
<script src="/js/graph_scatter.js"></script>
<script src="/js/client.js"></script>
</body>
</html>