diff --git a/docs/configuration.md b/docs/configuration.md index 85c5fce..0f08823 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -549,3 +549,16 @@ Use this sequence for changes with runtime impact: 4. Verify `GET /healthz`. 5. Confirm MQTT ingest, Nodus metadata, Home Assistant discovery, or farmOS status as appropriate for the change. + +Barometric pressure gauges use the altitude entered in General Settings +(`[Astral].ALTITUDE`, metres) to center raw/absolute pressure ranges on standard +atmospheric pressure at that elevation, with at least 50 hPa of weather margin +on either side. Metric bounds round outward to 10 hPa; Imperial bounds round +outward to 0.1 inHg. Refresh the dashboard after changing altitude. Blank or +invalid altitude retains the broad default range for raw pressure. + +Sea-level-corrected readings (Ecowitt relative pressure, WeeWX barometer, and +BME/VPD/AQI sensors with altitude calibration) instead use a sea-level range: +960–1070 hPa or 28.4–31.4 inHg. Explicit absolute-pressure metrics always use +site altitude. Gauge scaling does not change measurements, history, MQTT, or +calibration values. diff --git a/sensorius/__init__.py b/sensorius/__init__.py index 4f5d076..08ede94 100644 --- a/sensorius/__init__.py +++ b/sensorius/__init__.py @@ -4,4 +4,4 @@ release notes, and supporting tooling can report a consistent build identity. """ -__version__ = "v0.26.261.6" +__version__ = "v0.26.261.7" diff --git a/sensorius/saiHtml.py b/sensorius/saiHtml.py index 1056dd0..8f450f0 100644 --- a/sensorius/saiHtml.py +++ b/sensorius/saiHtml.py @@ -191,7 +191,7 @@ def normalize_dashboard_metric_set(value: object) -> str: return "All" if compact in {"all", "showall"} else "Pick 6" -def render_dashboard(sensor_id, sensor, available, all_values, all_stats, mqtt_ingest, switch_controllers=None, sensor_locations=None, gauge_config=None, gauge_size="Small", expected_gauge_map=None, expected_display_style_map=None, display_style=None, astro_payload=None, biodynamic_payload=None, weather_forecast_provider="met_no", weather_forecast_theme="pollinator", dashboard_background_theme="leaf", dashboard_metric_set="Pick 6", dashboard_custom_theme_style=""): +def render_dashboard(sensor_id, sensor, available, all_values, all_stats, mqtt_ingest, switch_controllers=None, sensor_locations=None, gauge_config=None, gauge_size="Small", expected_gauge_map=None, expected_display_style_map=None, display_style=None, astro_payload=None, biodynamic_payload=None, weather_forecast_provider="met_no", weather_forecast_theme="pollinator", dashboard_background_theme="leaf", dashboard_metric_set="Pick 6", dashboard_custom_theme_style="", pressure_altitude=None, pressure_sensor_context=None): """Yield the complete Sensorius dashboard HTML document.""" import json @@ -2324,6 +2324,9 @@ def _format_stat_value(stat_value): yield "