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]