You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point, it would be helpful to analyze your existing data. Use whichever tools you prefer, but it would be helpful to see if your basal rates are somewhere in the ballpark of being correct; same for ISF and DIA. Consider using Nightscout reports, Dexcom Studio/Clarity, or your tool of choice.
3
+
At this point, it would be helpful to analyze your existing data. Use
4
+
whichever tools you prefer, but it would be helpful to see if your basal
5
+
rates are somewhere in the ballpark of being correct; same for ISF and
6
+
DIA. Consider using Nightscout reports, Dexcom Studio/Clarity, or your
@@ -66,40 +66,130 @@ That `openaps.ini` file is the configuration file for this particular instance o
66
66
67
67
Didn't return much, did it? By the way, that `cat` command will be very useful as you go through these configuration steps to quickly check the contents of files (any files, not just `openaps.ini`). Similarly, if you see a command that you are unfamiliar with, such as `cat` or `cd`, Google it to understand what it does. The same goes for error messages—you are likely not the first one to encounter whatever error is holding you back.
68
68
69
+
### Add openaps-contrib
70
+
This provides us with timezone support:
71
+
72
+
```
73
+
openaps vendor add openapscontrib.timezones
74
+
openaps device add tz timezones
75
+
```
76
+
77
+
## Get Pump data
69
78
### Add pump as device
70
79
71
-
In order to communicate with the pump and cgm receiver, they must first be added as devices to the openaps configuration. To do this for the pump:
80
+
`$ openaps device add <my_pump_name> medtronic`
81
+
82
+
In order to communicate with the pump and cgm receiver, they must first be
83
+
added as devices to the openaps configuration. To do this for a device we'll
84
+
call `pump`:
85
+
86
+
`$ openaps device add pump medtronic`
87
+
88
+
89
+
Then to configure the new `pump` device with its serial number:
90
+
`openaps use pump config --serial 123456`
91
+
92
+
Create bunch of reports:
93
+
`oref0 template mint reports medtronic-pump | openaps import`
94
+
95
+
Here, `<my_pump_name>` can be whatever you like, but `<my_serial_number>` must
96
+
be the 6-digit serial number of your pump. You can find this either on the back
97
+
of the pump or near the bottom of the pump's status screen, accessed by hitting
98
+
the ESC key.
99
+
100
+
**Important:** Be careful when choosing to share your 6-digit pump serial
101
+
number or posting it online. If someone had access to this number, and was in
102
+
radio reach of your pump, this could be used to communicate with your pump
103
+
without your knowledge. While this is a feature when you want to build an
104
+
OpenAPS, it is a flaw and a security issue if someone else can do this to you.
105
+
106
+
## Get CGM Data
107
+
### From Dexcom CGM receiver via usb cable
108
+
109
+
Now you will do this for the Dexcom CGM receiver using a usb cable:
Note this step is not required if you are using a Medtronic CGM. The pump
114
+
serves as the receiver and all of the pumping and glucose functionality are
115
+
contained in the same openaps device.
74
116
75
-
Here, `<my_pump_name>` can be whatever you like, but `<my_serial_number>` must be the 6-digit serial number of your pump. You can find this either on the back of the pump or near the bottom of the pump's status screen, accessed by hitting the ESC key.
117
+
#### G5 support
118
+
Support for G5 receiver is offered through the usb cable and configuring the
119
+
`cgm` device with: `openaps use cgm config --G5`.
76
120
77
-
**Important:** Never share your 6-digit pump serial number and never post it online. If someone had access to this number, and was in radio reach of your pump, this could be used to communicate with your pump without your knowledge. While this is a feature when you want to build an OpenAPS, it is a flaw and a security issue if someone else can do this to you.
(Note this step is not required if you are using a Medtronic CGM. The pump serves as the receiver and all of the pumping and glucose functionality are contained in the same openaps device.)
openaps alias add monitor-cgm "report invoke raw-cgm/glucose-raw.json monitor/glucose.json"
176
+
```
177
+
178
+
Now, `openaps monitor-cgm` is available to pull in fresh CGM data from Dexcom.
179
+
180
+
181
+
182
+
## Check that the devices are all added properly
94
183
95
184
`$ openaps device show`
96
185
97
186
should return something like:
98
187
99
188
```
100
189
medtronic://pump
101
-
dexcom://cgms
190
+
dexcom://cgm
102
191
```
192
+
103
193
Here, `pump` was used for `<my_pump_name>` and `cgms` was used for
104
194
`<my_dexcom_name>`. The names you selected should appear in their place.
105
195
@@ -121,7 +211,12 @@ extra = cgms.ini
121
211
122
212
Again, `pump` was used for `<my_pump_name>` and `cgms` was used for `<my_dexcom_name>`. Your pump model should also match your pump.
123
213
124
-
Because your pump's serial number also serves as its security key, that information is now stored in a separate ini file (here noted as `pump.ini`) that was created when you created the pump device. This makes it easier for sharing the `openaps.ini` file and also for keeping `pump.ini` and `cgms.ini` more secure. Be careful with these files. Open the pump's ini file now (use the name reported to you in the line labeled `extra` in the `openaps.ini` file).
214
+
Because your pump's serial number also serves as its security key, that
215
+
information is now stored in a separate ini file (here noted as `pump.ini`)
216
+
that was created when you created the pump device. This makes it easier for
217
+
sharing the `openaps.ini` file and also for keeping `pump.ini` and `cgms.ini`
218
+
more secure. Be careful with these files. Open the pump's ini file now (use the
219
+
name reported to you in the line labeled `extra` in the `openaps.ini` file).
125
220
126
221
`$ cat pump.ini`
127
222
@@ -134,7 +229,9 @@ serial = 123456
134
229
135
230
The serial number should match that of your pump.
136
231
137
-
If you made a mistake while adding your devices or simply don't like the name you used, you can go back and remove the devices as well. For example, to remove the pump:
232
+
If you made a mistake while adding your devices or simply don't like the name
233
+
you used, you can go back and remove the devices as well. For example, to
234
+
remove the pump:
138
235
139
236
`$ openaps device remove <my_pump_name>`
140
237
@@ -217,28 +314,113 @@ optional arguments:
217
314
218
315
### Pulling blood glucose levels from Nightscout
219
316
220
-
Some people have found it more beneficial to pull blood glucose values from Nightscout rather than directly from the Dexcom receiver. In order to do that, two steps are needed:
317
+
Some people have found it more beneficial to pull blood glucose values from
318
+
Nightscout rather than directly from the Dexcom receiver.
319
+
320
+
Many people will actually setup both ways to pull the blood glucose level and
321
+
switch between the different devices depending on their needs. If you are
322
+
going to pull it directly from Nightscout then you will have to have internet
323
+
access for the Raspberry Pi.
221
324
222
-
1) Similar like above, we need to create a device that talks to Nightscout. Add this device called "curl" to your list of devices in your openaps.ini file: <br>
223
325
326
+
The `autoconfigure-device-crud` feature will allow us to create an easy to use `ns` device:
In addition, you need to alter your monitor/glucose.json report to use this device rather than the cgms device you setup above. The report will look like this in your openaps.ini file:
233
-
344
+
openaps use ns shell get entries.json 'count=10'
345
+
openaps use ns shell upload treatments.json recently/combined-treatments.json
234
346
```
235
-
[report "monitor/glucose.json"]
236
-
device = curl
237
-
use = shell
238
-
reporter = text
347
+
-h This message.
348
+
get type args Get records of type from
349
+
Nightscout matching args.
350
+
351
+
upload endpoint file Upload a file to the Nightscout endpoint.
352
+
latest-treatment-time - get latest treatment time from Nightscout
353
+
format-recent-history-treatments history model - Formats medtronic pump
354
+
history and model into
355
+
Nightscout compatible
356
+
treatments.
357
+
358
+
format-recent-type ZONE type file - Selects elements from the
359
+
file where the elements would
360
+
satisfy a gap in the last 1000
361
+
Nightscout records.
362
+
363
+
upload-non-empty-treatments file - Upload a non empty treatments
Many people will actually setup both ways to pull the blood glucose level and switch between the different devices depending on their needs. If you are going to pull it directly from Nightscout then you will have to have internet access for the Raspberry Pi.
0 commit comments