- Calibrate temperature

- Removed radar timeline
This commit is contained in:
2026-06-24 09:36:52 -04:00
parent 3fd94626b6
commit 928ff620d2
2 changed files with 25 additions and 24 deletions

View File

@@ -418,29 +418,29 @@ input[type='range'] {
/>
<!-- Radar Timeline -->
<div v-if="activeOverlays.has('rain') && radarFrames.length" class="radar-timeline">
<div class="slider-wrap">
<div class="slider-ticks">
<div
v-for="i in hourTickIndices" :key="i"
class="tick"
:class="{ nowcast: i >= nowcastStartIndex }"
:style="{ left: tickPercent(i) + '%' }"
>
<div class="tick__line" />
<span class="tick__label">{{ hourLabel(radarFrames[i]) }}</span>
</div>
</div>
<input
type="range"
:min="0"
:max="radarFrames.length - 1"
:value="radarFrameIndex"
@input="onSliderInput"
/>
</div>
<span class="timeline-label">{{ frameLabel(radarFrames[radarFrameIndex]) }}</span>
</div>
<!-- <div v-if="activeOverlays.has('rain') && radarFrames.length" class="radar-timeline">-->
<!-- <div class="slider-wrap">-->
<!-- <div class="slider-ticks">-->
<!-- <div-->
<!-- v-for="i in hourTickIndices" :key="i"-->
<!-- class="tick"-->
<!-- :class="{ nowcast: i >= nowcastStartIndex }"-->
<!-- :style="{ left: tickPercent(i) + '%' }"-->
<!-- >-->
<!-- <div class="tick__line" />-->
<!-- <span class="tick__label">{{ hourLabel(radarFrames[i]) }}</span>-->
<!-- </div>-->
<!-- </div>-->
<!-- <input-->
<!-- type="range"-->
<!-- :min="0"-->
<!-- :max="radarFrames.length - 1"-->
<!-- :value="radarFrameIndex"-->
<!-- @input="onSliderInput"-->
<!-- />-->
<!-- </div>-->
<!-- <span class="timeline-label">{{ frameLabel(radarFrames[radarFrameIndex]) }}</span>-->
<!-- </div>-->
<!-- Desktop toggles -->
<div class="overlay-toggles desktop">

View File

@@ -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),