These are chat archives for nightscout/intend-to-bolus

Apr 2018
Apr 01 2018 03:29
@scottleibrand @jimrandomh @efidoman @Kdisimone Thank you for your help along the way, I have finally figured out how to automatically reset the CAGE pill when you press "Fill Cannula" on a pump. This is how I did it: First I had to get my NS site to allow OpenAPS treatments to generate notifications. I added treatmentnotify to my enable line in Heroku and I also had to change one part of the code in cgm-remote-monitor/lib/plugins/treatmentnotify.js. I changed the the first zero to a 1. 

Screen Shot 2018-03-31 at 7.24.16 PM.png
Then I created an IFTTT applet to create a google spreadsheet whenever my NS site had a “ns-event” The instructions are here:

One thing I did differently than the instructions was to name the spreadsheet Value 2 instead of Value 1.
Screen Shot 2018-03-31 at 8.31.40 PM.png
This created a whole bunch of spreadsheets in my Google Drive like this.
Screen Shot 2018-03-31 at 8.18.59 PM.png
The important spreadsheet that gets created when you press Fill Canulla is the one named: “Entered By openapsmedtronic554Notes Prime 554 ”. So the next step was to create a second IFTTT applet that reads this spreadsheet and then posts a “Pump Site Change” treatment to my NS site whenever a new row is added to the spreadsheet
Screen Shot 2018-03-31 at 7.21.56 PM.png
Screen Shot 2018-03-31 at 7.22.02 PM.png
And I just tested it and it works!
Apr 01 2018 03:35
Screen Shot 2018-03-31 at 7.56.08 PM.png
Screen Shot 2018-03-31 at 7.57.49 PM.png
I’m sure there is a less roundabout solution than this one but I’m really happy I was able to get this to work with the limited knowledge I have. I would love for other people to be able to implement this too so if anyone has any suggestions for how to simplify the process/make a PR, please let me know as I am still learning how to navigate everything.

Also. Now we can also reset the BAGE pill with this spreadsheet,
Screen Shot 2018-03-31 at 8.28.27 PM.png
and reset the IAGE pill with this spreadsheet!
Screen Shot 2018-03-31 at 8.28.33 PM.png
Scott Leibrand
Apr 01 2018 04:01
@sooperlooper good job! That sounds a lot like the convoluted process we had to use to upload CGM data from @jcostik’s original windows executable for DIYPS. :smile:
You might want to open an issue in cgm-remote-monitor asking for help figuring out how to do all that inside NS without the IFTTT stuff. Now that you’ve figured out the steps required and have a working prototype, it should be easier for someone to port that over to JS.
Apr 01 2018 17:06
I haven't been able to revive my edison. How close are we to pi + hat?
Dana Lewis
Apr 01 2018 17:07
April is last we heard, always assume EOM o ship dates
Apr 01 2018 17:08
more development to do after that before it is ready to serve as a controller?
Dana Lewis
Apr 01 2018 17:10
There's always ongoing development and a long wish list, but several of us have been testing and working with it for a while & preparing changes needed to prep for the hardware
Apr 01 2018 17:14
Yep, thanks! :smile:
Apr 01 2018 17:18
Issue opened in cgm-remote-monitor! nightscout/cgm-remote-monitor#3490 Thanks again for your help everyone
Apr 01 2018 23:28
hey wondering if anyone has got their hands on a G6 yet? It's BT I'm betting?