The Spark Challenge Student Check-In/Out Tracking Script
This Python Script uses the Student ID Database to match the entries with the ID Card Swipe and records the entries and swipe times.
Big thanks to Claire Poukey!!
The verification file is not included in this repository since it includes sensitive and confidential information about students
What Do You Need To Run This Script?
- Python3
- ID Number Database (verification.txt)
- Magnetic Card Strip Reader
How to Run This Script?
- Clone the script to your machine
- Connect the magnetic card strip reader to your machine
- Run the command
make check-in
in terminal - Swipe card once for check-in
- Swipe card second time for check-out
- When you are done with all entries exit the program safely using
exit
command whenSWIPE PUID
prompted. - Run the attandance script by running the command
make attendance
Note that the script stops recording after 2 swipes and the entries need to be deleted manually from the log file.
What This Script Does?:
- Records the check-in time with the first card swipe
- Records the check-out time with the second card swipes
- Ignores the entries after second card swipe
- Takes the difference between the check-in and check-out time to see how long the student stayed at the event
- Prints the ID card number and the time stayed to a CSV File
Parts of This Script:
- Python Script (checkin.py)
- Attendance Script (attandance.py)
- Makefile (to make things a little easier)
- Log Files
Things to be Careful About:
- Running
make clean
clears the log files so use with caution - If the program crashes for some reason you have to manually rerun the script using make check-in command
- You have to manually run
make attendance
after the event is over to process the data.
Things That Still Need Attention:
- Nothing. (To be updated)