We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug i try the get_users() function with ZT1800 machine and it work fine, but when i try it with WL20, it sent back 0 users
To Reproduce Steps to reproduce the behavior: just run this with both device and you will get the result from zk import ZK
def get_user_count_zk(ip, port): zk = ZK(ip, port=port, timeout=5, password=0, force_udp=False, ommit_ping=False) try: conn = zk.connect() conn.disable_device() users = conn.get_users() print(f"Number of users (zk): {len(users)}") conn.enable_device() except Exception as e: print(f"Error: {e}") finally: conn.disconnect()
get_user_count_zk('192.168.84.75', 4370)
Expected behavior if it works in ZT1800, im expecting the same result for WL20, which is the amount of user (should be 3 in WL20)
Capture Data Try to always include captured data (pcap files from wireshark (tutorial), and verbose output from test_machine if applicable)
System (please complete the following information):
Additional context i want to syncronize the data from WL20 to ZT1800
Thanks.
The text was updated successfully, but these errors were encountered:
Also having this issue. get_attendance function returns an empty list. Did you by any chance solved this issue?
Sorry, something went wrong.
@ysystech no sorry, i have tried multiple ways but still no success, i kinda drop this project already.
No branches or pull requests
Describe the bug
i try the get_users() function with ZT1800 machine and it work fine, but when i try it with WL20, it sent back 0 users
To Reproduce
Steps to reproduce the behavior:
just run this with both device and you will get the result
from zk import ZK
def get_user_count_zk(ip, port):
zk = ZK(ip, port=port, timeout=5, password=0, force_udp=False, ommit_ping=False)
try:
conn = zk.connect()
conn.disable_device()
users = conn.get_users()
print(f"Number of users (zk): {len(users)}")
conn.enable_device()
except Exception as e:
print(f"Error: {e}")
finally:
conn.disconnect()
get_user_count_zk('192.168.84.75', 4370)
Expected behavior
if it works in ZT1800, im expecting the same result for WL20, which is the amount of user (should be 3 in WL20)
Capture Data
Try to always include captured data (pcap files from wireshark (tutorial), and verbose output from test_machine if applicable)
System (please complete the following information):
Additional context
i want to syncronize the data from WL20 to ZT1800
Thanks.
The text was updated successfully, but these errors were encountered: