Keys

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:

1

2

3

4

5

6

7

8

9

10

11

12

# 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-psd-key-hex sd-key

xxd-r-psd-iv-hex sd-iv

xxd-r-pmd-blanker-hex md5-blanker

rmsd-key-hex sd-iv-hex md5-blanker-hex

Extracting data.bin

Copy the tachtig executable previously compiled and data.bin in a same directory and run:

1

./tachtig data.bin

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.

The script

The first extraction script has been done by kellbot for creating javascript charts.

I tweaked it a little bit to output data in a Withings understandable way using jasenprice post.

wiiFit2withings.py

Python

1

http://amaury.decre.me/scripts/wiifit2withings.py

Copy paste the above code or wget it:

1

wget http://amaury.decre.me/scripts/wiifit2withings.py

(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:

1

2

3

4

5

6

7

# 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

Run it!

Now everything’s ok, you just have to run the script:

1

python wiifit2withings.py

And voilà, you now get your csv wiithings ready files named Wiifit_[wii name].csv

Note: 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 .

4 Responses to "Export your datas from Wiifit to the Withings scale"

It seems that withings changed the import format. There is no «name», «height» and «fatfreemass» fields any more and the two date files are now one field of the format: “yyyy-mm-dd hh:mm:ss”. Nothing I could not fix myself. All data is not imported.