From b9cdcc3abcbac7c89497c9036b24363cdf2743d3 Mon Sep 17 00:00:00 2001 From: root <165865819+brianshea2@users.noreply.github.com> Date: Tue, 4 Feb 2025 03:21:05 +0000 Subject: [PATCH] display additional EnvironmentMetrics (#34) --- website/index.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/website/index.html b/website/index.html index 7eca030..4423a8e 100644 --- a/website/index.html +++ b/website/index.html @@ -216,7 +216,7 @@ fwVersion, region, modemPreset, hasDefaultCh, onlineLocalNodes, latitude, longitude, altitude, precision, batteryLevel, voltage, chUtil, airUtilTx, uptime, - temperature, relativeHumidity, barometricPressure, + temperature, relativeHumidity, barometricPressure, lux, windDirection, windSpeed, windGust, radiation, rainfall, neighbors, seenBy } = node const id = `!${Number(nodeNum).toString(16)}` @@ -250,9 +250,19 @@ `${(temperature * 1.8 + 32).toFixed(1)}℉` : ''} ${relativeHumidity ? `Relative Humidity${Math.round(relativeHumidity)}%` : ''} ${barometricPressure ? `Barometric Pressure${Math.round(barometricPressure)} hPa` : ''} + ${lux ? `Lux${Math.round(lux)} lx` : ''} + ${windDirection || windSpeed ? `Wind` + + (windDirection ? `${windDirection}°` : '') + + (windDirection && windSpeed ? ' @ ' : '') + + (windSpeed ? `${(windSpeed * 3.6).toFixed(1)}` : '') + + (windSpeed && windGust ? ` G ${(windGust * 3.6).toFixed(1)}` : '') + + (windSpeed ? ' km/h' : '') + + `` : ''} + ${radiation ? `Radiation${radiation.toFixed(2)} µR/h` : ''} + ${rainfall ? `Rainfall${rainfall.toFixed(1)} mm/24h` : ''} ${altitude ? `Altitude${altitude.toLocaleString()} m above MSL` : ''} - ${precision && precisionMargins[precision-1] ? "Location precision±" + - `${precisionMargins[precision-1].toLocaleString()} m (orange circle)` : ''} + ${precision && precisionMargins[precision-1] ? `Location precision` + + `±${precisionMargins[precision-1].toLocaleString()} m (orange circle)` : ''}
Last seenviaroot topicchannel