• Administrator
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Show battery icon when reaching X percentage

Topics related to the creation, development, and designing of the watch faces.

Moderators: asoo, Watchmens

Forum rules
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [GTR 3 Pro]
All communication in this branch should only be in English.
Post Reply
Adn.13
Posts: 4
Joined: 06 Nov 2024, 20:23
Location: Sant Boi de Llobregat
Contact:

Show battery icon when reaching X percentage

Post by Adn.13 »

Hello, I wanted to know if there is an option within Watch Face Editor to show an icon when it reaches a certain battery percentage, for example 10%, and when it reaches that percentage it shows you the icon that you add in a corner. Thank you!
Adn.13
Posts: 4
Joined: 06 Nov 2024, 20:23
Location: Sant Boi de Llobregat
Contact:

Post by Adn.13 »

Hi, thank you very much for the answer. Where should I do this? Until now I was only adding elements within the program, such as the time, but I don't see where to add lines of code.
Adn.13
Posts: 4
Joined: 06 Nov 2024, 20:23
Location: Sant Boi de Llobregat
Contact:

Post by Adn.13 »

Adn.13 wrote: 07 Nov 2024, 08:29
Hi, thank you very much for the answer. Where should I do this? Until now I was only adding elements ....
Hello, you have to create a folder for a user script. Then you put the file with the script inside the folder. The program should find itself a way to it. If you're inexperienced, i would choose the first option with the ten pictures.

Sorry, I hadn't seen that there were 2 options. Regarding the first option, in which section is it done, because I haven't seen any place where I can specify the battery percentage.
User avatar
SashaCX75
Posts: 814
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1009 times
Contact:

Post by SashaCX75 »

For the 10th you'll create a corner, which will show when a certain percentage is reached.
Unfortunately this is not entirely true. Not always the first picture will be shown exactly up to 10%. Algorithm of displaying pictures varies on different models and firmware. This method is the simplest, but it does not guarantee that the picture will appear exactly at 10%.
Adn.13
Posts: 4
Joined: 06 Nov 2024, 20:23
Location: Sant Boi de Llobregat
Contact:

Post by Adn.13 »

I got it now, in the end I had to add 20 images to show me the icon when it goes below 10%, that is, it shows it when it reaches 9%. And the first image of those 20 is the one that really has to have the icon and the rest are transparent images. Thanks a lot for the help!
wongkamfei
WF maker
Posts: 10
Joined: 24 Aug 2019, 10:56
Location: Penang,Malaysia
Has thanked: 6 times
Been thanked: 5 times
Contact:

Post by wongkamfei »

SashaCX75 wrote: 08 Nov 2024, 17:59
For the 10th you'll create a corner, which will show when a certain percentage is reached.
Unfortunately this is not entirely true. Not always the first picture will be shown exactly up to 10%. Algorithm of displaying pictures varies on different models and firmware. This method is the simplest, but it does not guarantee that the picture will appear exactly at 10%.
I study this before and got the answer from Amazfit China team, actually if we want to use picture to show the battery status, we need 10 picture and another one as battery blackground picture. The background picture is to indicate battery status from 0~4%, than the 1st picture is 5~14%, 2nd picture is 15~24%.....and so on.
User avatar
SashaCX75
Posts: 814
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1009 times
Contact:

Post by SashaCX75 »

@wongkamfei
That's what I was talking about. The image will not appear exactly at 10%. The algorithm used to be different and the image would change at 10%, but now the algorithm has changed.
Post Reply

Return to “Watchfaces discussion”

Who is online

Users browsing this forum: No registered users and 1 guest