Page 8 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 665414 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 666439 times
Download
1.0.2
WFB_102_2.png
WFB_102_2.png (97.89 KiB) Viewed 666852 times
Download
1.0.1
WFB_101_2.png
WFB_101_2.png (66.42 KiB) Viewed 668027 times
Download
1.0.0
WFB_100_2.png
WFB_100_2.png (95.65 KiB) Viewed 668303 times
Download
0.9.8
WFB_098_2.png
WFB_098_2.png (83.54 KiB) Viewed 668469 times
Download
0.9.7
WFB_097_2.png
WFB_097_2.png (71.41 KiB) Viewed 669118 times
Download
0.9.6
WFP_096_2.png
WFP_096_2.png (132.52 KiB) Viewed 670110 times
Download
0.9.5
WFB_095_1.png
WFB_095_1.png (57.03 KiB) Viewed 670942 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: 14 Aug 2020, 13:26
by elitet007
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.
I can help you if you want, I started make one, but I had thesme problem.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 14 Aug 2020, 15:45
by Scorpion2185
Can you make a linux version? A full rewrite.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 14 Aug 2020, 18:06
by lumenvindex
Lienarhba wrote: 14 Aug 2020, 08:26
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 .
I reuploaded it couple of days ago. You should be able to download it now.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 14 Aug 2020, 18:06
by lumenvindex
Scorpion2185 wrote: 14 Aug 2020, 15:45
Can you make a linux version? A full rewrite.
Yes, I can. But no, I won't. :D

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 30 Aug 2020, 19:29
by guaynaa
This tool is just what I needed, is it getting an update to work with mi band 5 watchfaces??

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 31 Aug 2020, 03:15
by lumenvindex
guaynaa wrote: 30 Aug 2020, 19:29
This tool is just what I needed, is it getting an update to work with mi band 5 watchfaces??
No. At least for now. I don't have a Mi Band 5 hence I won't be able to test the program.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Sep 2020, 10:43
by wyusufw
mi band 5 support please

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Sep 2020, 05:51
by arthurking521
could u pls. modify one tool for mi band 5,thx very much

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 29 Sep 2020, 12:30
by tigre652
Hi help me understand why in the watchface that I made at the following link:
https://amazfitwatchfaces.com/mi-band-4/view/16266 (the version with seconds)
part of the display disappears after 1 second as I was told for a miband bug
On the other hand, in this version made by another user, does the management of seconds work correctly?
https://amazfitwatchfaces.com/mi-band-4/view/8211

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 29 Sep 2020, 13:40
by tigre652
Ok i have solved, must be enabled ANALOG => second arrow ON

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Oct 2020, 08:25
by TomoS
Why weekdays works always in chineese instead international when i load images?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Oct 2020, 17:52
by lumenvindex
TomoS wrote: 08 Oct 2020, 08:25
Why weekdays works always in chineese instead international when i load images?
You should read the Recommendations section in the original post.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 08 Oct 2020, 19:20
by TomoS
lumenvindex wrote: 08 Oct 2020, 17:52
TomoS wrote: 08 Oct 2020, 08:25
Why weekdays works always in chineese instead international when i load images?
You should read the Recommendations section in the original post.
I read but it doesn't work that way.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 09 Oct 2020, 05:11
by lumenvindex
TomoS wrote: 08 Oct 2020, 19:20
I read but it doesn't work that way.
Nonsence. Choose 21 images for weekdays, then select International and see the international weekdays preview.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 19 Oct 2020, 18:58
by TomoS
Why watchface preview after compilling is different than actually on Mi Band?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 20 Oct 2020, 03:18
by lumenvindex
TomoS wrote: 19 Oct 2020, 18:58
Why watchface preview after compilling is different than actually on Mi Band?
How exactly is it different? Anyway, this preview is generated by MiBandWFTool while packing. I will not be able to fix it.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 20 Oct 2020, 06:43
by TomoS
lumenvindex wrote: 20 Oct 2020, 03:18
TomoS wrote: 19 Oct 2020, 18:58
Why watchface preview after compilling is different than actually on Mi Band?
How exactly is it different? Anyway, this preview is generated by MiBandWFTool while packing. I will not be able to fix it.
On Mi Band preview is correct but gif file in unpacked WF looks like (status bar)
Image

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 20 Oct 2020, 12:43
by lumenvindex
TomoS wrote: 20 Oct 2020, 06:43
but gif file in unpacked WF looks like (status bar)
Check DPI of status bar images. It should be 96.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 20 Oct 2020, 14:03
by TomoS
lumenvindex wrote: 20 Oct 2020, 12:43
TomoS wrote: 20 Oct 2020, 06:43
but gif file in unpacked WF looks like (status bar)
Check DPI of status bar images. It should be 96.
Now is perfect. Thanks ;)

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 24 Oct 2020, 13:24
by german_psycho
Are you planning of getting a Mi Band 5?
Would be great to see this tool for the 5 band..

Maybe you should add something like a Donation-Button to your first post..

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 31 Oct 2020, 23:43
by KiruHoshino
#Mi Band 4 - Can you add a weather option?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 01 Nov 2020, 06:22
by lumenvindex
KiruHoshino wrote: 31 Oct 2020, 23:43
#Mi Band 4 - Can you add a weather option?
Mi Band 4 cannot show weather on it's watchface.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 01 Nov 2020, 18:36
by KiruHoshino
lumenvindex wrote: 01 Nov 2020, 06:22
KiruHoshino wrote: 31 Oct 2020, 23:43
#Mi Band 4 - Can you add a weather option?
Mi Band 4 cannot show weather on it's watchface.
Some Mi Band 4 WF have weather. Why do you think how it is don't support it then?

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 02 Nov 2020, 03:15
by lumenvindex
KiruHoshino wrote: 01 Nov 2020, 18:36
Some Mi Band 4 WF have weather. Why do you think how it is don't support it then?
Because I tried using such WFs (many times). If you've found a WF that works OK with weather on a real Mi Band 4, show it to me please.

Re: WF_Builder (watchfaces for Mi Band 4)

Posted: 02 Nov 2020, 09:26
by KiruHoshino