I also needed to ensure that the delimiter on the end of each line matched what OpenAPS was expecting. Due to the data order, it all got a little complex, and I had to learn some sed (when I say learn, I mean, “Copy/Paste from ” and then modify. The next step was to write to a file that I could use as the data store, much like the downloads that OpenAPS pulls from NightScout. This worked very nicely, once I’d figured out that the timestamp had been modified slightly. So I took Matt’s code and munged it with Lennart’s updated code to start off by uploading to Nightscout from the Pi. To use this with an artificial pancreas instance offline though? Well, we could get the data off the pump, but it needed to be passed to oref0 to use with some historic data and in a certain time order. The original version of this was built on OSX and Linux in python, and the Github repositories for that are here: littlet1dmatt and Lennart. I’d been using the 640G Uploader on an Android phone that Lennart built to upload my data and then running off NightScout. For issue 1, I’ve been using the 640G with Enlites, and my set-up is therefore rather different from the standard model that uses Dexcom for offline looping. The work they did on building the Android 640G Uploader and the start in Python on Linux proved invaluable to me. So I went away and reviewed what I had, and this is where I pay a huge amount of thanks to Matt of LittleT1D and Lennart Goedhart. I wasn’t that happy with the range of the carelink stick (but it was less of an issue than the above items).No upload to nightscout as I was having to use the master version with my glucose data, and all the monitoring that comes with the Dev version was unavailable.No offline data – using the loop with nightscout really doesn’t fill me with joy if I’m going to lose signal somewhere. It could use nightscout data and loop and that was okay, but there were a few things that bothered me, namely: As I mentioned previously, I’d spent a fair amount of time building the Artificial Pancreas on my Pi whilst on vacation, but it wasn’t really in a state that I was happy with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |