ruuvitag-discovery icon indicating copy to clipboard operation
ruuvitag-discovery copied to clipboard

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

Open DG12 opened this issue 4 years ago • 4 comments

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

See issue #38

DG12 avatar Dec 24 '20 16:12 DG12

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

DG12 avatar Dec 28 '20 13:12 DG12

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.

balda avatar Dec 30 '20 18:12 balda

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 avatar Dec 30 '20 23:12 DG12

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!

pxFIN avatar Jan 02 '21 12:01 pxFIN