From f33853a4ddf969595826d9f47a93e63875dc0930 Mon Sep 17 00:00:00 2001 From: root <165865819+brianshea2@users.noreply.github.com> Date: Sat, 23 Nov 2024 02:37:07 +0000 Subject: [PATCH] display temperature, humidity, pressure from EnvironmentMetrics (#29) --- website/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/index.html b/website/index.html index ff154a3..203ef9d 100644 --- a/website/index.html +++ b/website/index.html @@ -211,6 +211,7 @@ fwVersion, region, modemPreset, hasDefaultCh, onlineLocalNodes, latitude, longitude, altitude, precision, batteryLevel, voltage, chUtil, airUtilTx, uptime, + temperature, relativeHumidity, barometricPressure, neighbors, seenBy } = node const id = `!${Number(nodeNum).toString(16)}` @@ -239,6 +240,9 @@ ${chUtil ? `ChUtil${chUtil.toFixed(2)}%` : ''} ${airUtilTx ? `AirUtilTX${airUtilTx.toFixed(2)}%` : ''} ${uptime ? `Uptime${duration(uptime)}` : ''} + ${temperature ? `Temperature${temperature.toFixed(1)}℃ / ${(temperature * 1.8 + 32).toFixed(1)}℉` : ''} + ${relativeHumidity ? `Relative Humidity${Math.round(relativeHumidity)}%` : ''} + ${barometricPressure ? `Barometric Pressure${Math.round(barometricPressure)} hPa` : ''} ${altitude ? `Altitude${altitude.toLocaleString()} m above MSL` : ''} ${precision && precisionMargins[precision-1] ? `Location precision± ${precisionMargins[precision-1].toLocaleString()} m (orange circle)` : ''