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

py amazfit tool

This forum is designed to discuss and develop tools creating watch faces.

Moderators: asoo, lvpokka, Internal error, Watchmens

Forum rules
All communication in this branch should only be in English.
To discuss tools that are not in this section, use the “Watchfaces tools (discussion)” forum.
Post Reply
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

py amazfit tool

Post by afwafwafw »

https://github.com/lolyinseo/py_amazfit ... ee/dev_gtr
https://github.com/ghtalpo/amazfit_verge_lite_tools

what is...
  • can pack/unpack .bin file for amazfit verge lite/gtr(original watchfaces)
what isn't...
  • 100% compatibility with amazfit_bip_tool
  • 100% compatibility with .json structures of bip
requirements
  • python3(tested on 3.7.4)
  • pillow(tested on 6.1.0)

Code: Select all

## usage
* for verge lite
  * see scripts folder
    * to unpack
      * python main.py WATCH_FACE_FILE.bin
    * to pack
      * python main.py WATCH_FACE_FILE.json
    * to convert from extracted GTR watchface(experimental BIP support also)
      * python convert.py EXTRACTED_WATCH_FACE_FOLDER
  * for windows users(experimental) : USE AT YOUR OWN RISK
    * copy & unzip amazfit_verge_lite_tools_WIN32.zip from release/win32
      * to pack
        * drag & drop WATCH_FACE_FILE.json into main/main.exe
      * to unpack
        * drag & drop WATCH_FACE_FILE.bin into main/main.exe
      * to convert from extracted GTR watchface(experimental BIP support also)
        * drag & drop EXTRACTED_WATCH_FACE_FOLDER into convert/convert.exe
* for GTR
  * to unpack
    * python main.py --gtr WATCH_FACE_FILE.bin
  * to pack
    * python main.py --gtr WATCH_FACE_FILE.json
  * for windows users(experimental) : USE AT YOUR OWN RISK
    * copy & unzip amazfit_gtr_tools_WIN32.7z from release/win32
      * to pack
        * drag & drop WATCH_FACE_FILE.json into main_gtr/main.exe
      * to unpack
        * drag & drop WATCH_FACE_FILE.bin into main_gtr/main.exe
It's a python port of Валерий Миронов's AmazfitBipTools(v.1.0.3.1) with some hacks.

Have a fun and feel free to give me some feeback.
User avatar
TXK
Posts: 299
Joined: 10 Apr 2018, 05:15
Location: china
Has thanked: 149 times
Been thanked: 97 times
Contact:

Post by TXK »

Can you make EXE programs?
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

Sure but not right now.

You can generate it by executing auto-py-to-exe, though.
fx_advanc
WF maker
Posts: 19
Joined: 25 Jul 2019, 03:47
Location: Malaysia
Has thanked: 7 times
Been thanked: 3 times
Contact:

Post by fx_advanc »

cool bro,
i have using it today, straight forward. but no animation.
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

Yes, you're right.

It's a little trick but you can get animation .gif after unpacking packed_bin again.

i.e

python main.py WATCH_FACE.json # now you've got WATCH_FACE_packed.bin

python main.py WATCH_FACE_packed.bin # in WATCH_FACE_packed/ folder you can see gif file in there
侯侯大神
WF maker
Posts: 13
Joined: 24 Jun 2019, 08:07
Has thanked: 2 times
Been thanked: 4 times
Contact:

Post by 侯侯大神 »

Why can't you use your tools to unpack your bin, only unpack the official ones
fx_advanc
WF maker
Posts: 19
Joined: 25 Jul 2019, 03:47
Location: Malaysia
Has thanked: 7 times
Been thanked: 3 times
Contact:

Post by fx_advanc »

I need to get the live editor, easier to locate the dial .png files to X & Y coordinate.
Do you have any guide tool for numbering x 1-360 x y 1-360 grid

AFWAFWAFW
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

侯侯大神 wrote: 22 Aug 2019, 04:13
Why can't you use your tools to unpack your bin, only unpack the official ones
I always use mine to pack/unpack my .bin.

Have you tried latest version of my tool?

Which bin cause issue for you? Can you give me a link for it?
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

fx_advanc wrote: 22 Aug 2019, 08:41
I need to get the live editor, easier to locate the dial .png files to X & Y coordinate.
Do you have any guide tool for numbering x 1-360 x y 1-360 grid

AFWAFWAFW
Hi. I'm using GIMP as a guide tool. :)
侯侯大神
WF maker
Posts: 13
Joined: 24 Jun 2019, 08:07
Has thanked: 2 times
Been thanked: 4 times
Contact:

Post by 侯侯大神 »

Thanks for replying, friend, I should not be using the latest version
manelto

Post by manelto »

Is It possible have this tool for GTR amazfit?
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

manelto wrote: 22 Aug 2019, 17:45
Is It possible have this tool for GTR amazfit?
As I don't have a GTR watch, I cannot make the tool for GTR easily. There's one person who forked mine. He've changed the name as amazfit_gtr_tools so you can wait for his work or Amazfit watchfaces tool(posting.php?mode=quote&f=26&p=2400).
Last edited by afwafwafw on 23 Aug 2019, 05:21, edited 1 time in total.
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

侯侯大神 wrote: 22 Aug 2019, 11:02
Thanks for replying, friend, I should not be using the latest version
No problem. If you have any issue, let me have .bin for debugging.
manelto

Post by manelto »

afwafwafw wrote: 22 Aug 2019, 21:54
manelto wrote: 22 Aug 2019, 17:45
Is It possible have this tool for GTR amazfit?
As I don't have a GTR watch, I cannot make the tool for GTR easily. There's one person who forked mine. He've changed the name as amazfit_gtr_tools so you can wait for his work or Amazfit watchfaces tool(posting.php?mode=quote&f=26&p=2400).
OK! Thank you.
The problem seems to be the resolution (360 vs 454) and the header (header.bin). But maybe there is something else (sure: D).
manelto

Post by manelto »

afwafwafw wrote: 22 Aug 2019, 21:54
manelto wrote: 22 Aug 2019, 17:45
Is It possible have this tool for GTR amazfit?
As I don't have a GTR watch, I cannot make the tool for GTR easily. There's one person who forked mine. He've changed the name as amazfit_gtr_tools so you can wait for his work or Amazfit watchfaces tool(posting.php?mode=quote&f=26&p=2400).
viewtopic.php?f=29&t=782&p=2423#p2423
fx_advanc
WF maker
Posts: 19
Joined: 25 Jul 2019, 03:47
Location: Malaysia
Has thanked: 7 times
Been thanked: 3 times
Contact:

Post by fx_advanc »

Does gimp shows the coordinate? what name of the features.
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

fx_advanc wrote: 24 Aug 2019, 14:53
Does gimp shows the coordinate? what name of the features.
https://docs.gimp.org/2.10/en/gimp-conc ... uides.html

Right?
fx_advanc
WF maker
Posts: 19
Joined: 25 Jul 2019, 03:47
Location: Malaysia
Has thanked: 7 times
Been thanked: 3 times
Contact:

Post by fx_advanc »

Can you help me position the dial, thanks [mention]afwafwafw[/mention]
here's the link " https://justbeamit.com/89pag
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

here's corrected version for tick.zip

https://drive.google.com/open?id=1xT_ct ... ou1v-q5cXv

Just remember that let "CenterImage.X", "CenterImage.Y" equal to pin position of time hands.

By comparing it with original tick.json, you can see how to set position of hands.
fx_advanc
WF maker
Posts: 19
Joined: 25 Jul 2019, 03:47
Location: Malaysia
Has thanked: 7 times
Been thanked: 3 times
Contact:

Post by fx_advanc »

yep been trying, i tried to set EMC first,

tick.json i forgot where did i put the original file (i take it from verge).
afwafwafw
Posts: 32
Joined: 21 Feb 2019, 02:55
Location: on earth
Has thanked: 6 times
Been thanked: 14 times
Contact:

Post by afwafwafw »

TXK wrote: 19 Aug 2019, 02:02
Can you make EXE programs?
https://github.com/ghtalpo/amazfit_verg ... ease/win32

see usage/for_windows_users section in readme.md
Ferodo
WF maker
Posts: 6
Joined: 01 Aug 2019, 02:22
Location: Malaysia
Has thanked: 4 times
Contact:

Post by Ferodo »

afwafwafw wrote: 26 Aug 2019, 13:23
TXK wrote: 19 Aug 2019, 02:02
Can you make EXE programs?
https://github.com/ghtalpo/amazfit_verg ... ease/win32

see usage/for_windows_users section in readme.md
Thank you so much :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D
koolgao
WF maker
Posts: 16
Joined: 15 Apr 2018, 06:25
Has thanked: 2 times

Post by koolgao »

buenos dias compañeros para cuando https://github.com/ghtalpo/amazfit_verg ... ease / win32 este podra empacar las esferas de 42 mm del gtr? para el gtr de 47 va de lujo pero para el de 42 no hace nada
glenan
Posts: 10
Joined: 24 Aug 2019, 16:35
Location: France
Has thanked: 2 times
Been thanked: 2 times
Contact:

Post by glenan »

Hello
Is there any tuto how to use Amazfit GTR TOols 32b ?
Thanks.
Post Reply

Return to “Watchfaces tools”

Who is online

Users browsing this forum: No registered users and 1 guest