Page 9 of 9

WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Sep 2019, 07:17
by lumenvindex
Translated my Mi Band 4 watchface editor into English. Maybe someone will find it useful. (Works on Windows 7+)

Download WF_Builder 1.0.4
Screenshot
WFB_104_2.png
WFB_104_2.png (88.5 KiB) Viewed 665473 times
Changelog

Code: Select all

1.0.4
Fixed the order of controls for [Tab] switching.
Removed "Pulse norm" parameter.
Added [F9] hotkey for fast switching to/from Selective palette packing.
1.0.3
Numeric values can now be changed with keyboard arrows.
Pulse indicator behaves similar to Mi Band's original behaviour:
- You can choose up to 7 images, 7th image will appear if the Pulse isn't defined (-1);
- First image appears up to 93 bpm. Other images appear on every next 20 bpm.
1.0.2
Fixed raw.cfg generation function. Selective palette mode is now working.
1.0.1
Added feature of choosing where to save preview (F7) in Options dialog.
Added selective palette mode feature (enable in Options to generate raw.cfg during Palette packing).
Program can now be associated with bin and json files (tries to unpack and open a file from command line parameters).
Inputboxes now show previous value.
1.0.0
Added boxes feature for sections with two pairs of coordinates. It's green if X2>X1 and Y2>Y1, otherwise it's red.
Added magnitude feature. Preview can now have double and triple size.
0.9.8
Added a ruler near preview which is replaced to the right upper corner of a window.
Added grid feature - changeable alignment (left/center), color, size. Don't forget to turn it off before saving to PNG.
Fixed some bugs
0.9.7
Added button highlighting: red button means you need to choose files for this section before packing, yellow button means this feature is optional.
Added optional section [PackingOptions] in Lib\WF_Builder.ini (for advanced user who need to change these options).
Switched to Mi Band 4 WF Tool 1.4.1 - added new sections: time separator, steps icon (it's placing depends on alignment), line progress bar of steps (I know, it works really weird for now, but it works the same way on Mi Band).
Images are now drawn by pixels, ignoring DPI (like they do in Mi Band). But Mi Band 4 WF Tool still needs 96 DPI to draw correct gif.
0.9.6
Fixed color saving in Steps indicator (circle).
Optimized redrawing operation during creating/saving/packing watchfaces.
Changed battery icon preview states to match Mi Band 4 behaviour.
WF_builder allows you to change all known parameters of a watchface. It shows how watchface will look like with different data on it. Program uses Mi Band 4 WF Tool for packing\unpacking watchfaces and has it inside Lib subdirectory. Lots of thanks to @lvpokka for this tool.
Previous versions
1.0.3
WFB_103_2.png
WFB_103_2.png (66.52 KiB) Viewed 666498 times
Download
1.0.2
WFB_102_2.png
WFB_102_2.png (97.89 KiB) Viewed 666911 times
Download
1.0.1
WFB_101_2.png
WFB_101_2.png (66.42 KiB) Viewed 668086 times
Download
1.0.0
WFB_100_2.png
WFB_100_2.png (95.65 KiB) Viewed 668362 times
Download
0.9.8
WFB_098_2.png
WFB_098_2.png (83.54 KiB) Viewed 668528 times
Download
0.9.7
WFB_097_2.png
WFB_097_2.png (71.41 KiB) Viewed 669177 times
Download
0.9.6
WFP_096_2.png
WFP_096_2.png (132.52 KiB) Viewed 670169 times
Download
0.9.5
WFB_095_1.png
WFB_095_1.png (57.03 KiB) Viewed 671001 times
Download
Recommendations
Turned section on? First of all choose all images for it (digits, suffixes, delimiters etc.).
You can choose images from any available directory. The only thing that matters is their order (0, 1, 2, 3, etc.). When saving watchface, images will be written into json-config directory.
When saving json, a backup file is created (file.json turns into file.json_HHMMSS.bak, where HHMMSS is the timestamp).
When packing, binary is renamed with suffix _Palette or _Raw, depending on the chosen mode.
There should be 21 images of weekdays (3 sets of 7 days: 2 chineese sets and 1 international set).
If your weekday sets make watchface too heavy, you may replace first 14 images with one transparent pixel images.
Virus?
There are no viruses in my program, but some antiviruses may see a threat because program is written on Autoit script language.
Program doesn't need admin permissions to work - it only needs write permissions to watchface directory.
But still. Use program at your own risk.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 02 Nov 2020, 13:28
by lumenvindex
You've tested them and they work just fine? Any of them?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Nov 2020, 05:22
by tari.eledhwen
Windows 10 does mean, its a worm inside, cant open at all.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 18 Nov 2020, 06:13
by Tech72
Is there a mi band 5 version and if not can you change the size of the template/viewer

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 18 Nov 2020, 10:24
by lumenvindex
Tech72 wrote: 18 Nov 2020, 06:13
Is there a mi band 5 version and if not can you change the size of the template/viewer
There is no mi band 5 version. It's not about the size of the screen. There are many changes in the syntax of .json file.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 18 Nov 2020, 18:06
by Tech72
lumenvindex wrote: 18 Nov 2020, 10:24
Tech72 wrote: 18 Nov 2020, 06:13
Is there a mi band 5 version and if not can you change the size of the template/viewer
There is no mi band 5 version. It's not about the size of the screen. There are many changes in the syntax of .json file.
Will you be creating one

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 19 Nov 2020, 02:59
by lumenvindex
Tech72 wrote: 18 Nov 2020, 18:06
Will you be creating one
No

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 24 Nov 2020, 17:09
by dheerajmalviya007
Can I use it for mi band 5?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 24 Nov 2020, 17:55
by lumenvindex
dheerajmalviya007 wrote: 24 Nov 2020, 17:09
Can I use it for mi band 5?
No

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Jan 2021, 01:44
by Sokol1991
Error when build! "WF_Builder1.0.4"

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Jan 2021, 06:30
by lumenvindex
Sokol1991 wrote: 08 Jan 2021, 01:44
Error when build! "WF_Builder1.0.4"
Looks like you've enabled one of the Section but didn't choose any image(s) for it. Hence the "Loading image -1".

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Jan 2021, 22:08
by cygmon0
If i uncheck the "weeksday" then check it again, it doesn't show the days, even if i added files :(

idk what i did wrong.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Jan 2021, 04:45
by lumenvindex
cygmon0 wrote: 08 Jan 2021, 22:08
If i uncheck the "weeksday" then check it again, it doesn't show the days, even if i added files :(

idk what i did wrong.
You add 21 files, right? Cause if you add only 7 weekday files they show up for Chineese language only.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Feb 2021, 19:35
by Kyoutsuvw
How do i change the size of the hour and minutes?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Feb 2021, 02:14
by lumenvindex
Kyoutsuvw wrote: 08 Feb 2021, 19:35
How do i change the size of the hour and minutes?
Choose a set of pictures with numbers of another size. Mi Band just shows the pictures in the right order, without using any fonts or sizes.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Feb 2021, 13:17
by Kyoutsuvw
lumenvindex wrote: 09 Feb 2021, 02:14
Kyoutsuvw wrote: 08 Feb 2021, 19:35
How do i change the size of the hour and minutes?
Choose a set of pictures with numbers of another size. Mi Band just shows the pictures in the right order, without using any fonts or sizes.
So it depends on the size of the picture, right?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 03 Jun 2021, 03:31
by supremedap
Hi!! Is there any way of making a Day-Night cycle on the background? And also, my weekday and date only appear for a second, is there a way to fix it? Thanks for your attention.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 May 2022, 10:08
by TR198ME
Nice job bro, can you make it android version of that