Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mar5477/15490d3bc5e82ff9190842e6ffea783f to your computer and use it in GitHub Desktop.
Save mar5477/15490d3bc5e82ff9190842e6ffea783f to your computer and use it in GitHub Desktop.
Device Status before failure to upload
{
"_id": {
"$oid": "5903e2d399f5900c00419260"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.933,
"activity": 0.0174,
"bolussnooze": 0,
"basaliob": 0.744,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T00:46:57.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 185,
"tick": -4,
"eventualBG": 125,
"snoozeBG": 125,
"insulinReq": 0.04,
"reservoir": null,
"deliverAt": "2017-04-29T00:47:48.237Z",
"predBGs": {
"IOB": [
185,
179,
174,
168,
163,
159,
154,
150,
146,
143,
140,
137,
135,
132,
131,
129,
128,
126,
125,
124,
124,
123,
122,
122,
121,
121,
121,
120
]
},
"COB": 0,
"IOB": 0.933,
"reason": "COB: 0, Dev: -4, BGI: -5.22, ISF: 60, Target: 100; Eventual BG 125 >= 110, temp 0.8 >~ req 0.8U/hr",
"timestamp": "2017-04-29T00:47:48.000Z"
},
"enacted": {
"insulinReq": 0.05,
"bg": 197,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 128,
"recieved": true,
"rate": 0.8,
"IOB": 1.176,
"reason": "COB: 0, Dev: 2, BGI: -6.36, ISF: 60, Target: 100; Eventual BG 128 >= 110, 29m@1.13 > 2 * insulinReq. Setting temp basal of 0.8U/hr",
"COB": 0,
"eventualBG": 128,
"timestamp": "2017-04-29T00:34:41.000Z",
"duration": 30,
"tick": -7,
"deliverAt": "2017-04-29T00:34:36.852Z"
}
},
"pump": {
"clock": "2017-04-28T19:46:57-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112.4,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T00:47:41.000Z"
}
},
"uploader": {
"batteryVoltage": 3754,
"battery": 57
},
"created_at": "2017-04-29T00:48:19.536Z"
}
#DELETED
"_id": {
"$oid": "5903e34e99f5900c00419262"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.904,
"activity": 0.0168,
"bolussnooze": 0,
"basaliob": 0.725,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T00:48:43.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 180,
"tick": -5,
"eventualBG": 121,
"snoozeBG": 121,
"insulinReq": 0.02,
"reservoir": null,
"deliverAt": "2017-04-29T00:49:32.890Z",
"predBGs": {
"IOB": [
180,
174,
169,
163,
159,
154,
149,
145,
142,
138,
135,
132,
130,
128,
127,
125,
124,
122,
121,
120,
120,
119,
118,
118,
117,
117,
117,
117,
117,
116
]
},
"COB": 0,
"IOB": 0.904,
"reason": "COB: 0, Dev: -5, BGI: -5.04, ISF: 60, Target: 100; Eventual BG 121 >= 110, temp 0.8 >~ req 0.75U/hr",
"timestamp": "2017-04-29T00:49:32.000Z"
},
"enacted": {
"insulinReq": 0.05,
"bg": 197,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 128,
"recieved": true,
"rate": 0.8,
"IOB": 1.176,
"reason": "COB: 0, Dev: 2, BGI: -6.36, ISF: 60, Target: 100; Eventual BG 128 >= 110, 29m@1.13 > 2 * insulinReq. Setting temp basal of 0.8U/hr",
"COB": 0,
"eventualBG": 128,
"timestamp": "2017-04-29T00:34:41.000Z",
"duration": 30,
"tick": -7,
"deliverAt": "2017-04-29T00:34:36.852Z"
}
},
"pump": {
"clock": "2017-04-28T19:48:43-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112.4,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T00:49:26.000Z"
}
},
"uploader": {
"batteryVoltage": 3755,
"battery": 58
},
"created_at": "2017-04-29T00:50:22.965Z"
}
DELETED
"_id": {
"$oid": "5903e3c499f5900c00419263"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.904,
"activity": 0.0168,
"bolussnooze": 0,
"basaliob": 0.725,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T00:48:43.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 180,
"tick": -5,
"eventualBG": 121,
"snoozeBG": 121,
"insulinReq": 0.02,
"reservoir": null,
"deliverAt": "2017-04-29T00:49:32.890Z",
"predBGs": {
"IOB": [
180,
174,
169,
163,
159,
154,
149,
145,
142,
138,
135,
132,
130,
128,
127,
125,
124,
122,
121,
120,
120,
119,
118,
118,
117,
117,
117,
117,
117,
116
]
},
"COB": 0,
"IOB": 0.904,
"reason": "COB: 0, Dev: -5, BGI: -5.04, ISF: 60, Target: 100; Eventual BG 121 >= 110, temp 0.8 >~ req 0.75U/hr",
"timestamp": "2017-04-29T00:49:32.000Z"
},
"enacted": {
"insulinReq": 0.05,
"bg": 197,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 128,
"recieved": true,
"rate": 0.8,
"IOB": 1.176,
"reason": "COB: 0, Dev: 2, BGI: -6.36, ISF: 60, Target: 100; Eventual BG 128 >= 110, 29m@1.13 > 2 * insulinReq. Setting temp basal of 0.8U/hr",
"COB": 0,
"eventualBG": 128,
"timestamp": "2017-04-29T00:34:41.000Z",
"duration": 30,
"tick": -7,
"deliverAt": "2017-04-29T00:34:36.852Z"
}
},
"pump": {
"clock": "2017-04-28T19:48:43-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112.4,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T00:49:26.000Z"
}
},
"uploader": {
"batteryVoltage": 3745,
"battery": 57
},
"created_at": "2017-04-29T00:52:20.482Z"
}
{
"_id": {
"$oid": "5903e43d99f5900c00419265"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.834,
"activity": 0.0162,
"bolussnooze": 0,
"basaliob": 0.681,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T00:53:01.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 180,
"tick": -5,
"eventualBG": 124,
"snoozeBG": 124,
"insulinReq": 0.02,
"reservoir": null,
"deliverAt": "2017-04-29T00:53:51.603Z",
"predBGs": {
"IOB": [
180,
174,
169,
163,
159,
154,
150,
146,
142,
139,
136,
134,
132,
130,
128,
127,
126,
125,
124,
123,
122,
122,
121,
121,
120
]
},
"COB": 0,
"IOB": 0.834,
"reason": "COB: 0, Dev: -6, BGI: -4.86, ISF: 60, Target: 100; Eventual BG 124 >= 110, temp 0.8 >~ req 0.75U/hr",
"timestamp": "2017-04-29T00:53:51.000Z"
},
"enacted": {
"insulinReq": 0.05,
"bg": 197,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 128,
"recieved": true,
"rate": 0.8,
"IOB": 1.176,
"reason": "COB: 0, Dev: 2, BGI: -6.36, ISF: 60, Target: 100; Eventual BG 128 >= 110, 29m@1.13 > 2 * insulinReq. Setting temp basal of 0.8U/hr",
"COB": 0,
"eventualBG": 128,
"timestamp": "2017-04-29T00:34:41.000Z",
"duration": 30,
"tick": -7,
"deliverAt": "2017-04-29T00:34:36.852Z"
}
},
"pump": {
"clock": "2017-04-28T19:53:01-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112.3,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T00:53:45.000Z"
}
},
"uploader": {
"batteryVoltage": 3751,
"battery": 57
},
"created_at": "2017-04-29T00:54:21.492Z"
}
{
"_id": {
"$oid": "5903e88d99f5900c0041926c"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.574,
"activity": 0.0138,
"bolussnooze": 0,
"basaliob": 0.505,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T01:10:40.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 158,
"tick": -4,
"eventualBG": 116,
"snoozeBG": 116,
"insulinReq": 0,
"reservoir": null,
"deliverAt": "2017-04-29T01:11:27.212Z",
"COB": 0,
"IOB": 0.574,
"reason": "COB: 0, Dev: -8, BGI: -4.14, ISF: 60, Target: 100; Eventual BG 116 > 100 but Min. Delta -5.48 < Exp. Delta -5; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"duration": 30,
"rate": 0.7,
"timestamp": "2017-04-29T01:11:27.000Z"
},
"enacted": {
"insulinReq": 0,
"bg": 158,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 116,
"recieved": true,
"predBGs": {
"IOB": [
158,
153,
148,
143,
139,
135,
131,
128,
126,
124,
122,
120,
119,
118,
117,
116,
115,
115,
114,
114,
113,
113,
113,
113,
112
]
},
"rate": 0.675,
"IOB": 0.574,
"reason": "COB: 0, Dev: -8, BGI: -4.14, ISF: 60, Target: 100; Eventual BG 116 > 100 but Min. Delta -5.48 < Exp. Delta -5; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"COB": 0,
"eventualBG": 116,
"timestamp": "2017-04-29T01:11:31.000Z",
"duration": 30,
"tick": -4,
"deliverAt": "2017-04-29T01:11:27.212Z"
}
},
"pump": {
"clock": "2017-04-28T20:12:15-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112.1,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T01:11:21.000Z"
}
},
"uploader": {
"batteryVoltage": 3749,
"battery": 57
},
"created_at": "2017-04-29T01:12:45.486Z"
}
{
"_id": {
"$oid": "5903ea5d99f5900c00419272"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.458,
"activity": 0.0124,
"bolussnooze": 0,
"basaliob": 0.42,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T01:19:49.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 146,
"tick": -8,
"eventualBG": 102,
"snoozeBG": 102,
"insulinReq": 0,
"reservoir": null,
"deliverAt": "2017-04-29T01:20:03.321Z",
"predBGs": {
"IOB": [
146,
138,
131,
125,
119,
114,
110,
106,
103,
100,
98,
97,
96,
95,
94,
93,
93,
92,
92,
92,
91
]
},
"COB": 0,
"IOB": 0.463,
"reason": "COB: 0, Dev: -16, BGI: -3.72, ISF: 60, Target: 100; Eventual BG 102 > 100 but Min. Delta -8.00 < Exp. Delta -3.8, temp 0.675 ~ req 0.7U/hr",
"timestamp": "2017-04-29T01:20:03.000Z"
},
"enacted": {
"insulinReq": 0,
"bg": 158,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 116,
"recieved": true,
"rate": 0.675,
"IOB": 0.574,
"reason": "COB: 0, Dev: -8, BGI: -4.14, ISF: 60, Target: 100; Eventual BG 116 > 100 but Min. Delta -5.48 < Exp. Delta -5; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"COB": 0,
"eventualBG": 116,
"timestamp": "2017-04-29T01:11:31.000Z",
"duration": 30,
"tick": -4,
"deliverAt": "2017-04-29T01:11:27.212Z"
}
},
"pump": {
"clock": "2017-04-28T20:19:49-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T01:20:12.000Z"
}
},
"uploader": {
"batteryVoltage": 3738,
"battery": 56
},
"created_at": "2017-04-29T01:20:29.284Z"
}
{
"_id": {
"$oid": "5903ead199f5900c00419273"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.435,
"activity": 0.012,
"bolussnooze": 0,
"basaliob": 0.402,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T01:21:47.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 146,
"tick": -8,
"eventualBG": 103,
"snoozeBG": 103,
"insulinReq": 0,
"reservoir": null,
"deliverAt": "2017-04-29T01:22:00.392Z",
"predBGs": {
"IOB": [
146,
138,
131,
125,
119,
114,
110,
106,
103,
101,
99,
97,
96,
95,
95,
94,
94,
93,
93,
92
]
},
"COB": 0,
"IOB": 0.44,
"reason": "COB: 0, Dev: -17, BGI: -3.63, ISF: 60, Target: 100; Eventual BG 103 > 100 but Min. Delta -8.00 < Exp. Delta -3.8, temp 0.675 ~ req 0.7U/hr",
"timestamp": "2017-04-29T01:22:00.000Z"
},
"enacted": {
"insulinReq": 0,
"bg": 158,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 116,
"recieved": true,
"rate": 0.675,
"IOB": 0.574,
"reason": "COB: 0, Dev: -8, BGI: -4.14, ISF: 60, Target: 100; Eventual BG 116 > 100 but Min. Delta -5.48 < Exp. Delta -5; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"COB": 0,
"eventualBG": 116,
"timestamp": "2017-04-29T01:11:31.000Z",
"duration": 30,
"tick": -4,
"deliverAt": "2017-04-29T01:11:27.212Z"
}
},
"pump": {
"clock": "2017-04-28T20:21:47-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 112,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T01:22:11.000Z"
}
},
"uploader": {
"batteryVoltage": 3751,
"battery": 57
},
"created_at": "2017-04-29T01:22:25.851Z"
}
DELETED
"_id": {
"$oid": "5903ebc499f5900c00419275"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.391,
"activity": 0.0113,
"bolussnooze": 0,
"basaliob": 0.367,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T01:25:45.000Z"
},
"enacted": {
"insulinReq": 0,
"bg": 158,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 116,
"recieved": true,
"predBGs": {
"IOB": [
158,
153,
148,
143,
139,
135,
131,
128,
126,
124,
122,
120,
119,
118,
117,
116,
115,
115,
114,
114,
113,
113,
113,
113,
112
]
},
"rate": 0.675,
"IOB": 0.574,
"reason": "COB: 0, Dev: -8, BGI: -4.14, ISF: 60, Target: 100; Eventual BG 116 > 100 but Min. Delta -5.48 < Exp. Delta -5; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"COB": 0,
"eventualBG": 116,
"timestamp": "2017-04-29T01:11:31.000Z",
"duration": 30,
"tick": -4,
"deliverAt": "2017-04-29T01:11:27.212Z"
}
},
"pump": {
"clock": "2017-04-28T20:25:45-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 111.9,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T01:26:24.000Z"
}
},
"uploader": {
"batteryVoltage": 3744,
"battery": 56
},
"created_at": "2017-04-29T01:26:28.688Z"
}
DELETED
"_id": {
"$oid": "5903ec3c99f5900c00419276"
},
"device": "openaps://danny",
"openaps": {
"iob": {
"iob": 0.373,
"activity": 0.011,
"bolussnooze": 0,
"basaliob": 0.353,
"netbasalinsulin": 1.4,
"hightempinsulin": 1.4,
"microBolusInsulin": 0,
"microBolusIOB": 0,
"lastBolusTime": 1493419761000,
"timestamp": "2017-04-29T01:27:24.000Z"
},
"suggested": {
"temp": "absolute",
"bg": 146,
"tick": -8,
"eventualBG": 105,
"snoozeBG": 105,
"insulinReq": 0,
"reservoir": null,
"deliverAt": "2017-04-29T01:28:03.053Z",
"COB": 0,
"IOB": 0.373,
"reason": "COB: 0, Dev: -19, BGI: -3.3, ISF: 60, Target: 100; Eventual BG 105 > 100 but Min. Delta -8.00 < Exp. Delta -3.6; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"duration": 30,
"rate": 0.7,
"timestamp": "2017-04-29T01:28:03.000Z"
},
"enacted": {
"insulinReq": 0,
"bg": 146,
"reservoir": null,
"temp": "absolute",
"snoozeBG": 105,
"recieved": true,
"predBGs": {
"IOB": [
146,
138,
131,
125,
120,
115,
111,
107,
104,
102,
100,
99,
98,
97,
97,
96,
96,
95,
95,
95,
95,
95,
94
]
},
"rate": 0.675,
"IOB": 0.373,
"reason": "COB: 0, Dev: -19, BGI: -3.3, ISF: 60, Target: 100; Eventual BG 105 > 100 but Min. Delta -8.00 < Exp. Delta -3.6; setting current basal of 0.7 as temp. Setting neutral temp basal of 0.7U/hr",
"COB": 0,
"eventualBG": 105,
"timestamp": "2017-04-29T01:28:11.000Z",
"duration": 30,
"tick": -8,
"deliverAt": "2017-04-29T01:28:03.053Z"
}
},
"pump": {
"clock": "2017-04-28T20:27:24-05:00",
"battery": {
"status": "normal",
"voltage": 1.4
},
"reservoir": 111.9,
"status": {
"status": "normal",
"bolusing": false,
"suspended": false,
"timestamp": "2017-04-29T01:28:17.000Z"
}
},
"uploader": {
"batteryVoltage": 3751,
"battery": 57
},
"created_at": "2017-04-29T01:28:28.650Z"
}
2017-04-28T19:38:09 189
2017-04-28T19:43:09 185
2017-04-28T19:48:09 180
2017-04-28T19:53:09 173
2017-04-28T19:58:09 167
2017-04-28T20:03:09 162
2017-04-28T20:08:09 158
2017-04-28T20:13:09 154
2017-04-28T20:18:09 146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment