npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

wii-balance-board-pi

v1.1.2

Published

Recieve data from the wii balance board via bluetooth using the raspberry pi

Downloads

56

Readme

Wii Balance Board PI

This node module aims to make recieving data from the wii balance board with the raspberry pi as easy as possible. It tries to connect to the balance board via bluetooth an retrieves its data once connected.

Getting Started

Prerequisites

  • Raspberry PI
  • Wii Balance Board

Installation

Install the module with

npm i -s wii-balance-board-pi

Make sure bluetooth is installed with:

sudo apt-get --assume-yes install bluez python-bluez python-gobject python-dbus

I suggest to do a reboot now

sudo reboot

Basic Usage

const BalanceBoard = require("wii-balance-board-pi");

var balanceBoard = new BalanceBoard();

balanceBoard.connect();

balanceBoard.on("data", data => {
  console.log(data);
});

Documentation

Overview over all functions available with this package. Additionally the BalanceBoard class also extends EventEmitter.

BalanceBoard.connect()

Tries to continuously connect to the wii balance board. It will only be able to connect when the sync button is pressed. When the connection is lost it will keep trying to reconnect.

When connected BalanceBoard.on("data", (data) =>{}) will send data events from the wii balanceboard.

BalanceBoard.on("data",(data) => {})

Once connected to the wii balance board data events can be recieved with this event emitter.

The data object will have these fields:

{
    connected: boolean,
    //All below only when connected is true
    topLeft: float, //weight in kg on the top left corner of the board
    topRight: float,
    bottomLeft: float,
    bottomRight: float,
    totalWeight: float,
    buttonPressed: boolean,
    buttonReleased: boolean
}

BalanceBoard.removeListener("data",(data) => {})

Call this function to stop listening to incomming data. For more detail: https://nodejs.org/api/events.html#events_emitter_removelistener_eventname_listener

BalanceBoard.isConnected()

This function returns a boolean on if the wii balance board is connected.

BalanceBoard.disconnect()

When called wii balance board will be disconnected and no connection will be established until BalanceBoard.connect() is called again.

TODO

  • make JSON.parse always successful so the try catch isnt necessary anymore