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