summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/view/public_status/index.htm
blob: aa56834ba14f34326555e0f421afddd0b574794b (plain)
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
91
92
93
94
95
96
97
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

$Id$

-%>
<%+header%>
<h1><%:status%></h1>
<h2><%:system%></h2>

<br />
<table cellspacing="0" cellpadding="6" class="smalltext">
<tr>
<th><%:system_type%>:</th>
<td><%=system%></td>
</tr>
<tr>
<th><%:cpu%>:</th>
<td><%=model%></td>
</tr>
<tr>
<th><%:ram%>:<br /><small><%:total%>/<%:cached%>/<%:buffers%>/<%:free%></small></th>
<td><%=memtotal%> / <%=memcached%> / <%=membuffers%> / <%=memfree%> KB<br />
<div id="memorybar">
	<div id="memfree" style="width:<%=perc_memfree%>%"></div> 
	<div id="membuffers" style="width:<%=perc_membuffers%>%"></div>
	<div id="memcached" style="width:<%=perc_memcached%>%"></div>
</div>
</td>
</tr>
</table>
<br /><br />

<h2><%:wifi%></h2>
<br />
<table cellspacing="0" cellpadding="6" class="smalltext">
<tr>
<th><%:name%></th>
<th><%:protocol%></th>
<th><%:frequency%></th>
<th><%:power%></th>
<th><%:bitrate%></th>
<th><%:rts%></th>
<th><%:frag%></th>
<th><%:link%></th>
<th><%:signal%></th>
<th><%:noise%></th>
</tr>
<%for k, v in pairs(luci.sys.wifi.getiwconfig()) do
%>
<tr>
<td rowspan="2"><%=k%></td>
<td><%=v[1]%></td>
<td><%=v.Frequency%></td>
<td><%=v["Tx-Power"]%></td>
<td><%=v["Bit Rate"]%></td>
<td><%=v["RTS thr"]%></td>
<td><%=v["Fragment thr"]%></td>
<td><%=v["Link Quality"]%></td>
<td><%=v["Signal level"]%></td>
<td><%=v["Noise level"]%></td>
</tr>
<tr>
<td colspan="4"><strong>ESSID: </strong><%=v.ESSID%></td>
<td colspan="5"><strong>BSSID: </strong><%=(v.Cell or v["Access Point"])%></td>
</tr>
<%end%>
</table>
<br />
<br />
<h2><%:defroutes%></h2>
<br />
<table cellspacing="0" cellpadding="6" class="smalltext">
<tr>
<th><%:gateway%></th>
<th><%:metric%></th>
<th><%:iface%></th>
</tr>
<%
for i, rt in pairs(routes) do
%>
<tr>
<td><%=luci.ip.Hex(rt.Gateway, 32):string()%></th>
<td><%=rt.Metric%></th>
<td><%=rt.Iface%></th>
</tr>
<% end %>
</table>
<%+footer%>