Skip to content
New issue

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

get_users() function isnt working with WL20 machine #215

Open
Redolvo opened this issue Jun 15, 2024 · 2 comments
Open

get_users() function isnt working with WL20 machine #215

Redolvo opened this issue Jun 15, 2024 · 2 comments

Comments

@Redolvo
Copy link

Redolvo commented Jun 15, 2024

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):

  • OS: Windows 10 Home
  • Python version 3.10.11

Additional context
i want to syncronize the data from WL20 to ZT1800

Thanks.

@ysystech
Copy link

Also having this issue. get_attendance function returns an empty list.
Did you by any chance solved this issue?

@Redolvo
Copy link
Author

Redolvo commented Aug 10, 2024

@ysystech no sorry, i have tried multiple ways but still no success, i kinda drop this project already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants