From fa1609535586978bbd02b9c2193118fc7c4f0253 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Tue, 9 Sep 2025 22:07:42 -0500 Subject: [PATCH] filter for actual alerts (not test) close #141 --- server/scripts/modules/hazards.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/scripts/modules/hazards.mjs b/server/scripts/modules/hazards.mjs index 28553ab..a2835f2 100644 --- a/server/scripts/modules/hazards.mjs +++ b/server/scripts/modules/hazards.mjs @@ -71,6 +71,7 @@ class Hazards extends WeatherDisplay { // get the forecast using centralized safe handling const url = new URL('https://api.weather.gov/alerts/active'); url.searchParams.append('point', `${this.weatherParameters.latitude},${this.weatherParameters.longitude}`); + url.searchParams.append('status', 'actual'); const alerts = await safeJson(url, { retryCount: 3, stillWaiting: () => this.stillWaiting() }); if (!alerts) {