brianttn / esp32HttpsClient-Express-MongoDB

The real-time online platform integrating ESP32、Express routing and MongoDB allows you to easily monitor the temperature and humidity of the surrounding environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real-time temperature and humidity monitoring system

Explore the website

Table of contents

About the project

The real-time online platform integrating ESP32、Express routing and MongoDB allows you to easily monitor the temperature and humidity of the surrounding environment.

System implementation episode 1:ESP32

ESP32 is mainly responsible for:

  • Connect to WiFi.

  • Make a https post request:

    • Send the https request headers and request body
    • Set up railway server certificate
  • Capture temperature and humidity information through DHT11 sensor.

  • Process and send the temperature and humidity data in JSON format to MongoDB.

ESP32_ArduinoIDE_ExecutionScreenshot

ESP32_ArduinoIDE_ExecutionScreenshot

System implementation episode 2:Express

Express is mainly responsible for:

  • Create web application routes.
  • Create EJS webpage.
  • Executing middlewares.
  • Receive and process https post request.

EJS_WebPage

EJS_WebPage

System implementation episode 3:mongoose & MongoDB

mongoose & MongoDB are mainly responsible for:

  • Create database schema and model.
  • Connect to MongoDB server.
  • Collaborate with Express for CRUD operations.

MongoDB_Compass_ExecutionScreenshot

MongoDB_Compass_ExecutionScreenshot

System implementation episode 4:Deploy to Railway platform

Railway_GitProjectDeploy

Railway_GitProjectDeploy

Railway_MongoDBDeploy

Railway_MongoDBDeploy

About

The real-time online platform integrating ESP32、Express routing and MongoDB allows you to easily monitor the temperature and humidity of the surrounding environment.


Languages

Language:C++ 41.7%Language:JavaScript 39.0%Language:EJS 19.3%