To start exploring, I've taken the sensor example (yes - it's a widget, but I need to start somewhere!) and modified it to show cadence sensor data, and graph it below the existing HR graph.
Seems to work using the simulator data, but when I get the simulator to use a fit file from a spin session that I've done the data seems a bit odd - in that it starts at 180 rpm, drops down to something normal, then goes up again to 188 rpm (no - I don't spin that fast). Viewing the data in Connect shows completely different data.
The code snippet shows I don't do anything difficult with the data - it just gets written out
function onSnsr(sensor_info)
{
var HR = sensor_info.heartRate;
var CD = sensor_info.cadence;
var bucket;
if( sensor_info.heartRate != null && sensor_info.cadence != null)
{
string_HR = HR.toString() + "bpm";
string_CD = CD.toString() + "rpm";
//Add value to graph
CD_graph.addItem(CD);
HR_graph.addItem(HR);
etc....
}
So not sure what's going on with the fit data. How can I 'see' what's in the fit file?
A couple of comments on the development docs:
1. Be useful if the UXguide had the number of data fields, and perhaps their layout, in Appendix A - devices (and details for the edge1000?)
2. More detail on permissions would be useful
3. A list of examples and a description of which features they demonstrate would be handy rather than having to look in each example every time.