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

Moderatori: asoo, lvpokka, Internal error, Watchmens

Regole del forum
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.
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

WF_Builder (watchfaces for Mi Band 4)

Messaggio da 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) Visto 665504 volte
Changelog

Codice: Seleziona tutto

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) Visto 666529 volte
Download
1.0.2
WFB_102_2.png
WFB_102_2.png (97.89 KiB) Visto 666942 volte
Download
1.0.1
WFB_101_2.png
WFB_101_2.png (66.42 KiB) Visto 668117 volte
Download
1.0.0
WFB_100_2.png
WFB_100_2.png (95.65 KiB) Visto 668393 volte
Download
0.9.8
WFB_098_2.png
WFB_098_2.png (83.54 KiB) Visto 668559 volte
Download
0.9.7
WFB_097_2.png
WFB_097_2.png (71.41 KiB) Visto 669208 volte
Download
0.9.6
WFP_096_2.png
WFP_096_2.png (132.52 KiB) Visto 670200 volte
Download
0.9.5
WFB_095_1.png
WFB_095_1.png (57.03 KiB) Visto 671032 volte
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.
Ultima modifica di lumenvindex il 12 ago 2020, 15:42, modificato 13 volte in totale.
MESS WITH THE BEST
DIE LIKE THE REST
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

Notarino ha scritto: 15 ott 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
Messaggi: 3
Iscritto il: 13 set 2019, 21:48
Has thanked: 1 time
Contatta:

Messaggio da 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?
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

phamaral ha scritto: 15 ott 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
Messaggi: 6
Iscritto il: 13 ott 2019, 10:11
Contatta:

Messaggio da 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.
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

technofab ha scritto: 15 ott 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
Messaggi: 6
Iscritto il: 13 ott 2019, 10:11
Contatta:

Messaggio da technofab »

lumenvindex ha scritto: 15 ott 2019, 15:15
technofab ha scritto: 15 ott 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.
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

technofab ha scritto: 15 ott 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
Messaggi: 11
Iscritto il: 12 ott 2019, 21:39
Contatta:

Messaggio da 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?
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

tigre652 ha scritto: 16 ott 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
Messaggi: 11
Iscritto il: 12 ott 2019, 21:39
Contatta:

Messaggio da tigre652 »

Message error pack palette is failed!
tigre652
WF maker
Messaggi: 11
Iscritto il: 12 ott 2019, 21:39
Contatta:

Messaggio da tigre652 »

Packing failed
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

tigre652 ha scritto: 17 ott 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
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

WF_Builder 1.0.3 is uploaded. Check the original post.
MESS WITH THE BEST
DIE LIKE THE REST
tigre652
WF maker
Messaggi: 11
Iscritto il: 12 ott 2019, 21:39
Contatta:

Messaggio da 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
Messaggi: 11
Iscritto il: 12 ott 2019, 21:39
Contatta:

Messaggio da tigre652 »

tigre652 ha scritto: 17 ott 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?
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

tigre652 ha scritto: 17 ott 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
Messaggi: 11
Iscritto il: 12 ott 2019, 21:39
Contatta:

Messaggio da tigre652 »

3 is problem firmware miband4, not software tools?
Thanks for your work.
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

tigre652 ha scritto: 17 ott 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
Messaggi: 6
Iscritto il: 13 ott 2019, 10:11
Contatta:

Messaggio da technofab »

lumenvindex ha scritto: 15 ott 2019, 16:25
technofab ha scritto: 15 ott 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. :)
Avatar utente
TaylanTatli
WF maker
Messaggi: 1
Iscritto il: 06 ott 2019, 10:36
Località: Afyonkarahisar, Turkey
Has thanked: 1 time
Contatta:

Messaggio da 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)
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

TaylanTatli ha scritto: 19 ott 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
Messaggi: 6
Iscritto il: 13 ott 2019, 10:11
Contatta:

Messaggio da technofab »

lumenvindex ha scritto: 19 ott 2019, 16:05
TaylanTatli ha scritto: 19 ott 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

Messaggio da 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.
Avatar utente
jellynettle
WF maker
Messaggi: 7
Iscritto il: 28 set 2019, 20:30
Has thanked: 2 times
Been thanked: 5 times
Contatta:

Messaggio da 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
Avatar utente
lumenvindex
Messaggi: 114
Iscritto il: 08 set 2019, 19:01
Has thanked: 2 times
Been thanked: 49 times
Contatta:

Messaggio da lumenvindex »

Nomek ha scritto: 24 ott 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) Scaricato 281 volte
There is no Year section or value.
MESS WITH THE BEST
DIE LIKE THE REST
Rispondi

Torna a “Watchfaces tools”

Chi c’è in linea

Visitano il forum: Google Adsense [Bot] e 2 ospiti