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

WF_Builder (watchfaces for Mi Band 4)

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.
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

WF_Builder (watchfaces for Mi Band 4)

Post 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 663756 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 664781 times
Download
1.0.2
WFB_102_2.png
WFB_102_2.png (97.89 KiB) Viewed 665194 times
Download
1.0.1
WFB_101_2.png
WFB_101_2.png (66.42 KiB) Viewed 666369 times
Download
1.0.0
WFB_100_2.png
WFB_100_2.png (95.65 KiB) Viewed 666645 times
Download
0.9.8
WFB_098_2.png
WFB_098_2.png (83.54 KiB) Viewed 666811 times
Download
0.9.7
WFB_097_2.png
WFB_097_2.png (71.41 KiB) Viewed 667460 times
Download
0.9.6
WFP_096_2.png
WFP_096_2.png (132.52 KiB) Viewed 668452 times
Download
0.9.5
WFB_095_1.png
WFB_095_1.png (57.03 KiB) Viewed 669284 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.
Last edited by lumenvindex on 12 Aug 2020, 15:42, edited 13 times in total.
MESS WITH THE BEST
DIE LIKE THE REST
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Notarino wrote: 15 Oct 2019, 10:03
Could anyone make the watchface ???
You should ask about it here.

If you have some problems with WF_Builder, be more specific.
MESS WITH THE BEST
DIE LIKE THE REST
phamaral
WF maker
Posts: 3
Joined: 13 Sep 2019, 21:48
Has thanked: 1 time
Contact:

Post by phamaral »

You can only use transparency of the image to show what's under the battery icon.
Thanks for the tip! That probably will work in my case. Only problem I'm facing now is getting a usable file size using the "as is" packing method since pallete won't allow partially opaque images. Any ideas?
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

phamaral wrote: 15 Oct 2019, 12:25
since pallete won't allow partially opaque images
Palette mode doesn't allow to use partly-transparent colors in the image, it turns such pixels into fully opaque or fully transparent.

But if you need to have partly-transparent colors in SOME (not all) of the images, you can enable "Selective palette mode" feature in Options dialog and select some images to be left "as is" during the packing procedure.
MESS WITH THE BEST
DIE LIKE THE REST
technofab
WF maker
Posts: 6
Joined: 13 Oct 2019, 10:11
Contact:

Post by technofab »

Very useful tool. A request if actual is not possibile: how I can select month day in the format DD MM or MM DD ? for now I see only MM DD! Thanks in advance.
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

technofab wrote: 15 Oct 2019, 14:51
how I can select month day in the format DD MM or MM DD ?
You can't change the format for One line date, but you can use Separate - Day and Separate - Month placing them nearby. The separator can be drawn on a background image if needed.
MESS WITH THE BEST
DIE LIKE THE REST
technofab
WF maker
Posts: 6
Joined: 13 Oct 2019, 10:11
Contact:

Post by technofab »

lumenvindex wrote: 15 Oct 2019, 15:15
technofab wrote: 15 Oct 2019, 14:51
how I can select month day in the format DD MM or MM DD ?
You can't change the format for One line date, but you can use Separate - Day and Separate - Month placing them nearby. The separator can be drawn on a background image if needed.
yes, I'm testing that, but I need to remodify the background image. It wasl helpful if the oneline date can be selectable in both modes or the separate day - month can have a seperator image to select.
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

technofab wrote: 15 Oct 2019, 15:19
if the oneline date can be selectable in both modes or the separate day - month can have a seperator image to select.
Sadly, the Mi Band firmware doesn't allow that.
MESS WITH THE BEST
DIE LIKE THE REST
tigre652
WF maker
Posts: 11
Joined: 12 Oct 2019, 21:39
Contact:

Post by tigre652 »

I have cteate my first watchfacr with etitor
I have push save as and create a folder with a png file... and now?
How create a bin file?
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

tigre652 wrote: 16 Oct 2019, 18:14
How create a bin file?
To create a bin file you need to Pack the watchface in palette or raw ("as is") mode. Read Help to know the difference between them.
MESS WITH THE BEST
DIE LIKE THE REST
tigre652
WF maker
Posts: 11
Joined: 12 Oct 2019, 21:39
Contact:

Post by tigre652 »

Message error pack palette is failed!
tigre652
WF maker
Posts: 11
Joined: 12 Oct 2019, 21:39
Contact:

Post by tigre652 »

Packing failed
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

tigre652 wrote: 17 Oct 2019, 08:51
Packing failed
WF_Builder uses Mi Band 4 WF Tool for packing. Check it's log file in the json directory.
MESS WITH THE BEST
DIE LIKE THE REST
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

WF_Builder 1.0.3 is uploaded. Check the original post.
MESS WITH THE BEST
DIE LIKE THE REST
tigre652
WF maker
Posts: 11
Joined: 12 Oct 2019, 21:39
Contact:

Post by tigre652 »

Ok i complete my work:
https://amazfitwatchfaces.com/mi-band-4/view/8211
Thanks
1 Two problem, I cannot align the numbers of steps and pulses on the right as you can see from the preview.
2 Is it possible to enter the outside temperature?
tigre652
WF maker
Posts: 11
Joined: 12 Oct 2019, 21:39
Contact:

Post by tigre652 »

tigre652 wrote: 17 Oct 2019, 13:08
Ok i complete my work:
https://amazfitwatchfaces.com/mi-band-4/view/8211
Thanks
1 3 problem, I cannot align the numbers of steps and pulses on the right as you can see from the preview.
2 Is it possible to enter the outside temperature?
3 why the date and date on the pulse and steps disappear after 1sec?
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

tigre652 wrote: 17 Oct 2019, 13:08
1 Two problem, I cannot align the numbers of steps and pulses on the right as you can see from the preview.
2 Is it possible to enter the outside temperature?
3 why the date and date on the pulse and steps disappear after 1sec?
1. Horizontal alignment works only when ALL the numbers+spacings fit into the box from X1:Y1 to X2:Y2 horizontally.
Vertical alignment works only on images which fit into the box from X1:Y1 to X2:Y2 vertically.
2. No, current firmware doesn't support this.
3. Current firmware(s) bug.
MESS WITH THE BEST
DIE LIKE THE REST
tigre652
WF maker
Posts: 11
Joined: 12 Oct 2019, 21:39
Contact:

Post by tigre652 »

3 is problem firmware miband4, not software tools?
Thanks for your work.
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

tigre652 wrote: 17 Oct 2019, 13:35
3 is problem firmware miband4, not software tools?
Yes, it's a bug of Mi Band firmware.
MESS WITH THE BEST
DIE LIKE THE REST
technofab
WF maker
Posts: 6
Joined: 13 Oct 2019, 10:11
Contact:

Post by technofab »

lumenvindex wrote: 15 Oct 2019, 16:25
technofab wrote: 15 Oct 2019, 15:19
if the oneline date can be selectable in both modes or the separate day - month can have a seperator image to select.
Sadly, the Mi Band firmware doesn't allow that.
Ouch, very sad. Thanks for the explanation. :)
User avatar
TaylanTatli
WF maker
Posts: 1
Joined: 06 Oct 2019, 10:36
Location: Afyonkarahisar, Turkey
Has thanked: 1 time
Contact:

Post by TaylanTatli »

Can you make a linux version? Trying to run with wine but it seems broken;
imggmi .com/full/2019/10/19/853398f0b414333a42e0163a6b08314c-full.png.html (remove the space site doesn't allow me to share image)
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

TaylanTatli wrote: 19 Oct 2019, 15:57
Can you make a linux version?
The only way to make a linux version is to write the program from scratch using some other than Autoit language. I'm not planning to do it.
MESS WITH THE BEST
DIE LIKE THE REST
technofab
WF maker
Posts: 6
Joined: 13 Oct 2019, 10:11
Contact:

Post by technofab »

lumenvindex wrote: 19 Oct 2019, 16:05
TaylanTatli wrote: 19 Oct 2019, 15:57
Can you make a linux version?
The only way to make a linux version is to write the program from scratch using some other than Autoit language. I'm not planning to do it.
Wow is made with AutoIt? Many many compliments. I use that at my job!!!

I want also to thank you, I made my first personal face, and publish here.
Fiorentina Fans had finally a watchface! :D
Nomek

Post by Nomek »

Just one question. Is there a detailed command list for the *.json file?
I'm trying to find out if there is a command "Year" to add the current year in Mi Band 4 watchface.

Any kind of help is wellcome.
User avatar
jellynettle
WF maker
Posts: 7
Joined: 28 Sep 2019, 20:30
Has thanked: 2 times
Been thanked: 5 times
Contact:

Post by jellynettle »

I don't think there is but you can easily just put 2019 in the background, updating it manually if you'll still like said watchface
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Nomek wrote: 24 Oct 2019, 14:26
Is there a detailed command list for the *.json file?
WF_Builder uses all known json parameters. You can find the list of them in this file:
right_order.zip
(1.34 KiB) Downloaded 278 times
There is no Year section or value.
MESS WITH THE BEST
DIE LIKE THE REST
Post Reply

Return to “Watchfaces tools”

Who is online

Users browsing this forum: No registered users and 2 guests