Skip to content

TomNuttall/iot-temp-sensor

Repository files navigation

IoT Temp Sensor

Demo Project: IoT device with a temperature sensor sends readings that can then be viewed with a dashboard.

Light theme single date Dark theme multiple dates

Project Overview

🌤️ Temperature Sensor

📖 Date Source Readme

  • Esp32 microcontroller connected to a temperature sensor.
  • Average Reading sent to AWS IoT Core and message added to DynamoDB table.

🛠️ AWS Backend

📖 Backend Readme

  • API Gateway with Lambda integration reads DynamoDB table and returns data.

📈 React Frontend

📖 Dashboard Readme

  • React dashboard consumes API with date picking.
  • ChartJS used for displaying graphs.

🧱 Infastructure

📖 Infastructure Readme

  • CloudFormation templates used to deploy AWS infastructure
  • GitHub actions deploy dashboard to S3 bucket and backend lambda.

🧱 Local DB

📖 Local DB Readme

  • Docker image for local DynamoDB tables.

Run

Local Db

Start up (and populate) local DynamoDB docker image

cd local-db
yarn start
yarn dev

Backend

Start up local lambda and connect to local DynamoDB table

cd backend
yarn dev

Frontend

Start frontend and connect to local backend.

cd dashboard
yarn dev