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))
|
const condition = getWeatherCondition(Object.assign(sensors, space))
|
||||||
|
|
||||||
// Merge forecast summary fields — sensor readings take priority
|
// Merge forecast summary fields — sensor readings take priority
|
||||||
|
console.log(lastForecast?.summary);
|
||||||
const merged = {
|
const merged = {
|
||||||
...(lastForecast?.summary ? {
|
...(lastForecast?.summary ? {
|
||||||
precipitation_chance: lastForecast.summary.precipitation_chance,
|
precipitation_chance: lastForecast.summary.precipitation_chance,
|
||||||
|
|||||||
Reference in New Issue
Block a user