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