Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

⛽ Fuel Management & QR-Based Dispensing System

A Flask-based fuel station management system that controls fuel distribution using QR/plate scanning, enforces quota rules, and provides real-time analytics for pump owners and admins.


🚀 Features

🔐 Authentication

  • Pump owner login system
  • Session-based authentication
  • Secure access to station terminal

📱 QR / Plate Scanning

  • Scan vehicle (QR / plate number)
  • Validate against database
  • Approve or reject fuel requests

⛽ Smart Fuel Dispensing

  • Supports Petrol, Octane, Diesel
  • Automatic liter calculation based on price
  • Logs every transaction

⏱️ Quota Control System

  • Standard quota (72-hour restriction)
  • Emergency quota (higher allowance)
  • Prevents over-fueling within restricted time

📊 Pump Owner Dashboard

  • Daily sales (taka & liters)
  • Fuel type breakdown
  • Recent vehicle activity

🛠️ Admin Panel

  • Search by vehicle plate
  • Search by pump ID
  • Monthly & daily reports
  • Update vehicle status (Standard / Emergency)
  • Audit logs

🧠 How It Works

  1. Pump owner logs in
  2. Vehicle is scanned via QR/plate number
  3. System checks:
    • Vehicle existence
    • Last fuel time
    • Quota rules
  4. If valid → fuel is dispensed
  5. Transaction is logged in database
  6. Admin can monitor everything in real-time

🏗️ Tech Stack

  • Backend: Flask (Python)
  • Database: MySQL
  • Frontend: HTML Templates (Jinja2)
  • Session Management: Flask Sessions

⚙️ Configuration

Environment (Default Setup)

  • Database Host: db
  • User: root
  • Password: rootpassword
  • Database: fuel_db

Fuel Prices

PRICES = {
    "Petrol": 120,
    "Octane": 125,
    "Diesel": 100
}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages