caobo171 / node-zklib

This is a lightweight of node.js module to connect to biometrix attendance device for examples ZKTeco
70 stars 59 forks source link

get attendance timeout with large amounts of data #31

Open AlbertoDevTorres opened 3 years ago

AlbertoDevTorres commented 3 years ago

Someone could answer me that it is because when downloading large amounts of the device it takes out different amounts depending on the moment, I get the idea that it could be the timeout implemented, of the internet connection or it could be something different.

Currently I try to get the data from the log and it reaches the amount of 19k, but when I change the timeout time the amounts change and do not match the amount that comes from the info function.

pd: sorry for my bad ENG.

caobo171 commented 3 years ago

You need to see the error log to see what happened :D my company logs exceeds 80k and it works :D

malikwaqasmustafa commented 1 year ago

Old Question but still no one has answered it correctly i would like to contribute:

The issue is there is currently no filters available fetching data from machines by chunks or within two specific dates, there could be two possible ways to work around.

  1. Use C# SDK there it uses the Zkemkeeper C++ dll wrapper which has this method you can fetch logs from a specific date.
  2. If you're using PHP, Python, Node or any other programming language to establish connection over ip and port you can to write a custom mechanism which suits you, You can determine the time period of the entries which will be too much for you to handle, make a process / cron which will clear the entries after backing them up to a external database or cloud.

Hope it helps someone!