Utilized a MongoDB, Express, React, Node (MERN) stack to create a smart home web application for
- monitoring temperature and humidity
- controlling a thermostat and a lighting system
- opening/closing a door
- simulating power consumption
The server will connect to a Particle IoT device to read in sensor data.
This design is composed of three components: IoTSense, Localhost, and AWS.
IoTSense is the embedded device aspect of the code. This contains the Particle code that can be flashed to a device. The device used the following components:
- Photoresistor (Port A0)
- Photoresistor (Port A2)
- DHT 11 (Port D2)
The connections can be seen here
Testing performed with the Argon board
A locally run server that communicates with the particle device over serial.
A web app that can be run from an AWS server that will communicate with the Particle device via cloud commands. This web app operates over HTTPS.
Go Here to download the correct installer and follow the instructions to install.
Go Here to download MongoDB.
Note: Make sure the MongoDB service is started prior to continuing.
All of the server dependencies will need to be installed. This can be done by running the following command via the command line from the Localhost directory.
$ npm install
After running, you should be able to start the server using
$ npm start
If you wish to run the AWS server locally, you will need to get a SSL certificate and key and place them in the security folder. There are blank .pem files in this folder already. They will need to be replaced by yours.
After that, all of the server dependencies will need to be installed. This can be done by running the following command via the command line from the AWS directory.
$ npm install
After running, you should be able to start the server using
$ npm start
The demo video can be found here
- Jake Summerville
- Martin Lopez
- Diego Moscoso