nike+ipodのデータはどこにあるのか
走ってきてシャワー浴びてマック立ち上げてnikeにつないで、うにうに線がのたくって、おー、今日も後半ナチュラルにビルドアップしてていい感じね、とかやってますけど、あれ、自分で管理したくなるじゃないですか。ほんでどこにデータがあるのかなって話です。これから走りにいくのですがあいにくiPodが充電不足なので充電しながら調べます。
でました。多分/Volumes/lopnor?'s? iPod/iPod_control/Device/Trainer/Workouts/Empeds以下にあるみたいです。
pingu:/Volumes/lopnor's iPod/iPod_Control/Device/Trainer/Workouts/Empeds/4H6416X5VSX lopnor$ ls -alh total 40 drwxr-xr-x 9 lopnor lopnor 306B Nov 25 10:51 . drwxrwxrwx 4 lopnor lopnor 136B Oct 28 11:18 .. -rwxr-xr-x 1 lopnor lopnor 56B Oct 28 11:36 best -rwxr-xr-x 1 lopnor lopnor 116B Oct 30 21:07 calibration -rwxr-xr-x 1 lopnor lopnor 452B Nov 22 08:18 lastWorkout.xml drwxr-xr-x 2 lopnor lopnor 68B Nov 22 08:50 latest -rwxr-xr-x 1 lopnor lopnor 531B Oct 28 11:18 preferences.xml -rw-r--r-- 1 lopnor lopnor 341B Oct 28 11:43 settings.plist drwxr-xr-x 11 lopnor lopnor 374B Nov 22 08:50 synched
あとは各ファイルをみていけば大丈夫っぽいね。とりあえずsynched以下に過去データが入ってると思う。
pingu:/Volumes/lopnor's iPod/iPod_Control/Device/Trainer/Workouts/Empeds/4H6416X5VSX/synched lopnor$ ls -al total 88 drwxr-xr-x 11 lopnor lopnor 374 Nov 25 10:58 . drwxr-xr-x 9 lopnor lopnor 306 Nov 25 10:52 .. -rwxr-xr-x 1 lopnor lopnor 2929 Oct 28 11:37 2006-10-28 11;36;57.xml -rwxr-xr-x 1 lopnor lopnor 2000 Oct 28 12:14 2006-10-28 12;14;01.xml -rwxr-xr-x 1 lopnor lopnor 1904 Oct 30 20:59 2006-10-30 20;59;27.xml -rwxr-xr-x 1 lopnor lopnor 3407 Oct 30 21:32 2006-10-30 21;32;56.xml -rwxr-xr-x 1 lopnor lopnor 3341 Nov 1 08:44 2006-11-01 08;44;23.xml -rwxr-xr-x 1 lopnor lopnor 3454 Nov 14 08:23 2006-11-14 08;23;23.xml -rwxr-xr-x 1 lopnor lopnor 3456 Nov 15 08:10 2006-11-15 08;10;26.xml -rwxr-xr-x 1 lopnor lopnor 4200 Nov 16 09:09 2006-11-16 09;09;29.xml -rwxr-xr-x 1 lopnor lopnor 5198 Nov 22 08:18 2006-11-22 08;18;03.xml
やっぱそうだね。じゃー、中身をみてみよう。
ちゅうかファイル名きもすぎないか。unixtimeの方がいい気がする。
pingu:/Volumes/lopnor's iPod/iPod_Control/Device/Trainer/Workouts/Empeds/4H6416X5VSX/synched lopnor$ cat 2006-11-22? 08?;18?;03.xml <?xml version="1.0" encoding="UTF-8"?> <sportsData><vers>2</vers> <runSummary><workoutName><![CDATA[基本]]></workoutName> <time>2006-11-22T07:29:04+09:00</time> <duration>2929925</duration> <durationString>48:49</durationString> <distance unit="km">10.0441</distance> <distanceString>10.04 km</distanceString> <pace>4:51 min/km</pace> <calories>516</calories> <battery></battery> <stepCounts><walkBegin>0</walkBegin> <walkEnd>44262</walkEnd> <runBegin>0</runBegin> <runEnd>42006</runEnd> </stepCounts> </runSummary> <template><templateID>8D495DCE</templateID> <templateName><![CDATA[基本]]></templateName> </template> <goal type="" value="" unit=""></goal> <userInfo><empedID>4H6416X5VSX</empedID> <weight>50.0</weight> <device>iPod</device> <calibration>0000000041700000019f00230000000041f0000004a1000000e4650400000000</calibration> </userInfo> <startTime>2006-11-22T07:29:04+09:00</startTime> <snapShotList snapShotType="kmSplit"><snapShot><duration>315226</duration> <distance>1.002</distance> <pace>345841</pace> </snapShot> <snapShot><duration>624631</duration> <distance>2.003</distance> <pace>298746</pace> </snapShot> <snapShot><duration>922770</duration> <distance>3.0</distance> <pace>295804</pace> </snapShot> <snapShot><duration>1214861</duration> <distance>4.0</distance> <pace>294332</pace> </snapShot> <snapShot><duration>1510989</duration> <distance>5.0</distance> <pace>298746</pace> </snapShot> <snapShot><duration>1797910</duration> <distance>6.003</distance> <pace>281085</pace> </snapShot> <snapShot><duration>2089915</duration> <distance>7.002</distance> <pace>286972</pace> </snapShot> <snapShot><duration>2369784</duration> <distance>8.002</distance> <pace>286972</pace> </snapShot> <snapShot><duration>2643415</duration> <distance>9.002</distance> <pace>281085</pace> </snapShot> <snapShot><duration>2923208</duration> <distance>10.003</distance> <pace>273730</pace> </snapShot> </snapShotList> <snapShotList snapShotType="mileSplit"><snapShot><duration>503038</duration> <distance>1.609</distance> <pace>328180</pace> </snapShot> <snapShot><duration>987106</duration> <distance>3.219</distance> <pace>298746</pace> </snapShot> <snapShot><duration>1460941</duration> <distance>4.831</distance> <pace>281085</pace> </snapShot> <snapShot><duration>1925524</duration> <distance>6.44</distance> <pace>288445</pace> </snapShot> <snapShot><duration>2383039</duration> <distance>8.049</distance> <pace>278144</pace> </snapShot> <snapShot><duration>2825236</duration> <distance>9.658</distance> <pace>279613</pace> </snapShot> </snapShotList> <snapShotList snapShotType="userClick"><snapShot event="stop"><duration>2929877</duration> <distance>10.044</distance> <pace>454936</pace> </snapShot> </snapShotList> <extendedDataList><extendedData dataType="distance" intervalType="time" intervalUnit="s" intervalValue="10">0.001, 0.0251, 0.0555, 0.0869, 0.1184, 0.1401, 0.1807, 0.214, 0.2465, 0.2761, 0.3084, 0.3406, 0.3695, 0.4043, 0.4366, 0.4693, 0.4984, 0.5314, 0.5641, 0.5946, 0.6265, 0.6588, 0.6906, 0.7233, 0.7566, 0.7865, 0.8192, 0.8497, 0.8831, 0.9212, 0.952, 0.9868, 1.0155, 1.0476, 1.0764, 1.1031, 1.1373, 1.1682, 1.2024, 1.239, 1.2714, 1.3077, 1.3417, 1.376, 1.4098, 1.4381, 1.4699, 1.5044, 1.5367, 1.5694, 1.6006, 1.6325, 1.662, 1.6943, 1.7285, 1.7567, 1.7906, 1.824, 1.8583, 1.8887, 1.9154, 1.9558, 1.9859, 2.0197, 2.0541, 2.0868, 2.1175, 2.154, 2.1837, 2.2174, 2.2509, 2.2813, 2.3159, 2.3527, 2.384, 2.4179, 2.4528, 2.4885, 2.5183, 2.5522, 2.5861, 2.6175, 2.6517, 2.6847, 2.7197, 2.7509, 2.7859, 2.8201, 2.8582, 2.8894, 2.924, 2.9549, 2.9902, 3.0248, 3.0596, 3.092, 3.1275, 3.1612, 3.1958, 3.23, 3.2657, 3.3008, 3.332, 3.3675, 3.4026, 3.4342, 3.4686, 3.5043, 3.539, 3.575, 3.6101, 3.6407, 3.676, 3.71, 3.7448, 3.7806, 3.8166, 3.8487, 3.8826, 3.9172, 3.9526, 3.9834, 4.0212, 4.0494, 4.0866, 4.1216, 4.1524, 4.18, 4.222, 4.2564, 4.2876, 4.322, 4.358, 4.3895, 4.4226, 4.4527, 4.4881, 4.5219, 4.5536, 4.5892, 4.6262, 4.661, 4.6929, 4.7255, 4.7599, 4.7953, 4.8277, 4.8625, 4.8975, 4.9284, 4.9664, 4.997, 5.0318, 5.0665, 5.1023, 5.1322, 5.1679, 5.1996, 5.2388, 5.2751, 5.3076, 5.3442, 5.3804, 5.4165, 5.4495, 5.4851, 5.5208, 5.5564, 5.5883, 5.6248, 5.6616, 5.6943, 5.7302, 5.7695, 5.8025, 5.8382, 5.8699, 5.906, 5.9415, 5.9739, 6.0103, 6.0461, 6.0773, 6.1121, 6.1476, 6.1821, 6.2168, 6.2519, 6.2835, 6.3179, 6.3527, 6.3881, 6.4232, 6.4546, 6.491, 6.5233, 6.5497, 6.5809, 6.6157, 6.6505, 6.6862, 6.7182, 6.7541, 6.7895, 6.8255, 6.8619, 6.8982, 6.934, 6.9664, 7.0023, 7.0387, 7.0714, 7.1079, 7.1484, 7.1813, 7.2142, 7.2515, 7.2856, 7.3231, 7.3597, 7.3965, 7.4313, 7.4704, 7.5067, 7.5402, 7.578, 7.6153, 7.6476, 7.6701, 7.7192, 7.7567, 7.7898, 7.8259, 7.8628, 7.8947, 7.9341, 7.9699, 8.002, 8.0381, 8.0714, 8.1083, 8.1486, 8.183, 8.2202, 8.2574, 8.2904, 8.3289, 8.3689, 8.4067, 8.4398, 8.4759, 8.5176, 8.5514, 8.5853, 8.6269, 8.6611, 8.7017, 8.7361, 8.7687, 8.8098, 8.8472, 8.8801, 8.9181, 8.9549, 8.9884, 9.0139, 9.067, 9.0994, 9.1366, 9.1731, 9.2072, 9.2433, 9.2772, 9.3147, 9.3538, 9.3898, 9.4216, 9.4582, 9.4944, 9.5285, 9.5664, 9.6063, 9.6398, 9.6758, 9.7046, 9.7487, 9.7806, 9.8135, 9.8481, 9.8838, 9.9205, 9.9561, 9.9921</extendedData> </extendedDataList> </sportsData>
きもいなぁ。後で読む。snapshotをいっぱいとってて、それでペースの変動がわかるみたいだね。でも結局最後のExtendedDataListっちゅうcsvか、という。