• 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.
Post Reply
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 651492 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 652517 times
Download
1.0.2
WFB_102_2.png
WFB_102_2.png (97.89 KiB) Viewed 652930 times
Download
1.0.1
WFB_101_2.png
WFB_101_2.png (66.42 KiB) Viewed 654105 times
Download
1.0.0
WFB_100_2.png
WFB_100_2.png (95.65 KiB) Viewed 654381 times
Download
0.9.8
WFB_098_2.png
WFB_098_2.png (83.54 KiB) Viewed 654547 times
Download
0.9.7
WFB_097_2.png
WFB_097_2.png (71.41 KiB) Viewed 655196 times
Download
0.9.6
WFP_096_2.png
WFP_096_2.png (132.52 KiB) Viewed 656188 times
Download
0.9.5
WFB_095_1.png
WFB_095_1.png (57.03 KiB) Viewed 657020 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
Dandow

Post by Dandow »

That's awesome!
Thanks a lot, i'll test it today.
I was wondering, did you contemplated "gif"?
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Dandow wrote: 09 Sep 2019, 12:44
That's awesome!
Thanks a lot, i'll test it today.
I was wondering, did you contemplated "gif"?
Not sure what you mean by that. You would like to see a feature of saving animated GIF from preview? But Mi Band 4 WF Tool already make gif file every time you pack a watchface.
MESS WITH THE BEST
DIE LIKE THE REST
lazimk
WF maker
Posts: 27
Joined: 27 Jul 2019, 09:30
Location: India
Has thanked: 5 times
Been thanked: 4 times
Contact:

Post by lazimk »

Great! I will try this. I found this on 4PDA.
It was in Russian. So i was about to request to translate that into English.
Thanks for sharing this here
-Laz

*Have a great day*
Dandow

Post by Dandow »

lumenvindex wrote: 09 Sep 2019, 13:14
Dandow wrote: 09 Sep 2019, 12:44
That's awesome!
Thanks a lot, i'll test it today.
I was wondering, did you contemplated "gif"?
Not sure what you mean by that. You would like to see a feature of saving animated GIF from preview? But Mi Band 4 WF Tool already make gif file every time you pack a watchface.
Like this pip boy

https://amazfitwatchfaces.com/mi-band-4/view/5300
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Dandow wrote: 09 Sep 2019, 16:41
Like this pip boy
Still don't understand you. At all. Give me some more detailed explanation.
MESS WITH THE BEST
DIE LIKE THE REST
Dandow

Post by Dandow »

lumenvindex wrote: 09 Sep 2019, 18:16
Still don't understand you. At all. Give me some more detailed explanation.
When you open the json you se that pipboy has a sequence of images, its not static.

I couldn't try it yesterday but i'm gonnna play a bit today 🤭
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Dandow wrote: 10 Sep 2019, 08:50
When you open the json you se that pipboy has a sequence of images, its not static.
You're asking whether program can or cannot add Animation block to config? Sure it can! I even made my own variant of Pip-boy watchface with this program.
MESS WITH THE BEST
DIE LIKE THE REST
Menpanda

Post by Menpanda »

Hello, I would like to learn how to make my own animated mi band 4 watch faces, is there any tutorial to use this tool? I tried to convert a gif int a APNG but it didn't work. Could someone please help me?
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Menpanda wrote: 10 Sep 2019, 21:19
is there any tutorial to use this tool?
There are no tutorials about this program as far as I know. To add animation you need to split your gif file into a set of png frames (I used "ezgif" service for that). Then open needed watchface in WF_Builder, turn on the Animation block and choose all png files of the set. Than you should change X and Y parameters to place the animation on the watchface.

Unfortunately there is no easy way to adjust animation speed - the Speed parameter should be larger than 4 (otherwise the animation won't play on the device with the latest firmware), but large values cause animation blinking. Probably you'll have to adjust the speed by changing the amount of frames.

Don't forget to cut off all unnessesary pixels from the frames and use Palette mode to pack a watchface. Your bin file shouldn't exceed 320 Kb size to be successfully uploaded to Mi Band.
MESS WITH THE BEST
DIE LIKE THE REST
Dandow

Post by Dandow »

Is it not possible to put months as letters instead of numbers? I mean, I try writting in the json to count 12 images instead of 10, but seems to reestart at the 10th
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Dandow wrote: 11 Sep 2019, 19:31
Is it not possible to put months as letters instead of numbers?
Mi Band uses these images as digits only. Therefore it recieves only 10 images.

But you can unpack some watchface with "months as letters" and see how it could be done. Watch out, don't twist your mind. :D
MESS WITH THE BEST
DIE LIKE THE REST
sachann
Posts: 6
Joined: 16 Aug 2019, 12:14
Has thanked: 1 time
Been thanked: 1 time
Contact:

Post by sachann »

it is possible. I have my watchface modified to have months as text instead of nubers.
I only use the short form of the month but full month is also possible with all 12 names.
Image
have a look at my thread: viewtopic.php?f=62&t=828&p=2477#p2477
User avatar
Miro
Posts: 1
Joined: 23 Aug 2019, 11:21
Location: Geneva
Contact:

Post by Miro »

You achieve that with the latest firmware ?
Is the MIBand4 App still work to add custom WF in Mi Fit ?

I can't get my watchfaces to work anymore ..
Navajoa

Post by Navajoa »

Hi,

great Tool, but there is one problem. I opened .json, Add status "Do Not Disturbe", and PNG. When I create the new .json and will create an new .bin with Mi Band WF Tool V4 I get some errors.
When I edit the existing original .joson with hand, I can create the .bin without problems.

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

Post by lumenvindex »

Navajoa wrote: 13 Sep 2019, 08:21
I opened .json, Add status "Do Not Disturbe", and PNG. When I create the new .json and will create an new .bin with Mi Band WF Tool V4 I get some errors.
Could you provide me with your json so I could see what's the problem? When editing json by hand, you still can pack it using WF Tool 1.4.0?
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 »

Uploaded new version of WF_Builder (0.9.6) to fix a bug reported by Navajoa. Some other optimizations were also made.
MESS WITH THE BEST
DIE LIKE THE REST
ypiripillo
WF maker
Posts: 1
Joined: 07 Aug 2019, 09:13
Contact:

Post by ypiripillo »

there's a virus in WF_Builder0.9.6.zip

detected by standard Windows 10 antivirus and confirmed by virustotal
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

ypiripillo wrote: 20 Sep 2019, 08:30
there's a virus in WF_Builder0.9.6.zip
There is a "Virus?" spoiler in the first post. Thanks for your attentiveness. VirusTotal score is 11 of 62, by the way. :evil:

Of course it's up to you whether you use this program or not. I can even send you my sources, if you need it.
MESS WITH THE BEST
DIE LIKE THE REST
user839

Post by user839 »

Where is the download link?
User avatar
GIK-Team
root
Posts: 1014
Joined: 22 Mar 2018, 10:00
Location: Ukraine
Has thanked: 1109 times
Been thanked: 267 times
Contact:

Post by GIK-Team »

user839 wrote: 22 Sep 2019, 08:58
Where is the download link?
Soon, in the first message. We have technical problems that we will solve shortly.
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

Lots of changes in new WF_Builder 0.9.7. Get it from the link in the first post.
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 »

Any tips for making watchfaces with gifs? I had to get rid of LOTS of frames to make is fit in the 320kb limit, tried compressing the PNGs but it makes no difference. Now I have 10 frames, and they play way too fast. Anything I can try to fix this?
User avatar
lumenvindex
Posts: 114
Joined: 08 Sep 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contact:

Post by lumenvindex »

The larger animation frames weight the slower animation is. Palette packing makes smaller frames. I'm afraid there is no silver bullet for making long calm animations in a watchface. At least for now. Just try to find some balance between size and speed.
MESS WITH THE BEST
DIE LIKE THE REST
mysiak
WF maker
Posts: 34
Joined: 18 Jul 2019, 06:56
Has thanked: 11 times
Been thanked: 5 times
Contact:

Post by mysiak »

lumenvindex wrote: 22 Sep 2019, 11:48
Lots of changes in new WF_Builder 0.9.7. Get it from the link in the first post.
Thanks for the update. I see only LIB subfolder, without actual WF_Builder0.9.7.exe executable in the archive. Did I miss something? :)
Post Reply

Return to “Watchfaces tools”

Who is online

Users browsing this forum: No registered users and 1 guest