分页: 3 / 26

MiBandWFTool

发表于 : 08 7月 2019, 12:57
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]

Re: MiBandWFTool

发表于 : 12 7月 2019, 08:47
zmr1992
user_test 写了: 12 7月 2019, 07:18
zmr1992 写了: 12 7月 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:

Re: MiBandWFTool

发表于 : 12 7月 2019, 08:53
DarkForgotten
I changed the order of png and how json load them and the date is OK. The problem is the time now...

Re: MiBandWFTool

发表于 : 12 7月 2019, 09:29
thankkien
DarkForgotten 写了: 12 7月 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

Re: MiBandWFTool

发表于 : 12 7月 2019, 10:18
lukbe
lvpokka 写了: 11 7月 2019, 19:32
lukbe 写了: 11 7月 2019, 17:27
lvpokka 写了: 11 7月 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.

Re: MiBandWFTool

发表于 : 12 7月 2019, 10:42
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.

Re: MiBandWFTool

发表于 : 12 7月 2019, 10:45
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.

Re: MiBandWFTool

发表于 : 12 7月 2019, 10:48
lvpokka
Stable v1.3.6
https://yadi.sk/d/7CFMjn5qSvmARA
- locked transparency for palette mode, support only (0 and 255) values

Re: MiBandWFTool

发表于 : 12 7月 2019, 11:17
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? :)

图片图片

Re: MiBandWFTool

发表于 : 12 7月 2019, 11:30
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

Re: MiBandWFTool

发表于 : 12 7月 2019, 11:43
Anonymous86
[mention]lvpokka[/mention]
Yeah thank you very much. I forgot one index.
What do you mean with "JS" ?

Re: MiBandWFTool

发表于 : 12 7月 2019, 12:23
lukbe
lvpokka 写了: 12 7月 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

Re: MiBandWFTool

发表于 : 12 7月 2019, 14:00
user_test
lvpokka 写了: 12 7月 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.

Re: MiBandWFTool

发表于 : 12 7月 2019, 15:16
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...

Re: MiBandWFTool

发表于 : 12 7月 2019, 17:02
Anonymous86
[mention]lvpokka[/mention]
Does calories already supported? It doesn't show in the preview

Re: MiBandWFTool

发表于 : 12 7月 2019, 17:17
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

Re: MiBandWFTool

发表于 : 13 7月 2019, 15:05
Andreunto
Waiting for calories in preview. 1.3.6 is good tool

Re: MiBandWFTool

发表于 : 13 7月 2019, 19:23
kry008
Can someone describe this tool?

Re: MiBandWFTool

发表于 : 13 7月 2019, 20:43
lvpokka
[mention]kry008[/mention] read topic "How to"

Re: MiBandWFTool

发表于 : 13 7月 2019, 20:47
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

Re: MiBandWFTool

发表于 : 13 7月 2019, 20:57
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 😅😅😅

Re: MiBandWFTool

发表于 : 13 7月 2019, 20:59
lukbe
Can you send me a link to this app?

Re: MiBandWFTool

发表于 : 14 7月 2019, 12:40
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?

Re: MiBandWFTool

发表于 : 14 7月 2019, 22:26
Turko9999
Hey guys,
I downloaded and changing pngs of the gif(already same size) but compiler gives me error

代码: 全选

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?

Re: MiBandWFTool

发表于 : 14 7月 2019, 22:27
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 :/

Re: MiBandWFTool

发表于 : 15 7月 2019, 08:36
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.