modified: server.js

This commit is contained in:
IrisVega 2024-07-20 19:54:59 +08:00
parent efc40453be
commit 12b6bbe4b9

View File

@ -65,7 +65,7 @@ function getLatestSensorData(callback) {
const timestamps = results.map(row => new Date(row.timestamp).toISOString().slice(0, 19).replace('T', ' ')); const timestamps = results.map(row => new Date(row.timestamp).toISOString().slice(0, 19).replace('T', ' '));
callback({ callback({
temperatures: data.temperature, temperatures: data.temperature,
humidity: data.humidity, humiditys: data.humidity,
co2: data.co2, co2: data.co2,
pressure: data.pressure, pressure: data.pressure,
timestamps timestamps