Skip to content

Conversation

@adityashibu
Copy link
Member

This pull request includes significant changes across various parts of the codebase, including the backend, frontend, and database configurations. The primary focus is on adding automation functionality, improving device management, and enhancing the user interface.

Backend Enhancements:

  • Added a new JSON structure for automations in backend/automations.json to define automation examples.
  • Implemented functions in backend/automations.py to load, save, add, change status, and delete automations from the JSON file.
  • Added a new endpoint in backend/fastAPI.py to retrieve device functions.

Database Improvements:

  • Updated database/.env to include Firebase configuration details.
  • Refactored database/devices_db.py to use environment variables for Firebase credentials and added functionality to watch for changes in the JSON file and sync with Firestore.
  • Updated database/users_db.json to include user IDs and changed device IDs to numeric values.
  • Added a script in database/users_db.py to upload user data to Firestore with device references.

Frontend Enhancements:

  • Enhanced the frontend/src/app/automations/page.jsx to include a dialog for adding automation schedules with form inputs for name, trigger time, and condition.
  • Modified frontend/src/app/dashboard/page.jsx to include a new "RealTime" option in the time range selection and removed the "Yearly" option. [1] [2] [3]

Dependency Updates:

  • Updated package.json to include new dependencies for MUI date pickers and lab components.

david-g-f and others added 30 commits February 25, 2025 23:52
OH NO MERGE CONFLICTS: Automation
@adityashibu adityashibu requested a review from david-g-f March 2, 2025 07:06
@adityashibu adityashibu merged commit 2ead4f6 into PowerHouse-Project:main Mar 2, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants