Detect charging or on wrist #5150
Replies: 1 comment
-
Posted at 2022-05-04 by rigrig For charging there is Bangle.isCharging. Posted at 2022-05-05 by Lexibug Checking heart rate could work? Posted at 2022-05-05 by user143355 Thanks. I like the "face down" tip. That looks like it may be what I'm looking for. Posted at 2022-05-05 by Sir_Indy I installed the SleepLog app yesterday, that says it uses the internal temperature sensor to help identify if it's on a wrist, there might be something in that app you could reuse rather than start from scratch. Posted at 2022-05-05 by user143355 Ta. That could work for removal, but I was also hoping to pause heartrate monitoring when removed as well as silencing. Perhaps a hybrid approach might work, with movement/orientation switching is back to "being worn" mode. All good food for thought... Posted at 2022-05-05 by user143355 Great - I'll take a look. I also saw an app that scheduled silent times, so I was going to look at the code for that as well to see what I could "borrow". Posted at 2022-05-05 by @gfwilliams You could use Posted at 2022-05-05 by user143355 Ta - I'll look into the HRM event as well. Lots of options to research! Posted at 2022-08-30 by storm64 Maybe I have something that suits your needs: Here a little example:
The return function is called with the isWearing-status as first and the passed data as second argument: Here the code of this function:
I am using this in the 0.10+ version of sleeplog: Posted at 2022-08-30 by @thyttan If you want another example of the thermometer-solution, it's implemented in the app 'Activity Reminder'. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-05-04 by user143355
Is it possible to detect whether a bangle.js2 is either on charge or (preferably) not on a wrist? If so I want to look in to possibly creating an app to silence the vibration/notification in those circumstances. I've tried a search using the obvious terms and cannot find anything that already exists.
Beta Was this translation helpful? Give feedback.
All reactions