Page 4 of 7

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 12:42
by pallbearer
[mention]manelto[/mention] why not use the avialable github-fork of "amazfit_verge_lite_tools" from "ghbhaha" for the gtr, for your work. => ghbhaha/amazfit_gtr_tools

kr, pallbearer

ps: sorry i'm prohibited from posting links

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 13:11
by manelto
koolgao wrote: 26 Aug 2019, 11:14
manelto wrote: 25 Aug 2019, 20:45
koolgao wrote: 25 Aug 2019, 17:54


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
A mí me sale completo.

Tienes este código en el fichero previewGenerator.py de la carpeta ...\watchFaceParser? Originalmente, en lugar de los valores 454 había 464.

Code: Select all

    def createFrame(watchFace, resources, state):
        from PIL import Image, ImageDraw

        graphics = Image.new('RGBA', (454, 454))
        watchFace.draw3(graphics, resources, state)
        return graphics
Esa es la modificación que permite ver los gif's completos y es la descrita por w0mbat. Insisto: la que yo puse era para centrar los elementos gráficos en la esfera.

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 13:12
by manelto
pallbearer wrote: 26 Aug 2019, 12:42
@manelto why not use the avialable github-fork of "amazfit_verge_lite_tools" from "ghbhaha" for the gtr, for your work. => ghbhaha/amazfit_gtr_tools

kr, pallbearer

ps: sorry i'm prohibited from posting links
I haven't a github user.

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 13:36
by pallbearer
manelto wrote: 26 Aug 2019, 13:12
.......

I haven't a github user.
[mention]manelto[/mention]
no i meant that there is already a tools version for the gtr watch from "ghbhaha" that is avialable on github as a fork from the tools "afwafwafw" posted.

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 15:46
by The Matrix
On my Verge Lite StepsProgress doesn't work at all. The animated gif is displaying correctly the circle but in the watch isn't displayed.

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 16:35
by manelto
pallbearer wrote: 26 Aug 2019, 13:36
manelto wrote: 26 Aug 2019, 13:12
.......

I haven't a github user.
@manelto
no i meant that there is already a tools version for the gtr watch from "ghbhaha" that is avialable on github as a fork from the tools "afwafwafw" posted.
I find nothing better than the afwafwafw program with the changes described here. It works and it is easy to use.

Re: Amazfit watchfaces Tool

Posted: 26 Aug 2019, 17:48
by The Matrix
In my watchface, I'm trying to display date in format MMDD instead of DDMM.
To do that, I'm using this code:

Code: Select all

  "Date": {
    "MonthAndDay": {
      "Separate": {
        "Day": {
          "TopLeftX": 233,
          "TopLeftY": 79,
          "BottomRightX": 254,
          "BottomRightY": 94,
          "Alignment": "TopLeft",
          "Spacing": 1,
          "ImageIndex": 13,
          "ImagesCount": 10
        },
        "Month": {
          "TopLeftX": 264,
          "TopLeftY": 79,
          "BottomRightX": 285,
          "BottomRightY": 94,
          "Alignment": "TopLeft",
          "Spacing": 1,
          "ImageIndex": 13,
          "ImagesCount": 10
        }
      },
      "TwoDigitsMonth": true,
      "TwoDigitsDay": true
    },
instead of this code

Code: Select all

  "Date": {
    "MonthAndDay": {
      "OneLine": {
        "Number": {
          "TopLeftX": 233,
          "TopLeftY": 79,
          "BottomRightX": 285,
          "BottomRightY": 94,
          "Alignment": "BottomLeft",
          "Spacing": 1,
          "ImageIndex": 13,
          "ImagesCount": 10
        },
		"DelimiterImageIndex": 32
      },
      "TwoDigitsMonth": true,
      "TwoDigitsDay": true
    },
But when I use the code that displays the month and day separated, the month and day are displayed at the same position and the digits are overlapped (see image).

Isn't possible to use the "Separate" modifier?
(Is there a way to obtain a list of the available modifiers?)

Re: Amazfit watchfaces Tool

Posted: 27 Aug 2019, 00:33
by Red Art Studio
This tool is only for unpack/pack?

So which tool to edit?

Re: Amazfit watchfaces Tool

Posted: 27 Aug 2019, 07:18
by manelto
Red Art Studio wrote: 27 Aug 2019, 00:33
This tool is only for unpack/pack?

So which tool to edit?
A text editor for json (I use Notepad++) and a program for create/modify png (GIMP, photoshop, paintnet,...).

Re: Amazfit watchfaces Tool

Posted: 27 Aug 2019, 10:02
by hall
some watch face not show weekday. check .json and png also correct. Anyone know where the problem?

Re: Amazfit watchfaces Tool

Posted: 27 Aug 2019, 13:11
by garrote
hall wrote: 27 Aug 2019, 10:02
some watch face not show weekday. check .json and png also correct. Anyone know where the problem?
You have to repeat 3 times the images, and count 21 in the .json
Like 7+7+7. It is something related to the multi language support.

Re: Amazfit watchfaces Tool

Posted: 27 Aug 2019, 13:36
by glenan
garrote wrote: 27 Aug 2019, 13:11
hall wrote: 27 Aug 2019, 10:02
some watch face not show weekday. check .json and png also correct. Anyone know where the problem?
You have to repeat 3 times the images, and count 21 in the .json
Like 7+7+7. It is something related to the multi language support.
Can you give more explanations by giving a text exemple ?
Thanks.

Re: Amazfit watchfaces Tool

Posted: 27 Aug 2019, 16:04
by afwafwafw
Hi guys, I think I've made GTR support on my tool.(thanks manelto)

Take a look and let me know if there's errors.

https://github.com/ghtalpo/py_amazfit_tools

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 05:23
by hall
garrote wrote: 27 Aug 2019, 13:11
hall wrote: 27 Aug 2019, 10:02
some watch face not show weekday. check .json and png also correct. Anyone know where the problem?
You have to repeat 3 times the images, and count 21 in the .json
Like 7+7+7. It is something related to the multi language support.
[mention]garrote[/mention] You are the one :) thanks bro

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 06:51
by Red Art Studio
glenan wrote: 27 Aug 2019, 13:36
garrote wrote: 27 Aug 2019, 13:11
hall wrote: 27 Aug 2019, 10:02
some watch face not show weekday. check .json and png also correct. Anyone know where the problem?
You have to repeat 3 times the images, and count 21 in the .json
Like 7+7+7. It is something related to the multi language support.
Can you give more explanations by giving a text exemple ?
Thanks.
So just change 7 to 21 right? Weird tho why this happen

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 07:08
by garrote
glenan wrote: 27 Aug 2019, 13:36
garrote wrote: 27 Aug 2019, 13:11
hall wrote: 27 Aug 2019, 10:02
some watch face not show weekday. check .json and png also correct. Anyone know where the problem?
You have to repeat 3 times the images, and count 21 in the .json
Like 7+7+7. It is something related to the multi language support.
Can you give more explanations by giving a text exemple ?
Thanks.
In the .json it should be like this:

Code: Select all

 "WeekDay": {
      "X": 200,
      "Y": 288,
      "ImageIndex": 33,
      "ImagesCount": 21
      }
The images count should be 21. And you need to have 21 .png images files. I dont know the languages so I just repeat 3 times the week imagens.

Sorry for the delay!

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 07:54
by devoice
afwafwafw wrote: 27 Aug 2019, 16:04
Hi guys, I think I've made GTR support on my tool.(thanks manelto)

Take a look and let me know if there's errors.
Hi afwafwafw, just tested your amazing tool!
2 fix needed:
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
2. Left alignment not working correctly, It seems that the center alignment is used instead of the left. There is a lot of gap left if you understand what I mean.
If you make a fix I will be happy to test it! Thank you!

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 08:29
by w0mbat
devoice wrote: 28 Aug 2019, 07:54
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
I confirm! :)

Afwafwafw, thanks for the work.
You have 2 others modifications ;)
viewtopic.php?f=29&t=782&start=60#p2461
viewtopic.php?f=29&t=782&start=60#p2446

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 09:18
by afwafwafw
w0mbat wrote: 28 Aug 2019, 08:29
devoice wrote: 28 Aug 2019, 07:54
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
I confirm! :)

Afwafwafw, thanks for the work.
You have 2 others modifications ;)
viewtopic.php?f=29&t=782&start=60#p2461
viewtopic.php?f=29&t=782&start=60#p2446
It's already in there... :)

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 09:20
by afwafwafw
devoice wrote: 28 Aug 2019, 07:54
afwafwafw wrote: 27 Aug 2019, 16:04
Hi guys, I think I've made GTR support on my tool.(thanks manelto)

Take a look and let me know if there's errors.
Hi afwafwafw, just tested your amazing tool!
2 fix needed:
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
2. Left alignment not working correctly, It seems that the center alignment is used instead of the left. There is a lot of gap left if you understand what I mean.
If you make a fix I will be happy to test it! Thank you!
Can you show me some pictures?

If you mentioned about preview images, it's my fault.

But for the resulting watchface in the real watch, that's not my fault. It's watch maker's responsibility. (If i'm not wrong).

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 09:30
by devoice
afwafwafw wrote: 28 Aug 2019, 09:20
devoice wrote: 28 Aug 2019, 07:54
afwafwafw wrote: 27 Aug 2019, 16:04
Hi guys, I think I've made GTR support on my tool.(thanks manelto)

Take a look and let me know if there's errors.
Hi afwafwafw, just tested your amazing tool!
2 fix needed:
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
2. Left alignment not working correctly, It seems that the center alignment is used instead of the left. There is a lot of gap left if you understand what I mean.
If you make a fix I will be happy to test it! Thank you!
Can you show me some pictures?

If you mentioned about preview images, it's my fault.

But for the resulting watchface in the real watch, that's not my fault. It's watch maker's responsibility. (If i'm not wrong).
Thank you for reply!
As for the positioning error I found a workaround, I'm still trying to figure out if it was my fault, maybe yes. Anyway my first watch face for GTR is out with name "Retro Terminal" on download section.
For the 2 digits before the separator, I have no control over this, so I believe these are settings when packaging the .bin file in your script. I think it would be nicer to start from a situation with a digit before the separator: "0.00" not 2 "00.00" like now

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 09:53
by w0mbat
afwafwafw wrote: 28 Aug 2019, 09:18
w0mbat wrote: 28 Aug 2019, 08:29
devoice wrote: 28 Aug 2019, 07:54
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
I confirm! :)

Afwafwafw, thanks for the work.
You have 2 others modifications ;)
viewtopic.php?f=29&t=782&start=60#p2461
viewtopic.php?f=29&t=782&start=60#p2446
It's already in there... :)
Ok my bad, when i checked after you first post it wasn't :)

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 10:04
by afwafwafw
devoice wrote: 28 Aug 2019, 09:30
afwafwafw wrote: 28 Aug 2019, 09:20
devoice wrote: 28 Aug 2019, 07:54


Hi afwafwafw, just tested your amazing tool!
2 fix needed:
1. in Activity>>Distance there is 2 digits before separator (example: 00.02 kilometers instead og 0.02) this is no needed IMHO. Anyway this create problems with left alignment which seems too far to the left, as if one of the two "zeroes" did not respect the minimum distance to the left.
2. Left alignment not working correctly, It seems that the center alignment is used instead of the left. There is a lot of gap left if you understand what I mean.
If you make a fix I will be happy to test it! Thank you!
Can you show me some pictures?

If you mentioned about preview images, it's my fault.

But for the resulting watchface in the real watch, that's not my fault. It's watch maker's responsibility. (If i'm not wrong).
Thank you for reply!
As for the positioning error I found a workaround, I'm still trying to figure out if it was my fault, maybe yes. Anyway my first watch face for GTR is out with name "Retro Terminal" on download section.
For the 2 digits before the separator, I have no control over this, so I believe these are settings when packaging the .bin file in your script. I think it would be nicer to start from a situation with a digit before the separator: "0.00" not 2 "00.00" like now
I'll check it out for "Retro Terminal" watchface.

For the 2 digits issue, I don't think I have a control in there too. I'm trying to blame watch maker - huami and/or xiaomi, not watchface makers. :)
anyway, I'll take a look this also.

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 10:11
by devoice
afwafwafw wrote: 28 Aug 2019, 10:04
I'll check it out for "Retro Terminal" watchface.

For the 2 digits issue, I don't think I have a control in there too. I'm trying to blame watch maker - huami and/or xiaomi, not watchface makers. :)
anyway, I'll take a look this also.
The strange thing is that in the PNG images and in the GIF generated after the packaging there are not 2 digits before the separator (like 0.01 or 1.24), while there are in the watch face...This made me think that the problem was in the settings of your script

Re: Amazfit watchfaces Tool

Posted: 28 Aug 2019, 10:50
by XADE
You guys are doing some great work, I am looking into using this myself, hopefully some genuine watch faces pop up soon or maybe I'll create a Daytona!