I just today switched to SDK 2.1 and I would like to start playing with the fit files through the FitContributor method.
Where can I find some clear documentation or working example to start?
Thanks in advance.
Yeah I do:<fitContributions>
<fitField id="0" displayInChart="true" sortOrder="0" precision="2"
chartTitle="@Strings.ItemNameLabel" displayInActivitySummary="true" dataLabel="@Strings.ItemNameLabel"
unitLabel="@Strings.Units" fillColor="#FF0000" />
</fitContributions>
Also, I can see the fields show up in the Connect mobile app under "Connect IQ" of any given workout. Maybe I'm just don't know where to look on the Connect website. I'll keep poking around. Also, as far as I can tell the monkeygraph tool only works with .iq files not .prg and it's only ever crashed on me. YMMV.
UPDATE: I'm now seeing my Fit developer fields on Garmin Connect under the activity details. I must have missed it before, sorry for wasting time here. Either way it's working now.
Rob
vPowerField = SimpleDataField.createField("vPower", 0, Fit.DATA_TYPE_UINT16, { :nativeNum=>34, :mesgType=>Fit.MESG_TYPE_RECORD, :units=>"watts" });
vPowerFieldMax = SimpleDataField.createField("vPower Max", 1, Fit.DATA_TYPE_UINT16, { :nativeNum=>121, :mesgType=>Fit.MESG_TYPE_SESSION, :units=>"watts" });
vPowerFieldAvg = SimpleDataField.createField("vPower Avg", 2, Fit.DATA_TYPE_UINT16, { :nativeNum=>120, :mesgType=>Fit.MESG_TYPE_SESSION, :units=>"watts" });
vPowerField.setData(0);
vPowerFieldMax.setData(0);
vPowerFieldAvg.setData(0);
<fitContributions>
<fitField id="0" displayInChart="true" sortOrder="0" precision="2"
chartTitle="@Strings.FieldChartTitle" dataLabel="@Strings.FieldName"
unitLabel="@Strings.FieldUnit" fillColor="#FF0000" />
<fitField id="1" displayInChart="false" displayInActivitySummary="true" sortOrder="1" precision="2"
dataLabel="@Strings.FieldNameMax"
unitLabel="@Strings.FieldUnit"/>
<fitField id="2" displayInChart="false" displayInActivitySummary="true" sortOrder="2" precision="2"
dataLabel="@Strings.FieldNameAvg"
unitLabel="@Strings.FieldUnit" />
</fitContributions>
Thanks for taking the time to respond ChubbyCrusher.
Yes, I use setData() on all my fields. As explained, I can see the recorded data successfully in the FIT file and the graph generates when viewed through monkeygraph as a test. So the data is there, but nowhere to be found in the mobile app or GC website.
Please help, this is VERY frustrating!
Thanks
Thanks MoxyRoger,
Yea, that was one of the things I checked and I do not have a side loaded app. My sessions actually do not want to automatically update to Strava (says file is corrupt). So something is wrong. I will remove all my files and add them one by one to test.
Thanks anyway.
Cheers