feat: implement Haptika PPG and Watch V1

This commit is contained in:
Sacha
2026-07-31 16:19:42 +02:00
parent 6b7d4e0728
commit b9930b7378
249 changed files with 46475 additions and 122 deletions
+66
View File
@@ -0,0 +1,66 @@
{
"schemaVersion": 1,
"measurementEnvelope": {
"schemaVersion": 1,
"eventId": "11111111-1111-4111-8111-111111111111",
"deviceId": "watch-series-10-test",
"sequence": 42,
"sentAt": "2026-07-20T09:00:01.000Z",
"kind": "measurementUpsert",
"payload": {
"schemaVersion": 1,
"id": "22222222-2222-4222-8222-222222222222",
"updatedAt": "2026-07-20T09:00:01.000Z",
"startedAt": "2026-07-20T08:59:00.000Z",
"endedAt": "2026-07-20T09:00:00.000Z",
"source": "appleWatchOptical",
"device": {
"id": "watch-series-10-test",
"name": "Apple Watch de test",
"model": "Watch7,8",
"systemVersion": "11.0"
},
"currentBpm": 72,
"averageBpm": 71.5,
"minimumBpm": 68,
"maximumBpm": 75,
"samples": [
{"offsetSeconds": 0, "bpm": 70},
{"offsetSeconds": 7, "bpm": 71},
{"offsetSeconds": 14, "bpm": 72},
{"offsetSeconds": 21, "bpm": 70},
{"offsetSeconds": 28, "bpm": 73},
{"offsetSeconds": 35, "bpm": 71},
{"offsetSeconds": 42, "bpm": 73},
{"offsetSeconds": 50, "bpm": 72}
],
"coverage": 0.8333333333,
"quality": 0.83,
"valid": true,
"invalidReason": null,
"context": {
"atRest": true,
"posture": "seated",
"recentExercise": false,
"recentCaffeine": false,
"recentMeal": false
},
"feeling": {"score": 4, "recordedAt": "2026-07-20T09:00:00.000Z"}
}
},
"tombstoneEnvelope": {
"schemaVersion": 1,
"eventId": "33333333-3333-4333-8333-333333333333",
"deviceId": "watch-series-10-test",
"sequence": 43,
"sentAt": "2026-07-20T09:05:00.000Z",
"kind": "tombstone",
"payload": {
"schemaVersion": 1,
"entityId": "22222222-2222-4222-8222-222222222222",
"entityKind": "measurement",
"deletedAt": "2026-07-20T09:05:00.000Z",
"updatedAt": "2026-07-20T09:05:00.000Z"
}
}
}