X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-mini%2Fluasrc%2Fview%2Fmini%2Findex.htm;h=e00100c18b7317ee256b00e486ff94f0a855ee1a;hp=4ea58c2b8a294ebd94edb21e1b1c0c91035962b1;hb=be5c20195f71ff6187a31b4200ea1f23e1c9b13c;hpb=7cb0813e8559b7b062b29e39c245baa3d1718076 diff --git a/modules/admin-mini/luasrc/view/mini/index.htm b/modules/admin-mini/luasrc/view/mini/index.htm index 4ea58c2b8..e00100c18 100644 --- a/modules/admin-mini/luasrc/view/mini/index.htm +++ b/modules/admin-mini/luasrc/view/mini/index.htm @@ -13,12 +13,121 @@ $Id$ -%> <%+header%> +<%- +local system, model, memtotal = luci.sys.sysinfo() + +local uptime = luci.sys.uptime() +uptime = tonumber(uptime) + +local utdays = math.floor(uptime / 86400) +uptime = uptime % 86400 +local uthour = math.floor(uptime / 3600) +uptime = uptime % 3600 +local utmins = math.floor(uptime / 60) +local utsecs = uptime % 60 + +local iwconfig = luci.sys.wifi.getiwconfig() +-%>

<%:a_i_i_hello%>

<%:a_i_i_admin1%>

<%:a_i_i_admin2%>
<%:a_i_i_admin3%>

-

<%:a_i_i_admin4%>

-

<%:a_i_i_admin5%>

<%:a_i_i_admin6%>

-

<%:a_i_i_team%>

-<%+footer%> \ No newline at end of file +

<%:a_i_i_team%>

+
+
+
+

Systemstatus

+ + + + + + + + + + + + + + + + + + + + + + + + + +
<%:hostname%>:<%=luci.sys.hostname()%>
<%:system%>:<%=system%>
<%:m_i_processor%>:<%=model%>
<%:m_i_memory%>:<%=string.format("%.2f", tonumber(memtotal) / 1024)%> MiB
<%:m_i_systemtime%>:<%=os.date("%c")%>
<%:m_i_uptime%>:<%=string.format("%dd %d:%d:%.0f", utdays, uthour, utmins, utsecs)%>
+ + +
+

<%:m_n_local%>

+ + + + + + + + + +
<%:ipaddress%>:<%=luci.model.uci.get_statevalue("network", "lan", "ipaddr")%>
<%:netmask%>:<%=luci.model.uci.get_statevalue("network", "lan", "netmask")%>
+ + +
+

<%:m_n_inet%>

+ + + + + + + + + +
<%:ipaddress%>:<%=luci.model.uci.get_statevalue("network", "wan", "ipaddr")%>
<%:netmask%>:<%=luci.model.uci.get_statevalue("network", "wan", "netmask")%>
+ +<%- if next(iwconfig) then %> +

<%:wifi%>

+
+ + + + + + + + + + + + + +<%for k, v in pairs(iwconfig) do +%> + + + + + + + + + + + + + + + + +<%end%> +
<%:name%><%:protocol%><%:frequency%><%:power%><%:bitrate%><%:rts%><%:frag%><%:link%><%:signal%><%:noise%>
<%=k%><%=v[1]%><%=v.Frequency%><%=v["Tx-Power"]%><%=v["Bit Rate"]%><%=v["RTS thr"]%><%=v["Fragment thr"]%><%=v["Link Quality"]%><%=v["Signal level"]%><%=v["Noise level"]%>
ESSID: <%=v.ESSID%>BSSID: <%=(v.Cell or v["Access Point"])%>
+<%-end%> +<%+footer%>