feat: add weekly forecast to weather widget (#1932)

This commit is contained in:
Yossi Hillali
2024-03-09 17:57:16 +02:00
committed by GitHub
parent 0906420584
commit 918585c3e2
3 changed files with 122 additions and 60 deletions

View File

@@ -18,6 +18,8 @@ const weatherSchema = z.object({
temperature: z.number(),
}),
daily: z.object({
time: z.array(z.string()),
weathercode: z.array(z.number()),
temperature_2m_max: z.array(z.number()),
temperature_2m_min: z.array(z.number()),
}),