diff --git a/src/lib/serverActions/tomorrowio.ts b/src/lib/serverActions/tomorrowio.ts index 3b18c7b..6991366 100644 --- a/src/lib/serverActions/tomorrowio.ts +++ b/src/lib/serverActions/tomorrowio.ts @@ -93,7 +93,10 @@ export async function getWeatherForecastDaily( console.log("Response:", JSON.stringify(responseData)); if ("code" in responseData) return responseData; - return {}; + return responseData.timelines.hourly.map((hourly) => ({ + time: hourly.time, + ...hourly.values, + })); }, [`${location.latitude},${location.longitude}`], {