Added daytime property
This commit is contained in:
@@ -45,6 +45,7 @@ app.get('/api/current', async (req, res) => {
|
||||
const condition = getWeatherCondition(Object.assign(sensors, space))
|
||||
|
||||
// Merge forecast summary fields — sensor readings take priority
|
||||
console.log(lastForecast?.summary);
|
||||
const merged = {
|
||||
...(lastForecast?.summary ? {
|
||||
precipitation_chance: lastForecast.summary.precipitation_chance,
|
||||
|
||||
Reference in New Issue
Block a user