Placeholder wind/rain measurements
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user