feat: add smart irrigation system with server-side logic and data models#1458
Merged
omroy07 merged 2 commits intoomroy07:mainfrom Feb 11, 2026
Merged
Conversation
|
@Dbansal06 is attempting to deploy a commit to the Om Roy's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
Owner
|
Conflict |
Contributor
Author
|
@omroy07 Can u please review it again now and if there is any changes required please let me know. |
|
🎉 Congrats @Dbansal06 on getting your PR merged! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a complete Smart Irrigation module. It follows the project's architecture by placing core logic within the
server/directory and integrating with the main Flask application.File Structure & Changes
🎨 Frontend
irrigation.html: New dashboard for system monitoring.css/irrigation.css: Styles for the irrigation interface.js/irrigation.js: Frontend logic for real-time UI updates.⚙️ Backend (Server-Side)
server/Routes/irrigation_routes.py: Handles API requests for the irrigation system.server/Utils/irrigation_helper.py: Core logic for calculating optimal water flow.server/models/irrigation_data.json: Storage for system configuration and state.🧪 Testing & Integration
tests/test_irrigation.py: Unit tests for the irrigation helper functions.app.py: Registered the new irrigation routes and initialized the module.closes #1457
Please review and merge and let me know if there is any changes required please let me know.
Thanks!