From 984e38c9666d17f5f8e4b84c07e9897bf345e625 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 16:22:50 -0700 Subject: [PATCH] feat: Add decoding for PCPN past hour remarks Co-authored-by: aider (gemini/gemini-2.5-pro) --- metar.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/metar.html b/metar.html index e6791d9..2f98a9d 100644 --- a/metar.html +++ b/metar.html @@ -344,6 +344,15 @@ return { consumed: 3, text: ` - DENSITY ALT ${altFeet}: Density altitude ${altitude} feet` }; } }, + // PCPN remark + { + match: p => p[0] === 'PCPN' && p.length > 3 && p[1].endsWith('MM') && p[2] === 'PAST' && p[3] === 'HR', + decode: p => { + const amount = p[1].replace('MM', ''); + const raw = `PCPN ${p[1]} PAST HR`; + return { consumed: 4, text: ` - ${raw}: Precipitation ${amount} mm in the past hour` }; + } + }, // Cloud remarks { match: p => cloudTypes[p[0]] || p[0] === 'ACC',