diff --git a/app/public/dashboard.html b/app/public/dashboard.html
index 014f16b..a202619 100644
--- a/app/public/dashboard.html
+++ b/app/public/dashboard.html
@@ -172,6 +172,7 @@ a { color: var(--cool); text-decoration: none; }
+
Pressure
—
@@ -183,6 +184,7 @@ a { color: var(--cool); text-decoration: none; }
+
@@ -192,6 +194,8 @@ a { color: var(--cool); text-decoration: none; }
+
+
@@ -732,22 +736,37 @@ async function updateLatest() {
set('sSolar', d.solarradiation, 0);
set('sBatt', d.battout != null ? (d.battout === 1 ? 'OK' : 'Low') : '—', 0);
+ // Max daily gust
+ if (d.maxdailygust != null) set('sMaxGust', d.maxdailygust);
+
+ // Indoor sensors
if (d.tempinf != null) {
set('sTempIn', d.tempinf);
document.getElementById('indoorTempTile').style.display = '';
}
+ if (d.feelsLikein != null) {
+ set('sFeelsIn', d.feelsLikein, 0);
+ document.getElementById('indoorFeelsTile').style.display = '';
+ }
if (d.humidityin != null) {
set('sHumIn', d.humidityin, 0);
document.getElementById('indoorHumTile').style.display = '';
}
- if (d.tempinf != null && d.humidityin != null) {
- const Tc = (d.tempinf - 32) * 5 / 9, RH = d.humidityin;
- const dp = (243.04 * (Math.log(RH / 100) + 17.625 * Tc / (243.04 + Tc))) /
- (17.625 - Math.log(RH / 100) - 17.625 * Tc / (243.04 + Tc));
- set('sDewIn', +(dp * 9 / 5 + 32).toFixed(1), 1);
+ if (d.dewPointin != null) {
+ set('sDewIn', d.dewPointin);
document.getElementById('indoorDewTile').style.display = '';
}
+ // Ambient rain accumulators
+ if (d.eventrainin != null && d.eventrainin > 0) {
+ set('sEventRain', d.eventrainin, 2);
+ document.getElementById('sEventRainTile').style.display = '';
+ }
+ if (d.totalrainin != null) {
+ set('sTotalRain', d.totalrainin, 2);
+ document.getElementById('sTotalRainTile').style.display = '';
+ }
+
const name = document.getElementById('stationName');
if (name && d.PASSKEY) name.textContent = '';