• Amministratore
  •  
    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.

Moderatori: asoo, Watchmens

Regole del forum
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.
Rispondi
Adn.13
Messaggi: 4
Iscritto il: 06 nov 2024, 20:23
Località: Sant Boi de Llobregat
Contatta:

Show battery icon when reaching X percentage

Messaggio da 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
Messaggi: 4
Iscritto il: 06 nov 2024, 20:23
Località: Sant Boi de Llobregat
Contatta:

Messaggio da 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
Messaggi: 4
Iscritto il: 06 nov 2024, 20:23
Località: Sant Boi de Llobregat
Contatta:

Messaggio da Adn.13 »

Adn.13 ha scritto: 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.
Avatar utente
SashaCX75
Messaggi: 814
Iscritto il: 26 ott 2019, 15:18
Località: Ukraine
Has thanked: 13 times
Been thanked: 1009 times
Contatta:

Messaggio da 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
Messaggi: 4
Iscritto il: 06 nov 2024, 20:23
Località: Sant Boi de Llobregat
Contatta:

Messaggio da 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
Messaggi: 10
Iscritto il: 24 ago 2019, 10:56
Località: Penang,Malaysia
Has thanked: 6 times
Been thanked: 5 times
Contatta:

Messaggio da wongkamfei »

SashaCX75 ha scritto: 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.
Avatar utente
SashaCX75
Messaggi: 814
Iscritto il: 26 ott 2019, 15:18
Località: Ukraine
Has thanked: 13 times
Been thanked: 1009 times
Contatta:

Messaggio da 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.
Rispondi

Torna a “Watchfaces discussion”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite