This project demonstrates a scalable IoT smart lighting system using Node.js, Node-RED, and AWS services.
- Edge Layer: Simulated sensors and smart lights
- Fog Layer: Node-RED processing
- Cloud Layer: AWS Lambda, DynamoDB, API Gateway
- Node.js 18+
- AWS Account
- MQTT Broker (Mosquitto)
- Clone repository:
git clone https://github.com/HarryTrieu/smart-lighting-iot.git - Install dependencies:
npm install - Configure AWS credentials:
aws configure
- Start MQTT broker:
mosquitto - Start Node-RED:
node-red - Start sensors:
node sensors/motion-sensor.js - Start AWS integration:
node sensors/aws-sender.js
Run load test: `node testing/load-