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

How to subscribe for realtime logs ? #1

Open
imfaisii opened this issue Dec 30, 2021 · 11 comments
Open

How to subscribe for realtime logs ? #1

imfaisii opened this issue Dec 30, 2021 · 11 comments

Comments

@imfaisii
Copy link

Hello, I hope you are doing well. I am very new to nodejs . I am using your library , my device is connected . I can see the users and attendances but how am I going to get realtime logs. I am inside example and typed node test.js and it says Previous real time event removed!!!. and is on infinite wait. How will it trigger that realtime call ?

@rabbygit
Copy link
Owner

Isn't it triggered when a verified fingerprint is placed?

@imfaisii
Copy link
Author

Isn't it triggered when a verified fingerprint is placed?

Nope , always waiting . do i have to goto example folder and type node test ? that s is ? and on console it will show the log when the finger is placed ? after it says Previous real time event removed!!! ?

@rabbygit
Copy link
Owner

Yes, after displaying "Previous real time event removed!!!", it should print in the console if a verified finger is placed.

@imfaisii
Copy link
Author

Yes, after displaying "Previous real time event removed!!!", it should print in the console if a verified finger is placed.

oh, it is not working in my case , actually I am a laravel dev , i tried php library of it but that was not this much reliable. I will try to test it some more time , and 1 thing about deployment , I wont be able to deploy it on shared hosting right ? it will give port error , I will need a VPS for it ?

@rabbygit
Copy link
Owner

rabbygit commented Jan 1, 2022

I think deployment in shared hosting won't cause any problem. Give it a try!

@rabbygit
Copy link
Owner

rabbygit commented Jan 1, 2022

By the way, DId you set any password on your device? If yes then you need to pass the password during instance creation.

@imfaisii
Copy link
Author

imfaisii commented Jan 1, 2022

No it is not password protected

@rabbygit
Copy link
Owner

rabbygit commented Jan 2, 2022

Today, I run into the same problem with one of the devices. After some debugging, I find that I did not register users first. Did you register users on your device? To check registered users run the following code:

const users = await zkInstance.getUsers()
console.log(users)

@imfaisii
Copy link
Author

imfaisii commented Jan 2, 2022

Yes I am doing this step , i can see users and logs but realtime logs isn't working

@daoues1
Copy link

daoues1 commented Dec 7, 2022

I had faced the same problem, i can't get an acces to realtime logs , did you find any solution ? Thanks.

@Muddasir1
Copy link

Real-time attendance working fine in my case it working perfect

Greate work

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

4 participants