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.1.tar.gz (100.5 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.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file wiibalance-1.3.1.tar.gz.

File metadata

  • Download URL: wiibalance-1.3.1.tar.gz
  • Upload date:
  • Size: 100.5 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.1.tar.gz
Algorithm Hash digest
SHA256 edb9bde52e0ebc719486a49158b2457afa38829ecc0600e9bbace9a6143a97cd
MD5 96043d54dd41813789af30407e417900
BLAKE2b-256 83855466a36d1533307ff507aadd06d936c567468983386f0619efe5ff541126

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiibalance-1.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: wiibalance-1.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 031d44a58c24b48c38f5dce1b9d7d98b33422d5ec29d092a4110c5745d5e23b1
MD5 de0d45f84ccd29185f91528a998cf90e
BLAKE2b-256 acd39d49ee1b2d3ee0e725cc48b4f3dc0977ea9896f280637a8361b2c493cd1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiibalance-1.3.1-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

This release

1.3.1 This release

2 files

1.3.0

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