diff --git a/client/src/App.js b/client/src/App.js index 78ed216..2f9c8f5 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -119,7 +119,7 @@ function ChartContainer({name, data, lastFormatter, loading, children, topMargin } return ( -
+

{name}: {loading ? 'Loading...' : last || 'No data'}

@@ -368,6 +368,67 @@ function BedroomTemperature({end, duration}) { ); } +function MiscTemperature({end, duration}) { + const [data, loading, tickFormatter] = useSensor('temperature', 'Misc', end, duration); + + return ( + x.temperature_C?.toFixed(1) + ' °C'} + loading={loading} + > + + + + + + + v.toFixed(1) + units[name]} + labelFormatter={timeStr => moment(timeStr).tz('America/Edmonton').format('ddd MMM DD h:mm A')} + separator=': ' + /> + + + + + + + + ); +} + function SeedsTemperature({end, duration}) { const [data, loading, tickFormatter] = useSensor('temperature', 'Seeds', end, duration); @@ -841,6 +902,7 @@ function Graphs({end, duration}) { +