gluon-status-page: add wireless client count (#2085)

This adds the wireless client count for 2.4GHz and 5 GHz radios to the
status page. Previously, only the total client count advertised by
the mesh protocol was visible.
This commit is contained in:
David Bauer 2020-08-09 00:34:23 +02:00 committed by GitHub
parent 96f1547d0f
commit 64f4095c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 7 deletions

View File

@ -142,7 +142,13 @@
<tr><th><%:RAM%></th><td><%= statistics('memory', 'memory') %></td></tr>
<tr><th><%:Filesystem%></th><td><%= statistics('rootfs_usage', 'percent') %></td></tr>
<tr><th><%:Gateway%></th><td><%= statistics('gateway') %><br /><%= statistics('gateway_nexthop', 'neighbour') %></td></tr>
<tr><th><%:Clients%></th><td><%= statistics('clients/total') %></td></tr>
</table>
<h3><%:Clients%></h3>
<table>
<tr><th><%:Total%></th><td><%= statistics('clients/total') %></td></tr>
<tr><th><%:Wireless 2.4 GHz%></th><td><%= statistics('clients/wifi24') %></td></tr>
<tr><th><%:Wireless 5 GHz%></th><td><%= statistics('clients/wifi5') %></td></tr>
</table>
<h3><%:Traffic%></h3>

View File

@ -55,9 +55,6 @@ msgstr "Weitergeleitet"
msgid "Gateway"
msgstr "Gateway"
msgid "Gateway Nexthop"
msgstr "Gateway Nexthop"
msgid "IP address"
msgstr "IP-Adresse"
@ -106,6 +103,9 @@ msgstr "Site"
msgid "Status"
msgstr "Status"
msgid "Total"
msgstr "Gesamt"
msgid "Traffic"
msgstr ""
@ -115,6 +115,12 @@ msgstr "Gesendet"
msgid "Uptime"
msgstr "Laufzeit"
msgid "Wireless 2.4 GHz"
msgstr ""
msgid "Wireless 5 GHz"
msgstr ""
msgid "connected"
msgstr "verbunden"
@ -126,3 +132,6 @@ msgstr "aktiviert"
msgid "not connected"
msgstr "nicht verbunden"
#~ msgid "Gateway Nexthop"
#~ msgstr "Gateway Nexthop"

View File

@ -46,9 +46,6 @@ msgstr ""
msgid "Gateway"
msgstr ""
msgid "Gateway Nexthop"
msgstr ""
msgid "IP address"
msgstr ""
@ -97,6 +94,9 @@ msgstr ""
msgid "Status"
msgstr ""
msgid "Total"
msgstr ""
msgid "Traffic"
msgstr ""
@ -106,6 +106,12 @@ msgstr ""
msgid "Uptime"
msgstr ""
msgid "Wireless 2.4 GHz"
msgstr ""
msgid "Wireless 5 GHz"
msgstr ""
msgid "connected"
msgstr ""