Closed SnguonTheara closed 6 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?
@SnguonTheara, @windgaucho
Unfortunately I couldn't find enough information regarding to transfer or query the fingerprint/face info from/to devices on the web.
What operations I am allowed to do using this package?
add/delete users to/from the device?
No, unfortunately it is limited to read operations. Contributions are welcomed.
@bulentv This issue can be closed as the current pr #6 does this. Attn: @SnguonTheara
Thanks.
Thank you @shubhamoy !!!!!!!!!!!!!!!!!!
There is any docs about this new methods? :)
@windgaucho You can check this commit. Apart from that feel free to post your query.
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?
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.
ok, I will do that and let you know, thanks for this library !!
@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?
I see that we can get user information and attendant. How about user thumb? Can we set user information with thumb? Please help me.