-
Notifications
You must be signed in to change notification settings - Fork 41
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
Access battery level #82
Comments
There's currently no API that exposes the battery level. Following the idea of embracing web standards, our current plan is to implement the battery status API. |
Great, how can I help? |
First: Confirming that this would solve your particular use case. I know, I am highjacking this Issue a but, sorry – but you were asking, so ¯_(ツ)_/¯ |
I want to show a battery level indicator on my watch face using rocky. The API is of less concern than the data, but following an existing spec. is always sensible. This should probably be on another thread, but one approach could be to have a standard eventListener model for when an established API doesn't exist. You could also request data from known stores, similar to the characteristics on BLE. My question about helping can also be read as:
P.S. Looks like you will need to implement promises, too :) |
Have just started using rockyjs and agree with @thegecko that non-standard APIs such as step count or heart rate are implemented as I'd like to help too if I can, particularly as I note there's no current support for bluetooth connectivity status either. Great work with rockyjs! |
The current Rocky API doesn't mention a way of getting the current battery level, is this possible?
If not, would the
watchInfo
object be the best place to expose it?The text was updated successfully, but these errors were encountered: