Page 1 of 7

py amazfit tool

Posted: 17 Aug 2019, 20:13
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.

Re: .bin pack/unpacker for verge lite

Posted: 19 Aug 2019, 02:02
by TXK
Can you make EXE programs?

Re: .bin pack/unpacker for verge lite

Posted: 19 Aug 2019, 03:41
by afwafwafw
Sure but not right now.

You can generate it by executing auto-py-to-exe, though.

Re: .bin pack/unpacker for verge lite

Posted: 19 Aug 2019, 16:26
by fx_advanc
cool bro,
i have using it today, straight forward. but no animation.

Re: .bin pack/unpacker for verge lite

Posted: 20 Aug 2019, 05:30
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

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 04:13
by 侯侯大神
Why can't you use your tools to unpack your bin, only unpack the official ones

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 08:41
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

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 09:27
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?

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 09:28
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. :)

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 11:02
by 侯侯大神
Thanks for replying, friend, I should not be using the latest version

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 17:45
by manelto
Is It possible have this tool for GTR amazfit?

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 21:54
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).

Re: .bin pack/unpacker for verge lite

Posted: 22 Aug 2019, 21:56
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.

Re: .bin pack/unpacker for verge lite

Posted: 23 Aug 2019, 06:15
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).

Re: .bin pack/unpacker for verge lite

Posted: 24 Aug 2019, 13:29
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

Re: .bin pack/unpacker for verge lite

Posted: 24 Aug 2019, 14:53
by fx_advanc
Does gimp shows the coordinate? what name of the features.

Re: .bin pack/unpacker for verge lite

Posted: 24 Aug 2019, 14:57
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?

Re: .bin pack/unpacker for verge lite

Posted: 25 Aug 2019, 04:27
by fx_advanc
Can you help me position the dial, thanks [mention]afwafwafw[/mention]
here's the link " https://justbeamit.com/89pag

Re: .bin pack/unpacker for verge lite

Posted: 25 Aug 2019, 04:38
by fx_advanc

Re: .bin pack/unpacker for verge lite

Posted: 25 Aug 2019, 10:23
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.

Re: .bin pack/unpacker for verge lite

Posted: 26 Aug 2019, 06:45
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).

Re: .bin pack/unpacker for verge lite

Posted: 26 Aug 2019, 13:23
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

Re: .bin pack/unpacker for verge lite

Posted: 26 Aug 2019, 13:49
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

Re: py amazfit tool

Posted: 24 Sep 2019, 08:04
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

Re: py amazfit tool

Posted: 24 Sep 2019, 09:21
by glenan
Hello
Is there any tuto how to use Amazfit GTR TOols 32b ?
Thanks.