分页: 3 / 7
py amazfit tool
发表于 : 17 8月 2019, 20:13
由 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.
Re: py amazfit tool
发表于 : 04 11月 2019, 11:04
由 XADE
How do we pack the weather then?
Re: py amazfit tool
发表于 : 04 11月 2019, 23:01
由 aYe
Have a look around, some 47mm WFs have weather. Just unpack and open the .json, you'll find what you need.
https://amazfitwatchfaces.com/gtr/view/1569
Be sure to give credit since these guys are doing really great work.
Re: py amazfit tool
发表于 : 05 11月 2019, 13:04
由 manelto
I haven't connected to the forum for a while and I see that some things have changed. The temperature and time are very remarkable. Congratulations to those who have achieved it.
I will have to download the application again and try.
Is it the same as the time ago with the updated code or is it a completely new one?
Re: py amazfit tool
发表于 : 06 11月 2019, 06:21
由 H078
Please help, Every single bin file for GTR 47, that I had tried to extract so far, ended with error log inside .bin folder only
I see not every .bin can be extracted, however I tried some of original ones offered with watch on amazfit app - same result
Re: py amazfit tool
发表于 : 06 11月 2019, 20:08
由 aYe
H078 写了: 06 11月 2019, 06:21
Please help, Every single bin file for GTR 47, that I had tried to extract so far, ended with error log inside .bin folder only
What was the error code that you got and what tool are you using (I had the same issue with lolyinseo's tool)?
Re: py amazfit tool
发表于 : 07 11月 2019, 01:02
由 H078
aYe 写了: 06 11月 2019, 20:08
H078 写了: 06 11月 2019, 06:21
Please help, Every single bin file for GTR 47, that I had tried to extract so far, ended with error log inside .bin folder only
What was the error code that you got and what tool are you using (I had the same issue with lolyinseo's tool)?
IndexError: Parameter 6 isn't supported for <class 'watchFaceParser.watchFace.WatchFace'>
---Using amazfit_gtr_tools_WIN32
Re: py amazfit tool
发表于 : 07 11月 2019, 02:40
由 aYe
You mean the .exe file? Try using the python script, if you have 64bit Windows use the 64bit version of python.
Re: py amazfit tool
发表于 : 07 11月 2019, 02:44
由 H078
No, i am using gtr tools win32 according to instructions in main post GTR for win users experimental
drag & drop WATCH_FACE_FILE.bin into main_gtr/main.exe
Re: py amazfit tool
发表于 : 07 11月 2019, 05:07
由 aYe
Install python 3.7.4 (32 or 64bit depending on your system), install pillow 6.1.0. Go to
https://github.com/ghtalpo/amazfit_verge_lite_tools
Click clone or download, download the zip file, unzip.
You can either run the command listed in the sticky or drag & drop the bin into
main.py (I have Windows 10 and this does work). The python method is for Windows and other operating systems, the main_gtr/main.exe method is only for Windows but is expermental. Give python a try, it's the same as installing a regular program.
Re: py amazfit tool
发表于 : 07 11月 2019, 12:50
由 XiaomiFan
sorry for my question. I downloaded the file "amazfit_gtr_tools_WIN32.7z". unziped it. After that i installed python 3.7.4.
If i start "main.exe" a command box starts and closes immediately again. Any hint for my or is there a tutorial that i haven't found yet ?
Re: py amazfit tool
发表于 : 07 11月 2019, 15:25
由 XADE
aYe 写了: 07 11月 2019, 05:07
Install python 3.7.4 (32 or 64bit depending on your system), install pillow 6.1.0. Go to
https://github.com/ghtalpo/amazfit_verge_lite_tools
Click clone or download, download the zip file, unzip.
You can either run the command listed in the sticky or drag & drop the bin into
main.py (I have Windows 10 and this does work). The python method is for Windows and other operating systems, the main_gtr/main.exe method is only for Windows but is expermental. Give python a try, it's the same as installing a regular program.
Works on older watchfaces, just not new ones. What am I missing?
Re: py amazfit tool
发表于 : 07 11月 2019, 17:29
由 murigny64
No, for
GTR
You have to use lolyinseo's fork
https://github.com/lolyinseo/py_amazfit ... ee/dev_gtr
this one include weather's parameters
You have to install python x64 and pillow
Then, download github branch, extract it and use script (main.py) (the win32 version is not updated.)
Copy you face bin in "py_amaztool_tools-dev_gtr" folder and open a Powershell box in this folder
To unpack:
代码: 全选
.\main.py --gtr 47 --file face.bin
You now have a new folder "face"
To pack:
代码: 全选
.\main.py --gtr 47 --file face/face.json
Weather parameters are "current" and "day/night" but you can't use it together, for now

Re: py amazfit tool
发表于 : 07 11月 2019, 22:12
由 aYe
XADE 写了: 07 11月 2019, 15:25Works on older watchfaces, just not new ones. What am I missing?
Try lolyinseo's fork (I couldn't get it to work before because didn't input the command correctly

thanks murigny64)
murigny64 写了: 07 11月 2019, 17:29
No, for GTR
You have to use lolyinseo's fork
ghtalpo's fork worked for GTR 47mm in my case (except for one that had weather), Bip & GTR 42mm would just give an error. Lolyinseo's fork should be fine although I still couldn't get the one with weather work either, this is what I got from Digi Gold
https://amazfitwatchfaces.com/gtr/view/1569
Thanks dude, also you wouldn't happen to have a link to that list of parameters would you?
Re: py amazfit tool
发表于 : 08 11月 2019, 08:08
由 murigny64
代码: 全选
"Weather": {
"Icon": {
"Images": {
"X": 227,
"Y": 88,
"ImageIndex": 16,
"ImagesCount": 25
},
"NoWeatherImageIndex": 41
},
"Temperature": {
"Current": {
"TopLeftX": 220,
"TopLeftY": 126,
"BottomRightX": 271,
"BottomRightY": 143,
"Alignment": "Center",
"Spacing": 0,
"ImageIndex": 42,
"ImagesCount": 10
},
"Today": {
"Separate": {
"Day": {
"TopLeftX": 120,
"TopLeftY": 126,
"BottomRightX": 171,
"BottomRightY": 143,
"Alignment": "Left",
"Spacing": 0,
"ImageIndex": 42,
"ImagesCount": 10
},
"Night": {
"TopLeftX": 250,
"TopLeftY": 126,
"BottomRightX": 290,
"BottomRightY": 143,
"Alignment": "Right",
"Spacing": 0,
"ImageIndex": 42,
"ImagesCount": 10
}
},
"AppendDegreesForBoth":1
},
"Symbols": {
"Unknown0800": 0,
"MinusImageIndex": 52,
"DegreesImageIndex": 53,
"NoDataImageIndex": 54
}
}
}
Re: py amazfit tool
发表于 : 08 11月 2019, 16:56
由 H078
aYe 写了: 07 11月 2019, 05:07
Install python 3.7.4 (32 or 64bit depending on your system), install pillow 6.1.0. Go to
https://github.com/ghtalpo/amazfit_verge_lite_tools
Click clone or download, download the zip file, unzip.
You can either run the command listed in the sticky or drag & drop the bin into
main.py (I have Windows 10 and this does work). The python method is for Windows and other operating systems, the main_gtr/main.exe method is only for Windows but is expermental. Give python a try, it's the same as installing a regular program.
Ok, looks like the part i was missing was to install pillow 6.1.0...
I was trying both...exe file and .py scripts but all ended up w same results
Re: py amazfit tool
发表于 : 10 11月 2019, 01:01
由 H078
Actually, no luck after installing pillow either.
It would be really helpful if someone can write step by step how to install all software and extract .bin files.
For example I tried using py_amazfit_tools-master, and I was able to create .bin using example_watchface files included with the software.
I was also able to modify JSON and create new bin file using my images. The problem is that bin generated by example_ watchface was 1.92Mb where as my bin was 3Mb???
I had only background and analog face (3 hands) ... totaling maybe 600Kb in size
So some explanation on how to compress the .bin would be helpful.
Also, are there recommended image settings (color depth, transparency etc) that are prerequisite?
I would like really to ask people on this forum to help out .
Every single extraction ends up with log file inside the bin folder - Absolutely no JSON or image files.
Thanks
Re: py amazfit tool
发表于 : 10 11月 2019, 16:25
由 glenan
murigny64 写了: 07 11月 2019, 17:29
No, for
GTR
You have to use lolyinseo's fork
https://github.com/lolyinseo/py_amazfit ... ee/dev_gtr
this one include weather's parameters
You have to install python x64 and pillow
Then, download github branch, extract it and use script (main.py) (the win32 version is not updated.)
Copy you face bin in "py_amaztool_tools-dev_gtr" folder and open a Powershell box in this folder
To unpack:
代码: 全选
.\main.py --gtr 47 --file face.bin
You now have a new folder "face"
To pack:
代码: 全选
.\main.py --gtr 47 --file face/face.json
Weather parameters are "current" and "day/night" but you can't use it together, for now
Why nobody to simply update win32 version ?
Don't want to install python and pillow
Re: py amazfit tool
发表于 : 10 11月 2019, 22:34
由 murigny64
Name of branch is "dev_gtr".
win32 executable is useless for a dev.
and python is multi-platform and easy debug.
Use chocolatey pack installer, it's more easy to install python and addons

Re: py amazfit tool
发表于 : 11 11月 2019, 12:32
由 jimmydimo
aYe 写了: 04 11月 2019, 23:01
Have a look around, some 47mm WFs have weather. Just unpack and open the .json, you'll find what you need.
https://amazfitwatchfaces.com/gtr/view/1569
Be sure to give credit since these guys are doing really great work.
It wont decompress a lot of bin. For shure all with the weather including digi gold. It just crteates a folder with a log file. At the end says
2019-11-11 14:30:12,611 - root - WARNING - [ParamConv:parse] currentPath 6 / Parameter 6 isn't supported for <class 'watchFaceParser.watchFace.WatchFace'>
2019-11-11 14:30:12,611 - root - CRITICAL - Parameter 6 isn't supported for <class 'watchFaceParser.watchFace.WatchFace'>
Traceback (most recent call last):
File "program.py", line 160, in parseResources
File "watchFaceParser\utils\parametersConverter.py", line 79, in parse
IndexError: Parameter 6 isn't supported for <class 'watchFaceParser.watchFace.WatchFace'>
Re: py amazfit tool
发表于 : 11 11月 2019, 16:49
由 Horatius80
HI I do not know how to contact lolyinseo directly, but in his last dev-gtr the battery scale is not working
代码: 全选
"Battery": {
"Text": {
"TopLeftX": 198,
"TopLeftY": 30,
"BottomRightX": 254,
"BottomRightY": 64,
"Alignment": "Center",
"Spacing": 0,
"ImageIndex": 23,
"ImagesCount": 10
},
"Scale": {
"CenterX": 227,
"CenterY": 227,
"RadiusX": 217,
"RadiusY": 0,
"StartAngle": 6,
"EndAngle": 173,
"Width": 10,
"Color": "0x00B34F00",
"Flatness": 90
}
}
When I am using ghtalpo version everything is working fine except weather ...

Or I am missing something ? ... Has anybody some recommendations, how to solve to have working weather with battery scale ?
Thanx in advance for help
Re: py amazfit tool
发表于 : 17 11月 2019, 14:03
由 siddartha001
Hmmm, i can do what i want, never will work for the GTR with weather. Only log files. Not more. For developers is it maybe fine, but for non developers... no chance. We need a exe file for that. I remember, many goes into a strike for the weather code, but no one will create a new working exe file for anyone. Thats not fair. I hope the community finds a solution for that, at the moment it is no fun for many users. :/
Re: py amazfit tool
发表于 : 18 11月 2019, 14:56
由 ataru
Hi, I'm trying to convert a GTR47 watchface to a Verge lite one, but when i try to extract from gtr bin i run into this error:
代码: 全选
2019-11-18 15:51:00,074 - root - WARNING - [ParamConv:parse] currentPath 5\.\1\.\1\.\2 / Parameter 2 isn't supported for <class 'watchFaceParser.elements.dateElements.separateMonthAndDay.SeparateMonthAndDay'>
2019-11-18 15:51:00,074 - root - CRITICAL - Parameter 2 isn't supported for <class 'watchFaceParser.elements.dateElements.separateMonthAndDay.SeparateMonthAndDay'>
Traceback (most recent call last):
File "program.py", line 160, in parseResources
File "watchFaceParser\utils\parametersConverter.py", line 103, in parse
File "watchFaceParser\utils\parametersConverter.py", line 103, in parse
File "watchFaceParser\utils\parametersConverter.py", line 103, in parse
File "watchFaceParser\utils\parametersConverter.py", line 79, in parse
IndexError: Parameter 2 isn't supported for <class 'watchFaceParser.elements.dateElements.separateMonthAndDay.SeparateMonthAndDay'>
any suggestion?
Re: py amazfit tool
发表于 : 18 11月 2019, 22:33
由 rebels
Whats the maximal bin size that gtr can be handle to sync? Tried 2mb but nope.
Re: py amazfit tool
发表于 : 19 11月 2019, 18:11
由 koolgao
siddartha001 写了: 17 11月 2019, 14:03
Hmmm, i can do what i want, never will work for the GTR with weather. Only log files. Not more. For developers is it maybe fine, but for non developers... no chance. We need a exe file for that. I remember, many goes into a strike for the weather code, but no one will create a new working exe file for anyone. Thats not fair. I hope the community finds a solution for that, at the moment it is no fun for many users. :/
los que entramos en huelga y ahora hacemos las esferas con clima es porque nos hemos partido la cabeza buscando la solución para ello el que te lo quiera compartir me parece bien pero yo e dejado de subir esferas a la pagina por que paso de dar publicidad a este tipo de empresas que solo miran por ellos
Re: py amazfit tool
发表于 : 25 11月 2019, 19:02
由 dpassaggio
when I try to use the tool, I get this error "
lorenzo@DESKTOP-RPOGS3M:/mnt/c/Users/Lorenzo/Desktop/py_amazfit_tools-dev_gtr$ python main.py testgtr.bin
Traceback (most recent call last):
File "main.py", line 4, in <module>
from watchFaceParser.config import Config
ImportError: No module named watchFaceParser.config "
how can i solve?