Initial test

This commit is contained in:
Aries Wibowo
2026-04-22 09:19:12 +07:00
parent 9abcfe6bb8
commit 484ba05a65
131 changed files with 65583 additions and 0 deletions

14
getAttendanceData.py Normal file
View File

@@ -0,0 +1,14 @@
import sys
import os
sys.path.insert(1,os.path.abspath("./pyzk"))
from zk import ZK, const
zk = ZK('10.35.7.12', port=4370, timeout=5, password=0, force_udp=False, ommit_ping=False)
conn = zk.connect()
# Get attendances (will return list of Attendance object)
attendances = conn.get_attendance()
for attendance in attendances:
print(attendance)
# Clear attendances records
#conn.clear_attendance()