feat(dashboard): show Pi IP banner when connected to phone hotspot

- Banner appears on dashboard only when uplink mode is 'phone'
- Shows the Pi's current IP so you can reach it from your phone's browser
- Polls every 15s, hides automatically when not on phone hotspot

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Mathieu Moran
2026-08-10 03:06:39 -04:00
co-authored by Copilot
parent 9f9974e197
commit a6c6cddf30
2 changed files with 26 additions and 0 deletions
+5
View File
@@ -9,6 +9,11 @@
{% 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">