Git Product home page Git Product logo

gr8w8upd8m8's Introduction

Gr8W8Upd8M8

A Wii balance board weight reporter

This script is based on wiiboard-simple, with some dependencies (like pygame) removed. I'm pretty sure it only works on Linux.

Requirements

To run gr8w8upd8m8, you need:

  • Linux.
  • The bluez-utils package (you might need to install also python-bluez).
  • Bluetooth.

Pairing the board

Thanks to Ryan Myers for the following:

Install bluez bluez-utils python-bluez, and run the included xwiibind.sh. Follow the prompts, and your balance board should be paired by the end of this. Notice that BlueZ 4.99 is required, BlueZ 5+ changes the DBus API in incompatible ways.

Usage

You can run it with:

./gr8w8upd8m8.py

It will prompt you to put the board in sync mode and it will search for and connect to it.

If you already know the address, you can just specify it:

./gr8w8upd8m8.py <board address>

That will skip the discovery process, and connect directly.

gr8w8upd8m8 uses the bluez-test-device utility of bluez-utils to disconnect the board at the end, which causes the board to shut off. Pairing it with the OS will allow you to use the front button to reconnect to it and run the script.

Calculating the final weight is done by calculating the mode of all the event data, rounded to one decimal digit.

Feel free to use processor.weight to do whatever you want with the calculated weight (I send it to a server for further pointless processing).

License

This software is made available under the Lesser GPL license.

Credits

This project is a mix of various scripts and samples. Thanks go to:

gr8w8upd8m8's People

Contributors

heliosmaster avatar skorokithakis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.