Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Battery Level Bar - Not working on watch, only Simulator

ANSWERED

I am having an issue with coding working while in the simulator, but once I load the watchface to my Versa 3, the part of the watchface that I have coded to change images based on battery level, not only doesn't work, none of the images even show up.

 

Here is the code I have in my apps/index file(Uploaded as pic because I couldn't post with that many characters):

Chamcham_0-1663967694767.png

 

 

 

 

 

 

 

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Try using images of the exact required size. Resizing images on the watch may be too demanding for it. You could test with just a single image.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
7 REPLIES 7

Are the images of the right size, or are you trying to get the watch to resize them when it displays them?

Peter McLennan
Gondwana Software
Best Answer
0 Votes

{editted: provided wrong code}

I have them resized the index file

 

<image id="MyBatteryLevels" x="5%" y="45%"width="305" height="55" href="dagger.png" class="MyBatteryLevels" />

Best Answer
0 Votes

Try using images of the exact required size. Resizing images on the watch may be too demanding for it. You could test with just a single image.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I tried resizing all pictures to the 305x55 that I set it to in the image id, and now it shows as extremely large in the simulator and the watch. Does the watch not go by pixels?

Best Answer
0 Votes

Yes to pixels. Versa 3 is 336px wide at its widest point, so that's a very large battery gauge!

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Yes, it is supposed to be the width of the face but it is clearly not sizing correctly because the height and width are off the face.

It is showing like this with no resizing:

Chamcham_1-1663971468159.png

 

But when resizing to 305x55:

Chamcham_2-1663972324128.png

 

 

Best Answer
0 Votes

@Gondwana 

Nevermind, it is showing correctly now that I put in the resizing, eventhough all the pictures are all that same size already. Very odd but it appears to be working now. Thank you!

Best Answer