Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

122 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒพ AI-FarmCare DevTree

An AI-powered comprehensive farming ecosystem built for Hacktron at Infostav

A complete agricultural management platform featuring voice-enabled AI assistance, mobile applications, and robust backend services to empower farmers with intelligent decision-making tools.


##Design Screenshot 2025-10-12 at 4 27 04โ€ฏAM

WhatsApp Image 2025-10-12 at 03 19 22 || WhatsApp Image 2025-10-12 at 03 19 22

๐Ÿš€ Project Overview

AI-FarmCare DevTree is a multi-platform agricultural solution consisting of:

  1. ๐ŸŒ AgroMitraWeb - Next.js web application with voice-powered farm management
  2. ๐Ÿ“ฑ AgroMitraApp - React Native mobile application for on-the-go farming
  3. ๐Ÿค– AI Voice Agent - Intelligent farming companion with real-time voice interaction
  4. โšก Backend API - Express.js backend with comprehensive farming data management

๐ŸŒŸ Key Features

๐ŸŽค AI Voice Assistant

  • Multi-language Support: English, Hindi, Spanish
  • Real-time Voice Interaction: Powered by LiveKit and Google AI
  • Smart Navigation: Voice commands for seamless app navigation
  • Farming Intelligence: Weather updates, crop recommendations, market prices

๐ŸŒฑ Farm Management

  • Digital Farm Mapping: GPS-based area calculation and field management
  • Crop Lifecycle Tracking: From planting to harvest monitoring
  • Task Management: Automated scheduling and reminders
  • Soil Analysis: Real-time soil health monitoring and recommendations

๐Ÿ“Š Data & Analytics

  • Weather Integration: Real-time weather data with farming-specific advice
  • Market Prices: Live commodity prices with trend analysis
  • Disease Detection: AI-powered plant disease diagnosis using Susya API
  • Government Schemes: Access to agricultural subsidies and programs

๐Ÿ‘ฅ Community Features

  • Farmer Network: Connect with local farming communities
  • Knowledge Sharing: Post questions, share experiences, and learn
  • Expert Consultation: Access to agricultural experts and advisors

๐Ÿ—๏ธ Project Structure

AI-FarmCare_DevTree/
โ”œโ”€โ”€ ๐ŸŒ AgroMitraWeb/          # Next.js Web Application
โ”‚   โ”œโ”€โ”€ src/app/              # App Router pages
โ”‚   โ”œโ”€โ”€ src/components/       # Reusable UI components
โ”‚   โ”œโ”€โ”€ src/lib/             # Business logic & utilities
โ”‚   โ””โ”€โ”€ public/              # Static assets
โ”œโ”€โ”€ ๐Ÿ“ฑ AgroMitraApp/          # React Native Mobile App
โ”‚   โ”œโ”€โ”€ app/                 # Expo Router navigation
โ”‚   โ”œโ”€โ”€ components/          # Mobile UI components
โ”‚   โ””โ”€โ”€ assets/              # Mobile assets
โ”œโ”€โ”€ ๐Ÿค– AIVoiceAgent/          # Python AI Voice Assistant
โ”‚   โ”œโ”€โ”€ agent.py             # Main agent logic
โ”‚   โ”œโ”€โ”€ tools.py             # Farming tools & functions
โ”‚   โ””โ”€โ”€ rag_system.py        # Knowledge retrieval system
โ””โ”€โ”€ โšก Backend/               # Express.js API Server
    โ”œโ”€โ”€ src/controllers/     # API controllers
    โ”œโ”€โ”€ src/models/          # Database models
    โ””โ”€โ”€ src/routes/          # API routes

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Python 3.8+ (for AI Voice Agent)
  • MongoDB (local or cloud)
  • Expo CLI (for mobile app)

1. Clone the Repository

git clone https://github.com/your-username/AI-FarmCare_DevTree.git
cd AI-FarmCare_DevTree

2. Setup Backend API

cd Backend
npm install
cp .env.example .env
# Configure your environment variables
npm run dev

Backend URL: https://ai-farmcare-devtree.onrender.com/

3. Setup Web Application

cd AgroMitraWeb
npm install
cp .env.example .env.local
# Add your API keys
npm run dev

Web App: http://localhost:3000

4. Setup Mobile Application

cd AgroMitraApp
npm install
npx expo start

5. Setup AI Voice Agent

cd AIVoiceAgent
pip install -r requirements.txt
cp .env.example .env
# Configure LiveKit and API keys
python agent.py

๐Ÿ› ๏ธ Technology Stack

Frontend & Mobile

  • Web: Next.js 14, TypeScript, Tailwind CSS
  • Mobile: React Native, Expo, NativeWind
  • Voice: Web Speech API, LiveKit Real-time Communication

Backend & AI

  • API: Express.js, MongoDB, JWT Authentication
  • AI: Google Gemini, OpenAI, RAG System
  • Voice Agent: Python, LiveKit, SentenceTransformers

External APIs

  • Weather: OpenWeatherMap API
  • Soil Data: SoilGrids API
  • Disease Detection: Susya API
  • Maps: Google Maps API

๐ŸŽฏ Core Functionality

Voice Commands Examples

๐Ÿ—ฃ๏ธ "What's the weather like for my farm?"
๐Ÿ—ฃ๏ธ "Show me crop recommendations for 5 acres"
๐Ÿ—ฃ๏ธ "Check market prices for wheat"
๐Ÿ—ฃ๏ธ "My tomato plants have yellow spots"
๐Ÿ—ฃ๏ธ "Navigate to my tasks"
๐Ÿ—ฃ๏ธ "เคฎเฅŒเคธเคฎ เค•เฅˆเคธเคพ เคนเฅˆ?" (Hindi: How's the weather?)

API Endpoints

  • Authentication: /api/auth/register, /api/auth/login
  • Tasks: /api/tasks (CRUD operations)
  • Farm Management: /api/fields (Farm field management)
  • Community: /api/posts, /api/community (Social features)
  • Market Data: /api/market-prices (Real-time pricing)

๐ŸŒ Multi-language Support

  • ๐Ÿ‡บ๐Ÿ‡ธ English: Complete functionality
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi (เคนเคฟเคจเฅเคฆเฅ€): Full localization for Indian farmers
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish (Espaรฑol): Support for Spanish-speaking regions

๐Ÿ“ฑ Mobile Features

  • Voice-First Interface: Talk to your farming assistant
  • Offline Task Management: Work without internet connectivity
  • Camera Integration: Plant disease detection via camera
  • GPS Integration: Location-based farming recommendations
  • Push Notifications: Task reminders and weather alerts

๐Ÿค– AI Capabilities

Farming Intelligence

  • Crop recommendation based on soil and climate
  • Disease diagnosis from symptoms or images
  • Weather-based farming advice
  • Market price predictions and trends

Knowledge Base

  • 200+ farming topics in RAG system
  • Government schemes and subsidies
  • Best practices and techniques
  • Community-driven knowledge sharing

๐Ÿงช Testing & Development

Backend Testing

cd Backend
npm test
# API endpoints testing
node test-api.js

Frontend Testing

cd AgroMitraWeb
npm run test
npm run lint

AI Voice Agent Testing

cd AIVoiceAgent
python -m pytest tests/

๐Ÿš€ Deployment

Production URLs

Environment Configuration

Each component includes .env.example files with required configuration variables.


๐Ÿ‘ฅ Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the individual component LICENSE files for details.


๐Ÿ† Hacktron @ Infostav

Built with โค๏ธ for farmers worldwide

Empowering agriculture through intelligent voice technology and comprehensive farm management solutions.

Team

  • Project: AI-FarmCare DevTree
  • Event: Hacktron at Infostav
  • Focus: Agricultural Technology & AI Innovation

๐Ÿ“ž Support

For questions, issues, or contributions:

  • ๐Ÿ“ง Email: [Your contact email]
  • ๐Ÿ› Issues: [GitHub Issues Link]
  • ๐Ÿ“š Documentation: See individual component READMEs
  • ๐ŸŒ Demo: [Live demo link if available]

Transforming Agriculture, One Voice Command at a Time ๐ŸŒพ๐Ÿค–

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages