{"id":26832846,"url":"https://github.com/zephyrusblaze/waterit","last_synced_at":"2026-05-09T10:36:19.493Z","repository":{"id":260066059,"uuid":"852318757","full_name":"ZephyrusBlaze/WaterIT","owner":"ZephyrusBlaze","description":"Intelligent watering system optimizing plant health and water usage through real-time data and AI insights. Automates irrigation to combat water wastage in agriculture and gardening.","archived":false,"fork":false,"pushed_at":"2024-10-29T09:12:22.000Z","size":1744,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T11:01:31.356Z","etag":null,"topics":["ai","arduino","automation","bootstrap","chartjs","flask","gemini","html-css-javascript","llm","nature","sql","watering-plants"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZephyrusBlaze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-04T15:49:18.000Z","updated_at":"2024-10-29T09:15:23.000Z","dependencies_parsed_at":"2024-10-29T11:22:06.188Z","dependency_job_id":null,"html_url":"https://github.com/ZephyrusBlaze/WaterIT","commit_stats":null,"previous_names":["zephyrusblaze/waterit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephyrusBlaze%2FWaterIT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephyrusBlaze%2FWaterIT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephyrusBlaze%2FWaterIT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephyrusBlaze%2FWaterIT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZephyrusBlaze","download_url":"https://codeload.github.com/ZephyrusBlaze/WaterIT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246334438,"owners_count":20760646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","arduino","automation","bootstrap","chartjs","flask","gemini","html-css-javascript","llm","nature","sql","watering-plants"],"created_at":"2025-03-30T15:19:07.026Z","updated_at":"2026-05-09T10:36:14.452Z","avatar_url":"https://github.com/ZephyrusBlaze.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WaterIT: Intelligent Watering and Monitoring\n\n![Demo Screenshot](static/images/Screenshot.png)\n\n**WaterIT** is an automated plant watering system designed to optimize water usage and enhance plant health by utilizing real-time data and AI-generated insights. With a focus on sustainability, WaterIT helps conserve water in agriculture and household gardening through intelligent automation.\n\n## 🌿 Problem Statement\n\nGlobal agriculture consumes over **70%** of freshwater, and inefficient irrigation leads to **60%** water wastage. Meanwhile, **42%** of household wastewater remains untreated. WaterIT aims to tackle these issues by automating plant watering based on environmental data.\n\n## 🌟 Features\n\n- Automated watering based on real-time soil moisture levels.\n- Real-time monitoring of soil moisture, water usage, temperature, and humidity.\n- AI-powered insights for plant health using Google Generative AI.\n- Web dashboard for easy control and data visualization.\n\n## 🚀 How It Works\n\n1. **Hardware**: \n   - **Arduino UNO**: Manages the water pump, soil moisture sensor, and servo motor.\n   - **Soil Moisture Sensor**: Continuously monitors soil moisture and sends readings to the Arduino.\n   - **Water Pump**: Activated by the Arduino when the soil is dry and deactivated once optimal moisture is reached.\n   - **Servo Motor**: Moves to simulate a mechanical action when the pump turns off, enhancing the interaction.\n   - **Relay**: Controls the power to the water pump based on moisture sensor data.\n   \n2. **Software**: \n   - The **Flask app** communicates with the Arduino via USB to receive moisture data and control the water pump.\n   - Data such as soil moisture levels and water usage is stored in **SQLite databases** (`moisture_data.db` and `pump_data.db`).\n   - Real-time environmental data like temperature and humidity is fetched using the **OpenWeatherMap API**.\n   - AI-generated insights on plant care are provided using **Google Generative AI**, offering actionable advice based on the plant’s condition and external factors.\n\n3. **Water Usage Calculation**:\n   - The water used is calculated based on the duration the pump is active, with a flow rate of **0.0025 liters per second**.\n   - After watering, the system calculates and logs the total water consumption, helping monitor usage over time.\n\n4. **Mechanical Movement**:\n   - When the pump turns off, the **servo motor** rotates 180 degrees, simulating a visual indicator of the water flow stopping.\n   - After a short delay, the motor returns to its original position, ready for the next cycle.\n\n## 💻 Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/ZephyrusBlaze/WaterIT.git\n   cd waterit\n   ```\n\n2. **Install dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Set up environment variables**:\n   - OpenWeatherMap API key\n   - Google Gemini API key for AI insights\n\n4. **Run the Flask app**:\n   ```bash\n   python app.py\n   ```\n\n## 🏗️ Project Structure\n\n```bash\n.\n├── LICENSE\n├── README.md\n├── app.py\n├── arduino-code\n│   └── code.ino\n├── moisture_data.db\n├── pump_data.db\n├── requirements.txt\n├── static\n│   └── images\n│       ├── ai.png\n│       ├── dashboard.png\n│       └── graphs.png\n└── templates\n    ├── ai.html\n    ├── base.html\n    ├── dashboard.html\n    ├── graphs.html\n    └── index.html\n```\n\n## 📚 Libraries \u0026 Tools\n\n- **Flask**: Web framework for the frontend and backend.\n- **Datetime**: For handling timestamps.\n- **Requests**: For fetching weather data from OpenWeatherMap.\n- **PySerial**: To communicate with the Arduino via USB.\n- **Google Generative AI**: For generating AI insights on plant care.\n\n## 📈 Future Enhancements\n\n- **Wireless Communication**: Integrating wireless sensors for better scalability.\n- **Plant Species Detection**: Improving AI insights by factoring in specific plant needs.\n\n## 📄 License\n\nThis project is licensed under the [Apache 2.0 License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrusblaze%2Fwaterit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephyrusblaze%2Fwaterit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrusblaze%2Fwaterit/lists"}