Skip to content

Harshilmalhotra/Eco-Campus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Eco-Campus

EcoCampus: Intelligent Energy Management System 🌱

An innovative system designed to optimize energy consumption in campus buildings by monitoring real-time classroom occupancy. Using OpenCV and a Persistence Coordinate System, EcoCampus automatically controls lights, fans, and air conditioners to reduce energy waste and promote sustainability.

πŸš€ Features

  • Occupancy Detection: Tracks classroom usage with computer vision.
  • Energy Optimization: Automatically manages lighting, HVAC, and other energy systems.
  • Real-Time Dashboard: Monitors energy usage and savings dynamically.
  • Customizability: Adapts to different campus layouts and configurations.
  • Sustainability Focus: Helps institutions reduce energy waste and costs.

πŸ› οΈ Getting Started

Prerequisites

  • Python 3.8 or higher
  • A computer with a webcam (or mobile device using DroidCam for video feed)
  • A smartphone with the DroidCam app installed for external video feed setup.

Installation

  1. Clone this repository:

    git clone https://github.com/HarshilMalhotra/Eco-Campus.git
    
    cd EcoCampus
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Download the DroidCam app on your smartphone (available on iOS and Android). Start the app and note the IP address displayed.

  4. Open main.py and set the IP address provided by DroidCam:

    video_source = "http://<DroidCam_IP>:<Port>/video"    
    

πŸ—‚οΈ Project Structure

EcoCampus/
β”œβ”€β”€ esp_calibration.py  # ESP Calibration Sequencing Script
β”œβ”€β”€ main.py             # Main Flask Application Server
β”œβ”€β”€ requirements.txt    # Python Dependencies
β”œβ”€β”€ templates/          # HTML Templates for Dashboard
β”œβ”€β”€ static/             # Static Files (CSS, JS, Images)
└── README.md           # Project Documentation

βš™οΈ Running the Application

  1. Calibrate ESP Device:
    Run the ESP calibration script before starting the main application.

    python esp_calibration.py
    
  2. Start the Flask Server: Lunch the Flask application.

    python main.py
    
  3. Access the application in your browser at:

    http://127.0.0.1:5000

πŸ”— Connect with Me

🌟 Acknowledgments

Thank you to all hackathon organizers and teammates for contributing to the success of this project!

Let me know if you’d like to tweak any section or add more details!

Made with πŸ’š for a sustainable future

About

Intelligent Energy Management System 🌱

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published