From 6e21a8626c5ec00d804a1e7c9d8294c41f86aadc Mon Sep 17 00:00:00 2001 From: ztimson Date: Mon, 14 Sep 2026 08:43:46 -0400 Subject: [PATCH] Fixed sonde climb rate and TTL --- client/src/components/WeatherBalloon.vue | 2 +- client/src/services/sondes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/WeatherBalloon.vue b/client/src/components/WeatherBalloon.vue index 51df045..2f7d412 100644 --- a/client/src/components/WeatherBalloon.vue +++ b/client/src/components/WeatherBalloon.vue @@ -95,7 +95,7 @@ const speedVal = computed(() => { }) const climbVal = computed(() => { - if (latest.value?.vertical_speed == null) return null + if (latest.value?.climb == null) return null const v = vertical.value.convert(Number(latest.value.vertical_speed)) return v >= 0 ? `+${v}` : String(v) diff --git a/client/src/services/sondes.ts b/client/src/services/sondes.ts index 081ec12..1903243 100644 --- a/client/src/services/sondes.ts +++ b/client/src/services/sondes.ts @@ -12,7 +12,7 @@ import SondePopup from '@/components/WeatherBalloon.vue'; import {bringToFront} from './zindex'; const API = BASE + '/api'; -const SONDE_STALE_TTL = 60_000; +const SONDE_STALE_TTL = 60_000 * 5; interface SondeReading { timestamp: number;