termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

A way to get watch battery information

Open storm1er opened this issue 5 years ago • 3 comments

Feature description

Provide a way to get watch's battery state, with the same reason wy we would want phone's battery state.

Reference implementation

Have you checked if the feature is accessible through the Android API? Not really, but it's seems clear we will need a termux:API variant for wear os. See https://stackoverflow.com/questions/25884383/get-battery-level-of-connected-smartwatches

Do you know of other open-source apps that has a similar feature as the one you want? (Provide links) Not in open source, but you may want to talk with the developer of this app to get some help if needed : Phone battery, it adds a widget to see the watch battery state: https://play.google.com/store/apps/details?id=com.ppltalkin.phonebatterylevel developer's registered mail: [email protected]

storm1er avatar Nov 19 '20 08:11 storm1er

I am actually not sure if that would be possible. Basically, all smartwatches are communicated with payloads, including the battery level. Unless there is a unified API / message payload I don't think it could be implemented for any smart watches...

Wetitpig avatar Jan 11 '21 11:01 Wetitpig

Use this command

termux-battery-status

If it's works please close this issue

HusniMuhammad avatar Sep 06 '23 12:09 HusniMuhammad

Use this command

termux-battery-status

If it's works please close this issue

This only concerns the battery of the phone, not the watch

Wetitpig avatar Nov 01 '23 07:11 Wetitpig