CS147 Final Project
by Khanh Vu and Jeremy Brinas
This repository contains the web dashboard backend for the AutoGlow project. It connects to Azure IoT Hub to receive real-time data from IoT devices and displays energy consumption and light usage analytics.
- Real-time light status indicator (ON/OFF)
- Daily view with hourly light-on time and energy consumption graphs
- Weekly view with daily aggregated data (Concept only, not functional)
- Event log tracking ON/OFF events
- Data persistence via localStorage
- Node.js
- Azure IoT Hub connection string
- Event Hub consumer group
-
Install dependencies:
npm install
-
Set environment variables:
export IotHubConnectionString="iot-hub-connection-string" export EventHubConsumerGroup="consumer-group-name"
-
Run the application:
npm start
-
Open your browser and navigate to
http://localhost:3000
This project was built upon the Microsoft Azure IoT Hub tutorial: