bulentv / js_zklib

Attendance Machine Library for NodeJS with a connection to the network using the UDP protocol and port 4370
GNU General Public License v2.0
56 stars 46 forks source link

How can we get user thumb from finger print machine? #5

Closed SnguonTheara closed 6 years ago

SnguonTheara commented 7 years ago

I see that we can get user information and attendant. How about user thumb? Can we set user information with thumb? Please help me.

windgaucho commented 7 years ago

I would like to know that too. Currently I have developed a microsoft vb.net system that is using the zk sdk, but I would like to migrate it to node.js. Can I listen to real time events (like the user fingerprint) using this package?

bulentv commented 7 years ago

@SnguonTheara, @windgaucho

Unfortunately I couldn't find enough information regarding to transfer or query the fingerprint/face info from/to devices on the web.

windgaucho commented 7 years ago

What operations I am allowed to do using this package?

add/delete users to/from the device?

bulentv commented 7 years ago

No, unfortunately it is limited to read operations. Contributions are welcomed.

shubhamoy commented 6 years ago

@bulentv This issue can be closed as the current pr #6 does this. Attn: @SnguonTheara

bulentv commented 6 years ago

Thanks.

windgaucho commented 6 years ago

Thank you @shubhamoy !!!!!!!!!!!!!!!!!!

windgaucho commented 6 years ago

There is any docs about this new methods? :)

shubhamoy commented 6 years ago

@windgaucho You can check this commit. Apart from that feel free to post your query.

windgaucho commented 6 years ago

Last night I was trying to connect to F8 zk fingerprint. I tried to do a simple test with the code that you have in the readme.md and I was able to connect to my reader device, but I was getting an error that says that the gettime function does not exist, can you advice me about this error?

shubhamoy commented 6 years ago

Preliminary it appears that it's quite possible that the device's firmware might not be supporting the said method. Try checking the official documentation and codebase.

windgaucho commented 6 years ago

ok, I will do that and let you know, thanks for this library !!

windgaucho commented 6 years ago

@shubhamoy I can confirm that the method gettime works perfect in my device. I was doing ZK.getTime() instead of ZK.gettime(). Note that is not camel case, that was the error.

Now I am getting the following error when I execute the sample code that is in the readme:

var ZKLib = require("zklib");
    ZK = new ZKLib({
      ip : "192.168.5.11", 
      port : 4370,
      inport : 5200
    });
    ZK.connect( function() {
      ZK.getTime( function(err, t) {
        console.log("Device clock's time is " + t.toString());
        ZK.disconnect();
      });
    });

the error message is:

W20180301-19:21:20.112(-3)? (STDERR) TypeError: cb is not a function
W20180301-19:21:20.113(-3)? (STDERR)     at Socket.<anonymous> (/home/test-zklib/node_modules/zklib/zklib/zklib.js:39:7)
W20180301-19:21:20.113(-3)? (STDERR)     at Object.onceWrapper (events.js:317:30)
W20180301-19:21:20.114(-3)? (STDERR)     at emitTwo (events.js:126:13)
W20180301-19:21:20.117(-3)? (STDERR)     at Socket.emit (events.js:214:7)
W20180301-19:21:20.118(-3)? (STDERR)     at UDP.onMessage (dgram.js:658:8)

the error is fired when call the ZK.disconnect(). What I am doing wrong?