Fix car command control (#54)

Update dashboard screen
This commit is contained in:
John Wu
2021-06-16 15:56:36 -07:00
committed by GitHub
parent 0f0c0b9044
commit 2078023ad7
3 changed files with 91 additions and 122 deletions

View File

@@ -1,5 +1,5 @@
import React, { useEffect } from "react";
import { Button, Link } from "@material-ui/core";
import { Button, Grid, Link } from "@material-ui/core";
import CreateIcon from "@material-ui/icons/Create";
import { useStatusContext } from "../Contexts/StatusContext";
@@ -17,16 +17,38 @@ const Dashboard = () => {
return (
<div className={classes.paper}>
<ResponsiveIFrame
classes={classes}
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=5s&panelId=6"
title="Vehicle Connected"
/>
<ResponsiveIFrame
classes={classes}
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=5s&panelId=2"
title="Vehicle Signals"
/>
<Grid container className={classes.root} spacing={2}>
<Grid item md={6}>
<ResponsiveIFrame
classes={classes}
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=5s&panelId=6"
title="Vehicle Connected"
/>
</Grid>
<Grid item md={6}>
<ResponsiveIFrame
classes={classes}
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&from=1623869272751&to=1623880072751&panelId=12"
title="Signals Time Series"
/>
</Grid>
</Grid>
<Grid container className={classes.root} spacing={2}>
<Grid item md={6}>
<ResponsiveIFrame
classes={classes}
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&from=1623869351185&to=1623880151186&panelId=14"
title="Total Signals"
/>
</Grid>
<Grid item md={6}>
<ResponsiveIFrame
classes={classes}
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=5s&panelId=2"
title="Vehicle Signals"
/>
</Grid>
</Grid>
<Button
style={{ marginTop: 10 }}
aria-label="create"