Skip to main content

WiiBalance

The modern Python controller for the Wii Balance Board.

Linux PyPI Version

wiibalance

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

  1. 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"
  1. 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.
  2. 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 with Ctrl+C.
  3. 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

wiibalance-1.3.0.tar.gz (100.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wiibalance-1.3.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

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

Hashes for wiibalance-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f8b3e180940798a713d2bc9c9d39d1497ef7ec5beb16579f417a0f3e76e35a80
MD5 80f6359da933bfc9e94afa10ab03672c
BLAKE2b-256 ace84154dd5019e77f484522413ecaae46ffd648b0582ddd769c71aaf8a73fa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiibalance-1.3.0.tar.gz:

Publisher: pypi.yml on bboonstra/wiibalance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for wiibalance-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0951e30ab220abd53fe28335363217f3423936a4aa3f76283d7ea9cfa897edd
MD5 81dc1887ae319cc3fa7783c1b923c5fd
BLAKE2b-256 e88e0a538f7a500569874bb44fb387c7be1e76b8108aae6176fec100785e112a

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiibalance-1.3.0-py3-none-any.whl:

Publisher: pypi.yml on bboonstra/wiibalance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.3.1

2 files

This release

1.3.0 This release

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page