From 56cbfb39675710c16fba7f55116a93c8538837c9 Mon Sep 17 00:00:00 2001 From: ztimson Date: Wed, 24 Jun 2026 15:16:33 -0400 Subject: [PATCH] Updated forecast summary --- server/src/forecast.mjs | 2 +- server/src/openmeteo.mjs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/forecast.mjs b/server/src/forecast.mjs index effd7ad..d5fecd9 100644 --- a/server/src/forecast.mjs +++ b/server/src/forecast.mjs @@ -205,7 +205,7 @@ function summarise(slots) { time: slots[0].time.slice(0, 10), label: dominant.label, code: dominant.code, - icon: dominant.icon ?? null, + icon: `/icons/${dominant.icon}.png`, temperature: Math.max(...temps), temperature_max: Math.max(...temps), temperature_min: Math.min(...temps), diff --git a/server/src/openmeteo.mjs b/server/src/openmeteo.mjs index 54b2119..5e5c068 100644 --- a/server/src/openmeteo.mjs +++ b/server/src/openmeteo.mjs @@ -212,7 +212,6 @@ export async function hourlyWeather(lat, lon, start, end) { uv_index: uv, uv_index_label: uvLabel(uv), solar_wm2: data.hourly.shortwave_radiation[i], - clouds, clouds_label: cloudsLabel(clouds), visibility: data.hourly.visibility[i] != null ? Math.round(data.hourly.visibility[i] / 1000 * 10) / 10 // m → km