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

Moderators: asoo, lvpokka, Internal error, Watchmens

Forum rules
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
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

MiBandWFTool

Post by 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]
Last edited by lvpokka on 02 Aug 2020, 19:41, edited 24 times in total.
zmr1992
WF maker
Posts: 2
Joined: 26 Jun 2019, 14:46
Contact:

Post by zmr1992 »

user_test wrote: 12 Jul 2019, 07:18
zmr1992 wrote: 12 Jul 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

Post by DarkForgotten »

I changed the order of png and how json load them and the date is OK. The problem is the time now...
Attachments
new11_packed_animated.gif
new11_packed_animated.gif (156.3 KiB) Viewed 52317 times
thankkien

Post by thankkien »

DarkForgotten wrote: 12 Jul 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
User avatar
lukbe
WF maker
Posts: 18
Joined: 02 Jun 2018, 08:09
Location: Czech
Has thanked: 1 time
Been thanked: 8 times
Contact:

Post by lukbe »

lvpokka wrote: 11 Jul 2019, 19:32
lukbe wrote: 11 Jul 2019, 17:27
lvpokka wrote: 11 Jul 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.
Attachments
00_v2_czech_04072019_packed.7z
(256.42 KiB) Downloaded 229 times
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by 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

Post by 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.
Attachments
Sport.png
Sport.png (6.55 KiB) Viewed 52176 times
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by lvpokka »

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

Post by 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? :)

ImageImage
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by 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

Post by Anonymous86 »

[mention]lvpokka[/mention]
Yeah thank you very much. I forgot one index.
What do you mean with "JS" ?
Last edited by Anonymous86 on 12 Jul 2019, 12:53, edited 1 time in total.
User avatar
lukbe
WF maker
Posts: 18
Joined: 02 Jun 2018, 08:09
Location: Czech
Has thanked: 1 time
Been thanked: 8 times
Contact:

Post by lukbe »

lvpokka wrote: 12 Jul 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
Attachments
00_v4_czech_12072019_kroky_Baterie_procenta_dny_trans_no.7z
(247.45 KiB) Downloaded 215 times
user_test

Post by user_test »

lvpokka wrote: 12 Jul 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.
User avatar
lukbe
WF maker
Posts: 18
Joined: 02 Jun 2018, 08:09
Location: Czech
Has thanked: 1 time
Been thanked: 8 times
Contact:

Post by 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

Post by Anonymous86 »

[mention]lvpokka[/mention]
Does calories already supported? It doesn't show in the preview
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by 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
User avatar
Andreunto
WF maker
Posts: 1
Joined: 04 Jul 2019, 15:59
Contact:

Post by Andreunto »

Waiting for calories in preview. 1.3.6 is good tool
kry008

Post by kry008 »

Can someone describe this tool?
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by lvpokka »

[mention]kry008[/mention] read topic "How to"
User avatar
lukbe
WF maker
Posts: 18
Joined: 02 Jun 2018, 08:09
Location: Czech
Has thanked: 1 time
Been thanked: 8 times
Contact:

Post by 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
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by 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 😅😅😅
User avatar
lukbe
WF maker
Posts: 18
Joined: 02 Jun 2018, 08:09
Location: Czech
Has thanked: 1 time
Been thanked: 8 times
Contact:

Post by lukbe »

Can you send me a link to this app?
Turko9999
WF maker
Posts: 3
Joined: 13 Jul 2019, 16:55
Has thanked: 1 time
Contact:

Post by 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
Posts: 3
Joined: 13 Jul 2019, 16:55
Has thanked: 1 time
Contact:

Post by Turko9999 »

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

Code: Select all

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?
Attachments
spongebob.zip
(170.71 KiB) Downloaded 245 times
Turko9999
WF maker
Posts: 3
Joined: 13 Jul 2019, 16:55
Has thanked: 1 time
Contact:

Post by 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 :/
Attachments
galatasaray_packed.bin
(72.67 KiB) Downloaded 221 times
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by 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.
Post Reply

Return to “Watchfaces tools”

Who is online

Users browsing this forum: Amazon [Bot] and 0 guests