fix(network): stable phone hotspot IP via dhcp-client-id=yaris-obd

- Phone DHCP caches by client-id so Pi always gets same lease
- Remove dashboard phone-hotspot banner (didn't work)

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Mathieu Moran
2026-08-10 03:11:41 -04:00
co-authored by Copilot
parent a6c6cddf30
commit e96c6a16bb
3 changed files with 1 additions and 26 deletions
+1
View File
@@ -372,6 +372,7 @@ psk={keyfile_escape(password)}
method=auto
dhcp-send-hostname=true
dhcp-hostname=yaris
dhcp-client-id=yaris-obd
[ipv6]
method=auto
-21
View File
@@ -326,24 +326,3 @@ window.setInterval(function () {
message.hidden = false;
});
}, 30000);
// ── Phone hotspot banner ───────────────────────────────────────────────────
(function () {
const banner = document.getElementById('phone-hotspot-banner');
const ipEl = document.getElementById('phone-hotspot-ip');
function checkUplink() {
fetch('/api/uplink/status')
.then(r => r.ok ? r.json() : null)
.then(s => {
if (s && s.mode === 'phone' && s.ip_address) {
ipEl.textContent = `http://${s.ip_address}/`;
banner.hidden = false;
} else {
banner.hidden = true;
}
})
.catch(() => { banner.hidden = true; });
}
checkUplink();
window.setInterval(checkUplink, 15000);
})();
-5
View File
@@ -9,11 +9,6 @@
{% block content %}
<h3 class="text-dark mb-3 fw-bold">Dashboard</h3>
<div id="phone-hotspot-banner" class="alert alert-info d-flex align-items-center gap-2 py-2 mb-3" hidden>
<i class="fas fa-mobile-alt"></i>
<span>Connected via phone hotspot — access this page at <strong id="phone-hotspot-ip"></strong></span>
</div>
{# ── OBD stat cards ──────────────────────────────────────────────────── #}
<div class="row g-2 mb-3">
<div class="col-6 col-sm-4 col-xl-2">