Page 1 of 1
Show battery icon when reaching X percentage
Posted: 06 Nov 2024, 20:34
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!
Re: Show battery icon when reaching X percentage
Posted: 07 Nov 2024, 08:29
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.
Re: Show battery icon when reaching X percentage
Posted: 07 Nov 2024, 18:16
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.
Re: Show battery icon when reaching X percentage
Posted: 08 Nov 2024, 17:59
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%.
Re: Show battery icon when reaching X percentage
Posted: 09 Nov 2024, 09:25
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!
Re: Show battery icon when reaching X percentage
Posted: 11 Nov 2024, 00:32
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.
Re: Show battery icon when reaching X percentage
Posted: 11 Nov 2024, 12:47
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.