Skip to content
/ IOT Public

Measure temperature, humidity, light intensity, turn on/off lights using NodeMCU Esp8266.

Notifications You must be signed in to change notification settings

TuqL3/IOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project IOT

Table of contents

  1. Clone
  2. Backend
  3. Frontend
  4. Hardware
  5. API DOCS

Clone

$ npm clone https://github.com/Tu9L3/IOT.git

Backend


Installation

$ cd be
$ npm i

Config

Create file .env from .env.example

DB_HOST = 'your host'
DB_PORT = 'your port'
DB_USERNAME = 'your username'
DB_PASSWORD = 'your password'
DB_DATABASE = 'your database'

MQTT_USERNAME = 'your broker username'
MQTT_PASSWORD = 'your broker password'
MQTT_URL = 'your broker url'

Running

$ npm run start:dev

Terminal img_3.png


Frontend


Installation

$ cd fe
$ npm i

Running

$ npm run dev

Dashboard img.png Data sensor img_1.png Action history img_2.png

HARDWARE

  1. Install Arduino
  2. Config
ssid = 'your ssid'
password = 'your password'
mqtt_server = 'your server'
mqtt_username = 'your username'
mqtt_password = 'your password'
port = 'your port' (Ctrl + F: 1885)

API DOCS

http://${your host}:${your port}/api-docs

About

Measure temperature, humidity, light intensity, turn on/off lights using NodeMCU Esp8266.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published