First step : data.bin
You need to save your wiifit (or wiifit plus) game on a SD card on your wii.
You’ll then find on the SD card this file:
(where RFPE is the id of the wiifit plus game, it’s probably different for wiifit legacy).
Second step: tachtig
To extract the data.bin, we need the tachtig tool.
Git and compiling
git clone git://git.infradead.org/users/segher/wii.git cd wii make
(Note on linux: you may have to emerge/apt-get libssl-dev to get needed libraries.)
tachtig needs three key in binary format: sd-key, sd-iv and md5-blanker .
Don’t run ;-), you don’t need your soldering iron or to open your wii to get the keys ! You’ll find them on this hackmii page .
Once you get the keys, we need to convert them to binary format:
# Creating hex keys mkdir ~/.wii cd ~/.wii echo 'ab01xxxx' > sd-key-hex echo '2167xxxx' > sd-iv-hex echo '0e65xxxx' > md5-blanker-hex # Converting to binary format xxd -r -p sd-key-hex sd-key xxd -r -p sd-iv-hex sd-iv xxd -r -p md-blanker-hex md5-blanker rm sd-key-hex sd-iv-hex md5-blanker-hex
Copy the tachtig executable previously compiled and data.bin in a same directory and run:
Yay! You just got a subdirectory named like 0001000452465050 containing FitPlus0.dat (or RPHealth.dat for Wiifit legacy).
Third step : create a withings import file
Withings accepts csv files as input.
We need to extract the informations from FitPlus0.dat and output it in Withings format.
I tweaked it a little bit to output data in a Withings understandable way using jasenprice post.
Copy paste the above code or wget it:
(Don’t forget to edit the line 19 if you use RPHealth.dat)
You must edit the following lines to match you wii username and your withings user name:
# Link between withings balance board and wifit nickname if (wf_name == 'amaury'): pseudo = 'AMO' elif (wf_name == 'wiifit-name'): pseudo = 'withings-name' else: pseudo = wf_name
Now everything’s ok, you just have to run the script:
And voilà, you now get your csv wiithings ready files named Wiifit_[wii name].csvNote: Wiifit knows your height and mass. Thoses datas will be transfered to Withings. The fat mass and fat free mass is unknown for Wiifit. You can still hack the rendered csv file to add your fat mass and fat free mass if you desire using the formula: fatfreemass = weight – fatmass .
Now, connect to your Withings account and go to « My account / My options / Import my data in CSV » and import your csv from your different scale users.
The datas between April 2009 and August 2011 come from Wii fit plus thanks to the extraction and the script !
Thanks to those sources: http://jansenprice.com/blog?id=9-Extracting-Data-from-Wii-Fit-Plus-Savegame-Files http://www.kellbot.com/2010/05/extracting-graphing-wii-fit-data/ http://blog.withings.com/en/tag/import/