How shelji/attendance-fingerprint-sensor works
This is a shared attendance product: employees submit office/outdoor attendance from PL attendance or scan a fingerprint device; managers administer employees and workplace policy, monitor device activity, and review attendance and reports. The backend owns attendance rules and shared records. The README documents the product flow and capabilities; sampled app excerpts show session/API use and staff verification, while unsampled source limits detail on several routes and device-to-server calls.
Main entry points: mobile_api.py Web and mobile endpoints · (tabs) Management screens · index.tsx Attendance submission · models.py Shared attendance records
Components 24
Django backend
- Web and mobile endpoints
main/attendance/mobile_api.py - Management portal
main/attendance/views.py - Employee accounts
main/attendance/admin.py - Office configuration
main/attendance/configuration.py - Session processing
main/attendance/services.py - Shared attendance records
main/attendance/models.py - Workplace activity
main/attendance/activity.py - Push notifications
main/attendance/push.py - Device commands and scans
main/attendance/mobile_api.py - Attendance reports
main/attendance/views.py
PL admin
- Management screens
mobile-app/src/app/(tabs) - Admin session
mobile-app/src/session.tsx - Admin API client
mobile-app/src/api.ts - Activity and alerts
mobile-app/src/app/activity.tsx
PL attendance
- Attendance submission
staff-app/src/app/(tabs)/index.tsx - Staff session
staff-app/src/session.tsx - Staff API client
staff-app/src/api.ts - Work verification
staff-app/src/verification.ts - Personal activity
staff-app/src/app/activity.tsx - Session cards
staff-app/src/session-card.tsx
Fingerprint device
- Fingerprint and heartbeat firmware
pico/fingerprint and overall/aaa_finished_new_registration_main_code.py
Other components
- Manager
- Employee
- Fingerprint sensor
Connections 28
- Manager → Management screens: manages with
README.md - Employee → Attendance submission: submits attendance
README.md - Fingerprint sensor → Fingerprint and heartbeat firmware: captures scans
- Management screens → Admin session: uses session
mobile-app/src/app/(tabs)/index.tsx - Admin session → Admin API client: creates client
mobile-app/src/session.tsx - Management screens → Admin API client: requests data
- Activity and alerts → Admin session: uses session
mobile-app/src/app/activity.tsx - Attendance submission → Staff session: uses session
staff-app/src/app/(tabs)/index.tsx - Attendance submission → Work verification: captures proof
staff-app/src/app/(tabs)/index.tsx - Staff session → Staff API client: creates client
staff-app/src/session.tsx - Attendance submission → Staff API client: submits attendance
staff-app/src/app/(tabs)/index.tsx - Personal activity → Staff session: uses session
staff-app/src/app/activity.tsx - Attendance submission → Session cards: renders sessions
staff-app/src/app/(tabs)/index.tsx - Admin API client → Web and mobile endpoints: calls backend
README.md - Staff API client → Web and mobile endpoints: calls backend
README.md - Web and mobile endpoints → Employee accounts: authenticates employees
- Web and mobile endpoints → Session processing: processes attendance
- Session processing → Shared attendance records: reads and writes
main/attendance/services.py - Management portal → Shared attendance records: reviews records
- Management portal → Attendance reports: provides reports
README.md - Management screens → Management portal: views management data
README.md - Management screens → Office configuration: configures offices
README.md - Web and mobile endpoints → Workplace activity: records activity
- Shared attendance records → Push notifications: notifies accepted actions
README.md - Fingerprint and heartbeat firmware → Web and mobile endpoints: sends scans and heartbeats
README.md - Web and mobile endpoints → Device commands and scans: dispatches commands
- Management screens → Device commands and scans: controls device
README.md - Employee accounts → Shared attendance records: links employee records