Added daytime property

This commit is contained in:
2026-06-24 16:15:30 -04:00
parent fa66a63d63
commit e97dffd874

View File

@@ -41,8 +41,8 @@ function filterArr(arr, fields) {
app.get('/api/current', async (req, res) => {
const { fields } = req.query
const [sensors, coords] = await Promise.all([queryCurrent(), getCoords()])
console.log(sensors);
const space = getCelestialCurrent(coords.latitude, coords.longitude)
console.log(sensors, space);
const condition = getWeatherCondition(Object.assign(sensors, space))
console.log(sensors);