• 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.
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.
koolgao
WF maker
Posts: 16
Joined: 15 Apr 2018, 06:25
Has thanked: 2 times

Post by koolgao »

Veo que este hilo no tiene movimiento no? Nadie sabe cuando sacaran algo para el gtr de 42??
STERH
Posts: 2
Joined: 06 Sep 2018, 18:46
Been thanked: 1 time
Contact:

Post 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
Vinassif
WF maker
Posts: 3
Joined: 28 Apr 2019, 03:53
Contact:

Post 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
glassphone
WF maker
Posts: 4
Joined: 30 Jun 2019, 23:43
Has thanked: 2 times
Contact:

Post 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.
Attachments
47.zip
(96.94 KiB) Downloaded 444 times
Bart1981
WF maker
Posts: 4
Joined: 13 Sep 2019, 18:02
Has thanked: 2 times
Contact:

Post 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.
koolgao
WF maker
Posts: 16
Joined: 15 Apr 2018, 06:25
Has thanked: 2 times

Post 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?
titanzx
WF maker
Posts: 6
Joined: 05 Sep 2019, 13:53
Been thanked: 2 times
Contact:

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

Post 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.
glassphone
WF maker
Posts: 4
Joined: 30 Jun 2019, 23:43
Has thanked: 2 times
Contact:

Post 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.
glassphone
WF maker
Posts: 4
Joined: 30 Jun 2019, 23:43
Has thanked: 2 times
Contact:

Post 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.
titanzx
WF maker
Posts: 6
Joined: 05 Sep 2019, 13:53
Been thanked: 2 times
Contact:

Post 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.
Bart1981
WF maker
Posts: 4
Joined: 13 Sep 2019, 18:02
Has thanked: 2 times
Contact:

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

Post 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 ?
gianpaoloc
WF maker
Posts: 1
Joined: 11 Oct 2019, 01:47
Contact:

Post 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?
User avatar
aYe
Posts: 7
Joined: 01 Nov 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
Contact:

Post 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?
Attachments
2f54d52d7ec743dce75f803e5d1329ab.bin
Official 42mm Vermillion WF
(229.08 KiB) Downloaded 406 times
User avatar
l1lN1ckl1l
WF maker
Posts: 3
Joined: 20 Jul 2019, 17:22
Location: Germany
Been thanked: 3 times
Contact:

Post 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?
Nick
el_boda
WF maker
Posts: 1
Joined: 03 Sep 2019, 23:48
Contact:

Post 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?
User avatar
jimmydimo
Posts: 4
Joined: 05 Aug 2019, 09:40
Location: Athens
Been thanked: 1 time
Contact:

Post by jimmydimo »

I installed everything. I get error python: can't open file main py : [Errno 2] No such file or directory
User avatar
jimmydimo
Posts: 4
Joined: 05 Aug 2019, 09:40
Location: Athens
Been thanked: 1 time
Contact:

Post 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...
User avatar
jimmydimo
Posts: 4
Joined: 05 Aug 2019, 09:40
Location: Athens
Been thanked: 1 time
Contact:

Post by jimmydimo »

Also some bins wont extract
Post Reply

Return to “Watchfaces tools”

Who is online

Users browsing this forum: No registered users and 1 guest