kamshory / ZKLibrary

ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
GNU General Public License v2.0
195 stars 176 forks source link

getting attendance data #4

Closed junaidranjha closed 4 years ago

junaidranjha commented 6 years ago

untitled my device is connected i can get user data and attendance data but problem is i am not able to get attendance of last whole month its like if i am accessing getattendance() it returns data from last months 31st uptill now while i want it to get all the data.

shariqali91 commented 5 years ago

Still not getting data by using this script i connect on same network which device is connected can some. ERROR "CONNECTION REFUSED". Can someone guide me for resolution your quick response is highly appreciated.

Device IP: 192.168.1.10

image

leoangelovb commented 5 years ago

The efficient way that you can do is to.

  1. Connect to the device
  2. Get the attendance data
  3. sort the attendance data from the array
  4. store each sorted data into each variable
  5. insert it to database
  6. clear data from device
nathesg27 commented 5 years ago

why am i getting special characters when I retrieve data from the device and also the date it returns is inaccurate.

egan95 commented 5 years ago

please help... why zklibrary not working when i upload to server hosting? on localhost everything it's gonna be ok, but after upload to server the program is not working.. the server hosting is already install socket for php but still not working.. please help me...

full-stack-king commented 5 years ago

please help... why zklibrary not working when i upload to server hosting? on localhost everything it's gonna be ok, but after upload to server the program is not working.. the server hosting is already install socket for php but still not working.. please help me...

You need to make sure that the device IP is accessible from the remote server. If you have any firewall, make sure to add the remote server in your local network.

kolemartins commented 5 years ago

The efficient way that you can do is to.

  1. Connect to the device
  2. Get the attendance data
  3. sort the attendance data from the array
  4. store each sorted data into each variable
  5. insert it to database
  6. clear data from device

Write us a code man! thanks in advance!

sulaiman-allemyar commented 5 years ago

Dear Sir: I get the UID in unknown format with symbols and it shows the number of records incorrect. I cleared the logs and added some records to device but now it does not show the new records. However I am connected to device and the library collects all info from device. Everything seems correct when I get logs from ZKteco software. My Device: Zkteco F7

kamshory commented 5 years ago

I think your device has different data format. You can fix it by modifying the code of the library according to your device data format.

shindepy commented 5 years ago

How can clear data from device ?

shindepy commented 5 years ago

The efficient way that you can do is to.

1. Connect to the device

2. Get the attendance data

3. sort the attendance data from the array

4. store each sorted data into each variable

5. insert it to database

6. clear data from device

How can clear data from device ?

leoangelovb commented 5 years ago

You need to instantiate variable and use the function clearDevice();

Thank you very much.

Sincerely, Leo Angelo Bacolores

On 14 Jun 2019, at 2:30 PM, shindepy notifications@github.com wrote:

How clear data from device ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

tangduongtrieu commented 4 years ago

i connected with $users = $zk->getUser(); -> done very good ! but with $data = $zk->getAttendance(); -> it dont working.

xeechaun commented 4 years ago

We have built application to receive attendance records using PUSH method. send a message here: http://aurasofts.com/contact-us/

Hi Kmshory, We are looking for Push Sdk documentation , can you kindly share such doc with us? Thanks in advance . Ivan

Mahfuz2811 commented 4 years ago

I think your device has different data format. You can fix it by modifying the code of the library according to your device data format.

Where will I get the data format of the device? Please, can you help me?

sulaiman-allemyar commented 4 years ago

I think your device has different data format. You can fix it by modifying the code of the library according to your device data format.

Where will I get the data format of the device? Please, can you help me?

My Device is Zkteco F7

WarLord0719 commented 4 years ago

Hello. I have the same problem. $data = $zk->getAttendance(); it does n't working. Please help me.

ahmedweb94 commented 4 years ago

when i use $zk->getAttendance(); i get this data "uid" => b"\x02\x01\x13&\x00\x01ÿ" "id" => 0 "state" => 255 "time" => "2000-01-01 00:00:00" how can i get last data entered and why uid back like this? how to make it readable?

kamshory commented 4 years ago

I think your version of ZK firmware is different with this library.

akbar-programmer commented 4 years ago

Not showing all the attendance day wise, device ZK-iClock680. is there any limit?

FairouzGattoufi commented 4 years ago

hello, @kamshory i had tried ZKLibrary, it really helped me a lot, but still one think I want to ask you about that how I can get finger print data. I had get all user data and attendance but i need to get the user finger print

keithlimmontajes commented 4 years ago

hello, my state was only 15 and 1 how can i know if its for time in, break in , break out, time out? model is zkteco uface402? Thanks plss help. @junaidranjha and @RahamSher, @kamshory kamshory

ibrahim-rasheed commented 4 years ago

why does the "status" is always "Check In"???

abdwasey commented 4 years ago

Capture

not getting an attendance record

keithlimmontajes commented 4 years ago

@kamshory hello im using uface 402, same issue sir my device has option if time in, time out, break in, break out. but the state only shows 15 and 1 image

keithlimmontajes commented 4 years ago

i hope you could help me out sir @kamshory

keithlimmontajes commented 4 years ago

image

keithlimmontajes commented 4 years ago

@RahamSher does this work on uface 402? https://github.com/dnaextrim/php_zklib im not getting anything thanks for help

RobertoCarrillo1976 commented 4 years ago

Hello, there is a way to search records only on a specific date, for example: getAttendence("2020-07-08")?

junaidranjha commented 4 years ago

@RobertoCarrillo1976 When I worked over it there wasn't any way to do that. So what we could do was handling this from Code by only storing those records in an array which belonged to a specific date or between a specific date range

Hello, there is a way to search records only on a specific date, for example: getAttendence("2020-07-08")?

RobertoCarrillo1976 commented 3 years ago

Muchas gracias por responder. Desde Argentina le envío un abrazo fraterno.

El vie., 10 de jul. de 2020 03:22, junaidranjha notifications@github.com escribió:

@RobertoCarrillo1976 https://github.com/RobertoCarrillo1976 When I worked over it there wasn't any way to do that. So what we could do was handling this from Code by only storing those records in an array which belonged to a specific date or between a specific date range

Hello, there is a way to search records only on a specific date, for example: getAttendence("2020-07-08")?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kamshory/ZKLibrary/issues/4#issuecomment-656505777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQHAR4MCRIGI4MQNNWACC43R22XQ7ANCNFSM4D25FUKQ .

ghazali112 commented 2 years ago

not getting attandance data only getting users list

umar12fayyaz commented 2 years ago

I have my data in my mongodb database now i want to connect zkteco k40 attendance machine with it to get data from my database can you help me how can i do it.

mesutgunay commented 1 year ago

ahmetweb94

were you able to solve this problem?

i am having the same problem.

erkutcin commented 1 year ago

ahmetweb94

were you able to solve this problem?

i am having the same problem.

Hi Mr Mesut, Were you able to retrieve data from Zkteco? I want to combine one for my project, but i could not figure it out.

zaid2255 commented 1 year ago

image

I'm getting Data User but not getting attendance can anyone help me

mesutgunay commented 1 year ago

ahmetweb94

were you able to solve this problem? i am having the same problem.

Hi Mr Mesut, Were you able to retrieve data from Zkteco? I want to combine one for my project, but i could not figure it out.

yes i fixed with new dll.