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
-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);
})();