Skip to content

jsummer10/Homi-Smart-Home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homi - A Smart Home Hub

1 Description

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

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

Localhost

A locally run server that communicates with the particle device over serial.

AWS

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.

2 Getting Started

Dependencies

Node.js

Go Here to download the correct installer and follow the instructions to install.

MongoDB

Go Here to download MongoDB.

Note: Make sure the MongoDB service is started prior to continuing.

3 Running the Localhost Server

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

4 Running the AWS Server

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

5 Demo

The demo video can be found here

6 Authors

  • Jake Summerville
  • Martin Lopez
  • Diego Moscoso