Merge branch 'master' into master
This commit is contained in:
commit
17e03f0bf6
13
README.md
13
README.md
@ -149,7 +149,6 @@ conn.delete_user(uid=1)
|
|||||||
```
|
```
|
||||||
there is also an `enroll_user()` (but it doesn't work with some tcp ZK8 devices)
|
there is also an `enroll_user()` (but it doesn't work with some tcp ZK8 devices)
|
||||||
|
|
||||||
|
|
||||||
* Fingerprints
|
* Fingerprints
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@ -162,6 +161,10 @@ fingers = conn.get_templates()
|
|||||||
# pass a User object and a list of finger (max 10) to save
|
# pass a User object and a list of finger (max 10) to save
|
||||||
|
|
||||||
conn.save_user_template(user, [fing1 ,fing2])
|
conn.save_user_template(user, [fing1 ,fing2])
|
||||||
|
|
||||||
|
* Remote Fingerprint Enrollment
|
||||||
|
```
|
||||||
|
zk.enroll_user('23')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -355,14 +358,6 @@ DeviceName : iClock260 (no capture data - probably similar problem as the latest
|
|||||||
|
|
||||||
If you have another version tested and it worked, please inform me to update this list!
|
If you have another version tested and it worked, please inform me to update this list!
|
||||||
|
|
||||||
# Related Project
|
|
||||||
|
|
||||||
* [zkcluster](https://github.com/kurenai-ryu/zkcluster/ "zkcluster project") is a django apps to manage multiple fingerprint devices. (Initial support form the [original project](https://github.com/fananimi/zkcluster/))
|
|
||||||
|
|
||||||
# Related Project (TODO: check compatibility with this fork)
|
|
||||||
|
|
||||||
* [Driji](https://github.com/fananimi/driji/ "Driji project") is an attendance apps based fingerprint for school
|
|
||||||
|
|
||||||
# Todo
|
# Todo
|
||||||
|
|
||||||
* Create better documentation
|
* Create better documentation
|
||||||
|
2
setup.py
2
setup.py
@ -21,4 +21,4 @@ setup(
|
|||||||
],
|
],
|
||||||
install_requires=['future'],
|
install_requires=['future'],
|
||||||
zip_safe=False
|
zip_safe=False
|
||||||
)
|
)
|
21
test_user_enrollment.py
Normal file
21
test_user_enrollment.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from zk import ZK, const
|
||||||
|
|
||||||
|
sys.path.append("zk")
|
||||||
|
|
||||||
|
conn = None
|
||||||
|
zk = ZK('192.168.1.201', port=4370, timeout=5)
|
||||||
|
|
||||||
|
try:
|
||||||
|
conn = zk.connect()
|
||||||
|
conn.disable_device()
|
||||||
|
zk.set_user(26, 'Shubhamoy Chakrabarty', 0, '', '1', '26')
|
||||||
|
zk.enroll_user('26')
|
||||||
|
conn.enable_device()
|
||||||
|
except Exception, e:
|
||||||
|
print "Process terminate : {}".format(e)
|
||||||
|
finally:
|
||||||
|
if conn:
|
||||||
|
conn.disconnect()
|
@ -3,4 +3,4 @@ from .base import ZK
|
|||||||
|
|
||||||
VERSION = (0, 9)
|
VERSION = (0, 9)
|
||||||
|
|
||||||
__all__ = ['ZK']
|
__all__ = ['ZK']
|
@ -1563,4 +1563,4 @@ class ZK(object):
|
|||||||
if cmd_response.get('status'):
|
if cmd_response.get('status'):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
raise ZKErrorResponse("can't clear response")
|
raise ZKErrorResponse("can't clear response")
|
Loading…
Reference in New Issue
Block a user