Mi Band 4\5\6 watchface preview tool for Linux (Python3 + Qt5)

MelianMiko 242b587eb5 Recover 1.2.1 fix, bump to 1.2.3 2 gadi atpakaļ
.idea 0ffb82df04 Add seconds display support 2 gadi atpakaļ
debian 0ffb82df04 Add seconds display support 2 gadi atpakaļ
mibandpreview 242b587eb5 Recover 1.2.1 fix, bump to 1.2.3 2 gadi atpakaļ
mibandpreview_qt 0ffb82df04 Add seconds display support 2 gadi atpakaļ
scripts 0b6c29acf3 Revert "Migrate to PySide2" and other fixes 3 gadi atpakaļ
tools ce5b7aaf7d Update win32 install script 3 gadi atpakaļ
.gitignore d971436155 Update gitignore 3 gadi atpakaļ
LICENSE.txt e71e183248 PyPi package fixes 4 gadi atpakaļ
MANIFEST.in 4ea570f655 Revert "Mibandpreview Qt moved to another repo" 3 gadi atpakaļ
Makefile 7591e7e840 fixes, yes, again 3 gadi atpakaļ
README.md bf865cceb1 Update README.md 3 gadi atpakaļ
requirements.txt 0ffb82df04 Add seconds display support 2 gadi atpakaļ
setup.cfg e71e183248 PyPi package fixes 4 gadi atpakaļ
setup.py 0b6c29acf3 Revert "Migrate to PySide2" and other fixes 3 gadi atpakaļ

README.md

App icon Mi Band Preview

Last release Release date Downloads AUR last update

Mi Band watchface preview generator library and Qt5 GUI written in Python3

Features:

  • Preview your Mi Band 4-6 watch faces without building them
  • Set custom date/time/activity/status values for preview
  • Preview updates automatically when some files inside project dir would being changed
  • Current path and settings saves automatically

Installation

Ubuntu ppa

Just add my Ubuntu package archive and install application from them:

sudo add-apt-repository ppa:melianmiko/software
sudo apt update
sudo apt install mibandpreview

Arch Linux

Install from AUR:

# You need Yay tool
yay -S mibandpreview-git

Building for Linux

To build everything and install:

make
sudo make install

To make deb-package

dpkg-buildpackage -b

Building for Windows

Requirements:

MSYS2 configuration

# Update everything
pacman -Suy

# Install dependencies
pacman -S git mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python-pillow mingw-w64-x86_64-nsis make mingw-w64-x86_64-python-certifi mingw-w64-x86_64-python-pyqt5 mingw-w64-x86_64-qt5-tools
pip install pyinstaller

# Add MinGW64 tools to path
echo "export PATH=$PATH:/mingw64/bin" > ~/.bashrc

Then run build

make
make windows

Build artifacts will be located in dist folder. To build an installer, use nsis with dist/installer.nsi script.

Python3 package

Python3 package doesn't provide desktop icons. This installation method should be used only if you want to use this package as part of your own python application. If you need this package as desktop application, use Linux installation method.

Just install package from pip repository:

pip3 install mibandpreview

License

Apache 2.0