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

Amazfit watchfaces Tool

Archive closed topics

Moderators: Internal error, Watchmens

manelto

Post by manelto »

osmat wrote: 23 Aug 2019, 11:20
A new version
AmazTool All 0.1.0.11.7z
Well, I checked and we still have the color problem.

Thank you for the efforts and time you dedicate to us.
Spoiler
Image
I don't know how other users solve it and it seems they don't really want to share the solution. :?
User avatar
nightwatch
Posts: 3
Joined: 23 Aug 2019, 13:39
Been thanked: 1 time
Contact:

Post by nightwatch »

manelto wrote: 24 Aug 2019, 08:22
osmat wrote: 23 Aug 2019, 11:20
A new version
AmazTool All 0.1.0.11.7z
Well, I checked and we still have the color problem.

Thank you for the efforts and time you dedicate to us.


I don't know how other users solve it and it seems they don't really want to share the solution. :?
I think they are using another tool to pack/unpack the. bin file... based on python
manelto

Post by manelto »

In the right way...

Image

I take the tool from here: https://github.com/ghtalpo/amazfit_verge_lite_tools (thanks afwafwafw).

With this tool you can work almost directly, you just have to change a couple of bytes at the beginning of the bin file.


Image

The parentheses and the symbol between the NULs are what they should be. Maybe afwafwafw can change the program to do it directly. I can do it, but the author is him and the merit is his.
Bhoken
WF maker
Posts: 3
Joined: 22 Aug 2019, 16:40
Contact:

Post by Bhoken »

I can use it? can you explain?
manelto

Post by manelto »

Bhoken wrote: 24 Aug 2019, 14:25
I can use it? can you explain?
Off

Of course.
first download from github the awfawfawf code.
then you need Python version 3.7.4 and install it. finally download the 6.1 version of pillow and install it.

once you have everything you just need to modify a line of one of the files.
manelto

Post by manelto »

Pasos que he seguido para poder editar los ficheros del reloj GTR:
Steps that I have followed to be able to edit the GTR clock files:

descargar el código que ha compartido el usuario afwafwafw (gracias de nuevo) de este enlace:
Download the code shared by the user afwafwafw (thanks again) from this link:

https://github.com/ghtalpo/amazfit_verge_lite_tools

Descargar e instalar la versión 3.7.4 de python ...
Download and install version 3.7.4 of python...
(https://www.python.org/downloads/).

En mi caso he utilizado la versión de 64bits para windows.
In my case I used the 64bit version for windows.

Descargar e instalar la versión 6.1 de pillows...
Download and install version 6.1 of pillows...
(https://pypi.org/project/Pillow/#files).
En mi caso he seleccionado la última versión para windows...
In my case I have selected the latest version for windows ...
(https://files.pythonhosted.org/packages ... -py3.7.exe).

Después de instalar lo anterior, he modificado el fichero header.py del código python de afwafwafw. En concreto he sustituido la línea:
After installing the above, I modified the header.py file of the afwafwafw python code. Specifically I replaced the line:

Code: Select all

1 : [0x20, 0x00, 0x6e, 0xea, 0x00, 0x00, 0x01, 0xbc],
por esta otra:
for this one:

Code: Select all

1 : [0x28, 0x00, 0x8c, 0xea, 0x00, 0x00, 0x01, 0xbc],
Se puede ver que sólo he cambiado el primer y tercer caracter hexadecimal.
You can see that I have only changed the first and third hexadecimal characters.

Al final me descargo un fichero GTR bin de los de está página para utilizarlo como modelo o, si se desea, y tienes ganas, comienzas uno desde cero. Se necesita un fichero json con la definición de las imágenes y las imágenes mismas. (Yo las imágenes las genero o modifico con el aplicativo gratuito paintnet (https://www.getpaint.net/). Las grabo con 32 bits en png.

In the end I download a GTR bin file from those on this page to use it as a model or, if desired, and you feel like it, you start one from scratch. A json file is needed with the definition of the images and the images themselves. (I generate the images or modify them with the free paintnet application (https://www.getpaint.net/). I record them with 32 bits in png.

Finalmente utilizo la instrucción, py main.py nombrefichero.bin para descomprimir y py main.py nombrefichero.json para comprimir.
Finally I use the instruction, py main.py filename.bin to decompress and py main.py filename.json to compress.


Para subir el fichero al reloj ya hay un tutorial o explicación en esta página.
To upload the file to the clock there is already a tutorial or explanation on this page.
koolgao
WF maker
Posts: 16
Joined: 15 Apr 2018, 06:25
Has thanked: 2 times

Post by koolgao »

una pregunta asi de novato como yo ....... como edito el header ese?
manelto

Post by manelto »

A good editor and free is notepad++
https://www.google.com/url?sa=t&source= ... 063HXzmla7
manelto

Post by manelto »

koolgao wrote: 24 Aug 2019, 23:29
una pregunta asi de novato como yo ....... como edito el header ese?
El notepad++ es bbb
User avatar
Kolomnych
WF maker
Posts: 2
Joined: 23 Aug 2019, 14:46
Location: Kolomna, Russia
Contact:

Post by Kolomnych »

manelto, good instruction! But i have error while i unpack bin file:

Code: Select all

G:\Clock\amazfit_verge_lite_tools-master>py main py 01.bin
  File "main py", line 28, in <module>
    program.Parser.unpackWatchFace(inputFileName)
  File "G:\Clock\amazfit_verge_lite_tools-master\program py", line 123, in unpackWatchFace
    reader = Parser.readWatchFace(inputFileName)
  File "G:\Clock\amazfit_verge_lite_tools-master\program py", line 89, in readWatchFace
    traceback.print_stack()
Done
Also included log file. What's wrong?

P.S. i remove here "." in code "main py" and "program py", because: "You can’t post image, email or url links that are external to this domain. Please remove main py"
Attachments
01.log
(9.2 KiB) Downloaded 636 times
w0mbat
WF maker
Posts: 9
Joined: 13 Jul 2019, 15:37
Location: France
Has thanked: 3 times
Been thanked: 1 time
Contact:

Post by w0mbat »

manelto wrote: 24 Aug 2019, 20:34
Pasos que he seguido para poder editar los ficheros del reloj GTR:
Steps that I have followed to be able to edit the GTR clock files:
...
Thx for the recap!

In the previewGenerator python file (watchFaceParser directory), change the size to 454 also.
glenan
Posts: 10
Joined: 24 Aug 2019, 16:35
Location: France
Has thanked: 2 times
Been thanked: 2 times
Contact:

Post by glenan »

Hi

I downloaded and used AmazTool All 0.1.0.11.zip with an Amazfit GTR
unpack and packed (after adding a logo on one existing watchface)
I installed new bin file with Notify and Fitness for Amazfit
It worked but with problems of colors as said above.

Thanks a lot for your job and I hope you will solved it.

[EDIT] I don't know what is the use of Watchface.exe because I only used pack.cmd and repack.cmd
Bhoken
WF maker
Posts: 3
Joined: 22 Aug 2019, 16:40
Contact:

Post by Bhoken »

[mention]manelto[/mention]Thank you ! A couple of questions. Why you modify the header? Works also for verge lite? I use image that I create with illustrator in the same resolution of a watchface that I have use as a model, it works fine?
manelto

Post by manelto »

Kolomnych wrote: 25 Aug 2019, 07:30
manelto, good instruction! But i have error while i unpack bin file:

Code: Select all

G:\Clock\amazfit_verge_lite_tools-master>py main py 01.bin
  File "main py", line 28, in <module>
    program.Parser.unpackWatchFace(inputFileName)
  File "G:\Clock\amazfit_verge_lite_tools-master\program py", line 123, in unpackWatchFace
    reader = Parser.readWatchFace(inputFileName)
  File "G:\Clock\amazfit_verge_lite_tools-master\program py", line 89, in readWatchFace
    traceback.print_stack()
Done
Also included log file. What's wrong?

P.S. i remove here "." in code "main py" and "program py", because: "You can’t post image, email or url links that are external to this domain. Please remove main py"



I can't understand you. You don't put points between main and py?
I do. I need to put them so that the instruction is recognized. At least in windows.


Image
manelto

Post by manelto »

Bhoken wrote: 25 Aug 2019, 10:43
@maneltoThank you ! A couple of questions. Why you modify the header? Works also for verge lite? I use image that I create with illustrator in the same resolution of a watchface that I have use as a model, it works fine?
The author of the program is afwafwafw. And the original program is to work directly with the verge lite. So, if you have that watch you don't have to change anything.
The modification that I detail above is to adapt the code for the GTR watch
manelto

Post by manelto »

w0mbat wrote: 25 Aug 2019, 08:21
manelto wrote: 24 Aug 2019, 20:34
Pasos que he seguido para poder editar los ficheros del reloj GTR:
Steps that I have followed to be able to edit the GTR clock files:
...
Thx for the recap!

In the previewGenerator python file (watchFaceParser directory), change the size to 454 also.
Thanks!

Muchas gracias!
PavlinBecks
WF maker
Posts: 3
Joined: 13 Jul 2019, 12:04
Contact:

Post by PavlinBecks »

Please help me, when using Python tool from GitHub, I always get this error. What am I doing wrong? In Log I found a bug about transparency but I don't know how to fix it. Thank you.
Image
Last edited by PavlinBecks on 25 Aug 2019, 16:46, edited 1 time in total.
manelto

Post by manelto »

Another change (remember : these changes are only for GTR):

Code: Select all

temp = Image.new('RGBA', (360, 360))
temp.paste(bitmap, (180 - x, 180 - y), bitmap)
for...

Code: Select all

temp = Image.new('RGBA', (454, 454))
temp.paste(bitmap, (227 - x, 227 - y), bitmap)
These changes are in ...\watchFaceParser\models\elements\common\imageElement.py
manelto

Post by manelto »

PavlinBecks wrote: 25 Aug 2019, 16:41
Please help me, when using Python tool from GitHub, I always get this error. What am I doing wrong? In Log I found a bug about transparency but I don't know how to fix it. Thank you.

Image
I can't see the image :?
koolgao
WF maker
Posts: 16
Joined: 15 Apr 2018, 06:25
Has thanked: 2 times

Post by koolgao »

manelto wrote: 25 Aug 2019, 16:45
Another change (remember : these changes are only for GTR):

Code: Select all

temp = Image.new('RGBA', (360, 360))
temp.paste(bitmap, (180 - x, 180 - y), bitmap)
for...

Code: Select all

temp = Image.new('RGBA', (454, 454))
temp.paste(bitmap, (227 - x, 227 - y), bitmap)
These changes are in ...\watchFaceParser\models\elements\common\imageElement.py
una pregunta esto para que vale? hay algo para que se vea bien el gif que crea? ya q no me sale el reloj entero
PavlinBecks
WF maker
Posts: 3
Joined: 13 Jul 2019, 12:04
Contact:

Post by PavlinBecks »

manelto wrote: 25 Aug 2019, 16:47
PavlinBecks wrote: 25 Aug 2019, 16:41
Please help me, when using Python tool from GitHub, I always get this error. What am I doing wrong? In Log I found a bug about transparency but I don't know how to fix it. Thank you.

Image
I can't see the image :?
Sorry, I can't insert
Spoiler
Image
manelto

Post by manelto »

koolgao wrote: 25 Aug 2019, 17:54
manelto wrote: 25 Aug 2019, 16:45
Another change (remember : these changes are only for GTR):

Code: Select all

temp = Image.new('RGBA', (360, 360))
temp.paste(bitmap, (180 - x, 180 - y), bitmap)
for...

Code: Select all

temp = Image.new('RGBA', (454, 454))
temp.paste(bitmap, (227 - x, 227 - y), bitmap)
These changes are in ...\watchFaceParser\models\elements\common\imageElement.py
una pregunta esto para que vale? hay algo para que se vea bien el gif que crea? ya q no me sale el reloj entero
Una cosa es el gif que se crea a modo de previsualización y otra el bin que instalas en el reloj.
El bin funciona correctamente sin necesidad de este cambio ni del que ha descrito w0mba más arriba.
Pero para que el gif y las otras imágenes que se generan a modo de previews estén completos necesitas el cambio descrito por w0mbat. Y para centrar las agujas de los relojes y otras imágenes en la esfera tienes que hacer el cambio que he modificado.
The Matrix

Post by The Matrix »

Hello,
I've made a modification from other watchface, but when I upload to my Verge lite, colors are inverted and I do not know how to solve it.
I have tried to unpack then repack again but no luck...
Spoiler
IMG_20190825_231027.jpg
IMG_20190825_231027.jpg (155.61 KiB) Viewed 231037 times
Attachments
vermillion_20190919_packed-17820-563021d504.zip
sources
(898.76 KiB) Downloaded 620 times
hall
WF maker
Posts: 7
Joined: 15 Aug 2019, 09:07
Been thanked: 1 time
Contact:

Post by hall »

glenan wrote: 25 Aug 2019, 10:20
Hi

I downloaded and used AmazTool All 0.1.0.11.zip with an Amazfit GTR
unpack and packed (after adding a logo on one existing watchface)
I installed new bin file with Notify and Fitness for Amazfit
It worked but with problems of colors as said above.

Thanks a lot for your job and I hope you will solved it.

[EDIT] I don't know what is the use of Watchface.exe because I only used pack.cmd and repack.cmd
[mention]glenan[/mention] if you click edit or open .cmd file in text editor you will know that it call watchface.exe to process it. cmd just command set like batch file.
koolgao
WF maker
Posts: 16
Joined: 15 Apr 2018, 06:25
Has thanked: 2 times

Post by koolgao »

manelto wrote: 25 Aug 2019, 20:45
koolgao wrote: 25 Aug 2019, 17:54
manelto wrote: 25 Aug 2019, 16:45
Another change (remember : these changes are only for GTR):

Code: Select all

temp = Image.new('RGBA', (360, 360))
temp.paste(bitmap, (180 - x, 180 - y), bitmap)
for...

Code: Select all

temp = Image.new('RGBA', (454, 454))
temp.paste(bitmap, (227 - x, 227 - y), bitmap)
These changes are in ...\watchFaceParser\models\elements\common\imageElement.py
una pregunta esto para que vale? hay algo para que se vea bien el gif que crea? ya q no me sale el reloj entero
Una cosa es el gif que se crea a modo de previsualización y otra el bin que instalas en el reloj.
El bin funciona correctamente sin necesidad de este cambio ni del que ha descrito w0mba más arriba.
Pero para que el gif y las otras imágenes que se generan a modo de previews estén completos necesitas el cambio descrito por w0mbat. Y para centrar las agujas de los relojes y otras imágenes en la esfera tienes que hacer el cambio que he modificado.
Y que tengo que hacer para lo del gif este ultimo que has puesto aquí ya lo tengo hecho pero el gif we sigue saliendo medio reloj
Locked

Return to “Closed topics”

Who is online

Users browsing this forum: No registered users and 1 guest