WiiBalance
The modern Python controller for the Wii Balance Board.
Features
- Connect to a Wii Balance Board via Bluetooth
- Read sensors, battery, button, and LED states
- Control LED
Why WiiBalance?
- Permanent pairing via daemon! Only press sync once
- Fast and modern
- CLI interface
- Easy to use
- Looks super cool
- Developer friendly
Installation
Installing WiiBalance is incredibly easy!
Make sure you have Python 3.10+ installed. Then, you'll need to install the package using pip:
python3 -m pip install --upgrade pip
pip install wiibalance
Initial Setup
To use WiiBalance, you'll need to know the Bluetooth address of your Wii Balance Board. If you've connected to it before, WiiBalance can discover it for you, but it is heavily recommended to find it manually.
Manual Pairing
- Run the following command in your terminal. This will discover the Bluetooth address of your Wii Balance Board.
bluetoothctl --timeout 20 scan on | grep --line-buffered "RVL-WBC-01"
- While the command above is running, press the red SYNC button on the Wii Balance Board, within the battery compartment. You may have to press it more than once.
- Save the outputted Bluetooth address of the Wii Balance Board (it looks like
XX:XX:XX:XX:XX:XX) for later use. You can then stop the command withCtrl+C. - Pair with the board, substituting the Bluetooth address you saved earlier:
bluetoothctl pair XX:XX:XX:XX:XX:XX
You are now ready to use WiiBalance!
CLI Quickstart
If you just paired with the board, you can jump right into the live demo:
wiibalance live
However, the connection is lost when you finish a command. When you run your next command, you must press the red SYNC button in the battery compartment again. To fix this, set up the daemon!
You can use the --json flag to get a stream of computer-readable live data. You can also use wiibalance weight to
get the current weight with units.
Full documentation is available here.
Python Quickstart
If you paired above, you're ready to use the library out-of-the-box.
from wiibalance import create_balance_board
board = create_balance_board()
print(board.read_state())
board.disconnect()
exit()
Note that, if you are not using the daemon, create_balance_board will hang until after you press the red SYNC button
in the battery compartment of the board. You will also need to press the red SYNC button again if you disconnect and
attempt to reconnect. To fix this, set up the daemon!
Full documentation is available here.
Issues & Contributing
Please open an issue or submit a pull request! :)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wiibalance-1.3.0.tar.gz.
File metadata
- Download URL: wiibalance-1.3.0.tar.gz
- Upload date:
- Size: 100.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8b3e180940798a713d2bc9c9d39d1497ef7ec5beb16579f417a0f3e76e35a80
|
|
| MD5 |
80f6359da933bfc9e94afa10ab03672c
|
|
| BLAKE2b-256 |
ace84154dd5019e77f484522413ecaae46ffd648b0582ddd769c71aaf8a73fa2
|
Provenance
The following attestation bundles were made for wiibalance-1.3.0.tar.gz:
Publisher:
pypi.yml on bboonstra/wiibalance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wiibalance-1.3.0.tar.gz -
Subject digest:
f8b3e180940798a713d2bc9c9d39d1497ef7ec5beb16579f417a0f3e76e35a80 - Sigstore transparency entry: 2498657440
- Sigstore integration time:
-
Permalink:
bboonstra/wiibalance@8fec949b303d3931ee1c9f5872143064599ccfcf -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/bboonstra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8fec949b303d3931ee1c9f5872143064599ccfcf -
Trigger Event:
release
-
Statement type:
File details
Details for the file wiibalance-1.3.0-py3-none-any.whl.
File metadata
- Download URL: wiibalance-1.3.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0951e30ab220abd53fe28335363217f3423936a4aa3f76283d7ea9cfa897edd
|
|
| MD5 |
81dc1887ae319cc3fa7783c1b923c5fd
|
|
| BLAKE2b-256 |
e88e0a538f7a500569874bb44fb387c7be1e76b8108aae6176fec100785e112a
|
Provenance
The following attestation bundles were made for wiibalance-1.3.0-py3-none-any.whl:
Publisher:
pypi.yml on bboonstra/wiibalance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wiibalance-1.3.0-py3-none-any.whl -
Subject digest:
e0951e30ab220abd53fe28335363217f3423936a4aa3f76283d7ea9cfa897edd - Sigstore transparency entry: 2498657443
- Sigstore integration time:
-
Permalink:
bboonstra/wiibalance@8fec949b303d3931ee1c9f5872143064599ccfcf -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/bboonstra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8fec949b303d3931ee1c9f5872143064599ccfcf -
Trigger Event:
release
-
Statement type: