Logo Lanfrica

Victor-W-N/SmartFarmingSystem

Domain:

agriculture

Record type:

software
Creator:
Vic
Host:
This system provides a secure digital platform for tracking, verifying, and managing subsidized and commercial fertilizers from manufacturers and suppliers to farmers. Inspired by recent counterfeits in Kenya. Its goal is to eliminate counterfeit fertilizer, improve accountability, and protect farmer productivity. # SmartFarmingSystem This system provides a secure digital platform for tracking, verifying, and managing subsidized and commercial fertilizers from manufacturers and suppliers to farmers. Inspired by recent counterfeits in Kenya. Its goal is to eliminate counterfeit fertilizer, improve accountability, and protect farmer productivity. Overview The Smart Farming System enables end-to-end traceability of fertilizer batches. It allows farmers to confirm authenticity, suppliers to manage inventory, and administrators to maintain oversight of the distribution pipeline. Key Features Fertilizer Input Verification (QR and USSD) Farmers can check fertilizer authenticity by scanning a QR code on the bag. A USSD-based verification process is also available through Africa’s Talking for regions with poor internet access. Supplier Management Portal Secure dashboard for suppliers to register fertilizer batches, manage inventory, and generate unique QR codes for each batch. Role-Based Access Control (RBAC) Different system roles including System Administrator, Registered Supplier, and Agro-Dealer to ensure secure data handling. Farmer Education Chatbot A simple chatbot providing farming tips and guidance in both English and Kiswahili. Project Structure The project uses Python Flask with a structured layout for scalability: app.py: Main Flask application responsible for routing, business logic, and web page rendering. db.py: Handles MySQL database connectivity using secure parameterized queries. templates/: Contains HTML (Jinja2) templates for all system pages. static/: Holds UI resources (CSS, JavaScript) and dynamically generated QR code images. venv/: Contains the project’s virtual environment and dependencies. Technology Stack Backend: Python (Flask) Database: MySQL USSD Integration: Africa’s Talking Libraries Used: Flask, mysql-connector-python, qrcode Installation and Setup This guide is intended for quick installation during system submission or demonstr …