How risvey-hasan/azzain-print-kiosk works
Azzain Ink is a self-service printing-kiosk controller. A student submits print choices through the web page; the kiosk detects the payment page, retrieves the job, waits for a matching bank notification, prints after payment, then records completion and clears the server job. Licensing gates startup, and cancellation is checked while payment is pending. The README documents the overall workflow; the shown source establishes the main calls and local printing behavior, but does not expose backend implementation details.
Main entry points: main.py Kiosk controller · SheetUpdate.py Google Sheets client · printFile.py Print preparation · browser.py Kiosk browser
Components 16
Kiosk interaction
- Kiosk browser
browser.py
Job orchestration
- Kiosk controller
main.py - Web job backend
- Local job files
main.py
Payment verification
- IMAP session
imapConnection.py - Payment inbox
- Payment matcher
paymentConfirmation.py
Printing
- Print preparation
printFile.py - Windows print queue
printFile.py - Printer
Licensing and dashboard
- App license check
validateApp.py - Google Sheets client
SheetUpdate.py - License sheet
- Job dashboard
- Google Sheets
Other components
- Student
Connections 22
- Student → Kiosk browser: submits job
README.md - Kiosk browser → Web job backend: opens kiosk page
browser.py - Kiosk controller → Kiosk browser: waits for payment page
main.py - Kiosk controller → Web job backend: fetches job and settings
main.py - Web job backend → Local job files: provides job files
main.py - Kiosk controller → Web job backend: checks cancellation
main.py - Kiosk controller → IMAP session: opens inbox session
main.py - IMAP session → Payment inbox: reads mail
imapConnection.py - Kiosk controller → Payment matcher: checks amount and time
main.py - Payment matcher → IMAP session: searches messages
paymentConfirmation.py - Kiosk controller → Print preparation: starts paid job
main.py - Print preparation → Local job files: converts job files
printFile.py - Print preparation → Windows print queue: submits print jobs
printFile.py - Windows print queue → Printer: prints jobs
README.md - Kiosk controller → Print preparation: checks queue
main.py - Kiosk controller → Web job backend: confirms and clears job
main.py - Kiosk controller → App license check: validates before startup
main.py - App license check → Google Sheets client: reads license records
validateApp.py - Google Sheets client → License sheet: checks license data
README.md - Kiosk controller → Google Sheets client: records job outcome
main.py - Google Sheets client → Job dashboard: appends job record
- Google Sheets client → Google Sheets: updates sheets
SheetUpdate.py