node-zklib icon indicating copy to clipboard operation
node-zklib copied to clipboard

Transaction/Punch type time in, time out, ot in, ot out not included in data returned

Open jairusqt opened this issue 1 year ago • 1 comments

I did get the real time logs and attendance but there's no transaction/punch type included? please help.

jairusqt avatar Aug 21 '24 01:08 jairusqt

up!

I noticed the decoder found in util.js doesn't have the in or out status, also the realtime logs decoder:

` module.exports.decodeRecordData40 = (recordData)=>{ const record = { userSn: recordData.readUIntLE(0, 2), deviceUserId: recordData .slice(2, 2+9) .toString('ascii') .split('\0') .shift(), recordTime: parseTimeToDate(recordData.readUInt32LE(27)), } return record }

module.exports.decodeRecordRealTimeLog18 = (recordData)=>{ const userId = recordData.readUIntLE(8,1) const attTime = parseHexToTime(recordData.subarray(12,18)) return {userId , attTime} } `

Please do add the check in/out, this is really needed for this package. thanks!

justlester avatar Nov 30 '24 15:11 justlester