• 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.
Walker_Alan
WF maker
Posts: 3
Joined: 06 May 2021, 19:19
Location: United Land
Has thanked: 1 time
Contact:

Post by Walker_Alan »

lvpokka wrote: 10 May 2021, 08:14
I will not add items that are not in stock of the watchfaces
Not sure if I understand you right. What do you mean by stock? Do you mean default watch faces that are initially included? If so, then it is there: https://www.giztop.com/media/catalog/pr ... _6-2_1.jpg

Let's make your tool even more awesome by adding that progress. If I can help with that somehow, I would be happy to :)
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by lvpokka »

Walker_Alan wrote: 10 May 2021, 11:16
lvpokka wrote: 10 May 2021, 08:14
I will not add items that are not in stock of the watchfaces
Not sure if I understand you right. What do you mean by stock? Do you mean default watch faces that are initially included? If so, then it is there: https://www.giztop.com/media/catalog/pr ... _6-2_1.jpg

Let's make your tool even more awesome by adding that progress. If I can help with that somehow, I would be happy to :)
No, stock its which you can download from official.

This is the image you showed is not Watchface, its program and not connected with watchface at all
gmontes
WF maker
Posts: 1
Joined: 11 May 2021, 20:45
Location: Brasil
Has thanked: 1 time
Contact:

Post by gmontes »

Hi guys, i am getting a problem making an animated Watchface:
https://amazfitwatchfaces.com/mi-band-6/view/203
Spoiler
Image
The animation is playing, but the other layers of the animation are still on screen "ghosting" it. What mistake i made? I used this https://amazfitwatchfaces.com/mi-band-6/view/160 animation as a start.
Last edited by gmontes on 12 May 2021, 01:17, edited 2 times in total.
Sladeth
Posts: 6
Joined: 08 Apr 2021, 17:39
Location: Chile
Contact:

Post by Sladeth »

hi, i have a problem with the tool (4.1.0) When I load images in the batteryicon (which do not have a background and are PNG) when compiling it comes out perfect in the gif but in my Mi band 6 it fills the background with a blue color :c
lvpokka
Posts: 178
Joined: 07 Jul 2019, 20:22
Location: L1
Has thanked: 19 times
Been thanked: 152 times
Contact:

Post by lvpokka »

gmontes not a mistake, use background for all animations)

Sladeth don't use palette mode for this type of images, probably it was compressed
Sladeth
Posts: 6
Joined: 08 Apr 2021, 17:39
Location: Chile
Contact:

Post by Sladeth »

lvpokka thanks! the palette mode was deactivated so I activated it and with that the bug went away, but I have another problem (which I also had before :)) the images/animation of the step advance does not appear at the beginning of the progress, the first image does not appear (it does not appear before approximately 800 steps) D: but it does in the gif preview
Sladeth
Posts: 6
Joined: 08 Apr 2021, 17:39
Location: Chile
Contact:

Post by Sladeth »

is there a place where i can upload my project to get help? can i upload here? (btw it has nintendo copy_right images)
changuanwei
WF maker
Posts: 1
Joined: 22 May 2021, 08:08
Location: Malaysia
Contact:

Post by changuanwei »

anyone know how to make the face preview when changing faces on mi band 6. my watch faces are not showing when i choose between the 3 custom faces on my mi band 6.
风雨透
WF maker
Posts: 1
Joined: 25 Apr 2021, 13:14
Location: 福建省
Contact:

Post by 风雨透 »

Hoekstra wrote: 05 May 2021, 20:10
TedwardCz wrote: 05 May 2021, 15:41
Some good news! I tinkered for about a dozen iterations, and finally got the TimeZone1 and TimeZone2 to work. I have no idea what I did that finally resolved it, but it's now working. Next trick, and this one would be really nice, is to get the UV index working. Currently, when I add the properties for UVIndex, the entirety of the Weather property breaks (doesn't display). In comparing UVIndex to Wind (which is working), I notice that the syntax is a bit different. Wind has "Wind{Text{data},ImageSuffixEn}" whereas UVIndex has "UVIndex{UV{Text{data},SuffixImageIndex}}". When I make UVIndex's syntax match Wind's, the packer throws an error, though. Anyway, if you'd be willing to take a peek, I'm including a Google Drive link. contrast3 (no UVI) works, contrast4 (with UVI) does not.

https://drive.google.com/drive/folders/ ... sp=sharing
There was something with UV/Wind not working together with temperatures or something.
Is there any solution?
User avatar
Artties
Posts: 2
Joined: 27 May 2021, 09:56
Location: Thailand
Contact:

Post by Artties »

Hi, I have a quick question. Is there a way to make an element to be on top of another? For example I want the am/pm to be on top of battery percentage indicator, so that if I use 12r time format on my band, am/pm will appear and when I switch to 24hr time format, am/pm will disappear thus reveal the battery percentage under it.
yaoun
WF maker
Posts: 14
Joined: 02 Sep 2020, 20:30
Location: France
Has thanked: 3 times
Contact:

Post by yaoun »

HI,
I would like to know if there an error with the "PAI" on our watchfaces.
I have noticed on 2 different watchfaces from this site that if the PAI is above 250 (or 256....), the watchfaces show a wrong number.
I think that there is perharps a problem with the number of bytes possible.
Have you notices the same things?
Thanks a lot for your work.
nsiolios
WF maker
Posts: 2
Joined: 28 May 2021, 17:38
Location: greece
Has thanked: 1 time
Contact:

Post by nsiolios »

23ll wrote: 18 Aug 2020, 00:26
diopter wrote: 13 Aug 2020, 21:45
SEDO is absolutely right, there is a bug, and not only with the heart rate, but with all progress indicators.
The internal MI WFs already show the first progress step (blue for heart rate), while our custom WFs still show nothing.
My workaround is also to put the respective first image on the background.
I am thinking to do like that as well, but I don't like the fact the first indicator will be always on also if heart rate is not recognised :|

I am trying to do a step progress bar with 12 segments. when the internal MI WFs show the first and second segment my WF shows nothing. Also when the internal MI WFs show the last progress step, my WFs show the 11th segment and never shows the 12th segment . Although the gif animation that produces the WatchFace.exe all the segments work perfect and as expected.
Any idea why it happens ? is it bug of Mi Band 5 or something else ?
Last edited by nsiolios on 16 Jun 2021, 09:07, edited 1 time in total.
nsiolios
WF maker
Posts: 2
Joined: 28 May 2021, 17:38
Location: greece
Has thanked: 1 time
Contact:

Post by nsiolios »

Sladeth wrote: 12 May 2021, 18:18
@lvpokka thanks! the palette mode was deactivated so I activated it and with that the bug went away, but I have another problem (which I also had before :)) the images/animation of the step advance does not appear at the beginning of the progress, the first image does not appear (it does not appear before approximately 800 steps) D: but it does in the gif preview
I have the same problem and I can't understand why or how to solve :(
HCt
WF maker
Posts: 1
Joined: 02 Jul 2021, 02:01
Location: Liaoning
Contact:

Post by HCt »

感谢分享,兄弟
Dijkmeneer
WF maker
Posts: 1
Joined: 30 Jun 2021, 13:15
Location: Netherlands
Contact:

Post by Dijkmeneer »

I am making a animated watchface. but when i upload it to my watch my steps, heartrate, kcal and pai are not showing, the number arent there.

The bin file is attached and example photos
Spoiler
Image
Image
Attachments
new_packed-529547-d2be7f10fe_packed-529547-daa07d1d7e.bin
Bin file
(1014.32 KiB) Downloaded 231 times
ajulraj
Posts: 5
Joined: 23 Apr 2021, 15:32
Location: India
Contact:

Post by ajulraj »

Hi, is there any argument we can give to Watchface.exe to only generate the .bin File? And exclude the animations and previews?
slibbinas
WF maker
Posts: 1
Joined: 19 Mar 2019, 10:13
Contact:

Post by slibbinas »

Hi, after decompressing and compressing back (even without the modification) any of watchfaces I can't get preview image on Notify for Miband upload screen. It says can't retrieve preview image. Also I can't change to that watchface back on the band iself. So definitely something is with preview img. Where could be the issue ?
plasticninjaguy
Posts: 1
Joined: 17 Sep 2021, 02:11
Location: Australia
Contact:

Post by plasticninjaguy »

Hi, thanks for your constant work on this tool.
Unfortunately, I am having an issue with version 4.1.0 for the mi band 6, that is whenever I unpack a bin file and then recompile from the json file, it seems to destroy most of the display functionality of the watch face, specifically, the weather information and the am/pm display. After unpacking I did not alter the files in any way I simply repacked and the issue was present.
carlgemsss
Posts: 1
Joined: 21 Nov 2021, 07:26
Location: Philippines
Contact:

Post by carlgemsss »

Hi. I can't download the v4.1.0 using the provided link. Can you provide an alternative/mirror link? Thank you very much!
mostafaz4
Posts: 3
Joined: 26 Nov 2021, 11:22
Location: There
Contact:

Post by mostafaz4 »

I'm trying to decompile and recompile this custom watchface , but weather info disappears in the band even though I didn't change anything, just decompile and recompile, I think it is a compiler bug that can't handle all weather data being together, but if it is, how can the creator of that custom watchface compile it without breaking weather data?
Is there a workaround that can achieve this?
angulito
Posts: 2
Joined: 28 Nov 2021, 16:57
Location: Spain
Contact:

Post by angulito »

lvpokka Hi, first of all, thanks for your work here, it's amazing. I have some questions where I would appreciate your input:
- is there any way to reorder layers in z-index?
- my current images are being transformed from 8-bits depth to 32-bits. Is there any way to keep the original format? Otherwise I am getting troubles with final size.
- I wonder if your code is already publicly accesible (or if it could be) so we might help to investigate further these kind of questions.

Thanks a lot in advance,
Natalia.
angulito
Posts: 2
Joined: 28 Nov 2021, 16:57
Location: Spain
Contact:

Post by angulito »

Another question lvpokka , do you know if there is any way to reuse the same image on weather or months icons? I wonder if instead of needing to specify imageIndex and indexCount, we could specify an array of image index (where we can point to the same image and reuse it).
Thanks again,
Natalia.
mostafaz4
Posts: 3
Joined: 26 Nov 2021, 11:22
Location: There
Contact:

Post by mostafaz4 »

mostafaz4 wrote: 26 Nov 2021, 11:29
I'm trying to decompile and recompile this custom watchface , but weather info disappears in the band even though I didn't change anything, just decompile and recompile, I think it is a compiler bug that can't handle all weather data being together, but if it is, how can the creator of that custom watchface compile it without breaking weather data?
Is there a workaround that can achieve this?
I found the solution, there is a bug in the compiler that can be patched using hex editors on the generated ".bin" files

The problem: the tool writes hardcoded header to the generated .bin files that caused my issue.
Solution: You have to edit the generated .bin file and change bit number 80 to "þ"

Solution tutorial using notepad++: change the character in the picture by this character "þ"

Original:
Image

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

Post by lvpokka »

mostafaz4
Which bug, can you explain more?
how did you find this problem?
how did you found solutions for you bug?
Why not "ÿ" like FF?
Weather is working ok for other peoples

angulito
1) no z-index
2) read readme, use raw mode not palette
3) no public code
mostafaz4
Posts: 3
Joined: 26 Nov 2021, 11:22
Location: There
Contact:

Post by mostafaz4 »

lvpokka
Which bug, can you explain more?
The tool contains a fixed hardcoded bin header that is pasted on any generated watchface, I assume there is a property that states how many JSON keys are used, which becomes a problem when you exceed this key amount.
how did you find this problem?
I was trying to modify the mentioned watchface, but weather data get corrupted even if I just decompile and recompile it without modifying anything.
how did you found solutions for you bug?
I compared the generated bin with the other watchface that is working correctly and I found that they are identical except for that byte I mentioned.
Why not "ÿ" like FF?
Well, I just copied that byte as-is from the working watchface, maybe "ÿ" would work too, the tool should count and report the right amount of JSON keys to the header.
Weather is working ok for other peoples
Weather normally works if you select some info but not all, if you select all weather info it won't work.
Post Reply

Return to “Watchfaces tools”

Who is online

Users browsing this forum: No registered users and 1 guest