diff --git a/imports/ui/Overview.jsx b/imports/ui/Overview.jsx
index 80272e1..970e268 100644
--- a/imports/ui/Overview.jsx
+++ b/imports/ui/Overview.jsx
@@ -20,8 +20,9 @@ export default function Overview() {
return [];
} else {
return SensorDataCollection.find({device_id: activeDevice.deviceId}, {
- sort: {timestamp: -1},
- limit: 1440
+ timestamp: { $gt: moment(Date.now()).subtract(1, 'days').toDate() },
+ sort: { timestamp: -1 },
+ //limit: 1440
}).fetch().reverse();
}
});
@@ -41,6 +42,31 @@ export default function Overview() {
if ((sensorData.length <= 0)) {
return (
+ <>
+
+
+
+ Devices:
+
+
+
+
+
+
+
+ {configuredDevices.map((devices, index) => {
+ return
+ })}
+
+
+
+
+
+ active device: {!activeDevice === undefined && !ConfiguredDevicesCollection.findOne({ deviceId: activeDevice.deviceId }) === undefined ? ConfiguredDevicesCollection.findOne({ deviceId: activeDevice.deviceId }).alias : "No device selected"}
+
+
+
@@ -48,7 +74,8 @@ export default function Overview() {
Please wait...
-
+
+ >
)
} else {
return (