From 1c216d5761d87c8881e7aa63b15734824efbbe83 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 15:56:22 -0700 Subject: [PATCH] fix: Handle HALO remarks and ignore '/' separator in METAR Co-authored-by: aider (gemini/gemini-2.5-pro) --- metar.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metar.html b/metar.html index 04603f4..fd603f9 100644 --- a/metar.html +++ b/metar.html @@ -262,7 +262,8 @@ const specialRemarks = { 'FROIN': 'Frontal passage in vicinity', 'CONTRAILS': 'Contrails observed', - 'VIRGA': 'Virga (precipitation not reaching the ground)' + 'VIRGA': 'Virga (precipitation not reaching the ground)', + 'HALO': 'Halo phenomenon observed' }; const directions = { 'N': 'North', 'NE': 'Northeast', 'E': 'East', 'SE': 'Southeast', @@ -335,6 +336,8 @@ decoded.push(` - ${decodeWeather(part, metarString)}`); } else if (part.match(/^(AC|CI|CC)/)) { decoded.push(` - ${part}: Cloud types and coverage details`); + } else if (part === '/') { + // separator, ignore } else { console.log(`Other remark: ${part} in METAR: ${metarString}`); decoded.push(` - ${part}: Other remark`);