From 0d00c7f6ab99520e3a0fc1bc32858a813a07c778 Mon Sep 17 00:00:00 2001 From: Nate Emmert Date: Mon, 24 Aug 2026 10:07:17 -0400 Subject: [PATCH] Restore indoor sensor display and restructure dashboard layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Restore tempinf/humidityin tiles from PWS data on index.html (removed with thermostat cleanup but still available from Ambient station) - Dashboard: replace two flat secondary-stat grids with labeled section cards — Wind, Precipitation, Climate, Indoor — for clearer visual hierarchy and category separation - Indoor section card includes Ecobee portal link; appears only when station reports indoor sensor data Co-Authored-By: Claude Sonnet 4.6 --- app/public/app.js | 8 +++ app/public/dashboard.html | 102 +++++++++++++++++++++++++++----------- app/public/index.html | 5 ++ 3 files changed, 85 insertions(+), 30 deletions(-) diff --git a/app/public/app.js b/app/public/app.js index 0558ea5..995d2f7 100644 --- a/app/public/app.js +++ b/app/public/app.js @@ -2975,6 +2975,14 @@ function applyStationOverlay(device) { if (data.uv != null) setEl('cur-uv', data.uv); + const indoorCard = document.getElementById('st-indoor-card'); + if (data.tempinf != null) { + setEl('st-tempin', fmtTemp(data.tempinf)); + setEl('st-tempin-unit', isMetric ? 'C' : 'F'); + setEl('st-humin', data.humidityin != null ? `${data.humidityin}% RH` : ''); + if (indoorCard) indoorCard.classList.remove('hidden'); + } + // Rain summary in hero sub-line const rainEl = document.getElementById('cur-precip'); if (rainEl && data.dailyrainin != null) { diff --git a/app/public/dashboard.html b/app/public/dashboard.html index ca436b0..7c0cdc7 100644 --- a/app/public/dashboard.html +++ b/app/public/dashboard.html @@ -145,6 +145,8 @@ a { color: var(--cool); text-decoration: none; } .threshold-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } @media (max-width: 480px) { .threshold-row { grid-template-columns: 1fr; } } +.hidden { display: none !important; } + /* ── Section cards ── */ .section-card { background: var(--paper-dark); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; } .section-card-hdr { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-light); margin-bottom: 1.1rem; } @@ -281,39 +283,72 @@ canvas.sparkline { display: block; width: 100%; height: 22px; margin-top: 0.4rem
💨— mph peak gust
- -
-
-
Wind
-
—
-
mph
-
- + +
+
Wind
+
+
+
Speed
+
—
+
mph
+
+ +
+
Gust
—
mph
+
Peak Gust Today
—
mph
-
Wind Gust
—
mph
-
Max Gust Today
—
mph
-
Rain Today
—
in
-
Rain Rate
—
in/hr
- -
-
Rain 7d
—
in
-
Rain 30d
—
in
-
Rain YTD
—
in
- - -
Heating DD
—
this month
-
Cooling DD
—
this month
-