diff --git a/client/src/App.js b/client/src/App.js
index 0a9a5ee..7f8520f 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -31,6 +31,7 @@ const units = {
'Setpoint': ' °C',
'State': '',
'Lux': ' lx',
+ 'Hpa': ' hpa',
'Soil': '',
};
@@ -668,6 +669,50 @@ function Lux({name, sensorName, end, duration}) {
);
}
+function Pressure({name, sensorName, end, duration}) {
+ const [data, loading, tickFormatter] = useSensor('hpa', sensorName, end, duration);
+
+ return (
+ x.hpa?.toFixed(1) + ' hpa'}
+ loading={loading}
+ >
+
+
+
+
+
+ v.toFixed(1) + units[name]}
+ labelFormatter={timeStr => moment(timeStr).tz('America/Edmonton').format('ddd MMM DD h:mm A')}
+ separator=': '
+ />
+
+
+
+
+
+ );
+}
+
function Soil({name, sensorName, end, duration}) {
const [data, loading, tickFormatter] = useSensor('soil', sensorName, end, duration);
@@ -790,6 +835,9 @@ function Graphs({end, duration}) {
+
+
+