{"id":25875610,"url":"https://github.com/aditya7416/rfidtracking","last_synced_at":"2026-05-09T06:35:47.824Z","repository":{"id":279245316,"uuid":"933684079","full_name":"Aditya7416/rfidtracking","owner":"Aditya7416","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-24T15:12:06.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T09:05:46.657Z","etag":null,"topics":["ardiuno","esp32","python","rfid"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aditya7416.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-02-16T13:09:57.000Z","updated_at":"2025-02-24T15:13:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"66b9582d-8471-437c-888a-cd6f240d9d07","html_url":"https://github.com/Aditya7416/rfidtracking","commit_stats":null,"previous_names":["aditya7416/rfidtracking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aditya7416/rfidtracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya7416%2Frfidtracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya7416%2Frfidtracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya7416%2Frfidtracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya7416%2Frfidtracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aditya7416","download_url":"https://codeload.github.com/Aditya7416/rfidtracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aditya7416%2Frfidtracking/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259949660,"owners_count":22936407,"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","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":["ardiuno","esp32","python","rfid"],"created_at":"2025-03-02T10:18:38.483Z","updated_at":"2026-05-09T06:35:47.769Z","avatar_url":"https://github.com/Aditya7416.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"🚒 RFID Fire Truck Dispatch System\r\n\r\n📌 Project Overview\r\n\r\nThe RFID Fire Truck Dispatch System is a real-time tracking and dispatch solution using ESP32, Firebase, and Streamlit. It enables fire stations to monitor truck availability and automatically dispatch the nearest available fire trucks during emergencies.\r\n\r\n✨ Features\r\n\r\n🔹 1. RFID-Based Fire Truck Tracking\r\n\r\nEach fire truck is assigned an RFID tag.\r\n\r\nESP32 with an RFID reader scans the tag when a truck enters or leaves the station.\r\n\r\nA scan count system determines availability:\r\n\r\nEven count = Truck is in the station (Available).\r\n\r\nOdd count = Truck is dispatched (Not Available).\r\n\r\nTruck status updates in Firebase Realtime Database in real time.\r\n\r\n🔹 2. Real-Time Data Sync with Firebase\r\n\r\nStores truck status, scan history, and availability.\r\n\r\nRFID scans automatically update Firebase.\r\n\r\nData is accessible via Streamlit web app for monitoring and decision-making.\r\n\r\n🔹 3. Smart Dispatch System (Nearest Trucks)\r\n\r\nFirefighters enter the fire location in the web app.\r\n\r\nThe system:\r\n\r\nFetches all available trucks from Firebase.\r\n\r\nCalculates distance between each truck's station and the fire location.\r\n\r\nSorts trucks by distance.\r\n\r\nSelects the nearest trucks for dispatch.\r\n\r\n🔹 4. Request Additional Trucks from Other Stations\r\n\r\nIf more trucks are needed, the system:\r\n\r\nIdentifies other nearest fire stations.\r\n\r\nChecks truck availability at these stations.\r\n\r\nDispatches additional trucks from the nearest station with available resources.\r\n\r\n🔹 5. Interactive Map for Fire Truck \u0026 Fire Location\r\n\r\nUses Folium to display an interactive map in the web app.\r\n\r\nShows:\r\n\r\n🚒 Fire truck locations (Green = Available, Orange = Dispatched).\r\n\r\n🔥 Fire location (Red marker).\r\n\r\n🔹 6. Truck Entry \u0026 Exit Logging\r\n\r\nLogs each truck's entry and exit with timestamps.\r\n\r\nDisplays detailed history in the web app.\r\n\r\nHelps analyze response time and improve efficiency.\r\n\r\n🛠️ Tech Stack\r\n\r\nComponent\r\n\r\nTechnology Used\r\n\r\nHardware\r\n\r\nESP32, RFID Module\r\n\r\nBackend\r\n\r\nFirebase Realtime Database\r\n\r\nWeb App\r\n\r\nStreamlit, Folium\r\n\r\nDistance Calculation\r\n\r\nGeopy\r\n\r\n📌 How It Works\r\n\r\n🚀 Step 1: Scanning Trucks at the Fire Station\r\n\r\n1️⃣ Each truck has an RFID tag.\r\n2️⃣ An ESP32-based RFID reader scans the tag when a truck enters or leaves.\r\n3️⃣ Truck availability is determined based on scan count.\r\n4️⃣ The Firebase Realtime Database updates truck status automatically.\r\n\r\n🚀 Step 2: Fire Emergency Reported\r\n\r\n1️⃣ Firefighters enter the fire location (latitude/longitude) in the Streamlit web app.\r\n2️⃣ The system fetches all available trucks from Firebase.\r\n3️⃣ It calculates the distance between each truck and the fire location.\r\n4️⃣ The nearest trucks are selected for dispatch.\r\n\r\n🚀 Step 3: Dispatch \u0026 Request Additional Trucks\r\n\r\n1️⃣ Selected trucks are marked as dispatched in Firebase.\r\n2️⃣ If more trucks are needed:\r\n\r\nThe system finds nearby fire stations.\r\n\r\nRequests additional trucks based on distance.\r\n3️⃣ The dispatch event is logged in Firebase.\r\n4️⃣ The interactive map updates in real-time.\r\n5️⃣ The web app displays a timestamped history of truck movement.\r\n\r\n🚀 Getting Started\r\n\r\n📥 Prerequisites\r\n\r\nESP32 microcontroller\r\n\r\nRFID module (MFRC522 or similar)\r\n\r\nFirebase Realtime Database account\r\n\r\nPython environment with Streamlit installed\r\n\r\nInternet connection\r\n\r\n🔧 Installation Steps\r\n\r\n1️⃣ Clone the Repository\r\n\r\ngit clone https://github.com/your-username/rfid-fire-truck-dispatch.git\r\ncd rfid-fire-truck-dispatch\r\n\r\n2️⃣ Set Up Firebase\r\n\r\nCreate a Firebase Realtime Database.\r\n\r\nUpdate the Firebase credentials in the code.\r\n\r\n3️⃣ Install Required Dependencies\r\n\r\npip install streamlit firebase-admin folium geopy\r\n\r\n4️⃣ Run the Web App\r\n\r\nstreamlit run app.py\r\n\r\n5️⃣ Deploy ESP32 Firmware\r\n\r\nFlash the ESP32 with the provided RFID scanner code.\r\n\r\nEnsure WiFi and Firebase configurations are correct.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya7416%2Frfidtracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditya7416%2Frfidtracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya7416%2Frfidtracking/lists"}