modified: server.js
This commit is contained in:
parent
efc40453be
commit
12b6bbe4b9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user