A simple locker controller application.
The idea is too simulate a real work locker, where access is granted (open + release) after a unique PIN is entered.
The unique PIN could be created manually through a keypad, or through an interface such as a MAG strip reader, NFC reader, Fingerprint, etc.
The current application checks if it can talk with a Raspberry Pi, and wait for a signal from Raspberry PI's RPio. If it fails, it falls back to the host's keyboard for user input.
Peewee was used as an ORM to simplify relantionship with SQLite database.
python locker.py
- Enter a Unique PIN.
- A virtual locker is reserved.
- Enter a new unique PIN.
- If it matches one of the current lockers, it releases.
- If it does not match, a new locker is reserved under the new pin.
- Type pin 1111 to clear all lockers