huanix

chown -R huanix /

huanix header image 2

Export wii fit data to a csv for import into excel or database

April 3rd, 2010 · 3 Comments · wii, wii fit

This procedure has been converted to an online tool at http://www.getmyfitdata.com

These steps allow you to take data from your wii fit or wii fit plus and export it into a form that is text readable. This is useful for lots of reasons – for people tracking their weight, for physical therapists taking care of patients, or for people who just like to play with data. When you understand the process, a full data extraction takes less than 5 minutes from Wii to excel.

1. Save the game data to an SD card, transfer the resulting data.bin file to a linux computer.

2. Use the tachtig tool for the first round of data extraction. The tachtig tool is part of Segher’s suite and needs to be compiled from his git repository. After you compile the tool it will look for some wii keys in ~/.wii/ ; yes, the keys go in a folder in your home directory, not the bin path. You do NOT need to extract keys from your Wii. The pubicly available keys on the internet are fine. (note: look at jansenprice’s instructions for compiling tachtig in the resources below)

4. This will leave you with several files in a numerically named folder. The file that contains wii fit weight and balance information is RPWiifit.dat or FitPlus0.dat

3. Use the wiifitparser.py tool from the git repository on this google code site to extract the data.

The parser extracts a lot of data, but it needs to be tweaked. This is a modified wiifitparser that correctly parses weight (in pounds) and BMI. Here is my current wiifitparser.py as of April 3, 2010

4. The resulting data is xml, which is easily understood and simple to convert to csv.

Wii Fit data.bin parse

Wii Fit data.bin parse

(The workflow in the screenshot is real, but i trimmed the contents of the output file so you could see the actual weight output.)

I have written this too as an online parser where people can upload data.bin files from their wii fit save and have that data file converted into a csv that can be downloaded. You can spend 10 hours following the directions above, or pay $5 by google checkout to have the data parsed for you at getmyfitdata.com

The best overall start guide:

http://jansenprice.com/blog?id=9-Extracting-Data-from-Wii-Fit-Plus-Savegame-Files

Google code page with an excellent introduction:
http://code.google.com/p/wiifit/source/checkout

Segher’s tachtig tool is the initial data.bin parser:

http://git.infradead.org/?p=users/segher/wii.git;a=blob;f=tachtig.c

StackOverflow thread on parsing wii fit data.bin:

http://stackoverflow.com/questions/616249/wii-fit-data-format

Oudtated but useful:

http://wiibrew.org/wiki/Wii_Savegame_Parser

Incoming search terms:

  • export wii fit data
  • wii fit export data
  • Wii Fit Data
  • Wii Fit Android
  • wii fit export
  • android wii fit
  • wii csv
  • wii fit csv
  • wii fit data transfer
  • export data from wii fit

Tags: ···

3 Comments so far ↓

  • Tom

    Thank you for your hard work!

    was able to d/l windows version http://wiibrew.org/wiki/FE100
    and put in the public keys and xtract

    but the python script keeps giving errors:
    File “wiifitparser.py”, line 275, in body_tests
    bodytests = player.bodytests()
    File “wiifitparser.py”, line 213, in bodytests
    wii_fit_age = ord(bodytest[0xE])
    IndexError: string index out of range

    The names and b-days are correct from the script.

    Does this work for old Wii fit or only for wii fit plus? and in the picture there is a field lbs and no lbs in your py script.

    Thanks

  • Dan Brickley

    I’ve just run this against Wii Fit Plus and got data out (and via XSLT, HTML and copy/paste, into google docs). However it seems to be coming out about 20lbs too heavy, unless I am completely self-delusional :) You mention problems reading the weight, is there any way to cross check whether it’s working ok (other than manually)? What kind of thing goes wrong?

  • Wagner Felix

    Very cool…
    I need a different problem: I have a ntsc save… i would like to continue using this save, but now I have a pal game… how may I convert?

Leave a Comment