New "Clients" card lists everything on the van LAN in one table — hostname, IP, MAC, connection (5GHz / 2.4GHz / LAN eth0 / LAN USB), signal, TX rate. Wi-Fi rows come from the hostapd station dumps as before; wired rows from learned bridge-FDB entries on the LAN ports (the port's own MAC is "permanent", and FDB duplicates entries per vlan — both filtered), enriched with IP/hostname from dnsmasq leases + neighbor table. The per-band station tables move out of the Access Points card (which keeps its status line + client count), and the WAN/Uplinks table now hides unmanaged devices so the networkd-owned LAN ports don't show up as ghost WAN rows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
63 lines
1.7 KiB
HTML
63 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Van Router</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link href="../base1/cockpit.css" type="text/css" rel="stylesheet">
|
|
<link href="vanrouter.css" type="text/css" rel="stylesheet">
|
|
<script src="../base1/cockpit.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="vr-wrap">
|
|
<div class="vr-head">
|
|
<h2>Van Router</h2>
|
|
<span id="updated" class="muted">loading…</span>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>Access Points</h3>
|
|
<div id="ap"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>Clients</h3>
|
|
<div id="clients"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>Temperatures</h3>
|
|
<div id="thermal"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>Battery / Power</h3>
|
|
<div id="battery"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>WAN Failover</h3>
|
|
<div id="failover"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>Starlink</h3>
|
|
<div id="starlink"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>WAN / Uplinks</h3>
|
|
<table>
|
|
<thead>
|
|
<tr><th>Device</th><th>Type</th><th>State</th><th>IPv4</th><th>Metric</th><th>Actions</th></tr>
|
|
</thead>
|
|
<tbody id="wan"></tbody>
|
|
</table>
|
|
<p class="muted">Lower metric = preferred default route. <span class="active-wan">★ blue</span> = current internet egress.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="vanrouter.js"></script>
|
|
</body>
|
|
</html>
|