From 225002046b18ee9bfbc7b00a7e8b338f07c1f66c Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 27 Jun 2026 00:27:42 -0400 Subject: [PATCH] Fixing 24 hour forecast --- server/src/forecast.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/forecast.mjs b/server/src/forecast.mjs index 88a6f35..9e50a10 100644 --- a/server/src/forecast.mjs +++ b/server/src/forecast.mjs @@ -194,6 +194,8 @@ function summarise(slots) { // Min/max temp uses ALL slots for the full day range const allTemps = slots.map(s => s.temperature).filter(Number.isFinite) + console.log(slots); + const labelCount = {} for (const s of source) labelCount[s.label] = (labelCount[s.label] || 0) + 1 const label = Object.entries(labelCount).sort((a, b) => b[1] - a[1])[0][0]