Hello,
I learned that you are making change in python zklib. I used this library to set user information throught python but I still blocked to insert cardnumber with command CMD_SET_USER. Please help me to fixe this problem.
I want to set the cardnumber of a user in addition of his uid, name and password.
I you have the right command to set It, I will be very glad to help me.
Thanks.
I use this function :
Hello, I learned that you are making change in python zklib. I used this library to set user information throught python but I still blocked to insert cardnumber with command CMD_SET_USER. Please help me to fixe this problem. I want to set the cardnumber of a user in addition of his uid, name and password. I you have the right command to set It, I will be very glad to help me. Thanks. I use this function :
def zksetuser(self, uid, userid, name, password, role): """Start a connection with the time clock""" command = CMD_SET_USER command_string = pack('sxs8s28ss7sx8s16s', chr( uid ), chr(role), password, name, chr(1), '', userid, '' ) chksum = 0 session_id = self.session_id reply_id = unpack('HHHH', self.data_recv[:8])[3]
I tried to change the command_string to have cardnumber but i didn't success : command_string = pack('sxs8s28ss7sx8s16s', chr( uid ), chr(role), password, name, chr(1), '', userid, '' ) to command_string = pack('sxs8s28ss7sx8s16s', chr( uid ), chr(role), password, name, chr(1), '', userid, '8518512' )
Can you tell me how to fixe this.