backfill all data points

This commit is contained in:
2026-06-27 00:49:17 -04:00
parent 943a6ee085
commit e4042f06d6
3 changed files with 82 additions and 53 deletions

View File

@@ -55,14 +55,14 @@ app.get('/api/current', async (req, res) => {
const forecast = await getForecast();
const merged = {
...condition,
...sensors,
...(forecast?.summary ? {
precipitation_chance: forecast.summary.precipitation_chance,
temperature_max: forecast.summary.temperature_max,
temperature_min: forecast.summary.temperature_min,
uv_index_max: forecast.summary.uv_index,
} : {}),
...condition,
...sensors,
...space,
}