Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
8 ตอบกลับ
25321 มุมมอง

I am trying to connect odoo 8.0 with zk device (ZKTeco model K40). I installed zklib to download attendance info from the device. I tried the following code:

import sys
import time
import zklib
from zklib 
import zkconst
zk = zklib.ZKLib("192.168.1.201", 4370)
conn=zk.connect()

When I print conn, its value is False, even when I am sure that the connection parameters are well. I tried pyzk library too, but I had the same connection problem. Then, I tried to connect with another zksoftware (ZKTime) and it connected. What else can I do to connect odoo 8 with zk device?

อวตาร
ละทิ้ง

may be your device will not support the Zklib. contact the ZKTeco support

ผู้เขียน

Is there another library I could use for new devices? or can you give me an idea of how I can modify the code?

ผู้เขียน

Finally I could solve this problem using the zkemkeeper.dll and its methods. You were right the modules didn't work due to the device model.

ผู้เขียน คำตอบที่ดีที่สุด

Finally I could solve this problem using the zkemkeeper.dll and its methods. You were right the modules didn't work due to the device model.

อวตาร
ละทิ้ง

Can you please explain, in ubuntu system how can we use the "zkemkeeper.dll" file?

I found one code, but that one is having "win32com.client" package, not able to run in ubuntu machine.

ผู้เขียน

Sorry, I implemented the solution for windows using pythoncom and win32com.client:

import win32com.client

import pythoncom

Pythoncom.CoInitialize ()

Zk = win32com.client.Dispatch ('zkemkeeper.ZKEM.1')

คำตอบที่ดีที่สุด

Hi Dayana,
There is a free zk integration module available in odoo apps,

https://apps.odoo.com/apps/modules/10.0/hr_zk_attendance/

https://apps.odoo.com/apps/modules/10.0/hr_zk_attendance/

Thanks,

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

We can integrate the biometric attendance machine with the Odoo/OpenERP application without any software support in windows/linux , watch www.youtube.com/watch?v=RQ6W3S3bV5o? . It Supports some of the ZkTeco biometric machines, essl biometric machines along with all the biometric machines listed http://camsunit.com/product/home.html        

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 23
16918
1
ม.ค. 20
3224
How to connect Fingerprint with OpenERP แก้ไขแล้ว
12
ก.พ. 18
19280
0
ส.ค. 17
6288
0
มิ.ย. 17
6