03-10-2021 09:38
03-10-2021 09:38
Hello, we had a few instances recorded around March 8th 2021, where activity duration was initially greater that active duration and then getting corrected.
I have couple questions on this:
1. Is duration, activeDuration or originalDuration expected to be change?
2. What's the explanation for duration getting changed in the example below?
3. Can activeDuration ever be greater than duration?
Here is our example:
activeDuration: 1222000 => 1222000
duration: 1226000 => 1226000
originalDuration: 1226000 => 1226000
Activity as first fetched from fitbit (some fields where deleted):
{
"activeDuration": 1222000,
"activityName": "Treadmill",
"activityTypeId": 20049,
"averageHeartRate": 133,
"calories": 206,
"distance": 1.823421,
"distanceUnit": "Mile",
"duration": 1226000,
"elevationGain": 0,
"hasActiveZoneMinutes": true,
"lastModified": "2021-03-09T11:54:53.000Z",
"logId": 38126004557,
"logType": "tracker",
"manualValuesSpecified": {
"calories": false,
"distance": false,
"steps": false
},
"originalDuration": 1226000,
"originalStartTime": "2021-03-09T05:34:03.000-06:00",
"source": {
"id": "124206406",
"name": "Versa",
"trackerFeatures": [
"HEARTRATE",
"STEPS",
"CALORIES",
"DISTANCE"
],
"type": "tracker",
"url": "https://www.fitbit.com/"
},
"speed": 5.371777414075287,
"startTime": "2021-03-09T05:34:03.000-06:00",
"steps": 2626,
}
Activity after duration being corrected:
{
"activeDuration": 1222000,
"activityName": "Treadmill",
"activityTypeId": 20049,
"averageHeartRate": 133,
"calories": 206,
"distance": 1.823421,
"distanceUnit": "Mile",
"duration": 1350000,
"elevationGain": 0,
"hasActiveZoneMinutes": true,
"lastModified": "2021-03-09T12:25:32.000Z",
"logId": 38126004557,
"logType": "tracker",
"manualValuesSpecified": {
"calories": false,
"distance": false,
"steps": false
},
"originalDuration": 1350000,
"originalStartTime": "2021-03-09T05:34:03.000-06:00",
"source": {
"id": "124206406",
"name": "Versa",
"trackerFeatures": [
"DISTANCE",
"HEARTRATE",
"STEPS",
"CALORIES"
],
"type": "tracker",
"url": "https://www.fitbit.com/"
},
"speed": 5.371777414075287,
"startTime": "2021-03-09T05:34:03.000-06:00",
"steps": 2626,
}
Answered! Go to the Best Answer.
03-10-2021 17:22
03-10-2021 17:22
Hi @msirbu,
Welcome to the forums!
To answer your questions:
1. Is duration, activeDuration or originalDuration expected to be change?
2. What's the explanation for duration getting changed in the example below?
3. Can activeDuration ever be greater than duration?
I hope this helps. Let me know if you need additional clarification.
03-10-2021 17:22
03-10-2021 17:22
Hi @msirbu,
Welcome to the forums!
To answer your questions:
1. Is duration, activeDuration or originalDuration expected to be change?
2. What's the explanation for duration getting changed in the example below?
3. Can activeDuration ever be greater than duration?
I hope this helps. Let me know if you need additional clarification.
03-11-2021 02:25
03-11-2021 02:25
@JohnFitbitThanks for the quick reply and the explanation!
I just realized that I made a mistake and duration was never shorter than activeDuration in all of my examples. So this all makes sense now.