agrisync
Link to open source: https://github.com/Sarvesh2005-code/agrisync
AgriSync - Smart Farming Assistant
๐พ Project Overview
AgriSync is a comprehensive, offline-first mobile application designed to empower Indian farmers with intelligent crop management, real-time weather insights, soil analysis, and AI-powered agricultural assistance. Built with React Native and Expo, AgriSync works completely offline, making it accessible to farmers in remote areas with limited internet connectivity.
โจ Key Features
1. Dynamic Weather System ๐ค๏ธ
- Offline Weather Generation: Region and season-based weather patterns for 5 zones across India
- Real-time Data: Temperature, humidity, rainfall, and conditions
- Farming Advice: Context-aware tips based on current weather
2. GPS Location Detection ๐
- Accurate GPS: Real device coordinates with reverse geocoding
- Manual Override: Set location manually if GPS unavailable
- Smart Caching: Remembers last known location
- Regional Mapping: Covers 22 Indian states with district-level data
- Location Sources: GPS โ Manual โ Cached โ Default fallback
3. Comprehensive Crop Management ๐ฑ
- Crop Database: Wheat, Rice, Tomato, Cotton, Sugarcane with detailed info
- Growth Stages: Track seedling โ vegetative โ flowering โ maturity
- Harvest Countdown: Days until harvest for single-harvest crops
- Continuous Plucking: Multiple harvest dates for crops like tomato
- Treatment Timeline: Day-wise fertilizer and treatment schedule
- Task Status: Past (completed), Present (today), Future (upcoming) with color coding
- Variety Tracking: Store and display crop varieties
4. Advanced Soil Analysis ๐
- 6 Soil Types: Black Cotton, Alluvial, Laterite, Loamy, Red, Sandy
- Soil Characteristics: Texture, color, water retention, drainage
- Dynamic Recommendations: Soil-specific amendments and fertilizers
- NPK Ratios: Customized for each soil type
- Best Crops: Recommended crops for your soil
- pH Management: Acidic/alkaline specific advice
- Regional Mapping: 8 states with district-level soil data
5. 48-Hour Insights Engine โก
- Weather-based Alerts: Frost warnings, heat stress, rainfall alerts
- Pest Predictions: Based on temperature and humidity
- Disease Warnings: Crop-specific disease risk
- Irrigation Advice: When to water based on conditions
- Severity Levels: Critical, Warning, Info with color coding
6. Plant Clinic (Disease Detection) ๐ฅ
- Symptom-based Diagnosis: Select crop and symptoms
- Comprehensive Database: 50+ diseases across major crops
- Treatment Plans: Organic and chemical solutions
- Prevention Tips: Stop diseases before they start
- Visual Guides: Detailed symptom descriptions
7. AI Agricultural Assistant ๐ค
- Offline Knowledge Base: 1000+ farming questions answered
- Crop-specific Advice: Tailored to your crops
- Pest Management: Identification and control
- Fertilizer Guidance: What, when, and how much
- Market Information: Price trends and selling tips
- Government Schemes: PM-KISAN, subsidies, loans
8. Multi-language Support ๐
- 3 Languages: English, Hindi (เคนเคฟเคเคฆเฅ), Marathi (เคฎเคฐเคพเค เฅ)
- Complete Translation: All screens and content
- Easy Switching: Change language anytime
- Persistent Preference: Saves your choice
9. Offline-First Architecture ๐ด
- 100% Offline: Works without internet
- Local Storage: All data on device
- No API Calls: Weather, soil, crop data generated locally
- Fast Performance: Instant loading
- Privacy: Your data stays on your device
๐ฏ Advanced Dashboard Features
Harvest Management
- Single Harvest Crops: Countdown timer showing days until harvest
- Continuous Harvest: First plucking date, last plucking date, frequency
- Visual Indicators: Green "Ready to Harvest" or countdown display
- Harvest Alerts: Notifications when crops are ready
Treatment Timeline
Day 0 โ
Sowing (Completed)
Day 15 ๐ต First Irrigation (Today)
Day 21 โช First Fertilizer (In 6 days)
Day 30 โช Weed Control (In 15 days)
Day 45 โช Second Fertilizer (In 30 days)
- Color Coding:
- โ Green: Completed (past tasks)
- ๐ต Blue: Today's tasks
- โช Grey: Future tasks
- Task Types: Planting, Watering, Fertilizer, Treatment, Monitoring, Harvest
- Detailed Descriptions: What to do and how much
- Smart Scheduling: Based on actual sowing date
Crop Details Cards
- Growth Stage: Current stage with icon
- Days Since Sowing: Automatic calculation
- Next Fertilizer: When and what type
- Variety Information: Display crop variety
- Edit Option: Quick access to modify crops
๐ ๏ธ Technical Stack
Frontend
- React Native: Cross-platform mobile development
- Expo: Development and build tooling
- React Navigation: Tab and stack navigation
- AsyncStorage: Local data persistence
- React i18next: Internationalization
Location Services
- expo-location: GPS and reverse geocoding
- Custom Region Engine: State/district mapping
State Management
- React Hooks: useState, useEffect
- Context API: Global state (if needed)
Data Storage
- AsyncStorage: User preferences, crops, settings
- JSON Files: Static data (diseases, tips, crops)
Styling
- StyleSheet: React Native styling
- Custom Theme: Green (#2e7d32) primary color
- Responsive Design: Works on all screen sizes
๐ Project Structure
agrisync/
โโโ src/
โ โโโ screens/
โ โ โโโ HomeScreen.jsx # Dashboard with weather, crops, alerts
โ โ โโโ CropScreen.jsx # Crop management
โ โ โโโ SoilScreen.jsx # Soil analysis
โ โ โโโ DiseaseScreen.jsx # Plant clinic
โ โ โโโ AiAssistantScreen.jsx # AI chatbot
โ โ โโโ SettingsScreen.jsx # User settings
โ โโโ navigation/
โ โ โโโ MainNavigator.jsx # Stack navigator
โ โ โโโ BottomTabNavigator.jsx # Tab navigation
โ โโโ engines/
โ โ โโโ weatherEngine.js # Offline weather generation
โ โ โโโ regionDetectionEngine.js # GPS and location
โ โ โโโ soilEngine.js # Soil data and recommendations
โ โ โโโ insight48hEngine.js # Weather-based alerts
โ โ โโโ notificationEngine.js # Notification management
โ โโโ data/
โ โ โโโ cropDatabase.js # Comprehensive crop data
โ โ โโโ diseases.json # Disease database
โ โ โโโ crops.json # Basic crop info
โ โ โโโ dailyTips.json # Farming tips
โ โโโ components/
โ โ โโโ ErrorBoundary.jsx # Error handling
โ โโโ localization/
โ โ โโโ i18n.js # Language configuration
โ โโโ App.jsx # Main app component
โโโ assets/ # Images and icons
โโโ package.json # Dependencies
โโโ app.json # Expo configuration
๐ Installation & Setup
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Expo CLI
- Android Studio / Xcode (for emulators)
Steps
- Clone Repository
git clone <repository-url>
cd agrisync
- Install Dependencies
npm install
- Start Development Server
npx expo start
- Run on Device/Emulator
- Press
afor Android - Press
ifor iOS - Scan QR code with Expo Go app
๐ฑ User Workflows
First Time Setup
- Login Screen: Enter name, phone, village
- Location Setup: Auto-detect GPS or set manually
- Add Crops: Select crops and sowing dates
- Soil Type: Choose or auto-detect soil type
- Dashboard: View personalized insights
Daily Usage
- Check Weather: View today's conditions and forecast
- Review Alerts: 48-hour insights and warnings
- Track Crops: Monitor growth stages and upcoming tasks
- Treatment Timeline: See today's tasks and future schedule
- Harvest Countdown: Know when to harvest
- AI Assistant: Ask farming questions
Crop Management
- Add Crop: Name, variety, sowing date
- View Details: Growth stage, days since sowing
- Treatment Schedule: Day-wise tasks
- Harvest Info: Countdown or plucking dates
- Edit/Delete: Modify crop details
Disease Diagnosis
- Select Crop: Choose affected crop
- Pick Symptoms: Select visible symptoms
- Get Diagnosis: View matching diseases
- Treatment Plan: Follow recommendations
- Prevention: Learn how to avoid
๐ฏ Target Audience
- Small Farmers: 1-10 acres
- Marginal Farmers: < 1 acre
- Rural Areas: Limited internet connectivity
- Age Group: 25-60 years
- Education: Basic literacy
- Regions: All of India, especially Maharashtra, Punjab, Karnataka, UP
๐ Future Enhancements
Phase 2
- Market price integration
- Crop yield prediction
- Expense tracking
- Income calculator
- Government scheme alerts
Phase 3
- Community forum
- Expert consultation
- Video tutorials
- Voice commands
- Image-based disease detection
Phase 4
- IoT sensor integration
- Drone mapping
- Satellite imagery
- Weather station data
- Blockchain for supply chain
This build was uploaded as a hackathon project





