• 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

pallbearer

Post 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
manelto

Post 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.
manelto

Post 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.
pallbearer

Post 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.
The Matrix

Post 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.
manelto

Post 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.
The Matrix

Post 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?)
Attachments
IMG_20190826_194723.jpg
IMG_20190826_194723.jpg (61.03 KiB) Viewed 397681 times
Red Art Studio
WF maker
Posts: 2
Joined: 11 Jul 2019, 01:44
Contact:

Post by Red Art Studio »

This tool is only for unpack/pack?

So which tool to edit?
manelto

Post 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,...).
hall
WF maker
Posts: 7
Joined: 15 Aug 2019, 09:07
Been thanked: 1 time
Contact:

Post by hall »

some watch face not show weekday. check .json and png also correct. Anyone know where the problem?
garrote
WF maker
Posts: 2
Joined: 27 Aug 2019, 11:18
Contact:

Post 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.
glenan
Posts: 10
Joined: 24 Aug 2019, 16:35
Location: France
Has thanked: 2 times
Been thanked: 2 times
Contact:

Post 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.
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post 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
hall
WF maker
Posts: 7
Joined: 15 Aug 2019, 09:07
Been thanked: 1 time
Contact:

Post 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
Red Art Studio
WF maker
Posts: 2
Joined: 11 Jul 2019, 01:44
Contact:

Post 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
garrote
WF maker
Posts: 2
Joined: 27 Aug 2019, 11:18
Contact:

Post 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!
devoice
WF maker
Posts: 6
Joined: 28 Aug 2019, 07:45
Contact:

Post 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!
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 »

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
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post 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... :)
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post 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).
devoice
WF maker
Posts: 6
Joined: 28 Aug 2019, 07:45
Contact:

Post 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
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 »

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 :)
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post 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.
devoice
WF maker
Posts: 6
Joined: 28 Aug 2019, 07:45
Contact:

Post 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
User avatar
XADE
WF maker
Posts: 9
Joined: 28 Aug 2019, 10:35
Has thanked: 2 times
Contact:

Post 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!
Locked

Return to “Closed topics”

Who is online

Users browsing this forum: No registered users and 1 guest