From 47a952040d2be37b25dbbdd7a40155643c65d14e Mon Sep 17 00:00:00 2001 From: Tanner Date: Tue, 16 Jun 2026 21:51:20 +0000 Subject: [PATCH] Add WH51Soil to dashboard --- client/src/App.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/client/src/App.js b/client/src/App.js index d850543..0a9a5ee 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -714,6 +714,51 @@ function Soil({name, sensorName, end, duration}) { } +function WH51Soil({name, sensorName, end, duration}) { + const [data, loading, tickFormatter] = useSensor('soil', sensorName, end, duration); + + return ( + x.moisture?.toFixed(1)} + 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}) { const api_key = localStorage.getItem('api_key', false); @@ -745,6 +790,7 @@ function Graphs({end, duration}) { +