• Administrador
  •  
    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.

Moderadores: asoo, lvpokka, Internal error, Watchmens

Regras do fórum
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
Mensagens: 32
Registrado em: 21 Fev 2019, 02:55
Localização: on earth
Has thanked: 6 times
Been thanked: 14 times
Contato:

py amazfit tool

Mensagem por 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)

Código: Selecionar todos

## 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.
Avatar do usuário
XADE
WF maker
Mensagens: 9
Registrado em: 28 Ago 2019, 10:35
Has thanked: 2 times
Contato:

Mensagem por XADE »

How do we pack the weather then?
Avatar do usuário
aYe
Mensagens: 7
Registrado em: 01 Nov 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
Contato:

Mensagem por 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.
manelto

Mensagem por 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?
H078
WF maker
Mensagens: 7
Registrado em: 29 Out 2019, 22:22
Contato:

Mensagem por 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
Avatar do usuário
aYe
Mensagens: 7
Registrado em: 01 Nov 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
Contato:

Mensagem por aYe »

H078 escreveu: 06 Nov 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)?
H078
WF maker
Mensagens: 7
Registrado em: 29 Out 2019, 22:22
Contato:

Mensagem por H078 »

aYe escreveu: 06 Nov 2019, 20:08
H078 escreveu: 06 Nov 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
Avatar do usuário
aYe
Mensagens: 7
Registrado em: 01 Nov 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
Contato:

Mensagem por aYe »

You mean the .exe file? Try using the python script, if you have 64bit Windows use the 64bit version of python.
H078
WF maker
Mensagens: 7
Registrado em: 29 Out 2019, 22:22
Contato:

Mensagem por 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
Avatar do usuário
aYe
Mensagens: 7
Registrado em: 01 Nov 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
Contato:

Mensagem por 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.
Avatar do usuário
XiaomiFan
Mensagens: 4
Registrado em: 07 Nov 2019, 11:55
Contato:

Mensagem por 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 ?
Avatar do usuário
XADE
WF maker
Mensagens: 9
Registrado em: 28 Ago 2019, 10:35
Has thanked: 2 times
Contato:

Mensagem por XADE »

aYe escreveu: 07 Nov 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?
murigny64
WF maker
Mensagens: 11
Registrado em: 03 Nov 2019, 17:12
Been thanked: 4 times
Contato:

Mensagem por 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:

Código: Selecionar todos

.\main.py --gtr 47 --file face.bin
You now have a new folder "face"
To pack:

Código: Selecionar todos

.\main.py --gtr 47 --file face/face.json
Weather parameters are "current" and "day/night" but you can't use it together, for now ;)
Avatar do usuário
aYe
Mensagens: 7
Registrado em: 01 Nov 2018, 20:42
Has thanked: 1 time
Been thanked: 1 time
Contato:

Mensagem por aYe »

XADE escreveu: 07 Nov 2019, 15:25
Works 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 :D thanks murigny64)
murigny64 escreveu: 07 Nov 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?
Anexos
en_digi-gold_packed-59503-94223bab05.log
(44.97 KiB) Baixado 430 vezes
murigny64
WF maker
Mensagens: 11
Registrado em: 03 Nov 2019, 17:12
Been thanked: 4 times
Contato:

Mensagem por murigny64 »

Código: Selecionar todos

  "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
      }
    }
  }
H078
WF maker
Mensagens: 7
Registrado em: 29 Out 2019, 22:22
Contato:

Mensagem por H078 »

aYe escreveu: 07 Nov 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
H078
WF maker
Mensagens: 7
Registrado em: 29 Out 2019, 22:22
Contato:

Mensagem por 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
glenan
Mensagens: 10
Registrado em: 24 Ago 2019, 16:35
Localização: France
Has thanked: 2 times
Been thanked: 2 times
Contato:

Mensagem por glenan »

murigny64 escreveu: 07 Nov 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:

Código: Selecionar todos

.\main.py --gtr 47 --file face.bin
You now have a new folder "face"
To pack:

Código: Selecionar todos

.\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
murigny64
WF maker
Mensagens: 11
Registrado em: 03 Nov 2019, 17:12
Been thanked: 4 times
Contato:

Mensagem por murigny64 »

Name of branch is "dev_gtr".
win32 executable is useless for a dev. :roll:
and python is multi-platform and easy debug.

Use chocolatey pack installer, it's more easy to install python and addons :mrgreen:
Avatar do usuário
jimmydimo
Mensagens: 4
Registrado em: 05 Ago 2019, 09:40
Localização: Athens
Been thanked: 1 time
Contato:

Mensagem por jimmydimo »

aYe escreveu: 04 Nov 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'>
Horatius80

Mensagem por Horatius80 »

HI I do not know how to contact lolyinseo directly, but in his last dev-gtr the battery scale is not working

Código: Selecionar todos

"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
Avatar do usuário
siddartha001
WF maker
Mensagens: 12
Registrado em: 17 Dez 2018, 15:43
Has thanked: 4 times
Been thanked: 2 times
Contato:

Mensagem por 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. :/
Avatar do usuário
ataru
WF maker
Mensagens: 2
Registrado em: 11 Set 2019, 08:47
Localização: Roma
Has thanked: 1 time
Contato:

Mensagem por 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:

Código: Selecionar todos

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?
rebels
WF maker
Mensagens: 4
Registrado em: 09 Nov 2019, 17:50
Has thanked: 1 time
Contato:

Mensagem por rebels »

Whats the maximal bin size that gtr can be handle to sync? Tried 2mb but nope.
koolgao
WF maker
Mensagens: 16
Registrado em: 15 Abr 2018, 06:25
Has thanked: 2 times

Mensagem por koolgao »

siddartha001 escreveu: 17 Nov 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
dpassaggio
WF maker
Mensagens: 18
Registrado em: 28 Ago 2018, 19:18
Localização: unknown
Been thanked: 1 time
Contato:

Mensagem por 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?
Responder

Voltar para “Watchfaces tools”

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 3 visitantes