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

If no bluetooth packets are received within nn minutes exit( wdog_rc ) - 0.2.6 - resolve #28 #39

Open
DG12 opened this issue Dec 24, 2020 · 4 comments

Comments

@DG12
Copy link

DG12 commented Dec 24, 2020

If no bluetooth packets are received within nn(configuration parameter) minutes issue a critical message and reinitialize

See issue #38

@DG12 DG12 changed the title If no bluetooth packets are received within nn minutes issue an critical message - 0.2.6 - enhancement If no bluetooth packets are received within nn minutes reinitialize - 0.2.6 - resolve #38 Dec 27, 2020
@DG12 DG12 changed the title If no bluetooth packets are received within nn minutes reinitialize - 0.2.6 - resolve #38 If no bluetooth packets are received within nn minutes reinitialize - 0.2.6 - resolve #28 Dec 27, 2020
@DG12
Copy link
Author

DG12 commented Dec 28, 2020

Today I had to use shift-option and click on bluetooth icon to get extended bluetooth dropdown and did a "reset the bluetooth module"

@balda
Copy link
Owner

balda commented Dec 30, 2020

I thought of something like that, but it's not possible. There are situations where it is normal to have no measures. And it's not so easy to "reinitialize", because there are many ways to launch the app (node index.js, docker, home assistant, ...).

The proper way to do that, would be to add an optional option to kill the process if no data is received in X seconds. And let the user choose his "watch" option (to relaunch the app), like pm2 in nodejs or supervisord in system.

@DG12
Copy link
Author

DG12 commented Dec 30, 2020

Maybe just exit with an interesting return code after user defined watchDog timeout.
Some users could then create a script that might execute "npm start" again based on that return code.

:-)

Is it only me (or mac os or mac bigsur) that has a problem?

I really appreciate your attitude that user options resolve many ideas that might be good but maybe not!.

@DG12 DG12 changed the title If no bluetooth packets are received within nn minutes reinitialize - 0.2.6 - resolve #28 If no bluetooth packets are received within nn minutes exit( wdog_rc ) - 0.2.6 - resolve #28 Dec 30, 2020
@pxFIN
Copy link

pxFIN commented Jan 2, 2021

I really appreciate your attitude that user options resolve many ideas that might be good but maybe not!.

Ok maybe my comment doesnt serve the proper github protocol but i have to say (and i say it only once) balda seems to be better coder listening what end users are saying.. a big thumbs up from me!

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

3 participants