GreenMax is an intelligent energy monitoring system that helps users track, analyze, and optimize their energy consumption using AI-powered recommendations and real-time monitoring.
- Real-time energy consumption monitoring
- AI-powered usage predictions and recommendations
- Interactive dashboard with usage analytics
- Device-level energy tracking
- Smart notifications for usage anomalies
- Historical data analysis and trends
- Cost optimization suggestions
- Backend: Python/Flask
- Frontend: HTML, CSS, JavaScript
- AI/ML: TensorFlow, NumPy
- Database: Firebase Realtime Database
- Authentication: Firebase Auth
- API: Google Cloud (Gemini AI)
- Deployment: Google Cloud App Engine
- Python 3.9+
- Google Cloud SDK
- Firebase Account
- Gemini API Key
-
Clone the repository: bash git clone https://github.com/Awakenned1/GreenMax-1.git cd GreenMax-1
-
Create virtual environment: bash python -m venv venv source venv/bin/activate # Linux/Mac .\venv\Scripts\activate # Windows
-
Install dependencies: bash pip install -r requirements.txt
-
Set up environment variables in
.env: env FLASK_SECRET_KEY=your-secret-key GOOGLE_API_KEY=your-google-api-key FIREBASE_API_KEY=your-firebase-api-key
Add other required environment variables
GreenMax-1/ ├── app/ │ ├── static/ │ │ ├── css/ │ │ ├── js/ │ │ └── images/ │ ├── templates/ │ ├── services/ │ │ ├── energy_monitor.py │ │ ├── data_generator.py │ │ └── auth.py │ ├── models/ │ │ └── predictor.py │ └── routes.py ├── models/ │ ├── energy_model/ │ └── scaler.pkl ├── app.yaml ├── requirements.txt ├── run.py └── README.md
-
Set up Firebase:
- Create a Firebase project
- Download service account key
- Update Firebase configuration in
.env
-
Configure Google Cloud:
- Enable required APIs
- Set up App Engine
- Configure service accounts
-
Initialize Google Cloud: bash gcloud init
-
Deploy to App Engine: bash gcloud app deploy
-
View the application: bash gcloud app browse
/: Home page/dashboard: Main dashboard/api/dashboard-data: Get real-time dashboard data/api/energy-data: Get energy consumption data/auth/login: User login/auth/register: User registration
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- All API keys and sensitive data should be stored in environment variables
- Firebase Authentication is implemented for user security
- HTTPS is enforced for all connections
- Regular security updates and dependency maintenance
This project is licensed under the MIT License - see the LICENSE file for details
Your Name - nnkosinam@gmail.com Project Link: https://github.com/yourusername/GreenMax-1
- Google Cloud Platform
- Firebase
- TensorFlow
- Flask Framework
- Chart.js for visualizations
Google Cloud Platform (GCP): -App Engine for hosting -Cloud Storage for static files -Cloud Build for deployment -Cloud Logging for monitoring -Firebase Services: -Firebase Authentication -Firebase Realtime Database -Firebase Cloud Messaging (FCM) -Firebase Storage -AI/ML Services: -Google Gemini AI API -Cloud Functions (optional) -Additional Services: -Cloud Secret Manager -Cloud Monitoring -Cloud IAM for access control -Development Tools: -Google Cloud SDK -Firebase CLI -Cloud Shell