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

beta py amazfit tool for GTR2(GTS2 also should work but not tested)

This forum is designed to discuss and develop tools creating watch faces.

Moderatori: asoo, lvpokka, Internal error, Watchmens

Regole del forum
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.
bigdigital.kov
Messaggi: 4
Iscritto il: 03 ago 2020, 12:55
Località: Kyiv
Has thanked: 2 times
Been thanked: 9 times
Contatta:

beta py amazfit tool for GTR2(GTS2 also should work but not tested)

Messaggio da bigdigital.kov »

The link to the project on github /bigdigital/py_amazfit_tools/tree/GTR2
Hi to all. Recenly I did some research in gtr2 watchface structure and made this tool.

Its a well known py amazfit tool but with adaptation for GTR2.
It is also has included tool which allows to compress and decompress GTR2 bin files. Before uploading bin file to your watch, you should compress it with help of this tool.

The JSON structure for GTR2 is completely different. To get the basic knowledge about the structure you can unpack any existing GTR2 dial.

How to use it.
1. Unpack existing dial with help of the GTR2_Packer.exe tool by executing

Codice: Seleziona tutto

GTR2_Packer.exe -unc2 WATCH_FACE_FILE.bin
2 After uncompressing, you should receive a new file with .unc extension, rename file extension back to .bin
3. Now you can parse uncompressed dial with a command

Codice: Seleziona tutto

python main._py --gtr2  47 --file WATCH_FACE_FILE.bin
* due to the limitation on this forum, i can't post a topic with the correct python file name, so please remove "_" char between "main." and "py" in the command above.
As a result, if everything was ok, you should receive json file.
4 Now you can modificate json file or watchface images.
5. After all the modifications are completed, you can build watchface with help of the command

Codice: Seleziona tutto

python main._py --gtr2 47 --file WATCH_FACE_FILE.json
* due to the limitation on this forum, i can't post a topic with the correct python file name, so please remove "_" char between "main." and "py" in the command above.
6 . Pack a new bin file with help of GTR2_Packer.exe

Codice: Seleziona tutto

GTR2_Packer.exe -cmp2 WATCH_FACE_FILE_packed.bin
7. Rename compressed file extension back to .bin and upload to your watch to test it

Notes .
1. The previews generation does not work for GTR2 mode.
2 .Available Commands for GTR2_Packer.exe :

Codice: Seleziona tutto

-cmp Compress bin (for gtr(gts) first gen)
-cmp2 Compress gtr2(gts2) bin 
-unc Decompress
-unc2 Decompress gtr2(gts2) bin
3. Image numeration on GTR2 and GTS2 starting from 0001, not from zero like it was for previous Huami devices.


Current version 0.2

Chagelog
v0.2
Added widgets.
Fixed Images loss when packing bin file
Allegati
py_amazfit_tools-GTR2_v0_2.zip
(323.58 KiB) Scaricato 2305 volte
Ultima modifica di bigdigital.kov il 31 gen 2021, 18:53, modificato 3 volte in totale.
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

Fact. I entered the bluetooth icon in the code ("OFF" instead of "ON") and it helped, it is displayed when the smartphone is out of bluetooth range. If the smartwach is within bluetooth range of the smartphone, then there is no bluetooth icon on the watch. It is a pity there is no reverse option.
As for the alarm, it actually turned off unnoticed. When turned on, the icon appears.
Thanks.
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

OK
Ultima modifica di demiurg1 il 02 feb 2021, 17:03, modificato 1 volta in totale.
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

It works, but it's a pity that it is contrary to logic.
Currently, it works like this: there is bluetooth, there is no icon, and when there is no bluetooth the icon is there.
Ultima modifica di demiurg1 il 02 feb 2021, 21:11, modificato 1 volta in totale.
MatZil02
WF maker
Messaggi: 2
Iscritto il: 31 gen 2021, 22:04
Località: Italia
Contatta:

Messaggio da MatZil02 »

For the Bluetooth connected, I've Just made a background with the Bluetooth icon and the in the tool i have put over the icon when Is not connected.

By doing this way It can "switch" between connected or not.
cmelcher78

Messaggio da cmelcher78 »

The upload with Notify for Amazfit is not working. Does anyone has an idea or alternative?
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

This trick with a dial background with a bluetooth mark on it is pretty cool.
When there is no bluetooth, it is enough to programmatically enter the "no bluetooth" icon so that it covers the badge on the dial. This is a way. A good idea.
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

For me, loading the shield via the Notify for Amazfit app works. I can easily send the watch faces (packed BIN files) from the Samsung Galaxy S20 Ultra smartphone (from any directory) to the Amazfit GTR 2 smartwatch. So I know how I could help?
PVa__
Messaggi: 17
Iscritto il: 25 ott 2020, 17:24
Località: Paris
Been thanked: 3 times
Contatta:

Messaggio da PVa__ »

Hi Community,
I need a little help.
How many watchfaces maximum can we upload to a GTR2 watch ?
I currently have 5 watch faces installed on my GTR2 watch (of which 3 seem to be default and unfortunately cannot be deleted..., and 2 new ones Rolex & IWC models which I download via the mobile Amazfaces app).
However, when trying to install new additional watch faces via the 'Notify for Amazfit' app, it seems the watch is simply overwriting the last installed watch face ??? I cannot believe the limitation would only be set to 5 watch faces max ???
Any good hints for me to try out ? I believe I should be able to at least upload a dozen different watch faces to the GTR2, am I wrong in stating this ?
Thank you very much for your kind help.
Avatar utente
asoo
Messaggi: 2126
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 410 times
Been thanked: 2044 times

Messaggio da asoo »

PVa__ ha scritto: 03 feb 2021, 15:14
Spoiler
Hi Community,
I need a little help.
How many watchfaces maximum can we upload to a GTR2 watch ?
I currently have 5 watch faces installed on my GTR2 watch (of which 3 seem to be default and unfortunately cannot be deleted..., and 2 new ones Rolex & IWC models which I download via the mobile Amazfaces app).
However, when trying to install new additional watch faces via the 'Notify for Amazfit' app, it seems the watch is simply overwriting the last installed watch face ??? I cannot believe the limitation would only be set to 5 watch faces max ???
Any good hints for me to try out ? I believe I should be able to at least upload a dozen different watch faces to the GTR2, am I wrong in stating this ?
Thank you very much for your kind help.
The maximum number you can upload . I am not sure.
But the problem that the new .BiN overwrites the last BIN is caused by
The entire header of the file has the same value, making the clock see as the same file, thus overwriting.

If you want to add a custom BIN without overlaying the existing one. You need to edit the header file to be different from the existing one.
You can edit 1 byte in the header of the file. Then can take that file to use.

How to do :
You open the BIN file you want to edit with HEX edit and (overwrite) the 19th Byte to a value that is unique to the existing one on your watch. Files modified upon installation will be saved without overwriting the existing files.


Please edit by Overwrit the 19th Byte , Do not edit by insert if you edit by insert the BIN size is change and BIN will be broken

Immagine



But this kind of correction may have some risks because I'm not sure What is the system used in the header? But as I understand it, I think the program Probably used to verify files


If you are unsure or do not dare to try it, I recommend waiting for the program developer.

Editing files to import the clock is risky. Please use your judgment before deciding to give it a try.

Ps. : Personally, I have tested and applied it. Haven't had any problem yet. I added 4 files I like on the watch. it's work normal.
Ultima modifica di asoo il 07 feb 2021, 16:39, modificato 1 volta in totale.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
PVa__
Messaggi: 17
Iscritto il: 25 ott 2020, 17:24
Località: Paris
Been thanked: 3 times
Contatta:

Messaggio da PVa__ »

Hi asoo,
Thanks a lot for your detailed answer. I just used the HxD application and randomly changed the 19th byte, and was able to add a new watch face without overwriting the previously installed .BIN file.
Thanks again :-)
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

Great tip. I congratulate you on your knowledge and idea. It worked flawlessly for me. COOL !
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

At the link: https://amazfitwatchfaces.com/gtr/view/12120 I have placed a new (version 3) of my watch face called "VeeValdi Mercedes", intended for the GTR 2 watch.
In this next version of my watch face, I have introduced or improved the display of additional information. Currently, the watch face displays km, steps, battery status (in percent and with a changing icon), heart rate, kilocalories (kcal), weather (in the form of an alternating icon and a number showing the temperature in ° C), two-letter abbreviation names of the weekday (PL), the day of the month (number), as well as the icon of no bluetooth range and the alarm icon (alarm clock, if an alarm is set).
Below I present a picture (taken from a photo) of the changed watch face. After uploading to the smartwatch, it looks much better.
A shield created thanks to the advice of people from this online community. Thanks a lot.
Immagine
Avatar utente
eliasf
Messaggi: 23
Iscritto il: 29 gen 2021, 18:10
Località: GR
Has thanked: 5 times
Been thanked: 5 times
Contatta:

Messaggio da eliasf »

Ok so after fiddling with the python code a bit I managed to resolve below issue by changing the file inside py_amazfit_tools-GTR2\watchFaceParser\elements\progress.py like this:

Codice: Seleziona tutto

from watchFaceParser.elements.gtr2.analogDialFaceElements.clockHand import ClockHand
class Progress:
    definitions = { 
   	1: { 'Name': 'AnalogDialFace', 'Type': ClockHand},
        3: { 'Name': 'AnalogDialFace', 'Type': ClockHand},
    }
Simply added the same line with a 3 in front and now the parameter can be read.
Don't know how correct this is or if it broke something else but it worked in my case.
Trying to decompile a couple of watchfaces and it results in a traceback error.

The log says:

Codice: Seleziona tutto

WARNING - [ParamConv:parse] currentPath 5/./2/./3/./3 / Parameter 3 isn't supported for <class 'watchFaceParser.elements.gtr2.progress.Progress'>
CRITICAL - Parameter 3 isn't supported for <class 'watchFaceParser.elements.gtr2.progress.Progress'>
Traceback (most recent call last):
Has anyone else encountered it and is there a solution?

I can provide full log if necessary.
Avatar utente
asoo
Messaggi: 2126
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 410 times
Been thanked: 2044 times

Messaggio da asoo »

demiurg1 ha scritto: 01 feb 2021, 21:43
I do not have access to the HUAMI online tool. I applied for access more than 7 days ago and to no avail. When I try to enter the website, I get the message "You registration application is under review".
As for the display of icons: alarm and bluetooth, I coped with the alarm icon. Unfortunately, the bluetooth icon is not displayed on the watch face, even though bluetooth is turned on and the smartphone and the watch "see" each other. In the applications:" Zepp" and" "Notify for Amazfit" my GTR 2 is visible. I don't know what about this bluetooth icon?
Bluetooth in GTR2 Default is ON. SO the background you must create picture Bluetooth ON And icon in "Status" you must create icon Bluetooth OFF icon

On GTR2 It shows the opposite effect to GTR.

As for Huemi, I have to wait about 4 weeks for a response to be able to use the tool.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Avatar utente
asoo
Messaggi: 2126
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 410 times
Been thanked: 2044 times

Messaggio da asoo »

bigdigital /py_amazfit_tools have new update (07-02-2021)

- Add in type. Replace types in FontRotate
- Fixes in header. Use CRC16 to generate unique dial ID.
- header_1.md (Initial release )
- Can unpack watchface have "week Progress"
https://github.com/bigdigital/py_amazfi ... /tree/GTR2

Immagine
My tested unpack and pack , it's Work .


Thank bigdigital.kov very much for new update
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Avatar utente
spormill
WF maker
Messaggi: 1
Iscritto il: 04 gen 2021, 07:08
Località: Bavaria
Has thanked: 1 time
Contatta:

Messaggio da spormill »

When I want to download the tool, I get a virus warning!
Is it safe to use?
loukie
Messaggi: 1
Iscritto il: 04 feb 2021, 21:27
Località: Hungary
Contatta:

Messaggio da loukie »

I'v tried to create GTS 2 watchface, but I can't trugh the 3. phase , so I can't create a json file. Somebody can give me any suggestion?
Avatar utente
asoo
Messaggi: 2126
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 410 times
Been thanked: 2044 times

Messaggio da asoo »

spormill ha scritto: 09 feb 2021, 16:07
When I want to download the tool, I get a virus warning!
Is it safe to use?
Your antivirus is Windows Security ? if yes , I found too But I use other antivirus scan again it's not report any virus . In my opinion, I think there are only some commands that work similar to virus. But it's not a virus
Immagine

I think it's save to use , but if you are uncomfortable using it, Please tried this pack ( make upx )
PY.zip
(331.88 KiB) Scaricato 252 volte
PS. But anyway, it depends on your decision.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
bigdigital.kov
Messaggi: 4
Iscritto il: 03 ago 2020, 12:55
Località: Kyiv
Has thanked: 2 times
Been thanked: 9 times
Contatta:

Messaggio da bigdigital.kov »

Hi. There no viruses. The gtr2packer is a java program which was packed in the exe file together with java environment. It does not have any certificates, that's why it can be suspicious for some antiviruses, especially windows defender.
It seems the packer works well now. And it already has features that not available in the official huami tool.
For now, SashaCX75 working on the gui tool adaptation, to make it work with the new gtr2 json structure. I guess we will see a nice free editor very soon.
demiurg1
WF maker
Messaggi: 114
Iscritto il: 23 feb 2020, 22:49
Località: Poland
Has thanked: 23 times
Been thanked: 17 times
Contatta:

Messaggio da demiurg1 »

I am very happy that the SashaCX75 is working on an editing tool for the GTR2 and probably for the GTR2e (because I think it already has such a watch). So I can't wait.
jorgealmeida.rs
WF maker
Messaggi: 10
Iscritto il: 16 lug 2020, 01:28
Località: Brazil
Been thanked: 2 times
Contatta:

Messaggio da jorgealmeida.rs »

Please. When I try do download py_amazfit_tools-GTR2_v0_2.zip the antivirus blocked this file like a virus.
What is wrong? What I must to do? Thanks
Avatar utente
asoo
Messaggi: 2126
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 410 times
Been thanked: 2044 times

Messaggio da asoo »

jorgealmeida.rs ha scritto: 16 feb 2021, 02:29
Please. When I try do download py_amazfit_tools-GTR2_v0_2.zip the antivirus blocked this file like a virus.
What is wrong? What I must to do? Thanks
viewtopic.php?p=8110#p8110
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Messef
Messaggi: 2
Iscritto il: 15 feb 2021, 15:50
Località: Belgium
Contatta:

Messaggio da Messef »

I'm trying to unpack the following watch face /gtr/view/11757
It looks like it's working, but the json file is empty, so I can't pack it afterwards.
I like this watch face and only want to make the backgrounds fully black.
Any idea what the problem could be?
Avatar utente
asoo
Messaggi: 2126
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 410 times
Been thanked: 2044 times

Messaggio da asoo »

Messef ha scritto: 16 feb 2021, 14:06
I'm trying to unpack the following watch face /gtr/view/11757
It looks like it's working, but the json file is empty, so I can't pack it afterwards.
I like this watch face and only want to make the backgrounds fully black.
Any idea what the problem could be?
Try this : ( main.exe by SashaCX75 )
https://4pda.ru/forum/index.php?showtop ... y104352153

lowconsumptionanalog unpack :
lowconsumptionanalog-433119-7b6a9d2ad6_2.bin.unc.zip
(989.11 KiB) Scaricato 282 volte
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Messef
Messaggi: 2
Iscritto il: 15 feb 2021, 15:50
Località: Belgium
Contatta:

Messaggio da Messef »

asoo ha scritto: 16 feb 2021, 15:26
Messef ha scritto: 16 feb 2021, 14:06
I'm trying to unpack the following watch face /gtr/view/11757
It looks like it's working, but the json file is empty, so I can't pack it afterwards.
I like this watch face and only want to make the backgrounds fully black.
Any idea what the problem could be?
Try this : ( main.exe by SashaCX75 )


lowconsumptionanalog unpack :
lowconsumptionanalog-433119-7b6a9d2ad6_2.bin.unc.zip
Thank you for your response and the unpack.
I don't speak Russian, so I can't do much with the link to main.exe by SashaCX75.

When trying to runs the python command with the json file I now get the following error:
[Fatal] [WinError 2] The system cannot find the file specified: '..\\lowconsumptionanalog-433119-7b6a9d2ad6_2.bin.unc\\lowconsumptionanalog-433119-7b6a9d2ad6_2.bin.unc_packed.bin'
Rispondi

Torna a “Watchfaces tools”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite