• 管理员
  •  
    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.

版主: asoolvpokkaInternal errorWatchmens

版面规则
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.
afwafwafw
帖子: 32
注册时间: 21 2月 2019, 02:55
来自: on earth
Has thanked: 6 time
Been thanked: 14 time
联系:

py amazfit tool

帖子 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)

代码: 全选

## 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.
koolgao
WF maker
帖子: 16
注册时间: 15 4月 2018, 06:25
Has thanked: 2 time

帖子 koolgao »

Veo que este hilo no tiene movimiento no? Nadie sabe cuando sacaran algo para el gtr de 42??
STERH
帖子: 2
注册时间: 06 9月 2018, 18:46
Been thanked: 1 time
联系:

帖子 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
帖子: 3
注册时间: 28 4月 2019, 03:53
联系:

帖子 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
帖子: 4
注册时间: 30 6月 2019, 23:43
Has thanked: 2 time
联系:

帖子 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.
附件
47.zip
(96.94 KiB) 已下载 483 次
Bart1981
WF maker
帖子: 4
注册时间: 13 9月 2019, 18:02
Has thanked: 2 time
联系:

帖子 Bart1981 »

glenan 写了: 24 9月 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
帖子: 16
注册时间: 15 4月 2018, 06:25
Has thanked: 2 time

帖子 koolgao »

glassphone 写了: 29 9月 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
帖子: 6
注册时间: 05 9月 2019, 13:53
Been thanked: 2 time
联系:

帖子 titanzx »

glassphone 写了: 29 9月 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
帖子: 10
注册时间: 24 8月 2019, 16:35
来自: France
Has thanked: 2 time
Been thanked: 2 time
联系:

帖子 glenan »

Bart1981 写了: 29 9月 2019, 09:21
glenan 写了: 24 9月 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
帖子: 4
注册时间: 30 6月 2019, 23:43
Has thanked: 2 time
联系:

帖子 glassphone »

titanzx 写了: 30 9月 2019, 10:02
glassphone 写了: 29 9月 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
帖子: 4
注册时间: 30 6月 2019, 23:43
Has thanked: 2 time
联系:

帖子 glassphone »

koolgao 写了: 29 9月 2019, 19:58
glassphone 写了: 29 9月 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
帖子: 6
注册时间: 05 9月 2019, 13:53
Been thanked: 2 time
联系:

帖子 titanzx »

glassphone 写了: 01 10月 2019, 09:22
titanzx 写了: 30 9月 2019, 10:02
glassphone 写了: 29 9月 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
帖子: 4
注册时间: 13 9月 2019, 18:02
Has thanked: 2 time
联系:

帖子 Bart1981 »

glenan 写了: 30 9月 2019, 13:06
Bart1981 写了: 29 9月 2019, 09:21
glenan 写了: 24 9月 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
帖子: 10
注册时间: 24 8月 2019, 16:35
来自: France
Has thanked: 2 time
Been thanked: 2 time
联系:

帖子 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
帖子: 1
注册时间: 11 10月 2019, 01:47
联系:

帖子 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?
头像
aYe
帖子: 7
注册时间: 01 11月 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
联系:

帖子 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?
附件
2f54d52d7ec743dce75f803e5d1329ab.bin
Official 42mm Vermillion WF
(229.08 KiB) 已下载 435 次
头像
l1lN1ckl1l
WF maker
帖子: 3
注册时间: 20 7月 2019, 17:22
来自: Germany
Been thanked: 3 time
联系:

帖子 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
帖子: 1
注册时间: 03 9月 2019, 23:48
联系:

帖子 el_boda »

glassphone 写了: 01 10月 2019, 09:22
titanzx 写了: 30 9月 2019, 10:02
glassphone 写了: 29 9月 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?
头像
jimmydimo
帖子: 4
注册时间: 05 8月 2019, 09:40
来自: Athens
Been thanked: 1 time
联系:

帖子 jimmydimo »

I installed everything. I get error python: can't open file main py : [Errno 2] No such file or directory
头像
jimmydimo
帖子: 4
注册时间: 05 8月 2019, 09:40
来自: Athens
Been thanked: 1 time
联系:

帖子 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...
头像
jimmydimo
帖子: 4
注册时间: 05 8月 2019, 09:40
来自: Athens
Been thanked: 1 time
联系:

帖子 jimmydimo »

Also some bins wont extract
头像
Maikeldevil
帖子: 64
注册时间: 17 8月 2019, 12:05
来自: unknown
Has thanked: 3 time
Been thanked: 44 time
联系:

帖子 Maikeldevil »

Could you support weather? Its exact json refference like the bip , stratos or miband 4 but not readed by tool unlike the bip, stratos or miband tool. Does it needs activation?
koolgao
WF maker
帖子: 16
注册时间: 15 4月 2018, 06:25
Has thanked: 2 time

帖子 koolgao »

Hola compañeros como veis en el apartado del gtr muchos de los creadores incluido yo dejaremos de hacer esferas hasta que liberen los códigos de temperatura y nos empiecen a escuchar estos de amazfit

Un saludo
头像
siddartha001
WF maker
帖子: 12
注册时间: 17 12月 2018, 15:43
Has thanked: 4 time
Been thanked: 2 time
联系:

帖子 siddartha001 »

It's just annoying and unfair of Huami! I buy a watch and nothing works really well. GPS works badly and the weather settings show me a sun at night and not a moon. It is standard nowadays that the weather is visible on the Watchface and Huami does not release the code for it. I can understand all those who refuse to continue to create high-quality watchfaces.
teras

帖子 teras »

Hello all

I have been successful to download and install the tool.
The problem is, no matter which bin to provide, the procedure always ends with this message:


File "main .py", line 32, in <module>
program.Parser.unpackWatchFace(inputFileName)
File "/Users/teras/Downloads/py_amazfit_tools/program .py", line 124, in unpackWatchFace
reader = Parser.readWatchFace(inputFileName)
File "/Users/teras/Downloads/py_amazfit_tools/program .py", line 90, in readWatchFace
traceback.print_stack()
Done


A new folder has been created, with the log file, but no other files.
An example log file can be found here: pastebin .com/PYQk7EHs
(remove space after pastebin)
头像
aYe
帖子: 7
注册时间: 01 11月 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
联系:

帖子 aYe »

There's a tool for converting 47mm to 42mm. Use ghtalpo's tool to decompile 47mm bin files, follow the instructions here http://4pda[dot]ru/forum/index[dot]php?showtopic=962946&st=1480#entry90218896

Replace [dot] with .
回复

回到 “Watchfaces tools”

在线用户

正浏览此版面之用户: 没有注册用户 和 5 访客