Esimerkki Apple Health -harjoituksestaJSONVie

Todellinen, häviötön JSON-vienti Apple Health -juoksuharjoituksesta — harjoituksen hyötykuorma, reitti, näytteet ja yhteenveto versioidussa skeemassa. Lataa se tai katso rakenne alta.

sample-run.json
{
  "schemaVersion": 1,
  "exportedAt": "2026-04-05T08:00:00Z",
  "workout": {
    "uuid": "11111111-2222-3333-4444-555555555555",
    "activityType": "Running",
    "activityTypeRaw": 37,
    "startDate": "2026-04-05T08:00:00Z",
    "endDate": "2026-04-05T08:12:00Z",
    "duration": 720,
    "totalDistance": {
      "value": 1164.75,
      "unit": "m"
    },
    "totalEnergyBurned": {
      "value": 168,
      "unit": "kcal"
    },
    "totalSwimmingStrokeCount": null,
    "totalFlightsClimbed": null,
    "source": {
      "name": "Apple Watch",
      "bundleIdentifier": "com.apple.health",
      "deviceName": "Apple Watch",
      "deviceManufacturer": "Apple",
      "deviceModel": "Watch",
      "deviceHardwareVersion": null,
      "deviceSoftwareVersion": null
    },
    "metadata": null,
…  (283 more lines)

Mitä tämä JSON-tiedosto sisältää

Itsekuvaava kuori jossa schemaVersion: 1. Ylätason avaimet ovat workout, route, samples ja summary. Ihanteellinen Pythonille, muistikirjoille ja kielimallille syöttämiseen.

Vie omat harjoituksesi

Tämä on esimerkkijuoksu. Asenna Workout Exporter viedäksesi todelliset Apple Health- ja Apple Watch -harjoituksesi samalla tavalla.

Lataa App Storesta