From 41488b86adc63bb81668a4fc7d0835fe3cee6474 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 15:15:42 -0700 Subject: [PATCH] feat: Decode weather phenomena in METAR parser Co-authored-by: aider (gemini/gemini-2.5-pro) --- metar.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metar.html b/metar.html index 0b2009e..28f3700 100644 --- a/metar.html +++ b/metar.html @@ -265,6 +265,8 @@ sections.push({ raw: part, decoded: decodeWind(part) }); } else if (part.endsWith('SM') || part.match(/^\d+$/) || part.match(/^\d\/\dSM$/)) { sections.push({ raw: part, decoded: decodeVisibility(part) }); + } else if (part.match(/^([+-]|VC)?(MI|PR|BC|DR|BL|SH|TS|FZ|DZ|RA|SN|SG|IC|PL|GR|GS|UP|BR|FG|FU|VA|DU|SA|HZ|PY|PO|SQ|FC|SS|DS)+$/)) { + sections.push({ raw: part, decoded: decodeWeather(part) }); } else if (part.match(/^(SKC|CLR|FEW|SCT|BKN|OVC)/)) { sections.push({ raw: part, decoded: decodeClouds(part) }); } else if (part.match(/^(M?\d{2})\/(M?\d{2})$/)) {