{"id":20636055,"url":"https://github.com/anshumanbehera27/bharatagroandriodapp","last_synced_at":"2026-05-16T11:04:31.019Z","repository":{"id":248629263,"uuid":"808205168","full_name":"anshumanbehera27/BharatAgroAndriodApp","owner":"anshumanbehera27","description":"Bharat Agro is a cost optimization tool for farmers, providing insights on crop selection, fertilization strategies, weather conditions, and soil reporting to maximize profits. ","archived":false,"fork":false,"pushed_at":"2024-08-16T14:43:50.000Z","size":15251,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T07:27:05.004Z","etag":null,"topics":["android","firebase-realtime-database","fragement","kotlin","kotlin-coroutines","material-design","recyclerview","xml"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anshumanbehera27.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-05-30T15:34:29.000Z","updated_at":"2024-08-16T14:43:53.000Z","dependencies_parsed_at":"2024-08-16T16:15:27.594Z","dependency_job_id":null,"html_url":"https://github.com/anshumanbehera27/BharatAgroAndriodApp","commit_stats":null,"previous_names":["anshumanbehera27/bharatagroandriodapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anshumanbehera27/BharatAgroAndriodApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanbehera27%2FBharatAgroAndriodApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanbehera27%2FBharatAgroAndriodApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanbehera27%2FBharatAgroAndriodApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanbehera27%2FBharatAgroAndriodApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anshumanbehera27","download_url":"https://codeload.github.com/anshumanbehera27/BharatAgroAndriodApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanbehera27%2FBharatAgroAndriodApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279170550,"owners_count":26118607,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","firebase-realtime-database","fragement","kotlin","kotlin-coroutines","material-design","recyclerview","xml"],"created_at":"2024-11-16T15:08:57.826Z","updated_at":"2025-10-16T08:40:54.005Z","avatar_url":"https://github.com/anshumanbehera27.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bharat Agro\n\u003cimg src=\"images/app_logo.svg\" alt=\"Bharat Agro Logo\" width=\"150\"/\u003e\n\n\n# Introduction\n\nBharat Agro is a cutting-edge cost optimization app designed to empower farmers with essential tools and insights for effective farming. The app helps farmers make informed decisions by providing:\n- **Crop Selection Guidance**: Recommendations on the best crops to grow based on local conditions.\n- **Fertilizer Usage**: Advice on the optimal fertilizers to use for different crops.\n- **Weather Conditions**: Current and forecasted weather data to plan farming activities.\n- **Soil Reporting Centers**: Information on nearby soil testing centers to analyze soil quality.\n\nBharat Agro utilizes Firebase to manage data, featuring two main sections:\n- **Admin**: Admins can upload, delete, and manage data within the app.\n- **User**: Users can access and read the data provided.\n\nThe app also includes:\n- **Chart Section**: An interactive chatbot, powered by the Gemini API, that answers users' queries about farming.\n- **Profile Section**: A straightforward area where users can view and manage their basic information.\n\nWith these features, Bharat Agro aims to streamline farming operations and enhance productivity through comprehensive, data-driven insights.\n\n## Workflow OF this App\n![Wrok Flow OF the project](images/WorkFlow.png)\n\n## 🔧 Built with\nTechnologies used in the project:\n- Kotlin\n- Xml\n- Firebase\n- Flask\n- MLAlgorithms\n- Gemini Api\n- Meterial 3 desine\n---\n## Workflow of Backend and API Documentation\n![Wrok Flow OF the Api](images/WorkFLowApi.jpg)\n---\n## Workflow Explanation\n---\n1. **Data Collection**\n    - Source data from Kaggle and government websites.\n    - This data includes various attributes necessary for crop and fertilizer predictions.\n\n2. **Data Preprocessing**\n    - Clean and preprocess the collected data.\n    - Handle missing values, normalize data, and perform any necessary transformations to make the data suitable for training models.\n\n3. **Model Training**\n    - Use the preprocessed data to train machine learning models.\n    - Implement different algorithms to find the best-performing models for crop and fertilizer predictions.\n\n4. **Model Testing**\n    - Evaluate the trained models using test data.\n    - Ensure the models provide accurate predictions and generalize well to new, unseen data.\n\n5. **Store the Model in .pkl File**\n    - Save the top accuracy models in `.pkl` (pickle) format.\n    - For example:\n        - `NBClassifier.pkl` for crop prediction.\n        - `RandomForest.pkl` for fertilizer prediction.\n6. **Convert the Model to Flask API**\n    - Load the saved models in a Flask API.\n    - Develop endpoints to serve predictions based on the input data.\n\n7. **Request the Data in JSON Format**\n    - The Flask API receives requests with data in JSON format.\n    - These requests include input features necessary for making predictions.\n\n8. **Get the Response in JSON**\n    - The API processes the input data, uses the loaded models to make predictions, and returns the results in JSON format.\n---\n### [Api Documentation](https://github.com/anshumanbehera27/Agro_API)\n---\n## Admin and User Interface in Bharat Agro (Using Firebase)\n\n### Overview\n- Bharat Agro app provides two interfaces: Admin and User.\n- Admin interface for managing data with CRUD operations using Firebase.\n- User interface for accessing and interacting with data stored in Firebase.\n\n### Admin Interface\n- **Add Data:** Add new crop details, fertilizer information, weather updates, and soil reports to Firebase.\n- **Update Data:** Edit existing entries in Firebase for accuracy and relevance.\n- **Delete Data:** Remove outdated or incorrect entries from Firebase.\n- **Read Data:** View all stored data in Firebase for monitoring and management.\n### User Interface\n- **View Data:** Access information on farming  from Firebase.\n- **Search Functionality:** Search for specific crop details or other information stored in Firebase.\n\n**RealTimeDatabase:**\n![Firbase.png](images/Firbase.png)\n---\n### Integrating Gemini API\n- Integrate API: Obtain the Gemini API key, configure the backend for API requests, and update the admin interface to manage API settings.\n- Enhance User Interface: Add a text input field and submit button for users to ask questions, then process and display real-time responses from the API.\n- Ensure Functionality: Implement error handling and input validation, and conduct thorough testing to confirm smooth operation and user satisfaction.\n---\n## 📷 App Features\n\n| \u003cimg src=\"images/img.png\" alt=\"App Image\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/startpage.png\" alt=\"Start Page\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/login.png\" alt=\"Login Page\" width=\"220\" height=\"420\"\u003e |\n|:---:|:---:|:---:|\n| App Image | Start Page | Login Page |\n\n| \u003cimg src=\"images/signup.png\" alt=\"Sign Up Page\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/Homepage.png\" alt=\"Home Page\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/SoilReport.png\" alt=\"Soil Report\" width=\"220\" height=\"420\"\u003e |\n|:---:|:---:|:---:|\n| Sign Up Page | Home Page | Soil Report |\n\n| \u003cimg src=\"images/CropPrediction .png\" alt=\"Crop Prediction\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/FertilazationPrediction.png\" alt=\"Fertilization Prediction\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/weather.png\" alt=\"Weather\" width=\"220\" height=\"420\"\u003e |\n|:---:|:---:|:---:|\n| Crop Prediction | Fertilization Prediction | Weather |\n\n| \u003cimg src=\"images/infoSection.png\" alt=\"Information Section\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/info_deatils.png\" alt=\"Information Details\" width=\"220\" height=\"420\"\u003e | \u003cimg src=\"images/profileSection.png\" alt=\"Profile Section\" width=\"220\" height=\"420\"\u003e |\n|:---:|:---:|:---:|\n| Information Section | Information Details | Profile Section |\n\n| \u003cimg src=\"images/Chartbot.png\" alt=\"Chartbot\" width=\"220\" height=\"420\"\u003e |     \u003cimg src=\"images/AdminHomepage.png\" alt=\"AdminHomepage\" width=\"220\" height=\"420\"\u003e     |     \u003cimg src=\"images/UploadData.png\" alt=\"UploadData\" width=\"220\" height=\"420\"\u003e     |\n|:---:|:----------------------------------------------------------------------------:|:-------------------------------------------------------------------------:|\n| Chartbot |                                AdminHomePage                                 |                                UploadData                                 |\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshumanbehera27%2Fbharatagroandriodapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshumanbehera27%2Fbharatagroandriodapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshumanbehera27%2Fbharatagroandriodapp/lists"}