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

MiBandWFTool

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.
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

MiBandWFTool

Messaggio da lvpokka »

Author
lvpokka

Tool Description
1. The tool is based on a modified version of AmazfitBipTools, thanks to the original open source .
2. The tool supports unpacking, packing of the official watch face bin file.
3. Mi band 4 supports 16,581,375 colors.
4. Mi band 5 supports 15,499,008 colors.

How to
1. Unzip MiBandWFTool_X.X.zip.
2. Download .bin file from catalog or get standard watchface file.
3. Drag the .bin file to WatchFace.exe (in step 1. , get the decompressed file)
(if there is only one log file, the decompression failed).

4. There are two ways to modify the dial.
  • is to modify the corresponding image file and replace it with what we want.
  • is to modify the corresponding json file and modify the position of the image.
5. After all the modifications are completed, drag the modified json into WatchFace.exe in step 1 to get the corresponding bin file
(the file name depends on the name of the bin. If the .bin file is not generated, the package is wrong)

6. Copy the newly generated bin file to the corresponding directory of the mobile phone, and the synchronization will be completed. (This step is not very clear, you can refer to the original tutorial) above, you're done!
History log
What's new
  • added animation support
  • fixed pulse and weather
  • removed color restrictions for images
  • analog clock support
ver1.2
- Added compatibility for Pulse progress bar

ver1.3
- added full support for transparent images
- drawing 20 frames for preview GIF

ver1.3.2
- bug fixes
- added 2 versions, both with transparency but Palette version uses less memory if images are simple.

ver1.3.3
- Added circular/linear step progress on preview

Stable v1.3.6
- locked transparency for palette mode, support only (0 and 255) values
- palette mode fix

Stable v1.3.7
v1.3.7 (cosmetic changes, you can use 1.3.6 if everything suits)
- Fixed GIF preview (Pulse rendering, Step segments, Kilometer drawing, Calories)
- Added the ability to choose which Set of images to use for WeekDays. (Config file WatchFace.exe.config)
- STRONGLY fixed json examples in README.
(to avoid problems, pack 1.3.6 and unpack 1.3.7 for a smooth transition)

Stable v1.3.8
- Removed image order dependency for json (sorting images no longer required)
- Fixed display bugs
Important: the order of the images should be from 0000 to XXXX without gaps.

v1.3.9
- Removed dependence on images order 0000->XXXX
- Calories rendering fixed
- Added ability to change Preview Speed (available from 50ms - 1000ms)
- TimeElement DrawingOrder hardcoded to 1234 (not used by MiBand4)

v1.4.1
- Other bugfixes
- New WF support
- Added new elements (time delimiter / step icon / linear progress )

v2.1.4
- Added support Mi Band 5 wfaces
- Pandafix (new unknown element)
- BugFixes

v2.1.5
- Preview bugfixes
- [WFPreview] Added Copy/Paste/Save ability
- [WFPreview] Added ability to replace watchface header
Mi Band 4 WF Tool
v1.4.2
- Added miles image support
NOTE:
- if your using image for MilesSuffixImageIndex, then KmSuffixImageIndex is required! you can use the same image for it

Mi Band 5 WF Tool
v2.1.6
- Preview bugfixes
- Watchfaces generating with random header identifier
- Fixed problem with Windows scaling, DPI is tied to 96
- [WFPreview] Removed ability to clone watchface header

Mi Band 6 WF Tool
v4.1.0
- Added Lunar calendar
- Bug fixes
- New preview generator, should be pixel perfect (big thx to Johnson070)

MiBandWFTool_4.1.0.zip

MiBandWFTool_2.1.6.zip [alt url] [alt url 2]

MiBandWFTool_1.4.2.zip [alt url] [alt url 2]
Ultima modifica di lvpokka il 02 ago 2020, 19:41, modificato 24 volte in totale.
zmr1992
WF maker
Messaggi: 2
Iscritto il: 26 giu 2019, 14:46
Contatta:

Messaggio da zmr1992 »

user_test ha scritto: 12 lug 2019, 07:18
zmr1992 ha scritto: 12 lug 2019, 07:03
How do you synchronize bin files larger than 300kb to the bracelet?
You can't, that's why the PalleteImage version of the Tool is very interesting. Because with that tool you are supposed to get lower size bins altought you get poor quality.

But as you can read in my earlier messages, there seems to be a problem with the tool and the images compressed are not shown in Mi Band 4.

I am waiting for the author of the tools to have a fix for that
Yes, I saw someone uploading a dial file larger than 300kb. I wonder if someone can actually brush it in? :lol:
DarkForgotten

Messaggio da DarkForgotten »

I changed the order of png and how json load them and the date is OK. The problem is the time now...
Allegati
new11_packed_animated.gif
new11_packed_animated.gif (156.3 KiB) Visto 52446 volte
thankkien

Messaggio da thankkien »

DarkForgotten ha scritto: 12 lug 2019, 08:53
I changed the order of png and how json load them and the date is OK. The problem is the time now...
I think you should post your entire project to the cloud, we will help you
Avatar utente
lukbe
WF maker
Messaggi: 18
Iscritto il: 02 giu 2018, 08:09
Località: Czech
Has thanked: 1 time
Been thanked: 8 times
Contatta:

Messaggio da lukbe »

lvpokka ha scritto: 11 lug 2019, 19:32
lukbe ha scritto: 11 lug 2019, 17:27
lvpokka ha scritto: 11 lug 2019, 17:09
@lukbe Please provide files, i will verify)
please swap in json
Activity <-> Date
its wrong position thats why he skip it on miband4
I did change, however situation is still same. Gif looks good, after loading bin in to MB - weekday is not displayed.
Allegati
00_v2_czech_04072019_packed.7z
(256.42 KiB) Scaricato 246 volte
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

looks like its different type of storage and Palette now is not supporting transparency...
Please use real colors for (fake)transparency to match background color! there is only chance to use good quality with low resolution palette image.
DarkForgotten

Messaggio da DarkForgotten »

Completed!
I have renumbered all the pngs and edited the json, this have solved the number issues.
Created new pngs for hours and minutes, use the same for both created some conflicts.
Added the 21 chinese pngs for week day and added 7 for italian language.

Now it works! Thanks for the help.
Allegati
Sport.png
Sport.png (6.55 KiB) Visto 52306 volte
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

Stable v1.3.6
https://yadi.sk/d/7CFMjn5qSvmARA
- locked transparency for palette mode, support only (0 and 255) values
Anonymous86

Messaggio da Anonymous86 »

[mention]lvpokka[/mention]
Yeah thank you for your time. I knew that where was some false values. I tried to understand what some json values do.
I thought the "BottomRight" etc. wasn't necessary, because "TopLeft" theoretical seems to be enough.
I still don't understand what is X2,X3,Y2 ???

I also copy and pasted your json example but i still get false rendering. :?:
And what tool do you used for the screenshots? Selfmade? :)

ImmagineImmagine
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

[mention]Anonymous86[/mention] check if all images are used! you should not have unused resources
+ tool from screenshot is rebuilded from amaizfit wf editor on JS
Anonymous86

Messaggio da Anonymous86 »

[mention]lvpokka[/mention]
Yeah thank you very much. I forgot one index.
What do you mean with "JS" ?
Ultima modifica di Anonymous86 il 12 lug 2019, 12:53, modificato 1 volta in totale.
Avatar utente
lukbe
WF maker
Messaggi: 18
Iscritto il: 02 giu 2018, 08:09
Località: Czech
Has thanked: 1 time
Been thanked: 8 times
Contatta:

Messaggio da lukbe »

lvpokka ha scritto: 12 lug 2019, 10:42
looks like its different type of storage and Palette now is not supporting transparency...
Please use real colors for (fake)transparency to match background color! there is only chance to use good quality with low resolution palette image.
I changed transparency at weekday and situation is still same. After loading WF in to mi band, week day is not displayed.
I always use type of compilation: RawImageMode
Allegati
00_v4_czech_12072019_kroky_Baterie_procenta_dny_trans_no.7z
(247.45 KiB) Scaricato 232 volte
user_test

Messaggio da user_test »

lvpokka ha scritto: 12 lug 2019, 10:48
Stable v1.3.6
https://yadi.sk/d/7CFMjn5qSvmARA
- locked transparency for palette mode, support only (0 and 255) values
I have test this version with images without any transparency, and it still doesn't work.

The watchface in the miband is all black, can't see anything.
Avatar utente
lukbe
WF maker
Messaggi: 18
Iscritto il: 02 giu 2018, 08:09
Località: Czech
Has thanked: 1 time
Been thanked: 8 times
Contatta:

Messaggio da lukbe »

I think that for MB4 must be always loaded 21 weekdays (7+7+7). In the case when I load only 7 pics, on the Mi band is not week day displayed - I tried to change language of the MB4 to Chinese, after this change was my pic displayed...
Anonymous86

Messaggio da Anonymous86 »

[mention]lvpokka[/mention]
Does calories already supported? It doesn't show in the preview
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

[mention]Anonymous86[/mention] calories not supported yet
[mention]lukbe[/mention] same problem, just added 21 weekdays 1-14 single pixel, last 7 normal

UPD>
v1.3.6
https://yadi.sk/d/7CFMjn5qSvmARA
-palette mode fix
Avatar utente
Andreunto
WF maker
Messaggi: 1
Iscritto il: 04 lug 2019, 15:59
Contatta:

Messaggio da Andreunto »

Waiting for calories in preview. 1.3.6 is good tool
kry008

Messaggio da kry008 »

Can someone describe this tool?
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

[mention]kry008[/mention] read topic "How to"
Avatar utente
lukbe
WF maker
Messaggi: 18
Iscritto il: 02 giu 2018, 08:09
Località: Czech
Has thanked: 1 time
Been thanked: 8 times
Contatta:

Messaggio da lukbe »

Will you create a graphical application?

Or exist app for live view of the json file and possibility to edit this file? Something like app on this web page for cor and bip.

Thank you
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

[mention]lukbe[/mention] I have modified it, but it's working partly, I updated it only for json debug. Don't want to make it public and then answer on allot of questions 😅😅😅
Avatar utente
lukbe
WF maker
Messaggi: 18
Iscritto il: 02 giu 2018, 08:09
Località: Czech
Has thanked: 1 time
Been thanked: 8 times
Contatta:

Messaggio da lukbe »

Can you send me a link to this app?
Turko9999
WF maker
Messaggi: 3
Iscritto il: 13 lug 2019, 16:55
Has thanked: 1 time
Contatta:

Messaggio da Turko9999 »

how can we edit .json file? Need to be a programmer? I want to design watchface from blank but i dont know how can i do. Anybody can help me about it or do we have any graphic enabled modifying tools?
Turko9999
WF maker
Messaggi: 3
Iscritto il: 13 lug 2019, 16:55
Has thanked: 1 time
Contatta:

Messaggio da Turko9999 »

Hey guys,
I downloaded and changing pngs of the gif(already same size) but compiler gives me error

Codice: Seleziona tutto

Fatal|System.Collections.Generic.KeyNotFoundException: Verilen anahtar sözlükte yoktu.
   konum: System.ThrowHelper.ThrowKeyNotFoundException()
   konum: Resources.Image.Writer.WriteImage()
   konum: Resources.Writer.Write(List`1 resources)
   konum: WatchFace.Parser.Writer.Write(IList`1 descriptor)
   konum: WatchFace.Program.WriteWatchFace(String outputDirectory, String outputFileName, String imagesDirectory, WatchFace watchFace)
How can i mod the .json file?
Allegati
spongebob.zip
(170.71 KiB) Scaricato 262 volte
Turko9999
WF maker
Messaggi: 3
Iscritto il: 13 lug 2019, 16:55
Has thanked: 1 time
Contatta:

Messaggio da Turko9999 »

And also i have background problem with this theme, i change it from photoshop keeping same settings but not working. Everything works except background 0000.png image. Also i need help for them too :/
Allegati
galatasaray_packed.bin
(72.67 KiB) Scaricato 258 volte
lvpokka
Messaggi: 178
Iscritto il: 07 lug 2019, 20:22
Località: L1
Has thanked: 19 times
Been thanked: 152 times
Contatta:

Messaggio da lvpokka »

[mention]Turko9999[/mention]
Spongebob, please save all spangbob images to 32bit there is some problems with pixels, im using Paint.Net

Galatasary, looks like image should be packed as RAW, read logs
Trace|BPP: 8, PaletteColors: 2890, Transaparency: False
Error|[WARN] This image is using too many palette colors. Please make image less colorful.
Rispondi

Torna a “Watchfaces tools”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite