RFID Reader
The RFID Reader is the main page of the public frontend. It is designed to be used on a terminal or kiosk where visitors scan their RFID keys.

How to Use
1
Approach the terminal. The screen shows a waiting state, ready to accept an RFID scan.
2
Scan your RFID key. Hold your key or card near the RFID reader. The system reads the key ID automatically.
3
View the confirmation. The screen displays:
- Your name and photo (if available)
- Whether you are signing in or signing out
- A welcome or goodbye message
What Happens Behind the Scenes
When a key is scanned, the system:
- Looks up the visitor by their RFID key ID.
- Creates a new track record with the current timestamp.
- Determines the sign type (in or out) based on event count:
- Odd event → Sign In
- Even event → Sign Out
- If the visitor is a student and ERP integration is enabled, attendance is updated in the school management system (iSAMS).
INFO
If the key is not recognized, an error message appears on screen. The visitor should contact an administrator to register their key.
Screen States
| State | Description |
|---|---|
| Waiting | Ready to scan — shows a prompt to scan the key |
| Welcome | Sign-in confirmed — shows visitor name and welcome message |
| Goodbye | Sign-out confirmed — shows visitor name and goodbye message |
| Not Found | Key not registered — shows an error message |
| Error | System error — shows a general error message |
