Skip to content

Commit

Permalink
Hide traffic chart and Show humidity chart (#23)
Browse files Browse the repository at this point in the history
* Show humidity chart and hide traffic chart

* move last humidity value to humidity chart
  • Loading branch information
aoirint authored Jul 27, 2023
1 parent 06a022a commit cdce7db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@ export default function HomePage() {
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>Light / %</Typography>
<LightChart lightData={calibratedData?.light ?? []} />
</Grid>
{/* <Grid item xs={12} md={4}>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>Humidity / %</Typography>
<Grid item xs={12} md={4}>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>Humidity / {lastHumidityValue?.toFixed(0)} %</Typography>
<HumidityChart humidityData={calibratedData?.humidity ?? []} />
</Grid> */}
</Grid>
<Grid item xs={12} md={4}>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>Temperature / {lastTemperatureValue?.toFixed(1)}, {lastHumidityValue?.toFixed(0)} %</Typography>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>Temperature / {lastTemperatureValue?.toFixed(1)}</Typography>
<TemperatureChart temperatureData={calibratedData?.temperature ?? []} />
</Grid>
<Grid item xs={12} md={4}>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>CO2 / ppm</Typography>
<Co2Chart co2Data={calibratedData?.mhz19Co2 ?? []} />
</Grid>
<Grid item xs={12} md={4}>
{/* <Grid item xs={12} md={4}>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>Traffic / GiB</Typography>
<TrafficChart trafficData={calibratedData?.l12TrafficDaily ?? []} />
</Grid>
</Grid> */}
{smokePingEntries.map((smokePing, index) => (
<Grid item xs={12} md={4} key={index}>
<Typography variant="h6" component="h2" sx={{ mb: 1 }}>{smokePing.name}</Typography>
Expand Down

0 comments on commit cdce7db

Please sign in to comment.