Help with watchmaker battery charging status code at Android 5.1

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

I want show in my watch face a battery charging status indicator. I wrote the code below, it shows running ok with Watchmaker but when installed on the watch, it do not shows the battery charging.

Code:
Selecting the battery image:
1)COLOR:
"{bc}"=="Charging" and ({bl} < 100) and 'ff0000' or '0cff00'

2)OPACITY:
"{bc}" == "Discharging" and 0 or 100
 
I moved this to the Wear OS forum for more specific traffic.
 
I think the syntax you entered is confusing LUA. Try:

("{bc}"=="Charging" and {bl} < 100) and "ff0000" or "0cff00"
 
Try creating a temporary text layer, and placing {bc} in it, to see what it says.

Also remember that (bc) value for the watch will not work when your are running the watch face on your phone/tablet. Just like (bl) will reflect the phone's battery level (i.e. {bl}={pbl}).
 
That is right! For my surprise even {bc} or {pbc} or {pbl} works normal on the phone using watchmaker, but when i install on the watch android 5.1 it do not works either with {bc} or {pbc}. Probably the universal launcher/clockskincoco ? I´lll try creating a text layer.
 
That is right! For my surprise even {bc} or {pbc} or {pbl} works normal on the phone using watchmaker, but when i install on the watch android 5.1 it do not works either with {bc} or {pbc}. Probably the universal launcher/clockskincoco ? I´lll try creating a text layer.
 

Trending Posts

Forum statistics

Threads
956,352
Messages
6,967,735
Members
3,163,517
Latest member
Nehasingh12