Dashboard is a demo front-end implemented as a web application.
It is a React application which renders the board sensors data as D3.js charts. On the application start initial data set is fetched from a public API endpoint. By default data for last 4 hours is rendered. Charts are updated in real time using data coming from Cloud via MQTT over Websocket protocol. They have two visualization modes: line and area.
Here are links to dashboard source code and live demo.
In order to build dashboard application follow steps below:
- Install Node.js
- Run
npm install. This will install dependencies. - Rename
src/config.dist.jstosrc/config.jsand update the configuration parameters. See AWS Setup Guidse for AWS parameters details. - Run
npm run build. This will build application. Its files are now indistfolder.
One of the simplest hosting options is Amazon S3. In order to deploy the application to S3 do the following:
- Configure an S3 bucket to host a website as described in the AWS Setup Guide
- Install and configure AWS CLI
- Deploy application files with the command
aws s3 sync dist/ s3://<your.bucket.name>/
