Skip to content

Instantly share code, notes, and snippets.

@bewest
Created May 5, 2023 00:01
Show Gist options
  • Save bewest/4c79cb90cbd5e14e0fad3c35b9ccddaf to your computer and use it in GitHub Desktop.
Save bewest/4c79cb90cbd5e14e0fad3c35b9ccddaf to your computer and use it in GitHub Desktop.
nightscout data examples, one of each core type.
{
"_id": "64542c86cb9fdd081dd8dec4",
"pump": {
"suspended": false,
"bolusing": false,
"manufacturer": "Medtronic",
"clock": "2023-05-04T22:07:02Z",
"reservoir": 146.4,
"secondsFromGMT": -25200,
"pumpID": "208850",
"model": "515",
"battery": {
"percent": 100
}
},
"created_at": "2023-05-04T22:07:02.000Z",
"device": "loop://iPhone",
"override": {
"active": false,
"timestamp": "2023-05-04T22:07:02Z"
},
"uploader": {
"battery": 89,
"timestamp": "2023-05-04T22:07:02Z",
"name": "iPhone"
},
"loop": {
"timestamp": "2023-05-04T22:07:02Z",
"failureReason": "communication(Optional(MinimedKit.PumpOpsError.rfCommsFailure(\"Short history page: 640 bytes. Expected 1024\")))",
"name": "Loop",
"version": "2.2.9"
},
"utcOffset": 0,
"mills": 1683238022000
}
{
"_id": "6450d61a140b3192ede119b2",
"type": "sgv",
"date": 1683019280436.8447,
"dateString": "2023-05-02T09:21:20.000Z",
"sgv": 236,
"device": "CGMBLEKit Dexcom G6 21.0",
"utcOffset": 0,
"sysTime": "2023-05-02T09:21:20.000Z"
}
{
"_id": "644d10cacb9fdd081dd8dada",
"mills": "1682772170282",
"units": "mg/dL",
"enteredBy": "Loop",
"loopSettings": {
"preMealTargetRange": [
64,
65
],
"scheduleOverride": {
"duration": 7200,
"targetRange": [
108,
112
],
"symbol": "โž–",
"insulinNeedsScaleFactor": 0.9,
"name": "less"
},
"minimumBGGuard": 55,
"maximumBolus": 9.9,
"maximumBasalRatePerHour": 6,
"deviceToken": "b37bba40759e47496f0663025af5ece63feb439c87ec595e75b9d378f72da323",
"bundleIdentifier": "com.5A8TKU9HN9.loopkit.Loop",
"dosingEnabled": true,
"overridePresets": [
{
"insulinNeedsScaleFactor": 0.5,
"name": "sleepin",
"symbol": "๐Ÿคธโ€โ™€๏ธ",
"duration": 3600,
"targetRange": [
120,
125
]
},
{
"targetRange": [
135,
136
],
"insulinNeedsScaleFactor": 1.5,
"name": "horse",
"symbol": "๐Ÿšตโ€โ™‚๏ธ",
"duration": 10800
},
{
"name": "basketball",
"symbol": "โ›น๏ธโ€โ™‚๏ธ",
"targetRange": [
165,
180
],
"insulinNeedsScaleFactor": 0.7,
"duration": 5400
},
{
"insulinNeedsScaleFactor": 0.8,
"symbol": "โšฝ๏ธ",
"duration": 8100,
"name": "soccer",
"targetRange": [
155,
170
]
},
{
"symbol": "๐ŸŽพ",
"targetRange": [
160,
165
],
"duration": 7200,
"name": "tennis"
},
{
"targetRange": [
110,
115
],
"name": "medicine",
"duration": 0,
"symbol": "๐Ÿน",
"insulinNeedsScaleFactor": 1.2
},
{
"symbol": "๐ŸŠโ€โ™‚๏ธ๐ŸŠโ€โ™‚๏ธ",
"duration": 6300,
"targetRange": [
150,
180
],
"insulinNeedsScaleFactor": 0.8,
"name": "swim"
},
{
"duration": 3600,
"symbol": "๐Ÿ’ƒ",
"insulinNeedsScaleFactor": 1.5,
"name": "extra"
},
{
"duration": 7200,
"targetRange": [
108,
112
],
"insulinNeedsScaleFactor": 0.9,
"symbol": "โž–",
"name": "less"
}
]
},
"store": {
"Default": {
"basal": [
{
"time": "00:00",
"value": 1.8,
"timeAsSeconds": 0
},
{
"time": "05:30",
"value": 1.7,
"timeAsSeconds": 19800
},
{
"value": 1.8,
"timeAsSeconds": 81000,
"time": "22:30"
}
],
"target_high": [
{
"value": 102,
"timeAsSeconds": 0,
"time": "00:00"
}
],
"dia": 6.166666666666667,
"delay": "0",
"carbs_hr": "0",
"timezone": "ETC/GMT+7",
"carbratio": [
{
"value": 10,
"time": "00:00",
"timeAsSeconds": 0
}
],
"target_low": [
{
"time": "00:00",
"value": 97,
"timeAsSeconds": 0
}
],
"sens": [
{
"timeAsSeconds": 0,
"time": "00:00",
"value": 40
}
]
}
},
"defaultProfile": "Default",
"startDate": "2023-04-29T12:42:50Z"
}
{
"_id": "64543006140b3192ed8e689a",
"programmed": 5.2,
"duration": 3.466666666666667,
"created_at": "2023-05-04T22:17:37.000Z",
"timestamp": "2023-05-04T22:17:37Z",
"insulin": 5.2,
"unabsorbed": 0,
"enteredBy": "loop://iPhone",
"eventType": "Correction Bolus",
"type": "normal",
"utcOffset": 0,
"carbs": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment