Moving image using tag expression (Battery use)

Hey All! I’m trying to use an underlying image and tag expression to move a green bar to represent the depletion of the battery. I thought maybe something like -1 * ([ba]<100). I could swear that I’ve seen it done on youtube somewhere, but I never saved it.

Any help I can get would be very appreciated. Thanks much in advance!

Ken

1 Like

Hello, your bar would need an expression like [ba]*3 or 0-[ba]*3 in X placement coordinate.
First would move with each depleted % 3 pixels to left, the other to the right.
Check this webinar

2 Likes

Peter! Thank you so much! This is the Webinar that I had been looking for originally!

Ken

Hello, I am trying to find the tag expression for steps %… With the battery it’s easy because the percentage is never going above 100%.
The steps percentage though can be more than 100% when a user overachieves their goal.

I am trying to find an expression similar to the [st]*3 but to stop when the steps % has reached 100%.

Could you please help?

Thank you!
Kind Regards
MKWatchface

Hi, it would be like (([st]<100)x[st]+100x([st]>=100))x3
put * instead x.
for some reason the page keeps turning those into format instead showing them.

Thanks Peter, it would never cross my mind… I’ll give it a try! In GWS you cannot properly test if your image goes out of frame because the steps % is not allowing values above 100%. It would be great if the text field would allow typing a value manually…

try using
[st]*H*([st]<100)+100*H*([st]>=100)

H is just the number of pixels each % should be.