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

Re: py amazfit tool

Posted: 26 Sep 2019, 21:20
by koolgao
Veo que este hilo no tiene movimiento no? Nadie sabe cuando sacaran algo para el gtr de 42??

Re: py amazfit tool

Posted: 27 Sep 2019, 09:04
by STERH
Hi,
first of all thank you for this great app. I have a gtr 47mm and experimenting with watchfaces with good results so far.
Is there any estimation about the weather???
I've tried copying the weather lines from verge into json but the bin produced does not show anything.

Thank you in advance

Re: py amazfit tool

Posted: 27 Sep 2019, 15:18
by Vinassif
anyone can do this faces to verge lite ?? this is to gtr but i want transport to verge lite:

https://amazfitwatchfaces.com/gtr/view/670
https://amazfitwatchfaces.com/gtr/view/543
thanks a lot

I hope developer

Posted: 29 Sep 2019, 06:52
by glassphone
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.

Re: py amazfit tool

Posted: 29 Sep 2019, 09:21
by Bart1981
glenan wrote: 24 Sep 2019, 09:21
Hello
Is there any tuto how to use Amazfit GTR TOols 32b ?
Thanks.
I was wondering the exact same thing.

Re: I hope developer

Posted: 29 Sep 2019, 19:58
by koolgao
glassphone wrote: 29 Sep 2019, 06:52
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.
como has conseguido desempacar esta esfera? me la puedes pasar?

Re: I hope developer

Posted: 30 Sep 2019, 10:02
by titanzx
glassphone wrote: 29 Sep 2019, 06:52
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.
How you can unpacked this WF ?

Re: py amazfit tool

Posted: 30 Sep 2019, 13:06
by glenan
Bart1981 wrote: 29 Sep 2019, 09:21
glenan wrote: 24 Sep 2019, 09:21
Hello
Is there any tuto how to use Amazfit GTR TOols 32b ?
Thanks.
I was wondering the exact same thing.

I found that (exemple for GTR) :
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

You create a directory for each .bin fil you donwload
unpack will create a subdirectory with all neccesary files if bin file is compatible because many of bin files come from modified original watchfaces and don't work.

So you need to find the original bin file

I succeeded for one bin file to add my own logo on it and for the first time, it had no color problem in it.

Re: I hope developer

Posted: 01 Oct 2019, 09:22
by glassphone
titanzx wrote: 30 Sep 2019, 10:02
glassphone wrote: 29 Sep 2019, 06:52
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.
How you can unpacked this WF ?
decompress this WF then unpack it.

Re: I hope developer

Posted: 01 Oct 2019, 09:28
by glassphone
koolgao wrote: 29 Sep 2019, 19:58
glassphone wrote: 29 Sep 2019, 06:52
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.
como has conseguido desempacar esta esfera? me la puedes pasar?
Bien.

Re: I hope developer

Posted: 01 Oct 2019, 13:53
by titanzx
glassphone wrote: 01 Oct 2019, 09:22
titanzx wrote: 30 Sep 2019, 10:02
glassphone wrote: 29 Sep 2019, 06:52
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.
How you can unpacked this WF ?
decompress this WF then unpack it.
Can you send me this unpacked file ?
thanks.

Re: py amazfit tool

Posted: 02 Oct 2019, 14:49
by Bart1981
glenan wrote: 30 Sep 2019, 13:06
Bart1981 wrote: 29 Sep 2019, 09:21
glenan wrote: 24 Sep 2019, 09:21
Hello
Is there any tuto how to use Amazfit GTR TOols 32b ?
Thanks.
I was wondering the exact same thing.

I found that (exemple for GTR) :
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

You create a directory for each .bin fil you donwload
unpack will create a subdirectory with all neccesary files if bin file is compatible because many of bin files come from modified original watchfaces and don't work.

So you need to find the original bin file

I succeeded for one bin file to add my own logo on it and for the first time, it had no color problem in it.
Ok great, with these steps I think I'll be able to get somewhere and make my own adjustments. Thnx!

Re: py amazfit tool

Posted: 03 Oct 2019, 13:55
by glenan
Hi

If someone knows, I should like to find bin files compatibles with windows amazfit tool because most of them are unusabled because of already modified.

I don't know exactly why some can work and others not.

How can we know it ?

Re: py amazfit tool

Posted: 11 Oct 2019, 02:02
by gianpaoloc
I was easily able to use the py_amazfit_tool to unpack and repack a watchface downloaded from this site (thanks afwafwafw) but I was not able to do the same with any of the original watchfaces downloaded through the amazfit app.

More precisely, if I take the bin from the android folder where the amazfit app put its own watchfaces and I try to unpack it with the Python tool provided (I use Linux), I get an error about a wrong, unrecognized header. The process works correctly with watchfaces downloaded from this site. Is this normal?

Re: py amazfit tool

Posted: 11 Oct 2019, 16:08
by aYe
Not experienced in python or coding at all, trying to decompile 42mm with main[dot]py & main.exe (cmd, python terminal & drag and drop) and I get the error-
'Reader' object has no attribute '_parameters'
Any ideas?

Re: py amazfit tool

Posted: 17 Oct 2019, 12:52
by l1lN1ckl1l
This is awesome. What python version do you use, and can I use your code in one of my projects for the MiBand 4?

Re: I hope developer

Posted: 17 Oct 2019, 14:06
by el_boda
glassphone wrote: 01 Oct 2019, 09:22
titanzx wrote: 30 Sep 2019, 10:02
glassphone wrote: 29 Sep 2019, 06:52
I hope developers can continue to improve their tools. I can offer some other ideas, such as decompression or GTR dial decompression with weather.
How you can unpacked this WF ?
decompress this WF then unpack it.
Could you explain with more detail? when we download a WF it is a bin file and we can unpack with the tools. In what part is the decompression process?

Re: py amazfit tool

Posted: 18 Oct 2019, 10:12
by jimmydimo
I installed everything. I get error python: can't open file main py : [Errno 2] No such file or directory

Re: py amazfit tool

Posted: 18 Oct 2019, 11:10
by jimmydimo
Well i saw "the experimental : USE AT YOUR OWN RISK" but i just mention it. For me drag&drop extracts the wf but the json file is blank, zero bytes...

Re: py amazfit tool

Posted: 22 Oct 2019, 07:42
by jimmydimo
Also some bins wont extract