Placeholder wind/rain measurements

This commit is contained in:
2026-06-23 23:11:15 -04:00
parent 40ec87d356
commit a174864ddb
5 changed files with 140 additions and 113 deletions

View File

@@ -34,16 +34,6 @@ function filterArr(arr, fields) {
return arr.map(row => filterFields(row, fields));
}
function mergeRows(arrays) {
const map = {};
for(const arr of arrays) {
for(const row of arr) {
map[row.time] = {...map[row.time], ...row};
}
}
return Object.values(map).sort((a, b) => a.time.localeCompare(b.time));
}
// ── Sensor Data ───────────────────────────────────────────────────────────────
app.get('/api/current', async (req, res) => {