{"id":30061513,"url":"https://github.com/tigo-cmd/iot-based-smart-locker-system","last_synced_at":"2025-08-08T02:23:48.454Z","repository":{"id":308471228,"uuid":"1032928888","full_name":"Tigo-cmd/IOT-Based-Smart-Locker-System","owner":"Tigo-cmd","description":"IOT Based Smart Locker System for Efficient Pacel Delivery","archived":false,"fork":false,"pushed_at":"2025-08-06T04:00:08.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-06T06:07:20.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://iot-smart-locker.vercel.app","language":"TypeScript","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/Tigo-cmd.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-08-06T03:48:45.000Z","updated_at":"2025-08-06T04:08:43.000Z","dependencies_parsed_at":"2025-08-06T06:07:23.829Z","dependency_job_id":"517c500c-8b14-4711-9660-866fd0e19d8a","html_url":"https://github.com/Tigo-cmd/IOT-Based-Smart-Locker-System","commit_stats":null,"previous_names":["tigo-cmd/iot-based-smart-locker-system"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Tigo-cmd/IOT-Based-Smart-Locker-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigo-cmd%2FIOT-Based-Smart-Locker-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigo-cmd%2FIOT-Based-Smart-Locker-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigo-cmd%2FIOT-Based-Smart-Locker-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigo-cmd%2FIOT-Based-Smart-Locker-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tigo-cmd","download_url":"https://codeload.github.com/Tigo-cmd/IOT-Based-Smart-Locker-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigo-cmd%2FIOT-Based-Smart-Locker-System/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352134,"owners_count":24402735,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-08T02:23:46.265Z","updated_at":"2025-08-08T02:23:48.443Z","avatar_url":"https://github.com/Tigo-cmd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoT-Enabled Smart Locker System\n\nThis project implements a complete end-to-end smart locker platform, comprising:\n\n- **ESP32 firmware** (Arduino/C++) that drives a servo lock, reads a keypad \u0026 LCD, and beeps a buzzer  \n- **Flask backend** with SQLite persistence, CORS, and REST endpoints to register lockers, generate/verify OTPs, and record open/close status \u0026 activities  \n- **React frontend** (Vite + TypeScript) that lists lockers, shows their status \u0026 current OTP, and lets couriers or admins generate new OTPs and remotely open/close lockers  \n\n---\n\n## Features\n\n- **Locker registration** via `POST /api/lockers/`  \n- **OTP lifecycle**  \n  - Generate new OTP: `POST /api/lockers/\u003cid\u003e/otp`  \n  - Fetch current OTP:   `GET  /api/lockers/\u003cid\u003e/otp`  \n  - Verify user-entered OTP: `POST /api/lockers/\u003cid\u003e/verify-otp`  \n- **Status reporting**  \n  - Read status:      `GET  /api/lockers/\u003cid\u003e/status`  \n  - Update status:    `POST /api/lockers/\u003cid\u003e/status`  \n- **Activity logging**: `POST /api/lockers/\u003cid\u003e/activity`  \n- **Frontend dashboard**: lists all lockers, shows status, OTP, last activity; supports “Generate OTP” and “Open/Close” actions  \n- **ESP32 firmware**:  \n  - On boot, fetches \u0026 prints OTP to Serial, displays on LCD  \n  - Allows on-keypad new-OTP fetch (`A`), OTP entry (`0–9` + `#`) with timeout/clear (`*`)  \n  - Verifies via `/verify-otp`, drives servo \u0026 buzzer, reports open/closed via `/status`  \n\n---\n\n## Prerequisites\n\n- **Hardware**: ESP32 + servo + 4×4 keypad + I²C LCD + buzzer  \n- **Software**:  \n  - Python 3.8+ \u0026 pip  \n  - Node.js \u0026 npm \n  - Arduino IDE / PlatformIO for ESP32  \n  - SQLite (for local dev) or PostgreSQL in production  \n\n---\n\n## Backend Setup\n\n1. **Install dependencies**  \n   ```bash\n   pip install flask flask-sqlalchemy flask-cors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigo-cmd%2Fiot-based-smart-locker-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftigo-cmd%2Fiot-based-smart-locker-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigo-cmd%2Fiot-based-smart-locker-system/lists"}