fananimi / pyzk

Unofficial library of zkteco fingerprint attendance machine
GNU General Public License v2.0
498 stars 330 forks source link

Get attendance for certain amount of date #62

Closed ahmedessam1 closed 4 years ago

ahmedessam1 commented 4 years ago

I returned the attendance successfully but problem is: How I am going to generate attendance for a specific date, for example today?

What I have tried:

I tried to get all the attendance and filter it by code but problem is that I will return lots of unwanted data from the device for a very long period of time and recalculate it, which is not the best way to do it

kurenai-ryu commented 4 years ago

the device dumps all the attendance at once. there's no filtering option.

dushiboy commented 4 years ago

ZKTeco C# new SDK supports get attendance records for selected time period and there is anther method called get new records using this method we can get only records which occurred after the last time we retried attendance data. I have tested those function in c# SDK with ZKTeco F18 and UFace302 it works. Can we have those functions implemented in this pyzk library.

kurenai-ryu commented 4 years ago

I would need the source code tested and more importantly the complete pcap file to see the commands and responses.

the test should inquiry the attendance of different periods (two at least) and the other function.. also the output of the test which should correspond to the pcap capture (try to get both at the same time)