v + units[name]}
+ labelFormatter={timeStr => moment(timeStr).tz('America/Edmonton').format('ddd MMM DD h:mm A')}
+ separator=': '
+ />
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
function BedroomSleep({end, duration}) {
const [data, loading, tickFormatter] = useSensor('sleep', 'Bedroom', end, duration);
@@ -600,11 +786,57 @@ function BedroomSleep({end, duration}) {
);
}
+function LivingRoomLux({end, duration}) {
+ const [data, loading, tickFormatter] = useSensor('lux', 'Living Room', end, duration);
+
+ return (
+ x.lux?.toFixed(1) + ' lx'}
+ loading={loading}
+ >
+
+
+
+
+
+ v.toFixed(1) + units[name]}
+ labelFormatter={timeStr => moment(timeStr).tz('America/Edmonton').format('ddd MMM DD h:mm A')}
+ separator=': '
+ />
+
+
+
+
+
+ );
+}
+
function Graphs({end, duration}) {
return (
+
+
@@ -612,8 +844,8 @@ function Graphs({end, duration}) {
-
+
);
}