From 56174fdccb66996e1ca788b1ce753ac6c2a7bc75 Mon Sep 17 00:00:00 2001 From: Bradley Spatz Date: Thu, 4 Dec 2025 11:46:15 -0500 Subject: [PATCH] Add METAR tab when not Kxxx (e.g. 42J, X60) Data shown on map but not here due to FAA inconsistency with identifiers (K prefix), e.g. 42J and X60 (close to my GNV homebase). Checked weather.db:{metar,taf} for cases. --- lib/longpress_screen.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/longpress_screen.dart b/lib/longpress_screen.dart index f34ca18..133649e 100644 --- a/lib/longpress_screen.dart +++ b/lib/longpress_screen.dart @@ -110,6 +110,8 @@ class LongPressScreenState extends State { pages[labels.indexOf("AD")] = InteractiveViewer(maxScale: 5, child: ad); Weather? w = Storage().metar.get(showDestination.locationID); + // bspatz: sidestep 42J as K42J, or X60 as KX60 in FAA METARs (no TAF examples of this in weather.db:{metar,taf}) + if ((w == null) && (showDestination.locationID[0] != 'K')) w = Storage().metar.get("K${showDestination.locationID}"); Weather? w1 = Storage().taf.get(showDestination.locationID); if(w != null || w1 != null) { pages[labels.indexOf("METAR")] = ListView(children: [