Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide traffic chart and Show humidity chart #23

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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