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;