Added daytime property
This commit is contained in:
@@ -42,9 +42,7 @@ app.get('/api/current', async (req, res) => {
|
||||
const { fields } = req.query
|
||||
const [sensors, coords] = await Promise.all([queryCurrent(), getCoords()])
|
||||
const space = getCelestialCurrent(coords.latitude, coords.longitude)
|
||||
console.log(sensors, space);
|
||||
const condition = getWeatherCondition(Object.assign(sensors, space))
|
||||
console.log(sensors);
|
||||
|
||||
// Merge forecast summary fields — sensor readings take priority
|
||||
const merged = {
|
||||
|
||||
Reference in New Issue
Block a user