Page 7 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 665474 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 666499 times
Download
1.0.2
WFB_102_2.png
WFB_102_2.png (97.89 KiB) Viewed 666912 times
Download
1.0.1
WFB_101_2.png
WFB_101_2.png (66.42 KiB) Viewed 668087 times
Download
1.0.0
WFB_100_2.png
WFB_100_2.png (95.65 KiB) Viewed 668363 times
Download
0.9.8
WFB_098_2.png
WFB_098_2.png (83.54 KiB) Viewed 668529 times
Download
0.9.7
WFB_097_2.png
WFB_097_2.png (71.41 KiB) Viewed 669178 times
Download
0.9.6
WFP_096_2.png
WFP_096_2.png (132.52 KiB) Viewed 670170 times
Download
0.9.5
WFB_095_1.png
WFB_095_1.png (57.03 KiB) Viewed 671002 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: 27 Jul 2020, 15:53
by lumenvindex
anhtu7596 wrote: 26 Jul 2020, 18:26
Please create a tool like this for miband5
Unfortunately I don't have a MiBand5. Cannot develop a program without testing.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 27 Jul 2020, 16:12
by Mellifluous
Thanks really helpful!
Please make a tool for Mi band 5 or NFC version generator.
Thanks.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 30 Jul 2020, 18:24
by Scorpion2185
Can you make a linux version? It works bad with wine.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 30 Jul 2020, 19:21
by anhtu7596
lumenvindex wrote: 27 Jul 2020, 15:53
anhtu7596 wrote: 26 Jul 2020, 18:26
Please create a tool like this for miband5
Unfortunately I don't have a MiBand5. Cannot develop a program without testing.
I think you should create a link so people donate you 👍🏻

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 31 Jul 2020, 17:47
by Scorpion2185
How can I at least open the .bin files on linux? I should be able to change the background image, right?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 03 Aug 2020, 14:51
by lumenvindex
Scorpion2185 wrote: 30 Jul 2020, 18:24
Can you make a linux version? It works bad with wine.
Unfortunately, It's written on AutoIt, Windows-only.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 03 Aug 2020, 14:53
by lumenvindex
Scorpion2185 wrote: 31 Jul 2020, 17:47
How can I at least open the .bin files on linux? I should be able to change the background image, right?
I think there was a linux version of MiBandWFTool. Try asking here.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 03 Aug 2020, 16:14
by jack.y.biton
Hi friends how can I make them see the months by name and not by number

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 03 Aug 2020, 18:14
by lumenvindex
jack.y.biton wrote: 03 Aug 2020, 16:14
Hi friends how can I make them see the months by name and not by number
Download and unpack a watchface with that feature, explore the pictures, pay attention to the options of the Month section. It's easy to understand but it's hard to explain ;)

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 04 Aug 2020, 02:06
by GodMutant
I use the web site virus total this WF_Builder1.0.4.exe is full of virus
i . p o s t i m g . c c / v m 4 k b T b J / v v v . j p g

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 04 Aug 2020, 04:01
by jack.y.biton
Did not understand I want to make the months not in number but in letters

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 04 Aug 2020, 04:10
by jack.y.biton
lumenvindex wrote: 03 Aug 2020, 18:14
jack.y.biton wrote: 03 Aug 2020, 16:14
Hi friends how can I make them see the months by name and not by number
Download and unpack a watchface with that feature, explore the pictures, pay attention to the options of the Month section. It's easy to understand but it's hard to explain ;)
Did not understand I want to turn the months into letters not numbers

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 04 Aug 2020, 07:03
by lumenvindex
GodMutant wrote: 04 Aug 2020, 02:06
I use the web site virus total this WF_Builder1.0.4.exe is full of virus
i . p o s t i m g . c c / v m 4 k b T b J / v v v . j p g
READ the original post.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 04 Aug 2020, 07:06
by lumenvindex
jack.y.biton wrote: 04 Aug 2020, 04:10
Did not understand I want to turn the months into letters not numbers
Mi Band 4 firmware doesn't have this feature. You can only do this by using special trick with numbers pictures. Unpack, explore, get your brain twisted a little.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 04 Aug 2020, 11:54
by Adore_able
Can we turn weather or PAI on Mi band 4 dial ? Those this program enables these . And lastly can we translate language , for example English to Chinese , herbrew ,and Czech
Thank you
Regards
Adore_able

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 05 Aug 2020, 09:40
by urieleugenio
Adore_able wrote: 04 Aug 2020, 11:54
Can we turn weather or PAI on Mi band 4 dial ? Those this program enables these . And lastly can we translate language , for example English to Chinese , herbrew ,and Czech
Thank you
Regards
Adore_able
I had read weather doesn't works on the MB4, I never really tried it. As for PAI, MB4 doesn't have PAI function (or at least mine it didn't until I gave it away a couple weeks ago), so you won't get the data input from the band.

As far as I know, translation is done by creating additional images (for day of the week or any other text image component), one set for each language. I'm not sure how to code for language, though. An easy fix would be to just make a different version for each language, swapping language images, so that you don't need to change the code.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Aug 2020, 01:30
by GodMutant
Can you share the source code to we compile the software ?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Aug 2020, 05:52
by lumenvindex
GodMutant wrote: 09 Aug 2020, 01:30
Can you share the source code to we compile the software ?
I would like not to share this embarrassing code :|
Why do you want to compile it yourself?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 10 Aug 2020, 05:42
by GodMutant
I want to make a online BUILDER using html and css and boorstrap so i want to use your code to learn about mi band 4 it is the best way.

All codes are some form of art I would never criticize your code.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 10 Aug 2020, 11:28
by lumenvindex
GodMutant wrote: 10 Aug 2020, 05:42
I want to make a online BUILDER using html and css and boorstrap so i want to use your code to learn about mi band 4 it is the best way.

All codes are some form of art I would never criticize your code.
Answered in PM.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 12 Aug 2020, 11:05
by okniwt
Hey Guys,

i cant download the builder. This Website tells me that the maximum limit of downloads is reached.
Please reup Version 1.0.4

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 12 Aug 2020, 15:44
by lumenvindex
okniwt wrote: 12 Aug 2020, 11:05
Hey Guys,

i cant download the builder. This Website tells me that the maximum limit of downloads is reached.
Please reup Version 1.0.4
Done. Thanks for noticing.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 14 Aug 2020, 05:21
by Vansh Rathore
Can we make a mi band 5 watchface for mi band 4 by resizeing it from 16 bit to 8 bit

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 14 Aug 2020, 06:23
by lumenvindex
Vansh Rathore wrote: 14 Aug 2020, 05:21
Can we make a mi band 5 watchface for mi band 4 by resizeing it from 16 bit to 8 bit
No. I think 16 and 8 bit is about colours, not size. Watchfaces for Mi Band 5 have different structure.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 14 Aug 2020, 08:26
by Lienarhba
Hi lumenvindex , this program is really awesome . I have downloaded it a week ago , I was changing the parameters of my watchface . Suddenly , by my silly mistake , this program file was deleted from my windows 7+ .
My all works were reseted . Now I have left about that watchface . So, now I tried to again download the file , it says " the maximum number of downloads has reached" .
Please help me to download it again
Thanks .