Snippets

Steven Santa Maria Activity Segments

Updated by Steven Santa Maria

File activity_segments.json Modified

  • Ignore whitespace
  • Hide word diff
 
 // Strava
 {
-    "calories": 0, // not available, always 0
-    "createdAt": "2019-07-30T23:02:49.348Z",
-    "distance": 6229.5,
-    "duration": 1014,
-    "endTime": "2019-07-30T21:40:41.000Z",
-    "humanId": "d225f13702f3786b9059aaea1cc0f604",
-    "id": "5d40cc9921732901002578ef",
+    "calories": 2607.9, // only available for certain activities like bike rides or virtual bike rides
+    "createdAt": "2021-03-06T15:11:16.753Z",
+    "distance": 96822.2,
+    "duration": 18642,
+    "endTime": "2021-03-06T15:06:01.000Z",
+    "humanId": "a05250377da06cb3aaa992ffe68778c9",
+    "id": "60439b94366d7bcbcf911744",
     "source": "strava",
     "sourceData": {
-        "average_speed": 6.757,
-        "max_speed": 13.5,
-        "moving_time": 922
+        "average_speed": 6.165,
+        "average_watts": 166.1,
+        "kilojoules": 2607.9,
+        "max_speed": 12.7,
+        "moving_time": 15705
     },
-    "startTime": "2019-07-30T21:23:47.000Z",
+    "startTime": "2021-03-06T09:55:19.000Z",
     "steps": 0, // not available, always 0
     "type": "bike",
-    "tzOffset": "-04:00",
-    "updatedAt": "2019-07-30T23:02:49.348Z",
-    "userId": "59f2183cbc9de30100f9c59e"
+    "tzOffset": "+01:00",
+    "updatedAt": "2021-03-06T15:11:16.753Z",
+    "userId": "5bc5ac6d4afaa9dcead0d58a"
 }
 
 // Healthkit
Updated by Steven Santa Maria

File activity_segments.json Modified

  • Ignore whitespace
  • Hide word diff
     "userId": "5bf20368cbacae271db5a594"
 }
 
-// Runkeeper
-{
-    "calories": 218,
-    "createdAt": "2019-07-29T21:18:52.753Z",
-    "distance": 3045.65,
-    "duration": 3297,
-    "endTime": "2019-07-29T12:07:08.000Z",
-    "humanId": "176694a200abbc29c1cdca9ceb26a71b",
-    "id": "5d3f62bc937f4c0100e79ab7",
-    "source": "runkeeper",
-    "sourceData": {},
-    "startTime": "2019-07-29T11:12:11.000Z",
-    "steps": 0, // not available, always 0
-    "type": "walking",
-    "tzOffset": "-06:00",
-    "updatedAt": "2019-07-29T21:18:52.753Z",
-    "userId": "5968ccf6a7d4b301007eb546"
-}
-
 // MyFitnessPal
 {
     "calories": 339,
Updated by Steven Santa Maria

File activity_segments.json Modified

  • Ignore whitespace
  • Hide word diff
     "tzOffset": "-04:00",
     "updatedAt": "2019-07-30T23:02:49.348Z",
     "userId": "59f2183cbc9de30100f9c59e"
+}
+
+// Healthkit
+{
+    "calories": 187,
+    "createdAt": "2020-09-03T19:11:36.706Z",
+    "distance": 3583.945,
+    "duration": 2534,
+    "endTime": "2020-09-03T18:19:29.455Z",
+    "humanId": "a752730822df878d6297a564b957a502",
+    "id": "5f513fef60618b2f90758dc7",
+    "source": "5541a9678e7192cb4fb34fed",
+    "sourceData": {
+        "originalSource": "com.apple.health",
+        "sampleType": "HKWorkoutTypeIdentifier"
+    },
+    "startTime": "2020-09-03T17:37:15.869Z",
+    "steps": 0, // not available, always 0
+    "type": "Walking",
+    "tzOffset": "-05:00",
+    "updatedAt": "2020-09-03T19:11:36.706Z",
+    "userId": "5e12371b5a800f7cf6373aef"
 }
Updated by Steven Santa Maria

File activity_segments.json Added

  • Ignore whitespace
  • Hide word diff
+// Fitbit
+{
+    "calories": 341,
+    "createdAt": "2019-07-30T22:48:24.514Z",
+    "distance": 3227.489,
+    "duration": 1359,
+    "endTime": "2016-06-21T12:44:57.000Z",
+    "humanId": "644d77d885c683a75bf07f4a455c5acc",
+    "id": "5d40c9385a89b30100c1cee3",
+    "source": "fitbit",
+    "sourceData": {
+        "logType": "tracker"
+    },
+    "startTime": "2016-06-21T12:22:18.000Z",
+    "steps": 3423,
+    "timeSeries": {},
+    "type": "run",
+    "tzOffset": "-04:00",
+    "updatedAt": "2019-07-30T22:48:24.514Z",
+    "userId": "5bde68687469d819c6f5d6de"
+}
+
+// Garmin
+{
+    "calories": 263,
+    "createdAt": "2019-07-30T22:46:32.948Z",
+    "distance": 4839.04,
+    "duration": 1776,
+    "endTime": "2019-07-30T22:36:48.000Z",
+    "humanId": "89b9ab25e61ab4638c57ce847a530014",
+    "id": "5d40c8c8b4dffc01006d3623",
+    "source": "garmin",
+    "sourceData": {
+        "averageHeartRateInBeatsPerMinute": 158,
+        "averagePaceInMinutesPerKilometer": 6.118453,
+        "averageRunCadenceInStepsPerMinute": 89,
+        "averageSpeedInMetersPerSecond": 2.724,
+        "maxHeartRateInBeatsPerMinute": 176,
+        "maxPaceInMinutesPerKilometer": 5.132943,
+        "maxRunCadenceInStepsPerMinute": 93,
+        "maxSpeedInMetersPerSecond": 3.247,
+        "totalElevationGainInMeters": 167,
+        "totalElevationLossInMeters": 182
+    },
+    "startTime": "2019-07-30T22:07:12.000Z",
+    "steps": 5304,
+    "type": "run",
+    "tzOffset": "-04:00",
+    "updatedAt": "2019-07-30T22:46:32.948Z",
+    "userId": "5bf20368cbacae271db5a594"
+}
+
+// Runkeeper
+{
+    "calories": 218,
+    "createdAt": "2019-07-29T21:18:52.753Z",
+    "distance": 3045.65,
+    "duration": 3297,
+    "endTime": "2019-07-29T12:07:08.000Z",
+    "humanId": "176694a200abbc29c1cdca9ceb26a71b",
+    "id": "5d3f62bc937f4c0100e79ab7",
+    "source": "runkeeper",
+    "sourceData": {},
+    "startTime": "2019-07-29T11:12:11.000Z",
+    "steps": 0, // not available, always 0
+    "type": "walking",
+    "tzOffset": "-06:00",
+    "updatedAt": "2019-07-29T21:18:52.753Z",
+    "userId": "5968ccf6a7d4b301007eb546"
+}
+
+// MyFitnessPal
+{
+    "calories": 339,
+    "createdAt": "2019-07-30T22:59:41.709Z",
+    "distance": 0, // not available, always 0
+    "duration": 4080,
+    "endTime": "2019-07-30T12:22:00.000Z",
+    "humanId": "338bf87b18ca0b9b2fb5aaf4c39fd4a2",
+    "id": "5d40cbddda7f6901001505f1",
+    "source": "myfitnesspal",
+    "sourceData": {
+        "avg_heart_rate": null,
+        "max_heart_rate": null
+    },
+    "startTime": "2019-07-30T11:14:00.000Z",
+    "steps": 0, // not available, always 0
+    "type": "Bicycling, 10-12 mph, light (cycling, biking, bike riding)",
+    "tzOffset": "+00:00",
+    "updatedAt": "2019-07-30T22:59:41.709Z",
+    "userId": "5d1e18815a8242fce073cac9"
+}
+
+// Google Fit
+{
+    "calories": 8.71,
+    "createdAt": "2019-07-30T17:01:33.021Z",
+    "distance": 16.01,
+    "duration": 77,
+    "endTime": "2019-07-30T16:33:01.485Z",
+    "humanId": "51d6716b41ce4295dbc6649f9c07c792",
+    "id": "5d4077ec0a156901006112b7",
+    "source": "googlefit",
+    "sourceData": {},
+    "startTime": "2019-07-30T16:31:44.054Z",
+    "steps": 26,
+    "type": "Walking",
+    "tzOffset": "-05:00",
+    "updatedAt": "2019-07-30T17:01:33.021Z",
+    "userId": "596bcc591346630100ea3cb8"
+}
+
+// MapMyFitness
+{
+    "calories": 322,
+    "createdAt": "2019-07-29T10:10:54.210Z",
+    "distance": 6223,
+    "duration": 1964,
+    "endTime": "2019-07-29T10:09:28.000Z",
+    "humanId": "c750037157e22aca303e95b6bf1fb8ee",
+    "id": "5d3ec62ee2b8f401002d546b",
+    "source": "mapmyfitness",
+    "sourceData": {
+        "workout_description": "Ran 3.87 mi on 07/29/19"
+    },
+    "startTime": "2019-07-29T09:36:44.000Z",
+    "steps": 5240,
+    "type": "run",
+    "tzOffset": "-04:00",
+    "updatedAt": "2019-07-29T10:10:54.210Z",
+    "userId": "57267f7784f1550100ea08f6"
+}
+
+// Strava
+{
+    "calories": 0, // not available, always 0
+    "createdAt": "2019-07-30T23:02:49.348Z",
+    "distance": 6229.5,
+    "duration": 1014,
+    "endTime": "2019-07-30T21:40:41.000Z",
+    "humanId": "d225f13702f3786b9059aaea1cc0f604",
+    "id": "5d40cc9921732901002578ef",
+    "source": "strava",
+    "sourceData": {
+        "average_speed": 6.757,
+        "max_speed": 13.5,
+        "moving_time": 922
+    },
+    "startTime": "2019-07-30T21:23:47.000Z",
+    "steps": 0, // not available, always 0
+    "type": "bike",
+    "tzOffset": "-04:00",
+    "updatedAt": "2019-07-30T23:02:49.348Z",
+    "userId": "59f2183cbc9de30100f9c59e"
+}

File activity_segments.md Deleted

  • Ignore whitespace
  • Hide word diff
Empty file removed.
Created by Steven Santa Maria

File activity_segments.md Added

  • Ignore whitespace
  • Hide word diff
Empty file added.
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.