From 928ff620d26b35d9c91d3beeb6cb5a1f818d5114 Mon Sep 17 00:00:00 2001 From: ztimson Date: Wed, 24 Jun 2026 09:36:52 -0400 Subject: [PATCH] - Calibrate temperature - Removed radar timeline --- client/src/components/MapView.vue | 46 +++++++++++++++---------------- sensors/main.py | 3 +- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/client/src/components/MapView.vue b/client/src/components/MapView.vue index f8e049e..218e9fc 100644 --- a/client/src/components/MapView.vue +++ b/client/src/components/MapView.vue @@ -418,29 +418,29 @@ input[type='range'] { /> -
-
-
-
-
- {{ hourLabel(radarFrames[i]) }} -
-
- -
- {{ frameLabel(radarFrames[radarFrameIndex]) }} -
+ + + + + + + + + + + + + + + + + + + + + + +
diff --git a/sensors/main.py b/sensors/main.py index 6996b56..043f2b0 100644 --- a/sensors/main.py +++ b/sensors/main.py @@ -37,6 +37,7 @@ def cfg(): 'SLUSH_TEMP_THRESHOLD': float( os.getenv('SLUSH_TEMP_THRESHOLD', '0.0')), 'SNOW_STRENGTH_MIN': int( os.getenv('SNOW_STRENGTH_MIN', '700')), 'SEISMIC_NOISE_FLOOR': float( os.getenv('SEISMIC_NOISE_FLOOR', '0.02')), + 'TEMP_CALIBRATION': float( os.getenv('TEMP_CALIBRATION', '7.0'), 'CLOUD_BUCKET_SIZE': int( os.getenv('CLOUD_BUCKET_SIZE', '5')), 'CLOUD_HISTORY': int( os.getenv('CLOUD_HISTORY', '20')), 'CLOUD_BASELINE_PCT': float( os.getenv('CLOUD_BASELINE_PCT', '0.9')), @@ -177,7 +178,7 @@ def read_bme(c, sensor, alt_m=None): p_rate, p_label = get_pressure_trend(c['PRESSURE_TREND_WINDOW']) dp = round(t - (100-rh)/5.0, 2) write(c, 'environment', { - 'temperature': round(t, 2), + 'temperature': round(t - c['TEMP_CALIBRATION'], 2), 'humidity': round(rh, 2), 'dew_point': dp, 'pressure_hpa': round(p, 2),