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

28th
Jun 2016
ddaniels1
@ddaniels1
Jun 28 2016 00:01
@ddaniels1
Strange and too much to be a coincidence. My loop fails much (though not all) of the time right after running monitor/meal and before running settings/settings:
Jun 26 21:11:02 localhost openaps-loop: reporting monitor/meal.json
Jun 26 21:11:12 localhost SubgRfspyLink opening serial port
Jun 26 21:11:12 localhost subg_rfspy status: OK
Jun 26 21:11:12 localhost Version: subg_rfspy 0.8
Jun 26 21:11:12 localhost Timed out or other comms error - Received an error response Timeout - retrying: 1 of 3
Jun 26 21:11:13 localhost Timed out or other comms error - Received an error response Timeout - retrying: 2 of 3
Jun 26 21:11:14 localhost Timed out or other comms error - Received an error response Timeout - retrying: 3 of 3
Jun 26 21:11:16 localhost openaps-loop: settings/settings.json  raised  need more than 0 values to unpack
Jun 26 21:11:16 localhost openaps-loop: pump://JSON/read_settings/settings/settings.json
Jun 26 21:11:16 localhost openaps-loop: Traceback (most recent call last):
Jun 26 21:11:16 localhost openaps-loop:   File "/usr/local/bin/openaps-report", line 6, in <module>
Jun 26 21:11:16 localhost openaps-loop:     exec(compile(open(__file__).read(), __file__, 'exec'))
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/bin/openaps-report", line 82, in <module>
Jun 26 21:11:16 localhost openaps-loop:     app( )
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/openaps/cli/__init__.py", line 51, in __call__
Jun 26 21:11:16 localhost openaps-loop:     self.run(self.args)
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/bin/openaps-report", line 75, in run
Jun 26 21:11:16 localhost openaps-loop:     output = app(args, self)
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
Jun 26 21:11:16 localhost openaps-loop:     return self.method.main(args, app)
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/openaps/reports/invoke.py", line 40, in main
Jun 26 21:11:16 localhost openaps-loop:     output = task.method(args, app)
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/openaps/uses/use.py", line 45, in __call__
Jun 26 21:11:16 localhost openaps-loop:     output = self.main(args, app)
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/openaps/openaps/vendors/medtronic.py", line 333, in main
Jun 26 21:11:16 localhost openaps-loop:     return getattr(self.pump.model, name)(**self.get_params(args))
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/decoding-carelink/decocare/models/__init__.py", line 26, in __call__
Jun 26 21:11:16 localhost openaps-loop:     self.validate( )
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/decoding-carelink/decocare/models/__init__.py", line 17, in validate
Jun 26 21:11:16 localhost openaps-loop:     data = self.response.getData( )
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/decoding-carelink/decocare/commands.py", line 1309, in getData
Jun 26 21:11:16 localhost openaps-loop:     values['maxBasal'] = lib.BangInt(data[7:9]) / 40.0
Jun 26 21:11:16 localhost openaps-loop:   File "/home/edison/src/decoding-carelink/decocare/lib.py", line 235, in BangInt
Jun 26 21:11:16 localhost openaps-loop:     ( x, y ) = ints
Jun 26 21:11:16 localhost openaps-loop: ValueError: need more than 0 values to unpack
anyone have any ideas?
@bewest ?
Ben West
@bewest
Jun 28 2016 00:04
multiple rigs, or multiple cron jobs? do you have just one cron job running once every few minutes or several trying to run all the time?
ddaniels1
@ddaniels1
Jun 28 2016 00:04
multiple rigs in the house, no always when they are in range of each other.
Paul Davis
@SirBinky
Jun 28 2016 00:05
@cdaccarett
ddaniels1
@ddaniels1
Jun 28 2016 00:05
Always seems to fail at the same point
only one cron job
wondering whether it is that the monitor/meal.json somehow takes longer to process and the pump isn't ready to communicate by the time the next report is called for.
tried adding sleep 5 but didn't help between that and settings/settings.json. Maybe try longer?
Paul Davis
@SirBinky
Jun 28 2016 00:10
@cdaccarett maybe try the dev branch?
Ben West
@bewest
Jun 28 2016 00:11
in theory, the preflight turns on the pump's radio for 3 minutes
how long is it taking? if it's starting at :10, that only looks like about 90 seconds or so
I get most of the pump stuff all at the same time, could try doing that maybe
what pump model?
it's always possible there's some combo of hardware/software we don't have completely decoded correctly, but that error kind of looks like it's validating the packet/response from pump and finding it invalid
cdaccarett
@cdaccarett
Jun 28 2016 00:14
@SirBinky not sure what went wrong but i disconnected from the master and reconnected, worked fine after. Thanks
Paul Davis
@SirBinky
Jun 28 2016 00:17
@bewest sorry but what do you mean preflight turns off the pumps radio for 3 mins?
Rocky DuBose
@rdubose55_twitter
Jun 28 2016 00:17
@jlucasvt. Hey. Got home. Putty wouldn't run. Reset both pi and pc. Oddly, all the dexcom python programs run! However, the <openaps device show> cmd returns " Not an openaps environment, run: openaps init". This is entirely and expected event.
Ben West
@bewest
Jun 28 2016 00:17
turns on the radio
Paul Davis
@SirBinky
Jun 28 2016 00:18
@rdubose55_twitter have you cd'd into your openaps environment?
ddaniels1
@ddaniels1
Jun 28 2016 00:19
pump is 523. I will look at the time elapsed
Paul Davis
@SirBinky
Jun 28 2016 00:21
@bewest preflight turns on the radio for 3 mins?
Ben West
@bewest
Jun 28 2016 00:21
any command generally turns on radio for 3 minutes
most of the time, the radio is off to conserve battery
one of the commands is a "wakeup" command, which is used to tell the pump to turn radio on for some minutes
the default used to be 10, I think now it's 3
Paul Davis
@SirBinky
Jun 28 2016 00:23
@bewest by radio you mean usb stick to pump interaction?
Ben West
@bewest
Jun 28 2016 00:23
openaps medtronic driver keeps track of last time this occurred and manages it for you automatically
I mean the radio inside the pump itself
so if you wait a few minutes, you can observe it by doing openaps use pump model; the first time will take a bit longer than the second time while we wait for the pump to wake up
Paul Davis
@SirBinky
Jun 28 2016 00:26
@bewest the radio inside the pump transmits to the carelink usb. By constantly hassling the radio that causes the battery to drain faster?
Ben West
@bewest
Jun 28 2016 00:27
using the pump's radio causes it to use more battery
the battery powers the radio, and radios are typically hungry consumers of power
most of the time the radio is off
Chris Oattes
@cjo20
Jun 28 2016 00:28
@bewest where might that be changed?
(the timing)
Ben West
@bewest
Jun 28 2016 00:28
in pump.ini if you put a minutes = 5 in there, it'll request 5 minutes instead
cdaccarett
@cdaccarett
Jun 28 2016 00:28
Screen Shot 2016-06-27 at 5.25.53 PM.png should i copy the "JSON/shell/monitor/upload-status.json" path to the second command ?
Chris Oattes
@cjo20
Jun 28 2016 00:30
I was considering dropping it to 2 minutes. I group all pump comms together in openaps, 3 minutes is probably excessive (I run my loop every 3 minutes)
Rocky DuBose
@rdubose55_twitter
Jun 28 2016 00:31
@SirBinky - thanks for the comeback but I am entirely new here. And have accomplished my first task - to learn enough to capture the decom's reading. So, back to the learning mode for me and the implementing the next few steps as I come up to speed with you guys. Thanks to all. :)
Paul Davis
@SirBinky
Jun 28 2016 00:33
@rdubose55_twitter I'm pretty new as well, still in open loop, but that error you had sounds like you just logged back into the raspberry pi but in your home directory not the openaps directory you first created. type ls and look at the folders find the one you named your openaps enviroment in then type cd thatfoldername then try to run the command once you're back in the openaps directory
Paul Martin
@Spazholio
Jun 28 2016 00:35
@cdaccarett You have to report invoke the monitor/upload-status.json report first, then try the ns-upload command.
Paul Davis
@SirBinky
Jun 28 2016 00:38
@cdaccarett I believe you've created the report to make the file once it's run but you haven't run (invoked) it yet so the file doesn't exist.
@Spazholio Did you see the new hardware pull request i made based on the discussion of the previous version?
Paul Martin
@Spazholio
Jun 28 2016 00:41
@SirBinky I didn’t. Link?
Paul Davis
@SirBinky
Jun 28 2016 00:41
@Spazholio openaps/docs#269
Paul Martin
@Spazholio
Jun 28 2016 00:42
Oh, I did see that. I commented on it. =)
Sarah Hodson Grady
@shgrady
Jun 28 2016 00:42
This message was deleted
Paul Davis
@SirBinky
Jun 28 2016 00:43
@Spazholio I'd recommend removing any explicit references to Pi2 or Pi3, but have a comparison page that outlines the pros/cons of each. If the code runs identically on each one (which I believe it does) then I think advocating one over the other will just lead to, "The docs say Pi3, but I only have a Pi2 - will this work on mine?" type questions.
@Spazholio that comment?
Paul Martin
@Spazholio
Jun 28 2016 00:43
Yes, correct.
Paul Davis
@SirBinky
Jun 28 2016 00:44
@Spazholio i went back and rewrote it all and resubmitted it though with your suggestions and others added
Sarah Hodson Grady
@shgrady
Jun 28 2016 00:44
This message was deleted
This message was deleted
Paul Martin
@Spazholio
Jun 28 2016 00:47
Ahhh, ok. I didn’t see that. Very cool. Interested to see what people think.
Paul Davis
@SirBinky
Jun 28 2016 00:48
@Spazholio Ah ok so you can see the newest reworked version i submitted then? I was worried i did it wrong and people didn't as the discussion died.
Paul Martin
@Spazholio
Jun 28 2016 00:52
I see them. And I notice that you are focusing on Raspberry only - no mention of the Edison. Is that intentional?
Paul Davis
@SirBinky
Jun 28 2016 00:54
@Spazholio There was a link advising other computers you could use. I only have experience of the Raspberry pi3, The built in wifi and bt and fact the older 2 model has been super seeded meant i thought it would be most useful to advice getting the 3 and remove 2 references. But since then 2 supports said there are pluses to that model so i readded that info.
cdaccarett
@cdaccarett
Jun 28 2016 00:56
@Spazholio after report invoke im getting a lot of "Error: Cannot find module " any tips, sorry for all the questions im getting a bit confused on this part :/
Paul Martin
@Spazholio
Jun 28 2016 00:57
@cdaccarett Paste what’s happening - let me take a look. Put in between three backticks (the same key as the tilde) please, so it formats it correctly.
Paul Davis
@SirBinky
Jun 28 2016 00:57
@Spazholio the docs said they're not perfect if you find stuff lacking or confusing update it. so i tried to add info i found lacking or confusing to start with. I don't have skills to add new plug ins or dissect raw data to make plugins etc. but i thought i could pay back a bit by tweaking the walkthrough guide. When i started i was so confused and overwhelmed by it all. Now it makes clearer sense to me but i can remember the initial confusion so wanted to try to help in that area. I'm open to suggestions of areas that need redoing or stuff you think should be added.
Paul Martin
@Spazholio
Jun 28 2016 00:58
@SirBinky Hey, I’m not criticizing. =) Any additions that add clarity and ease of use are most welcome. I was just wondering if there was a conversation or a decision to limit it to only Raspberrys for now. They’re certainly easier to work with.
cdaccarett
@cdaccarett
Jun 28 2016 00:59
Screen Shot 2016-06-27 at 5.25.53 PM.png @Spazholio
Paul Martin
@Spazholio
Jun 28 2016 00:59
@cdaccarett Ok, from that screenshot, it looks like you haven’t invoked the monitor/upload-status.json report yet.
cdaccarett
@cdaccarett
Jun 28 2016 01:01
@Spazholio sorry wrong screen shot
Dana Lewis
@danamlewis
Jun 28 2016 01:01
@Spazholio right now, yes, for a few reasons. We link over to mmeowlink wiki but because the docs are written for Pi, we don't go into too much detail
cdaccarett
@cdaccarett
Jun 28 2016 01:01
Screen Shot 2016-06-27 at 5.58.51 PM.png @Spazholio here's what im currently getting
Paul Martin
@Spazholio
Jun 28 2016 01:01
@danamlewis I can absolutely see that. Just wasn’t sure if that’s what we were going for, collectively.
Dana Lewis
@danamlewis
Jun 28 2016 01:01
But if someone wants to undertake to rewrite and better clarify the pros cons and work required for each setup option upfront.., :)
Paul Martin
@Spazholio
Jun 28 2016 01:02
@cdaccarett Have you created all of those reports? And if you have, you need to invoke them in order for them to be seen/used.
Dana Lewis
@danamlewis
Jun 28 2016 01:02
That's been the direction to date, but will change when we get enough interest for someone to do the heavy lifting on a rewrite. Fine balance between outlining all the options but pointing the most beginner user to the most stable path.
Paul Davis
@SirBinky
Jun 28 2016 01:03
@Spazholio I'm just trying to add info from my point of view. I initially only had dexcom g5 sensor transmitter and iphone receiver, all the docs said connect reciever so i plugged the iphone into the Pi and couldn't get data, then asked and was told i needed the actual dexcom receiver. (uk resident we don't have to buy the dexcom receiver) then all the nightscout stuff i set up all that azure accounts etc spent ages learning all that, only to realise if i had the dexcom receiver usb'd i'd get the data direct. so would work offline and didn't need to have done all that.
@Spazholio It's why i said get the data from cgm or used nightscout to get it from a variety of sources but need to be online.
Dana Lewis
@danamlewis
Jun 28 2016 01:07
@SirBinky all good. Docs only get better as we all contribute :)
Paul Martin
@Spazholio
Jun 28 2016 01:09
@SirBinky And please don’t feel the need to justify anything to ME, man. I’m just a contributor and a user like you. =)
Paul Davis
@SirBinky
Jun 28 2016 01:09
@danamlewis I have a bit of spare time atm, so wanted to start to go through the docs one by one updating or trying to clarify them. It also helps me to deeper understand them. If there's specific bits you feel need tweaking let me know!
Dana Lewis
@danamlewis
Jun 28 2016 01:12
Nightscout setup needs a good review! :)
:+1:
Paul Davis
@SirBinky
Jun 28 2016 01:15
@Spazholio Oh no i don't feel i have to justify myself. I'm just trying to explain my goals. I've got some spare time, the docs helped me a lot but confused me a few times. I'm hoping to guide others away from my mistakes. I've only got my experience of setting up a dexcom g5 to medtronic pump with a pi3 so it'll be biased to that but I thought i could expand those sections whilst preserving other ways, Nightscout is perfectly good way too and more universally compatible.
Paul Martin
@Spazholio
Jun 28 2016 01:16
Cool, man. :smile: :thumbsup:
Paul Davis
@SirBinky
Jun 28 2016 01:17
@danamlewis you mean the visualization section?
@Spazholio I'm also open to any suggestions if you think something should be added, i can always look it up try to understand it and add it. When i first started i ended up chasing several different ways to implement the same ends and confused myself, In the end i wanted an offline closed loop version no internet needed.
Dana Lewis
@danamlewis
Jun 28 2016 01:23
Yes the Visualization section.
Paul Davis
@SirBinky
Jun 28 2016 01:25
@danamlewis I remember reading this "Once you have completed these steps, log on to Azure or Heroku and disconnect the deployment source. " after the first github part i barely understood. That line above. I was like wtf is azure what is heroku. what the hell am i doing. I'm clearly completely out of my depth atm. So i quit out and went to nightscout and just used their guides to set up an account. Learnt that then came back reread the visualization section understood it better. Implemented it all. Then later learnt if you direct connect the receiver you don't need this section.
Dana Lewis
@danamlewis
Jun 28 2016 01:27
There's two reasons for NS. One is to pull data from, one is from visualization. Even if you plug receiver in we still recommend NS for visualization. But would be great to make all of this more clear.
Paul Davis
@SirBinky
Jun 28 2016 01:28
@danamlewis the g5 has visualization of all the cgm data on graphs over various 24hr periods. then diasend keeps the last months data to follow glucose levels?
@danamlewis I'm coming at this from 1) a non diabetic 2) my girlfriend only got cgm 2 weeks ago
Dana Lewis
@danamlewis
Jun 28 2016 01:30
NS allows you to visualize what the loop is doing, best tool for pump and CGM all in one.
Paul Martin
@Spazholio
Jun 28 2016 01:31
I think I started looping the day after I got my first CGM. I am not a patient man. =)
Garrett Webb
@garetis
Jun 28 2016 01:31
I can say that I've personally had some specific issues with NS. I have the loop running, but without any pulling from NS, only pushing, and have been unable to get everything there. I'm not sure if I'm a special unique instance (712/Pi3/dexcom-hard-wired/android) or if it's a general issue
Paul Davis
@SirBinky
Jun 28 2016 01:31
@danamlewis oh ok, so it shows what bolus commands over the glucose data?
Dana Lewis
@danamlewis
Jun 28 2016 01:31
basals.
Loop only does basal :)
Paul Davis
@SirBinky
Jun 28 2016 01:31
@danamlewis ahh ok shows the basals
There's an example of why it's nice to have all in one, even if someone doesn't give the NS url to anyone else for remote monitoring
Paul Martin
@Spazholio
Jun 28 2016 01:33
Big time agree. The closed loop is amazing in and of itself, but being able to visualize exactly what’s happening just takes it to another level.
I treat it like Flappy Bird. See how often I can stay between the lines. =)
Paul Davis
@SirBinky
Jun 28 2016 01:34
@danamlewis sorry the terminology is quite hard to get. try to do this system requires linux, openaps learning, cron, then diabetic conditions and levels to understand too. One of the things that make me go argh was the section saying why isn't there a dummy guide. well if you can manage diabetes you can manage this. I was like i don't manage it and i'm trying to manage this!
Paul Martin
@Spazholio
Jun 28 2016 01:36
I’ve been considering writing some sort of glossary for quick reference. When I got started, I didn’t know what DIA (Duration of Insulin Action) was. I mean, I knew what it was, just not that specific acronym.
Dana Lewis
@danamlewis
Jun 28 2016 01:36
There's a glossary, please add to it :)
@SirBinky that's also why we recommend DIY, most people come into this with knowledge of diabetes and then it's just Linux basics that's the learning curve. It's a matter of automating how we already treat diabetes
Chris Oattes
@cjo20
Jun 28 2016 01:37
@bewest thanks for mentioning that pump radio power thing. Hopefully I've just cut my pump radio usage by ~ 1/3
Paul Davis
@SirBinky
Jun 28 2016 01:39
@danamlewis I totally get why the DIY i've asked my gf alot of questions. I've messed with linux very basically before, dual boots to a gui install etc. Nothing on this level of Ssh'ing and command line interaction. I get the openaps is an amazing piece of software that does all the heavy lifting for you, you just need to enter processes, the cron level stuff confused me as that's a step back out the openaps enviro into linux base.
Sarah Hodson Grady
@shgrady
Jun 28 2016 01:41
@SirBinky sounds like you have some bonding ahead of you, I mean, learning about her diabetes can be fun, I have been teaching my husband now for 6 years, he still does not always get it.
Paul Davis
@SirBinky
Jun 28 2016 01:41
@danamlewis then ontop of that all the github stuff and pull requests etc was another level, accessing it from desktop or the terminal etc, that was crazy. then getting into nightscout setting up open apps websites mango etc linking them together, just getting that to work then having to edit those setups to get the openaps to work withit
Dana Lewis
@danamlewis
Jun 28 2016 01:43
Yep. Lots of learning of new things :)
Paul Davis
@SirBinky
Jun 28 2016 01:44
@shgrady I get that it's her thing to deal with, she's been doing it 25 years before i met her, it will always be there, never ever stops, no day off no ugh i can't be bothered today. All i ever said was if i can help a bit let me know, sugar's low i grab a juice or sugar, she's sleepy and tired her sugar is dropping etc i'll wake her. we're about to go out her sugar drops just wait till it's right then leave.
@shgrady then we find out about cgm, research the fuck out of it find out how good it is, try that, learn of this closed loop society etc using linux etc I was like let me see if i can make this work for you. maybe i can get something going that takes a bit of the load off. so i've been trying that the last month or so. Also this community has been so helpful and kind i wanted to give back by redoing some of the walkthrough docs etc
Sarah Hodson Grady
@shgrady
Jun 28 2016 01:47
@SirBinky maybe that did not come out right, what I meant to say, was some of us have been screwed over our whole (diabetic) lives, awfully nice of you to go through so much to help her.
Paul Davis
@SirBinky
Jun 28 2016 01:47
@shgrady screwed over?
Dana Lewis
@danamlewis
Jun 28 2016 01:48
:) @scottleibrand is a kindred spirit, he knew nothing about diabetes when we met, the process of me teaching him helped us realize we could automate a lot more than we thought possible before
Paul Davis
@SirBinky
Jun 28 2016 01:48
@danamlewis you two are together?
Dana Lewis
@danamlewis
Jun 28 2016 01:49
We are married :)
Paul Davis
@SirBinky
Jun 28 2016 01:51
@danamlewis lol pager comment. I keep saying to Sabs, why do you always play with that damm game! It's like your addicted or something.
@danamlewis I have a programmer friend and when i first heard of cgm etc, and the fact Sabs had a pump. I said to him, how hard would it be to program a feedback to monitor and dose a person with insulin. He said it's possible, and I thought why hasn't anyone done this yet. Then 6months later we see the articles on Closed loop we won't wait etc. and I started to research cgm costs what's required how to do it etc, then how to do it
Dana Lewis
@danamlewis
Jun 28 2016 01:56
:)
The magic of social media for connecting the right people at the right time!
Paul Davis
@SirBinky
Jun 28 2016 01:56
@danamlewis and now i'm here trying to understand it all and make it work.
Dana Lewis
@danamlewis
Jun 28 2016 01:56
:+1:
Paul Davis
@SirBinky
Jun 28 2016 01:57
@danamlewis the nightime aspect is really important atm
@danamlewis lows or highs constantly braking sleep cycle is exhausting. a bit for me if i hear the alarms but alot more for her to act on it, or she misses them and i am roused enough to intervene which means it's serious. I'm hoping the closed loop can cancel out the basal as it drops allowing her sugar to recover
Dana Lewis
@danamlewis
Jun 28 2016 02:01
Yep, that's the idea!
Paul Martin
@Spazholio
Jun 28 2016 02:03
@SirBinky Have you ever seen/played with a full NS install to see what it can actually do for you/your gf?
@danamlewis Thanks for the link.
Paul Davis
@SirBinky
Jun 28 2016 02:05
@Spazholio Only to the extend i got the cgm data from dexcom, added the plugins from the dev branch but didn't get them to work. she spends all day out of a wifi or data zone for her work so to have a closed loop work it requires an offline set up
Paul Martin
@Spazholio
Jun 28 2016 02:07
If you want to take a look at mine just to get a feel for it, let me know. And I think she can upload her stuff when she’s back in range of WiFi to still get visualization data, but I’d want someone else to verify that.
Dana Lewis
@danamlewis
Jun 28 2016 02:08
Yep
Paul Davis
@SirBinky
Jun 28 2016 02:09
I though it only uploaded when in range all data when she's out of range at work for 8 hours is lost?
Paul Martin
@Spazholio
Jun 28 2016 02:11
That’s generally how it’s used, but I believe that you can run a report that gathers X amount of data and uploads it after the fact. And I think @danamlewis just verified that. Or she was just acknowledging my thanking her for the glossary link. =)
Paul Davis
@SirBinky
Jun 28 2016 02:13
the whole glucose level 4 hours thing
then generate a report from that and upload it?
Paul Martin
@Spazholio
Jun 28 2016 02:15
You should be able to pull the last 8 hours of CGM data, then the last 8 hours of NS data, run a gaps report against it, then upload everything up. Unsure about basal data, but I think that’s doable as well.
Dana Lewis
@danamlewis
Jun 28 2016 02:18
Yep because it can pull lots of data from pump
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 02:18
@bewest The template made everything so much clearer. Understanding from a working base is much more satisfying.
Paul Davis
@SirBinky
Jun 28 2016 02:19
you can run gaps reports? from openaps?
Paul Martin
@Spazholio
Jun 28 2016 02:19
Yep. You can thank @bewest for that one. And lots more, really, but that one as well.
Paul Davis
@SirBinky
Jun 28 2016 02:21
@Spazholio this sounds like some whole other next level command structure? Running legacy reports on the data reporting them then uploading them? Is that in the walkthrough at all?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 02:23
I think phase 2 where you connect to Nightscout in Dev walk through is where gap reporting shows up.
Paul Martin
@Spazholio
Jun 28 2016 02:25
@SirBinky You’ll want to get the loop up and going first, sure. But once you do, and you understand how everything ties together, I don’t think it’d be too difficult. But to do it, you’ll be using the same commands.
Paul Davis
@SirBinky
Jun 28 2016 02:26
i'm at manual suggestions
think i can enact it manually too now but not tested it. want to see how the suggestions pan out
Paul Martin
@Spazholio
Jun 28 2016 02:30
If you have suggestions, enacting shouldn’t be difficult.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 02:31
do-everything :smile:
Paul Davis
@SirBinky
Jun 28 2016 02:33
i think i have enact down just not tested it. i want suggestion working right
Paul Martin
@Spazholio
Jun 28 2016 02:34
Good call. What would make you consider that it’s working right?
Paul Davis
@SirBinky
Jun 28 2016 02:35
well they docs suggest that it's suggests different things in different situations
so enacting those various situations and seeing what it says
well not enacting but running the program in those situations
Paul Martin
@Spazholio
Jun 28 2016 02:40
Yeah, I can see that. Especially when it’s not YOU that you’re testing stuff out on. =/ I’m the one with the disease in my relationship, so I can just run it and deal with the consequences/successes as they occur.
Paul Davis
@SirBinky
Jun 28 2016 02:43
yeah we found a remote control for her meditronic pump, i pressed a few buttons she was like please stop randomly doing that you might kill me
Sarah Hodson Grady
@shgrady
Jun 28 2016 02:45
we've been living on the edge already huh @Spazholio
Paul Martin
@Spazholio
Jun 28 2016 02:47
@shgrady Quite possibly. But I’m the guy who’ll happily change my rates/ISF/ratios on a whim “just to see what happens”. Because what I’ve been doing has been working, but what if it could be better? What if my DIA is really 4, and not 3? Well, let’s see what happens!
Just upgraded to the latest AMA branch with the override capability in place. Let’s see what happens...
Paul Davis
@SirBinky
Jun 28 2016 02:48
@Spazholio think if i was in your position i'd test the limits on it all too see what works/not. I'd never put that style on my gf tho, so i'm careful careful slowly slowly.
Paul Martin
@Spazholio
Jun 28 2016 02:49
If you don’t mind my asking, how into this is your gf? Excited, but cautious? That kind of thing?
Paul Davis
@SirBinky
Jun 28 2016 02:52
she showed me the initial articles. Months previously i said to a programmer friend hey if you get cgm and a pump and you link them could you control it, he said yeah not too hard. Then we see ppl being able to do it. So i said to her let's try to do this. Let's get CGM so we got it it works well, I said ok we got cgm and Pump so i think i might be possible to get this artificial pancreas to work. Maybe. She said ok that would be awesome. We learnt more about it, how it works etc. I've dived right in deep into all the complexities etc. I said this might just work let's see, and i've been testing the waters trying to run test suggestions,
Paul Davis
@SirBinky
Jun 28 2016 03:02
she's now pregnant and night time high/lows are more of a problem so if i could make a system to smooth those out and stop her being awaken as often and let her get decent rest that is what would really matter to me
Dana Lewis
@danamlewis
Jun 28 2016 03:03
:+1: I've had several people ask me about use during pregnancy
David Cintron
@loudestnoise
Jun 28 2016 03:03

I treat it like Flappy Bird. See how often I can stay between the lines. =)

@Spazholio It’s just like Flappy Bird. Impossible to do for an extended period of time.

Paul Davis
@SirBinky
Jun 28 2016 03:04
@danamlewis and you said?
Dana Lewis
@danamlewis
Jun 28 2016 03:05
i imagine it would be even more helpful then, given the change of ratios and sensitivities and basal needs throughout the time period. So I'm excited to hear someone building one
Paul Davis
@SirBinky
Jun 28 2016 03:05
@danamlewis it kinda broke my will this last week, i was like i can't keep up with this insulin resistance change etc i don't think it would be safe enough for her, i don't want to cause any problems etc. but the night time stuff being woken alot is exhasting to her ontop of typical pregnancy things
Dana Lewis
@danamlewis
Jun 28 2016 03:06
Yea. I think auto sensitivity might be a big help
Paul Davis
@SirBinky
Jun 28 2016 03:08
auto sensitivitity?
i'm up to running suggestion.json possibly doing enact correctly
Dana Lewis
@danamlewis
Jun 28 2016 03:16
It's an advanced feature you won't get to til after getting the basic loop automated and running for a bit
Paul Davis
@SirBinky
Jun 28 2016 03:16
Also @danamlewis and @scottleibrand (and @bewest) thanks for running this all and dedicating so much of your time to it.It's amazing what a group of good ppl can do to make others lives better from a selfless motivation
David Cintron
@loudestnoise
Jun 28 2016 03:17
is “eating soon” mode something you accomplish by changing your target range in Nightscout temporarily?
Dana Lewis
@danamlewis
Jun 28 2016 03:17
:) @SirBinky :+1:
@loudestnoise yep! Temp target to 80 about an hour before you eat
Temp target is now an option in care portal
David Cintron
@loudestnoise
Jun 28 2016 03:18
hmmm, yes I see that. And since I’m using @scottleibrand’s setup.sh I see my loop is asking Nightscout if I have a temp target each time the loop runs
Paul Davis
@SirBinky
Jun 28 2016 03:18
@danamlewis is it all this 80 crazy high numbers in usa then? Cause being uk based, sabs aims to keep her bg between 5 and 7 normally
Dana Lewis
@danamlewis
Jun 28 2016 03:19
We are talking mg/dl over here, she's on mmol :)
Paul Davis
@SirBinky
Jun 28 2016 03:19
@danamlewis i've converted the units for us and makes life much easier dunno who added the other conversation way built in
but it's a massive help to have that version for us to use so very much appreciated
fjungman
@fjungman
Jun 28 2016 03:23
Quick question, before I waste an entire night doing things wrong. Had my first file corruption. The unit kinda runs, and last night I followed some random instructions I found searching this thread and got the git command working again. But, open_aps itself seems corrupt. To my question:
Do I remove and erase the flash drive, then start over, or is there a way to reinstall over the top and just fix it. I tried pulling and pushing to git and that didn't work (not that I understand that much). Please help a hardware guy out here...
Paul Davis
@SirBinky
Jun 28 2016 03:25
@fjungman ideally get your instance up and running to a point back it up to protect against loss of power corruption
if you want the nuclear option back up the entire microsd card then if you get corrupted copy the back up over the main card
fjungman
@fjungman
Jun 28 2016 03:27
Thanks Paul. Yes, I thought I had backed up by pushing the files to github. Then if something broke, I could pull them down. Now I see that the underlying code can break, also. Is backing up just making copies of the SD card?
Ok, coolio! But, what do I do, now?
Paul Davis
@SirBinky
Jun 28 2016 03:27
you have a linux install, then you add openaps etc, you can copy to openaps dir to back up that
fjungman
@fjungman
Jun 28 2016 03:28
Ok, from scratch, but at least I can pull the files from github?
*at that step, of course...
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 03:28
@fjungman the oref0 command has a backup util that will backup your config to a single json file.
fjungman
@fjungman
Jun 28 2016 03:29
I either did not see that in the docs, or did not understand that at the point it was presented (it was a huge learning curve for me)
But, thanks, @jlucasvt, I'll go dig out those instructions...
Paul Davis
@SirBinky
Jun 28 2016 03:30
@fjungman me too alot of times
fjungman
@fjungman
Jun 28 2016 03:30
^^^ :+1:
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 03:30
oref0 export-loop
fjungman
@fjungman
Jun 28 2016 03:31
Really??? That simple?? Damn, how did I not understand that??? Doh.
Where does that .json magically go?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 03:37
You need to specify a file name at the end of the command. runnit from the directory your openaps config is in. It will be saved to that directory
To see command details just run the oref0 command from your openaps dir
Paul Davis
@SirBinky
Jun 28 2016 03:38
oref0 --help
\/
?
fjungman
@fjungman
Jun 28 2016 04:12
Sorry, I was just recreating the loop. Ok, thanks for that, let me try it...
fjungman
@fjungman
Jun 28 2016 04:18
Hmm. It actually errors out, but creates a .json file. Is this normal?
pi@raspberrypi:~/vmax_aps $ oref0 export-loop vmaxbackup.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.0', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/init.py", line 47, in call
self.configure_parser(self.parser)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 50, in configure_parser
available = devices.get_device_map(self.config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/init.py", line 21, in get_device_map
for device in Device.FromConfig(vendors, conf):
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/device.py", line 79, in FromConfig
device.read(config=config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/device.py", line 36, in read
self.extra.fields.update(dict(extra.items(self.section_name( ))))
File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: u'device "vmax522"'
Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.0', 'openaps-device')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-device", line 35, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/init.py", line 47, in call
self.configure_parser(self.parser)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-device", line 21, in configure_parser
self.commands = devices.configure_commands(parser, parent=self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/init.py", line 36, in configure_commands
parent.devices = get_device_map(parent.config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/init.py", line 21, in get_device_map
for device in Device.FromConfig(vendors, conf):
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/device.py", line 79, in FromConfig
device.read(config=config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/devices/device.py", line 36, in read
self.extra.fields.update(dict(extra.items(self.section_name( ))))
File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: u'device "vmax522"'
There is a perfectly good pump device called "vmax522".
Paul Davis
@SirBinky
Jun 28 2016 04:19
was going to say is vmax522 there
fjungman
@fjungman
Jun 28 2016 04:35
Hmm. Now that I keep staring at it, I remember having an error with that "u" before device. Is that supposed to be there, or is that a typo? Maybe I didn't do a push after the final fix.
Troy Wuttke
@tswuttke_twitter
Jun 28 2016 04:47
Hi, is someone able to tell me about the OpenAPS prediction algorithms? are these rule based?
fjungman
@fjungman
Jun 28 2016 04:56
Out of my league, @tswuttke_twitter. Probably @danamlewis or @scottleibrand know this off the top of their heads...
fjungman
@fjungman
Jun 28 2016 05:14
Everything I do with Openaps comes back with the No section: u'device "vmax522"' error. That "u" seems out of place, but I can't find it anywhere. Did a full re-install of openaps and wiped the diretory and cloned the git repo down to the pi. Everything looks correct as I scroll through it, but that error...
...off to bed. Try again tomorrow. It must be me. I must have had that error and when I fixed it, I didn't push the fixed code back to github correctly...
Troy Wuttke
@tswuttke_twitter
Jun 28 2016 05:23
thanks @fjungman, i found part of the answer in the documentation in the end. it seems to be rule based (and deliberately not using Machine Learning). iv been analysing my nephews CGM data with T1 and creating predictive models for his Highs and Lows... so was just interested to see if OpenAPS already does this.
ryanchen26
@ryanchen26
Jun 28 2016 05:36
Woohoo! Finished my Edison rig. Runs the loop in 01:47. The Pi 3 does it in about 01:29. I ran into some trouble when I copy and pasted my openaps.ini file from my Pi to the Edison...some reports didn't copy over and I was getting these invalid choice errors. All better.
ryanchen26
@ryanchen26
Jun 28 2016 06:18
20160627_231257.jpg
Paul Davis
@SirBinky
Jun 28 2016 07:20
@fjungman u'device i think is a typo try showing your devices
@fjungman $openaps device show
Chris Oattes
@cjo20
Jun 28 2016 10:04
Any advice on getting treatments to show up in nightscout in mmol/l?
Chris Oattes
@cjo20
Jun 28 2016 11:24
Where does the 'glucose' field actually get added to records? It looks like when it comes from the pump it has "amount", then it gets zoned (which just changes timestamps) and passed to oref0-cull-latest-openaps-treatments, which calls mm-format-ns-treatments, which seems to expect "this.glucose" to be present (at least it tries to rewrite them)
and then it gets passed through json to cull some of the entries, then it's uploaded to ns. I don't see where in the chain the 'glucose' field appears ;/
Hristina Dimova
@xpucuto
Jun 28 2016 11:29
@cjo20 on your previous question about showing bg in mmol on ns site . Have you set the units to be in mmol from the settings panel? I hate doing it every time when I load the website in a new tab so I set it in my app settings in azure . I think it was DISPLAY_UNITS = mmol
dougtakeuti
@dougtakeuti
Jun 28 2016 11:29
Hey there, my edison rig stopped last night. comms with the pump are ok for the basic use commands I've tested, such as model, clock and mmtune. However, after the correct response I see errors related to git, I think. I tried oref-reset-git but no luck. Any ideas are welcome.
edison@juba:~/juba$ openaps use bombadajuju read_clock
subg_rfspy status: OK
Version: subg_rfspy 0.7
"2016-06-28T08:08:28"Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/edison/src/openaps/bin/openaps-use", line 63, in <module>
    app( )
  File "/home/edison/src/openaps/openaps/cli/__init__.py", line 52, in __call__
    self.epilog( )
  File "/home/edison/src/openaps/bin/openaps-use", line 50, in epilog
    super(UseToolApp, self).epilog( )
  File "/home/edison/src/openaps/openaps/cli/__init__.py", line 75, in epilog
    self.create_git_commit( )
  File "/home/edison/src/openaps/openaps/cli/__init__.py", line 87, in create_git_commit
    diffs = self.repo.index.diff(None)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.1-py2.7.egg/git/index/util.py", line 69, in check_default_index
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.1-py2.7.egg/git/index/base.py", line 1218, in diff
    return super(IndexFile, self).diff(other, paths, create_patch, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.1-py2.7.egg/git/diff.py", line 139, in diff
    proc.wait()
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.1-py2.7.egg/git/cmd.py", line 328, in wait
    raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: 'git diff --abbrev=40 --full-index -M --raw --no-color' returned with exit code 128
stderr: 'error: object file .git/objects/d9/a8b5e2c8ed68420d24606ee0b2fbb647d97759 is empty
fatal: unable to read d9a8b5e2c8ed68420d24606ee0b2fbb647d97759
'
Chris Oattes
@cjo20
Jun 28 2016 11:30
what is the output if you do reset-git?
dougtakeuti
@dougtakeuti
Jun 28 2016 11:31
@cjo20
edison@juba:~/juba$ oref0-reset-git
Attempting to fix git corruption.  Please wait 15s.
Git repo does not appear to be corrupt.
oref0-fix-git-corruption: no process found
Chris Oattes
@cjo20
Jun 28 2016 11:31
I think there is a pull request related to git corruption, I'm not sure if it is the same issue
@xpucuto: Yes, I have the display units to be mmol. It's missing a conversion from mg/dL to mmol/l at some point. If I change the data in mlabs to be in mmol/l they show up on the graph.
dougtakeuti
@dougtakeuti
Jun 28 2016 11:36
When I check git status I get the following. Is that expected?
edison@juba:~/juba$ git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   mmtune.json
        new file:   monitor/battery.json
        new file:   monitor/clock.json
        new file:   monitor/pumphistory.json
        new file:   monitor/reservoir.json
        new file:   monitor/status.json
        new file:   monitor/temp_basal.json

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   monitor/pumphistory.json

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore
        bombadajuju.ini
        calculate-iob.ini
        determine-basal.ini
        fake-hwclock.data
        get-profile.ini
        glucose.ini
        iob.ini
        max_iob.json
        meal.ini
        mm-format-ns-glucose.ini
        new-time.data
        ns-glucose.ini
        ns-status.ini
        ns-upload.ini
        openaps.ini_old
        oref0.ini
        read_clock.json
        tz.ini
        updateclock.sh
        upload/cgm-ns.json
        upload/cgm-nsdone.json
        upload/latest-treatments.json
Chris Oattes
@cjo20
Jun 28 2016 11:36
openaps/oref0#143
There's a pull request related to git corruption :)
dougtakeuti
@dougtakeuti
Jun 28 2016 11:39
Ok, thanks @cjo20
Hristina Dimova
@xpucuto
Jun 28 2016 11:45
@cjo20 There is no mg to mmol convertion . Openaps uses only mg for the calculations , so all you need it to convert it from mmol to mg and then upload it to NS. If you have noticed the information in the pill box is also in mg no matter that the website is showing the bg in mmol.
I dont get how you switch the data in mlab to be in mmol but maybe thats beyond my knowledge.
Chris Oattes
@cjo20
Jun 28 2016 12:05
@xpucuto There needs to be a translate step at some point. It's done with the CGM data (or the graph would be wrong when switching between mg / mmol modes) but it doesn't seem to be done for treatments
I manually went in to mlab and edited the documents to test out a couple of values
Hristina Dimova
@xpucuto
Jun 28 2016 12:07
ok sorry i couldnt help. I hope you find the answer soon :)
Chris Oattes
@cjo20
Jun 28 2016 12:39
blob
Worked out a solution that got it to upload the treatments as mmol/l. Just need to put it in a separate tool now.
Paul Martin
@Spazholio
Jun 28 2016 12:52
@fjungman That "u" is nothing to worry about, so don't focus on it. What happens when you run openaps device show pump?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 13:42
All, This is a question to ensure I understand what I believe is a very important setting, the max_iob.json file which contains the max_iob variable. As I understand it this setting is a secondary safety check to ensure that openaps does not enact a temp-basal when there is a certain level of insulin on board.
Example : max_iob = 0
Openaps will not INCREASE temp-basal if IOB is greater than 0. IOB would need to be less than or equal to zero for openaps to INCREASE temp-basal. Also OpenAps will still be able to DECREASE temp-basal (Low BG Suspend) with max_iob = 0.
Is this correct?
Matt Walker
@walker0
Jun 28 2016 13:48
@jlucasvt I believe it is the amount that openaps can can contribute through temp basals. So a 1hr temp basal of 1U/hr above normal would result in ~1U IOB toward that max value
Dana Lewis
@danamlewis
Jun 28 2016 14:15
@tswuttke_twitter correct, it is not machine learning based. If you haven't already, you might want to read the reference design on OpenAPS.org - might be a little more easy to detangle the basics
@jlucasvt correct. Maxiob0 is still allowing for low temps, and then if needed later will high temp but only until iob returns to 0.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 14:34
Thank you @danamlewis and @walker0 (Getting prepped for my first night )
Dana Lewis
@danamlewis
Jun 28 2016 14:35
:+1:
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 14:44
Last Q for today. Does xDrip or someother project use BluetoothLE on RPi/Edison to read raw Dexcom G5 data (trying to reduce the “stack” of hardware on the RPi) ( Rubberband [Battery | RPi | Dexcom] )
Paul Martin
@Spazholio
Jun 28 2016 15:11
So it appears as though NS is somehow misrepresenting a bolus I gave myself about 2 hours ago? I did a fingerstick (which it shows) and it determines that the Wizard recommended a 2.6u bolus (which it shows) but it does NOT show the bolus itself, which I gave. The IOB (1.84u) is accurate, but I should have a "2.6u" on the graph, no?
Spectacle.m14669.png
Jarred Yaw
@jyaw
Jun 28 2016 15:30
@Spazholio how did you implement the gaps upload to nightscout? I'm sure if I just look at the tools, I can figure it out, but a nudge in the right direction would be awesome. I've started wearing my setup at work without visualization or anything and then it didn't fill in my workday on nightscout and autosens seemed a little off.
Paul Martin
@Spazholio
Jun 28 2016 15:32
Here's the monitor/gaps.json report that I have set up: openaps use tz lsgaps raw-ns/ns-glucose-zoned.json raw-cgm/glucose-zoned.json --minutes "10" --date "dateString" --before "1 day ago" --after "now". I currently don't have it running, but I'm pretty sure it's accurate (@bewest could likely spot any issues there).
I'm not running it now because I've moved from Pi3 to Edison, so I don't have my CGM directly connected anymore.
openaps use tz lsgaps -h to get more info.
Jarred Yaw
@jyaw
Jun 28 2016 15:34
cool. Thanks!
Chris Oattes
@cjo20
Jun 28 2016 15:42
format-ns-glucose = ! bash -c "mm-format-ns-glucose monitor/glucose.json nightscout/glucose.json && cat nightscout/glucose.json | json -c \"this.name != 'Fokko-07'\" | json -c \"this.name != 'DataEnd'\" | json -c \"this.name.indexOf('Something') == -1\" > nightscout/glucoseclean.json"
select-records = ! bash -c "openaps use ns shell lsgaps tz entries |  openaps use tz select --current now --date dateString --gaps - nightscout/glucoseclean.json > nightscout/recent-missing-entries.json"
upload-glucose = ! bash -c "echo 'Format glucose'; openaps format-ns-glucose; openaps select-records; echo 'upload-entries'; openaps report invoke nightscout/uploaded-entries.json"
$ openaps upload-glucose
That's what I use
@jyaw ^
David Cintron
@loudestnoise
Jun 28 2016 16:25
@Spazholio Are you on G5?
Paul Martin
@Spazholio
Jun 28 2016 16:25
G4.
David Cintron
@loudestnoise
Jun 28 2016 16:25
And you just started Dexcom. Well I'll be
Paul Martin
@Spazholio
Jun 28 2016 16:25
How's that?
David Cintron
@loudestnoise
Jun 28 2016 16:26
I just assumed they forced new folk to G5
Since there's still the receiver option
Paul Davis
@SirBinky
Jun 28 2016 16:26
they do now
Paul Martin
@Spazholio
Jun 28 2016 16:26
Ahhhh. You know how I can tell you've never gotten supplies from the VA? =)
Paul Davis
@SirBinky
Jun 28 2016 16:26
not 3 weeks ago
David Cintron
@loudestnoise
Jun 28 2016 16:27
@Spazholio Ahh I see
Paul Davis
@SirBinky
Jun 28 2016 16:27
VA?
Paul Martin
@Spazholio
Jun 28 2016 16:28
I wanted to get the G5, and I might have been able to, but once I found out that the G4 was more documented/supported, I went with that.
David Cintron
@loudestnoise
Jun 28 2016 16:28
I'm in the same just as @jlucasvt. Trying to figure out a way to make an Edison rig work without using a connected receiver
Paul Martin
@Spazholio
Jun 28 2016 16:28
@SirBinky Veterans Administration. Or US Dept. of Veterans Affairs.
@loudestnoise You could always try openxshareble.
David Cintron
@loudestnoise
Jun 28 2016 16:28
I know I could pull from NS, but I'd like an offline option
Does that work with G5?
Paul Martin
@Spazholio
Jun 28 2016 16:29
Shoot, I thought it did, but I just checked. Negative. My bad.
David Cintron
@loudestnoise
Jun 28 2016 16:29
:cry:
xDripG5 works pretty well with Loop on my iOS/RL rig. I just want ALL TEH RIGS
Paul Davis
@SirBinky
Jun 28 2016 16:31
g5 is well documented now for openaps
David Cintron
@loudestnoise
Jun 28 2016 16:31
So if that worked on Edison I'd be set
@SirBinky Yeah, I've got an RPi already
Paul Davis
@SirBinky
Jun 28 2016 16:35
@Spazholio you a vet then?
Paul Martin
@Spazholio
Jun 28 2016 16:36
Correct. Wasn't in all that long, as I developed T1D while I was still in.
Paul Davis
@SirBinky
Jun 28 2016 16:36
@Spazholio late t1d guy
leans towards the virus attacking pancreas thoery then
Paul Martin
@Spazholio
Jun 28 2016 16:37
Big time. But if I was destined to get this, then it happened at the best possible time.
There's also the theory that one of the 3 rounds of vaccines and shots they gave me helped it along. But no proof that I have.
Paul Davis
@SirBinky
Jun 28 2016 16:37
army covers you
did they induce it or they were there at the right time then
Paul Martin
@Spazholio
Jun 28 2016 16:38
USAF, but yeah. I've been really fortunate in that respect.
Well, I have no way of knowing WHY I got it. Just theory and supposition.
Paul Davis
@SirBinky
Jun 28 2016 16:39
vaccines give you dead diseases to attack, maybe your body then attacks your pancreas too so caused it
@Spazholio g5 works well maybe you should upgrade to it
Dana Lewis
@danamlewis
Jun 28 2016 16:41
@loudestnoise you might give me a run for my money on complexity of rig swapping ;)
David Cintron
@loudestnoise
Jun 28 2016 16:41
Well if he’s using Edison/TI rig with openxshareable he couldn't
Paul Martin
@Spazholio
Jun 28 2016 16:42
@loudestnoise I still have my G4 receiver. That can be upgraded to G5, no?
David Cintron
@loudestnoise
Jun 28 2016 16:42
Yeah, G4 with Share receiver can be software upgraded to only use BLE to talk to G5 transmitter
Paul Davis
@SirBinky
Jun 28 2016 16:42
@Spazholio i think they want you to do that
David Cintron
@loudestnoise
Jun 28 2016 16:42
they give you a special code and you download and run the installer
Paul Martin
@Spazholio
Jun 28 2016 16:43
But I think it can only pair it to one device, is that right?
David Cintron
@loudestnoise
Jun 28 2016 16:43
After upgrade, you can’t use a G4 AFAIK
Paul Martin
@Spazholio
Jun 28 2016 16:43
Pretty sure you're right.
Scott Leibrand
@scottleibrand
Jun 28 2016 16:43
G5 transmitter can pair both a receiver and a phone (and probably another thing)
but the receiver upgrade is a one-way thing: no way to make it a G4 receiver again
David Cintron
@loudestnoise
Jun 28 2016 16:44
Yep, I’ve been rocking, iPhone via G5 app, Receiver and xDripG5
wonder if that’ll affect battery life, LOL
Paul Davis
@SirBinky
Jun 28 2016 16:44
transmittor life?
David Cintron
@loudestnoise
Jun 28 2016 16:44
yeah
Paul Davis
@SirBinky
Jun 28 2016 16:44
it won't
Paul Martin
@Spazholio
Jun 28 2016 16:45
Well it certainly can't HELP. =)
Scott Leibrand
@scottleibrand
Jun 28 2016 16:45
iPhone is just one device as far as transmitter is concerned. xDripG5 iOS app piggybacks on the regular iPhone app's BLE comms
Paul Davis
@SirBinky
Jun 28 2016 16:45
it transmits you receiver the data on as many devices you want
David Cintron
@loudestnoise
Jun 28 2016 16:45
Ah, that makes sense
Paul Davis
@SirBinky
Jun 28 2016 16:45
glad that did to you cause my sentance was a bit garbled
talking of g5 transmitters anyone tried fucking with the date when it's used?
Paul Martin
@Spazholio
Jun 28 2016 16:47
So it doesn't die after X number of days, you mean?
Paul Davis
@SirBinky
Jun 28 2016 16:48
@Spazholio yeah, it it 115 days and dies or 115 days after date it's started, so start it months late reset the date after and it works past the 115
Scott Leibrand
@scottleibrand
Jun 28 2016 16:48
112 I think
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:49
Wait. Did you figure a way aroudn the death date?
Scott Leibrand
@scottleibrand
Jun 28 2016 16:49
I think @loudnate determined it wouldn't be possible to fake out the countdown clock, but I don't remember why
Paul Davis
@SirBinky
Jun 28 2016 16:49
they make them then you activate them then they die
Paul Martin
@Spazholio
Jun 28 2016 16:49
Ok, either @loudestnoise or @loudnate is gonna have to change something...
Paul Davis
@SirBinky
Jun 28 2016 16:50
so surely messing with how the first workout where they are must give you flexability?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:52
The activation hits Dexcoms servers then they send a code down to acivate it?
David Cintron
@loudestnoise
Jun 28 2016 16:52
I wouldn’t think so, because if you’re doing receiver only, how would that work
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:52
(Bad Dexcom loved the extended life G4, Just wish they would let us charge them back up)
Paul Davis
@SirBinky
Jun 28 2016 16:52
receiver can't do that
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:53
true. Good point i keep forgetting the (horribly white background upgraded reciever)
David Cintron
@loudestnoise
Jun 28 2016 16:53
it’s so bright at night. Blinding!
Paul Davis
@SirBinky
Jun 28 2016 16:54
annoying but you need the bright to make you respond?
David Cintron
@loudestnoise
Jun 28 2016 16:55
Yeah, because their audio alerts don’t always work
LOL
Paul Davis
@SirBinky
Jun 28 2016 16:55
with the share we ended up doubling up on the alerts
pretty brutal
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:55
True. All I want to do is sleep when that brigh annoying light comes on and it makes noise and buzzes. Oh wait im Urgent Low 40,
Same with G5 and NS using Reciever that’s just another reason i want to just use BLE like with Loop
Paul Martin
@Spazholio
Jun 28 2016 16:57
Silly question - are you using Loop and OpenAPS at the same time?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:58
No just about to start my nights with full OpenAps, and waiting for shipment of RL's for Loop.
Paul Davis
@SirBinky
Jun 28 2016 16:59
rl?
Paul Martin
@Spazholio
Jun 28 2016 16:59
RileyLink
Paul Davis
@SirBinky
Jun 28 2016 16:59
dunno that one
Paul Martin
@Spazholio
Jun 28 2016 16:59
@jlucasvt So you're switching from OpenAPS to Loop? I've been considering trying it, but...I don't know. OpenAPS seems to work well for me, so I'm not 100% sure I'd see the benefit? Maybe someone could enlighten me...
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 16:59
RileyLink. If you need one we are putting a batch together. It allows for a closed loop system with just iPhone, RileyLink and your (Dex/Pump)
David Cintron
@loudestnoise
Jun 28 2016 17:00
@SirBinky It’s a PCB designed by @ps2 that communicates to your pump using a radio and another device like your phone via BLE
Paul Martin
@Spazholio
Jun 28 2016 17:00
@SirBinky RileyLink is...well, the best way to explain it is that it's a BT-enabled TI stick.
David Cintron
@loudestnoise
Jun 28 2016 17:00
Yeah
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 17:00
I think @loudestnoise is doing it.
David Cintron
@loudestnoise
Jun 28 2016 17:00
Trying to...
Check out https://github.com/loudnate/Loop for more info about what people are using RL for
This message was deleted
Paul Davis
@SirBinky
Jun 28 2016 17:01
so like rpi3 dexcom cgm g5 and medtronic pump
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 17:02
Loop is a really impressive work in progress not OpenAPS more iOS Centric.
David Cintron
@loudestnoise
Jun 28 2016 17:02
Essentially you take away the need for a separate computer like RPi3 or Edison
and you use your phone as the computer
Paul Davis
@SirBinky
Jun 28 2016 17:02
wow
David Cintron
@loudestnoise
Jun 28 2016 17:02
Paul Martin
@Spazholio
Jun 28 2016 17:03
How configurable is it? Meaning, with OpenAPS, I'm digging in the code and tweaking things how I see fit - can that be done relatively easily with LoopKit?
David Cintron
@loudestnoise
Jun 28 2016 17:03
LoopKit is the framework @loudnate made that’s the foundation of the iOS app Loop
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 17:03
Yes It’s all in x-Code.
David Cintron
@loudestnoise
Jun 28 2016 17:04
@Spazholio so, depends I guess how well you can read the Swift code Nate wrote? I haven’t made changes to any of my OpenAPS oref0 code or anything like that
Paul Davis
@SirBinky
Jun 28 2016 17:04
nice it's all just computing then running on different systems
Paul Martin
@Spazholio
Jun 28 2016 17:04
@scottleibrand I know you said that LoopKit and OpenAPS take different approaches to closed looping. Can you go into detail about that? At least at a general level?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 17:05
What’s really great about all of this is that it’s all Open so if you want you can read the code.
David Cintron
@loudestnoise
Jun 28 2016 17:05
Scott can probbaly say more, but I think Nate prefers to communicate less with the pump to preserver battery life. I don’t know the details of how the algorithm works though
I’ve grown to love auto-sens & meal assist with OpenAPS so I’m struggling between the awesomeness of using Loop on iOS and a tiny little all day battery life box vs my RPi3 + receiver + TI Stick + battery rig
Paul Davis
@SirBinky
Jun 28 2016 17:06
@Spazholio is this
Because OpenAPS is a platform and not a product, each user can implement whatever algorithm he or she feels works best. That being said, most people are using an MPC—model predictive control—algorithm that estimates future glucose based on current glucose, insulin doses, carbohydrate consumption, and some personal configurations. The exact inputs, and thus how the system makes its decisions, differ from user to user. Other algorithm types—PID, fuzzy logic, various machine learning techniques—have been studied by academics for use in closed-loop insulin dosing systems. Each has its own pros and cons,
Paul Martin
@Spazholio
Jun 28 2016 17:07
Do you think that communicating with the pump less means less fine-grained control? If you're talking every 15 mins instead of every 3-5, then micro-basals really become....mini-basals? I really hope that makes sense to someone.
@loudestnoise You want small? Have I got just the thing for you: https://www.thingiverse.com/thing:1525618
David Cintron
@loudestnoise
Jun 28 2016 17:08
I’m not entirely clear on the differences. I know though I’m struggling to see it enacting temp basals on my pump like I do with OpenAPS
Paul Martin
@Spazholio
Jun 28 2016 17:08
That's what I'm running with now. It's quite tiny.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:08
Loop still talks to the pump every 5 minutes
David Cintron
@loudestnoise
Jun 28 2016 17:09
Yeah, but now I’m back to the issue of how can I do that with G5
:cry:
Paul Davis
@SirBinky
Jun 28 2016 17:09
usb cable micro from the g5 receiever to usb into the pi
Paul Martin
@Spazholio
Jun 28 2016 17:09
Oh FFS, would you just DOWNGRADE already? GEEZ.
=)
Scott Leibrand
@scottleibrand
Jun 28 2016 17:09
By default, it doesn't pull pumphistory, just reservoir status, and calculates IOB from that. Doing so allows very minimal pump comms once every 5m.
Paul Davis
@SirBinky
Jun 28 2016 17:09
add the device
then
openaps device add g5 dexcom
openaps use g5 config --G5
Scott Leibrand
@scottleibrand
Jun 28 2016 17:10
Just in the last couple days pumphistory pulls and uploads to NS got added. I haven't tried that yet.
Paul Martin
@Spazholio
Jun 28 2016 17:11
I swear someone told me that pulling less from the pump doesn't preserve battery life...?
David Cintron
@loudestnoise
Jun 28 2016 17:11
@scottleibrand Ah well that makes sense. Yeah, I can’t get the upload to Nightscout working. I’m not sure what I’m doing wrong on that
Paul Davis
@SirBinky
Jun 28 2016 17:11
@Spazholio me downgrade?
Paul Martin
@Spazholio
Jun 28 2016 17:11
Beacuse once the radio's on, it's ON and that's the power draw.
@SirBinky Nah, I was joking with @loudestnoise. =)
Pete Schwamb
@ps2
Jun 28 2016 17:11
@Spazholio The less you use the pump’s radio, the less power you draw. Radio is by far the largest source of battery drain on the pump.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:12
the other difference is around carbs and meal boluses. Loop expects you to enter carbs into the app, and trigger a full-sized meal bolus from the app. when you enter carbs it asks you for a carb absorption time (default 180m) and assumes that carbs will absorb over that time.
@ps2 I think the distinction is between "radio on" vs. "transmitting"
David Cintron
@loudestnoise
Jun 28 2016 17:12
@Spazholio I had to google FFS. Guess that’s one you picked up in the service, LOL
Paul Martin
@Spazholio
Jun 28 2016 17:12
@ps2 Right, but if the radio's on, it's on for ~3mins, right?
Scott Leibrand
@scottleibrand
Jun 28 2016 17:12
does Loop limit the wakeup to ~1m to reduce battery usage?
Paul Martin
@Spazholio
Jun 28 2016 17:12
@loudestnoise Nah. Kindergarten. I grew up in NY. =)
Paul Davis
@SirBinky
Jun 28 2016 17:13
@Spazholio but if you run a loop checking every 5 mins it's on for 3mins of 5 constantly
Pete Schwamb
@ps2
Jun 28 2016 17:13
No, you can turn have it on for less than that. At least as short as a minute. But what Nate does is even less.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:13
so the way oref0 deals with carbs (with AMA) is way different from the way Loop does.
Pete Schwamb
@ps2
Jun 28 2016 17:13
The mysentry packets don’t need a wake cycle; the pump just blips out 3 packets every 5 minutes.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:13
yeah, if you have a 723 you can be really efficient with pump battery
Pete Schwamb
@ps2
Jun 28 2016 17:14
In those packets, you get reservoir volume, and can use that to calculate iob.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:14
with 722 and older you have to at least poll the reservoir every 5m
loudestnoise @loudestnoise has a craigslist alert for x23 pumps
Paul Davis
@SirBinky
Jun 28 2016 17:14
the newest medrontics
my gf is due upgrade in a year
are they supported yet?
Paul Martin
@Spazholio
Jun 28 2016 17:14
@loudestnoise So YOU'RE the one snagging all the 723s....=)
David Cintron
@loudestnoise
Jun 28 2016 17:14
pssh, haven’t got one yet
Met folk locally with 515s and 712s
Scott Leibrand
@scottleibrand
Jun 28 2016 17:14
the other big difference between Loop and oref0 is autosens.
Dana Lewis
@danamlewis
Jun 28 2016 17:14
@SirBinky no, modern pumps are not supported
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 17:15
Ha. we all are out on the hunt. I’ve asked a bunch of DTrainers and they have them but they are all flashed
Paul Davis
@SirBinky
Jun 28 2016 17:15
@danamlewis whats the most modern one supported then?
Paul Martin
@Spazholio
Jun 28 2016 17:15
@jlucasvt Flashed? That's a thing that can be done? I thought all firmwares were set at the factory, and that was sorta the end of that?
Dana Lewis
@danamlewis
Jun 28 2016 17:16
@loudestnoise ;) thanks for beating me to it
David Cintron
@loudestnoise
Jun 28 2016 17:16
basically x23 is the top
unless you live outside the US
Dana Lewis
@danamlewis
Jun 28 2016 17:16
they’re in the UK
so different story
David Cintron
@loudestnoise
Jun 28 2016 17:16
ah, well there ya go
Dana Lewis
@danamlewis
Jun 28 2016 17:16
but still listed in the docs is the best place to go for the list
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 17:17
@Spazholio Sorry newer than 2.4A Firmware. Medtronic locked the door and threw away the key.
Paul Martin
@Spazholio
Jun 28 2016 17:18
@jlucasvt Ahhh, ok. Dammit, Medtronic...
Dana Lewis
@danamlewis
Jun 28 2016 17:18
we have someone trying to look at broken pumps to possibly learn how to flash old pumps, so if you have a broken or spot someone who’s going to throw one away, let us know
Chris Oattes
@cjo20
Jun 28 2016 17:19
I wonder if you could convince medtronic to unlock the pumps if someone came up with a dangerous enough alternative to setting the basals via the pump
Paul Martin
@Spazholio
Jun 28 2016 17:20
@danamlewis Has there been any progress on that? Anytihng hopeful, or are we still at the pre-alpha stage?
Scott Leibrand
@scottleibrand
Jun 28 2016 17:22
@cjo20 You could do a bolus-suspend algorithm like @andrew-warrington does, but I really doubt that will help. MDT believes that releasing old-style firmware would require FDA approval, so not gonna happen.
@Spazholio definitely pre-alpha. I suspect Omnipod is far more likely.
David Cintron
@loudestnoise
Jun 28 2016 17:22
I bet MDT has a bunch of old pumps with 2.4 sitting in a warehouse collecting dust
Paul Davis
@SirBinky
Jun 28 2016 17:22
@danamlewis @scottleibrand how do you get hold of compatible pumps?
Scott Leibrand
@scottleibrand
Jun 28 2016 17:22
I doubt it. They flashed new firmware on them and sent them out
David Cintron
@loudestnoise
Jun 28 2016 17:23
Boo
Chris Oattes
@cjo20
Jun 28 2016 17:23
I was wondering whether it would be easier to get FDA approval to release it if they could say "It is safer for this group of people to get the unlocked firmware than to not have it"
Scott Leibrand
@scottleibrand
Jun 28 2016 17:23
@cjo20 still would require FDA approval, so not gonna happen
they just submitted 670G for FDA approval. That's where all their effort is.
Chris Oattes
@cjo20
Jun 28 2016 17:24
Also, do you know why it's locked in the UK? Is it our equivalent of FDA? Or just medtronic don't want to maintain two copies of firmware
Paul Martin
@Spazholio
Jun 28 2016 17:24
Just curious WHY it would require FDA approval. I mean, they must have already gotten approval for it once before, no? Why would they have to get it again if they don't change the firmware?
David Cintron
@loudestnoise
Jun 28 2016 17:24
let’s all move to to Sealand and ask MDT to sell us pumps that do all sorts of things
Chris Oattes
@cjo20
Jun 28 2016 17:24
Spazholio: I guess the FDA decided that the old firmware wasn't safe so changed the rules
David Cintron
@loudestnoise
Jun 28 2016 17:24
or OmniPod for that matter
Paul Davis
@SirBinky
Jun 28 2016 17:25
or Yugoslavia
Scott Leibrand
@scottleibrand
Jun 28 2016 17:25
Intended use. The originally approved device was not intended to be used with an APS. since that's obviously what's going to happen if they open it back up, the FDA would want to approve a full APS system. And guess what, they now have one to approve: the 670G
David Cintron
@loudestnoise
Jun 28 2016 17:26
670G does high temp though?
Scott Leibrand
@scottleibrand
Jun 28 2016 17:26
yeah, it's the first full hybrid closed loop to be submitted for regulatory approval
David Cintron
@loudestnoise
Jun 28 2016 17:26
oh right, 640G is the predictive one
which isn’t FDA approved either
but doesn’t high temp
Dana Lewis
@danamlewis
Jun 28 2016 17:27
@SirBinky craigslist, medwow, etc.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:27
it looks like it'll be possible to use the 640G with an OpenAPS-like algorithm doing microbolus to bring down high BGs, and relying on PLGM to avoid lows. I wonder if the 670G can be put in that mode if people want to be more aggressive than it allows.
(communicating with the pump over a Contour NextLink, which can issue boluses)
Paul Martin
@Spazholio
Jun 28 2016 17:28
Maybe instead of trying to downgrade the existing pumps, has anyone found a way to repair working ones that go ka-flooey?
Dana Lewis
@danamlewis
Jun 28 2016 17:28
and @SirBinky per your Q on the PR, it just means someone else needs to do command line merge conflict resolution. the content itself is good to go, it’s just in conflict with some other changes that have to be cleared up before it can succesfully merge
Scott Leibrand
@scottleibrand
Jun 28 2016 17:28
@Spazholio button errors are easily fixed. what else commonly breaks?
Paul Martin
@Spazholio
Jun 28 2016 17:28
The one I've heard about is....oh, I can't recall the error number, but it's when the motor starts to go and it can't prime.
A33, I think?
Dana Lewis
@danamlewis
Jun 28 2016 17:29
no, but that’s the ones that Jay needs to see to see if he can figure out how to fix them
Scott Leibrand
@scottleibrand
Jun 28 2016 17:29
not sure motor errors are fixable without replacing things
Paul Martin
@Spazholio
Jun 28 2016 17:29
Oh, that's what I meant. Someone who could go in and replace whatever part broke.
Scott Leibrand
@scottleibrand
Jun 28 2016 17:29
dunno if it'd be possible to combine a motor-error 722 with a good-motor 723
Paul Davis
@SirBinky
Jun 28 2016 17:30
don't see why not
Scott Leibrand
@scottleibrand
Jun 28 2016 17:30
that might be an easier avenue than re-flashing firmware, depending on how the CPU and motor stuff are connected
Chris Oattes
@cjo20
Jun 28 2016 17:30
Playing around with motors is probably a step too far for me
Scott Leibrand
@scottleibrand
Jun 28 2016 17:31
If you can't just take the entire logic board out and swap the brains of the 723, I wouldn't want to start fiddling around with the insides of the motor
down that path lie dragons (incorrect insulin delivery)
Pete Schwamb
@ps2
Jun 28 2016 17:33
@danamlewis Jay Radcliffe?
Dana Lewis
@danamlewis
Jun 28 2016 17:33
no @jaylagorio
Scott Leibrand
@scottleibrand
Jun 28 2016 17:33
Radcliffe died.
Pete Schwamb
@ps2
Jun 28 2016 17:41
Are you thinking of Barnaby Jack?
I think this is Jay Radcliffe’s active twitter, no? https://twitter.com/jradcliffe02
Scott Leibrand
@scottleibrand
Jun 28 2016 17:47
sorry, yes, I was thinking of Barnaby. d'oh.
Martin Haeberli
@mhaeberli
Jun 28 2016 17:52
so a general question - can we run OpenAPS with CGM feed from Dexcom Share and / or Nightscout (vs from local xDrip / Dexcom receiver)? Would be useful for at least shadow / remote tracking / predicting / recommending without loop closing
Dana Lewis
@danamlewis
Jun 28 2016 17:53
yes, you can run openaps with cgm from the cloud
Martin Haeberli
@mhaeberli
Jun 28 2016 17:53
@danamlewis thx
Dana Lewis
@danamlewis
Jun 28 2016 17:53
just knowing, of course, that the loop wouldn’t work offline then.
:+1:
Martin Haeberli
@mhaeberli
Jun 28 2016 17:55
@danamlewis can OpenAPS as it stands today also take RileyLink pump data from mongo and / or Nightscout/cgm-in-the-cloud? Understanding that this instance of OpenAPS won’t be anywhere near RileyLink so no closed loop control from that instance...
Dana Lewis
@danamlewis
Jun 28 2016 17:55
I’m not sure what setup you’re talking about here? The rileylink needs to communicate to something in order to upload the data...
Martin Haeberli
@mhaeberli
Jun 28 2016 17:56
pump -> rileylink -> iOS phone (RileyLink app) -> Nightscout upload …. with an external monitor-only (No control ) Open APS instance taking all that data in real time … tracking, predicting, advising, but not acting
also, while I’m on the topic, has anyone built auto-reminders for calibration ? so, for example, Share (G4 Platinum) reports 220, BG through meter, pump, RileyLink reports 183 - nudge / text user to calibrate receiver …? I understand that, in theory, if we are using xDrip with raw data we could perhaps synthetically calibrate for the user … (of course, if Share and RileyLink (nearly) match, no calibration unless it’s time).
Pete Schwamb
@ps2
Jun 28 2016 17:59
Are you on enlite or dex?
Martin Haeberli
@mhaeberli
Jun 28 2016 17:59
dex
Pete Schwamb
@ps2
Jun 28 2016 18:00
RL + phone can upload treatment data to NS, but I don’t think OpenAPS can take treatment data from NS, can it?
It can take BG data from NS.
Martin Haeberli
@mhaeberli
Jun 28 2016 18:00
@ps2 - don’t know, probably not - but maybe I / we can extend and publish code if need be.
Bello
@sir_maYhor_twitter
Jun 28 2016 18:32
Hi guys, quick general question what does 'activity contribution' do in the code? not quite sure what it means. Thanks.
*in the controller, not code..sorry.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 18:43

Any reason (not) to do this before I run my Loop in Bash Shell. My Carelink just doesn’t seem to like to run back to back and a reset always makes things better.

sudo oref0-reset-usb sleep 5m

ok 5m is a bad idea lets say sleep 1m
Toby Canning
@TC2013
Jun 28 2016 19:05
Hi All, I was setting up a friends NS site and the OpenAPS pill would work during the first minute after upload and then display "unknown" I loaded and new NS site and now the pill work fine, but temp basals are not displaying properly. I do have DEVICESTATUS_ADVANCED set to true
and Careportal is enabled. Any other thoughts on what I might be forgetting?
Garrett Webb
@garetis
Jun 28 2016 19:06
which pump are you using?
Toby Canning
@TC2013
Jun 28 2016 19:06
722
Garrett Webb
@garetis
Jun 28 2016 19:07
Sorry, I was just curious. I'm having issues with NS and wondering if it's because I'm using a 712
Everything works for me, except temp basals
Toby Canning
@TC2013
Jun 28 2016 19:08
same problem!
David Cintron
@loudestnoise
Jun 28 2016 19:08
is the dropdown to display basal set?
Garrett Webb
@garetis
Jun 28 2016 19:08
Oh, you said temp basals are displaying properly
Toby Canning
@TC2013
Jun 28 2016 19:08
whoops
aren't displaying
Garrett Webb
@garetis
Jun 28 2016 19:09
Mine is displaying, it's just a solid line, though
Toby Canning
@TC2013
Jun 28 2016 19:09
Yes, same
Yes, drop down menu selection is default
Garrett Webb
@garetis
Jun 28 2016 19:10
what do you @TC2013 get when you openaps upload-recent-treatments?
David Cintron
@loudestnoise
Jun 28 2016 19:10
is the rig uploading the basal changes and are they TZed?
Garrett Webb
@garetis
Jun 28 2016 19:11
The only think I have TZed is pumphistory and clock
Toby Canning
@TC2013
Jun 28 2016 19:11
Yes, they are TZed and it is uploading the right stuff
I'm pretty sure this is a Nightscout problem not an OpenAPS configuration problem
David Cintron
@loudestnoise
Jun 28 2016 19:12
API Secret?
Toby Canning
@TC2013
Jun 28 2016 19:12
The OpenAPS pill is updating just fine with all info
David Cintron
@loudestnoise
Jun 28 2016 19:12
hmm
Toby Canning
@TC2013
Jun 28 2016 19:13
I can see the treatment there
David Cintron
@loudestnoise
Jun 28 2016 19:15
have you tried rebooting?
haha, that’s the IT person in me
Garrett Webb
@garetis
Jun 28 2016 19:18
when I do that openaps upload-recent-treatments I get that there are no treatments to upload...
Oh, then I'm not sure what the treatments are, I was assuming that the basals are the treatments
@TC2013 Are you pulling anything from NS, like you BGs or anything?
Toby Canning
@TC2013
Jun 28 2016 19:20
This isn't my setup, but yes!
Pulling BGs and meal announcement from NS
Those appear to work just fine
@loudestnoise I'll give rebooting a shot ;)
Garrett Webb
@garetis
Jun 28 2016 19:21
Rebooting NS?
Toby Canning
@TC2013
Jun 28 2016 19:21
No, the rig
I rebooted NS a bunch
Garrett Webb
@garetis
Jun 28 2016 19:21
Oh. I've rebooted or shutdown and restart my rig a lot, so I don't think that's my issue
how would one go about rebooting NS?
Paul Martin
@Spazholio
Jun 28 2016 19:22
I have my NS set to restart itself every night. It helps.
And I host it myself with a custom start script, so I won't be any help here - sorry. =/
mm22dl
@mm22dl
Jun 28 2016 19:22
Hi everyone! Just noticed I made a post in the wrong room. :P I am copying it over her. Hopefully some of you have a piece of advice for me. :)
Hey everyone! Hope you're all doing good! I recently got my first insulin pump, and have been given an Enlite CGM for a 2 weeks trial. :smile: The experience is just fantastic as a whole and for someone who's been on ICT for the last 8 years... I was wondering though if you guys had any piece of advice, preference regarding CGMs? I know the Enlite works with OpenAPS, but I hear a lot of good things about the Dexcom... I am also asking because I noticed a couple of disconnections throughout my trial between the transmitter and my pump... is that a common thing with Dexcoms? What about accuracy? Thanks in advance for the useful advice!
Paul Davis
@SirBinky
Jun 28 2016 19:23
that is kinda common
Ben West
@bewest
Jun 28 2016 19:24
dexcom is recommended
Paul Davis
@SirBinky
Jun 28 2016 19:24
accuracy with dexcom you have a 2 hour boot up sequence then take two bg readings to dial it, after that every 12 hours new finger pricks to then enter the values in the cgm to keep it accurate
David Cintron
@loudestnoise
Jun 28 2016 19:24
@Spazholio Ever since getting my Nightscout working on the beefier VPS I haven’t had to reboot like I was with the other box
Paul Davis
@SirBinky
Jun 28 2016 19:24
you can do additional tests and readings but not too much too often that confuses it
Paul Martin
@Spazholio
Jun 28 2016 19:24
Remind me who you host with and what plan you went with again?
David Cintron
@loudestnoise
Jun 28 2016 19:24
(dave @ loudestnoise): ~ ⇢ uptime 15:23:43 up 9 days, 21:20, 2 users, load average: 0.04, 0.05, 0.00
Garrett Webb
@garetis
Jun 28 2016 19:25
@mm22dl I have only used Medtronic, and made the change to Dexcom. I had to because my pump is a 712 and doesn't work with enlight, but I'm only on my first sensor. There are some drawbacks, but I like the sensor response so far
Paul Martin
@Spazholio
Jun 28 2016 19:25
Oh, I don't reboot the box. Just the NS process.
David Cintron
@loudestnoise
Jun 28 2016 19:25
ohh
Paul Davis
@SirBinky
Jun 28 2016 19:25
@mm22dl that was all advice to you
David Cintron
@loudestnoise
Jun 28 2016 19:25
even that I haven’t done a lot, except when I’ve made changes to ENV
I find my boxes on lowendbox.com. The one I’m using now is a company called AlphaRacks
Paul Davis
@SirBinky
Jun 28 2016 19:26
@mm22dl dexcom g5 has been very accurate and useful, we tried libre discs and they were very out.
David Cintron
@loudestnoise
Jun 28 2016 19:26
@Spazholio 100GB disk, 2GB RAM and 3TB of bandwidth $48/yr
iananders
@iananders
Jun 28 2016 19:28
my nightscout instance stopped working when i switched to the G5 - tried to create a new instance, have an azure website that shows the nightscout background but no data is coming in - have share on my G5 app enabled and the login credentials in the connection strings - any ideas on what i'm missing?
mm22dl
@mm22dl
Jun 28 2016 19:33
have any of you the 640g? that's the one i got, and although i know i'll end up with the dexcom, i like the fact that the data is being displayed on the pump directly...
Dana Lewis
@danamlewis
Jun 28 2016 19:34
the 640g is not available in the US, so only ya’lls side of the world will have people with it :)
mm22dl
@mm22dl
Jun 28 2016 19:37
damn haha
Paul Davis
@SirBinky
Jun 28 2016 19:37
@mm22dl where you based?
mm22dl
@mm22dl
Jun 28 2016 19:38
after a couple of days with it, i'd say it's pretty cool for stopping issuing insulin when BG goes down... but then the very next question you have is: why is it that they couldn't put a barriere on the upper side of the BG target lol
germany, you?
Paul Davis
@SirBinky
Jun 28 2016 19:38
uk
i thought you could set upper and lower bg targets?
mm22dl
@mm22dl
Jun 28 2016 19:45
yes you can
but you'll only get an alarm for the upper one
their algorithm which they call smart guard only sets a zero temp basal for a maximum of 2 hours when it calculates that BG is going to go low
i don't know how long before that happens... for me, it happens usually when i approach 5.0 mmol/l
Dana Lewis
@danamlewis
Jun 28 2016 19:46
it’s predictive low glucose suspend (PLGS) mode, but doesn’t do high temping for highs
mm22dl
@mm22dl
Jun 28 2016 19:51
voila
Garrett Webb
@garetis
Jun 28 2016 19:52
@TC2013 ANy luck?
Scott Leibrand
@scottleibrand
Jun 28 2016 19:52
@sir_maYhor_twitter I can walk you through the activity stuff. can you tell me what code you're looking at?
Paul Martin
@Spazholio
Jun 28 2016 20:19
To people who have a Pebble (I have a Time, but am curious about any model): what kind of battery life do you generally get out of it? I had it charged to 100% last night at 6pm, and today, it's already down to 70%. Is that expected? I'm using the Nightscout watchface primarily, and the Urchin once in a while.
David Cintron
@loudestnoise
Jun 28 2016 20:21
I got normally 5-7 days off original model with heavy use
that included using for Nightscout, paying for Starbucks, getting all sorts of notifications
Sarah Hodson Grady
@shgrady
Jun 28 2016 20:23
The time round is much reduced, how it got so thin, I have to charge daily, typically on my drive home from work, takes 15 mins from 0-100%
Toby Canning
@TC2013
Jun 28 2016 20:26
@garetis Yes! A reboot did the trick :)
David Cintron
@loudestnoise
Jun 28 2016 20:29
:+1:
Bello
@sir_maYhor_twitter
Jun 28 2016 20:35
@scottleibrand I am looking at the iobcalc code. This one https://github.com/openaps/oref0/blob/master/lib/iob/calculate.js
Paul Davis
@SirBinky
Jun 28 2016 20:42
@loudestnoise you english? or just an IT crowd fan?
Toby Canning
@TC2013
Jun 28 2016 20:42
Oh he's definitely English... I just visited his house ;)
David Cintron
@loudestnoise
Jun 28 2016 20:42
just an IT crowd fan
Toby Canning
@TC2013
Jun 28 2016 20:43
In Texas
David Cintron
@loudestnoise
Jun 28 2016 20:43
LOL
Paul Davis
@SirBinky
Jun 28 2016 20:43
haha
Chris Oattes
@cjo20
Jun 28 2016 20:43
IT Crowd \o/
Sarah Hodson Grady
@shgrady
Jun 28 2016 20:43
Anybody notice the Disney show Lab Rats has the same theme song?
Paul Davis
@SirBinky
Jun 28 2016 20:44
anyone watch better off ted?
David Cintron
@loudestnoise
Jun 28 2016 20:46
Can’t say I have. Let’s talk about the highly innacurate portrayal of diabetics in TV though. I’ve got two examples
Paul Davis
@SirBinky
Jun 28 2016 20:47
it's brilliant show about corporate life really recommend it!
never really seen diabetics on tv...?
Scott Leibrand
@scottleibrand
Jun 28 2016 20:47
@sir_maYhor_twitter summing up all of those (for all boluses/temps) give you insulin activity at a given point in time. that can be multiplied by ISF to give what we call BG impact: the amount your BG should be rising/falling due to insulin activity.
Paul Davis
@SirBinky
Jun 28 2016 20:49
Only time i laughed at it, was in simpsons Kamp Krusty when they over throw the bullies and distribute the post to everyone and someone says my insulin!
David Cintron
@loudestnoise
Jun 28 2016 20:50
@SirBinky The Walking Dead is one. They had a post zombie apocolypse diabetic that somehow had a cooler of insulin, but they had lost it and were trying to find it or some such. That one wasn’t so bad as we could assume she was suffering from hyperglycemia, but I recall she passes out in the scene
Paul Davis
@SirBinky
Jun 28 2016 20:50
krandal my insulin!
@loudestnoise passes out from high sugar...
@loudestnoise the other?
David Cintron
@loudestnoise
Jun 28 2016 20:51
Well you could go into coma I suppose
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 20:52
South Park > Scott Malkeson
Paul Davis
@SirBinky
Jun 28 2016 20:53
i remember an early southpark they get snowed in and resort to cannabilism after a few hours the out of towner says what it wrong with you ppl are you diabetic
David Cintron
@loudestnoise
Jun 28 2016 20:54
@SirBinky the other one I’m thinking of was Under the Dome, a show based on a Stephen King book. I just remember feeling like they did a poor job of representing diabetes, but that could just be my memory
Paul Davis
@SirBinky
Jun 28 2016 20:54
todd from the simpsons hobbies are sitting quietly and diabetes
David Cintron
@loudestnoise
Jun 28 2016 20:55
http://underthedome.wikia.com/wiki/Alice_Calvert LOL there’s a wiki for the show if you google “Under the dome diabetic"
Paul Davis
@SirBinky
Jun 28 2016 20:55
todd flanders
i think normally if it's even addressed it's either a joke or temporary plot device that is never an issue again
unlike having to live with it 24/7
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 20:57
And then they cut to commercial an there are 4 new Type2 drug commercials
Paul Davis
@SirBinky
Jun 28 2016 20:58
ugh all the supposed cures
Ben West
@bewest
Jun 28 2016 20:58
in person of interest, they located a lost girl by homing in on her insulin pump radio, lol
Paul Davis
@SirBinky
Jun 28 2016 20:58
the 5 foot range radio
Ben West
@bewest
Jun 28 2016 20:58
in safe room? they gave a girl with a hypo a full vial of insulin
er, syringe I guess
Paul Davis
@SirBinky
Jun 28 2016 21:00
lol
instant effect i guess
David Cintron
@loudestnoise
Jun 28 2016 21:00
Oh yeah, POI! I forgot about that. That’s a pretty bad one
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 28 2016 21:01
I do love how the plot device basically has the diabetic heading to coma or death within hours of no insulin
David Cintron
@loudestnoise
Jun 28 2016 21:01
Samaritan’s agents carry RileyLinks as part of their gear so it could enact a bolus remotely
that’s why they’re on back order now
Paul Davis
@SirBinky
Jun 28 2016 21:01
i think they did that in criminal minds, they finally find the person 2 days later barely alive and shoot them up
David Cintron
@loudestnoise
Jun 28 2016 21:03
more dramatic than handing them a juice box or glucose tablets
Paul Davis
@SirBinky
Jun 28 2016 21:03
yeah exactly lol
the most dangerous time is low sugar you give them sweets or if you wanna be really dramtic glucose shot
David Cintron
@loudestnoise
Jun 28 2016 21:04
GLUCAGON!
Paul Martin
@Spazholio
Jun 28 2016 21:05
@loudestnoise 5-7 days? Huh. I’d love to know what I’m doing wrong.
@shgrady You have a Time Round, and you’re only getting a day? That seems really low.
David Cintron
@loudestnoise
Jun 28 2016 21:05
I’ve only experienced the Time from when my wife had it. She hated the color epaper and returned it
Paul Martin
@Spazholio
Jun 28 2016 21:05
Oh, that’s why I got it - if I can have color, why not? =)
Garrett Webb
@garetis
Jun 28 2016 21:10
I'm looking for info where monitor/status.json is created. Can anyone help me?
Paul Davis
@SirBinky
Jun 28 2016 21:10
so stupid no insulin means high blood sugars, so they character just pees alot which damage occours internally
*whilst
Garrett Webb
@garetis
Jun 28 2016 21:16
I did this openaps.readthedocs.io/en/latest/search.html?q=monitor and then when I searched the page for "monitor/status" nothing popped up -- but it is supposed to be used as a part of openaps report add monitor/upload-status.json JSON ns-status shell monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/battery.json monitor/reservoir.json monitor/status.json
Paul Martin
@Spazholio
Jun 28 2016 21:18
@garetis http://openaps.readthedocs.io/en/latest/search.html?q=status.json <— better search. We use the word “monitor” in FAR too many places. =)
Scott Leibrand
@scottleibrand
Jun 28 2016 21:18
openaps report add monitor/status.json JSON pump status
Garrett Webb
@garetis
Jun 28 2016 21:19
@Spazholio Ok, thanks. I know, but assumed it'd still turn up all the instances.
@scottleibrand I wouldn't have done that because I'm using a 712 and it's not an option
Paul Davis
@SirBinky
Jun 28 2016 21:21
@scottleibrand the new hardware page good to merge?
Garrett Webb
@garetis
Jun 28 2016 21:27
I guess an appropriate question at this point would be, do the basal inputs to NS come from the monitor/upload-status.json report??
Paul Martin
@Spazholio
Jun 28 2016 21:34
@sulkaharo Is there anything that needs to be done to take advantage of your changes to AMA? I’ve got a preferences.json now, but I still appear to be getting capped. Do I need to make a change in my reports?
Ben West
@bewest
Jun 28 2016 21:53
no
Nightscout draws basal as a result of uploading the pump-history to treatments
Garrett Webb
@garetis
Jun 28 2016 21:53
When I upload-recent-treatments it says there are no treatments... so where do the treatments come from?
Well, I guess it would be when pumphistory is uploaded to treatments. My question should have been, when is that done?
Ben West
@bewest
Jun 28 2016 21:54
I don't have that alias
but the data comes from the pump's history
I see a lot of people getting hung up on openaps status pill, seems like uploading glucose should be first, followed by uploading treatments, followed by the pill
Garrett Webb
@garetis
Jun 28 2016 21:55
So, it's typical to have an alias to load pumphistory into treatments?
Paul Davis
@SirBinky
Jun 28 2016 21:56
Alias is just a short cut
Ben West
@bewest
Jun 28 2016 21:57
I have bunch of reports, it's common to group them into aliases
most of my recommendations are here: openaps/docs#132, and some of it has made it into the docs: http://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-1/using-openaps-tools.html
basically you need some reports to fetch data from pump and reformat it for nightscout
Garrett Webb
@garetis
Jun 28 2016 21:59
I searched for treatments, maybe a page will turn up that I haven't read
Ben West
@bewest
Jun 28 2016 21:59
there's a suite of recipes that can import the reports to do that: oref0 template mint reports medtronic-reports | openaps
this prepares bunch of standard reports
Paul Davis
@SirBinky
Jun 28 2016 22:00
it's enacting
not treatments
Garrett Webb
@garetis
Jun 28 2016 22:00
All my reports are done. I'm looping. I just can't get things to show on NS
my aliases recipe is in oref0 template mint alias common
I have one I think that isn't in there:
$ openaps alias show report-nightscout 
report-nightscout report invoke nightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json nightscout/openaps-status.json
do-everything ! bash -c "(openaps preflight && openaps gather-clean-data && openaps do-oref0 && openaps enact-oref0);  openaps report-nightscout"
basically I use it ta the end of do-everything, I figure last step is to report everything that just happened
Garrett Webb
@garetis
Jun 28 2016 22:03
I saw the reference to do-everything in the alternate page about NS. Alright, thank you. I will sort it out.
Ben West
@bewest
Jun 28 2016 22:06
same thing, it'd help to continue woodshedding and honing in on the content
basically I took bunch of notes from my issues and tried to at least plop them in where it looked like a preferred technique was available
I'm no longer certain a single "walkthrough" makes sense
there are too many hardware platforms and too many ways to get glucose data for there to be "one true way" that fits into a single walkthrough
Dana Lewis
@danamlewis
Jun 28 2016 22:07
+1million
Ben West
@bewest
Jun 28 2016 22:07
there are segments/chapters which will work the same way, eg "reporting your pump data to NS"
Garrett Webb
@garetis
Jun 28 2016 22:09
Yeah, sometimes with the learning curve it's hard to distinguish whether something is "the next thing to do" or "another way to do it", plus, they are not usually mutually exclusive
Ben West
@bewest
Jun 28 2016 22:09
the recipes/templates will help identify the more common ways, just need to keep adding to them and recommending them, which is separate issue from perfecting the organization of the docs
there's a guide that is divorced from walkthrough altogether
I often encourage that just to learn openaps mechanics
which again, is different material from "I want to walkthrough style $xyz"
Sarah Hodson Grady
@shgrady
Jun 28 2016 22:12
@Spazholio yeah, but I do 100 million things on it: CarePortal Entries, it buzzes every 5 mins when I have a new reading, every email I get at work, I respond to texts on it, I look up carb counts, I follow a couple slack channels, I control my music, use as a bike computer, I did have it listening for important sounds but then it could not make it all day for sure.
Garrett Webb
@garetis
Jun 28 2016 22:12
@bewest Referring to the "guide to understanding"?
Ben West
@bewest
Jun 28 2016 22:13
that might be what it's called, it used to be called hitchiker's guide to openaps :-)
it's intended to be medical-free tutorial on using openaps from ground up
Dana Lewis
@danamlewis
Jun 28 2016 22:13
Yes (guide to understanding)
Ben West
@bewest
Jun 28 2016 22:14
it could probably use some more helpful material such as introducing echo and ls and cat a bit more, and extending those examples a bit more
Tim Howard
@tghoward
Jun 28 2016 22:16
afternoon, all
Paul Martin
@Spazholio
Jun 28 2016 22:16
@shgrady “listening for important sounds” <— that sounds interesting. Whuzzat?
Sarah Hodson Grady
@shgrady
Jun 28 2016 22:17
yeah, after a week of redoing reports, I am just going through the entire reference to build a dependency chart and start over
Tim Howard
@tghoward
Jun 28 2016 22:17
I'm trying to figure out the correct syntax to turn auto-sens and meal off ...
oref0 determine-basal monitor/iob.json monitor/temp_basal.json monitor/cgm-glucose.json settings/profile.json --auto-sens "false"
@bewest ... this is wrong
I've tried without quotes as well.
Ben West
@bewest
Jun 28 2016 22:18
hmm? --no-auto-sens
--no-meal --no-auto-sens
Tim Howard
@tghoward
Jun 28 2016 22:18
hmm, ok, will try. (that's not in help)
Ben West
@bewest
Jun 28 2016 22:19
it's an easter egg not generated by the auto help, anything with a default: true can take a --no- prefix
to turn it false
Tim Howard
@tghoward
Jun 28 2016 22:19
nice. It didn't complain. Thanks.
oooh. Ok, got it.
Paul Martin
@Spazholio
Jun 28 2016 22:21
That’s a flagrant abuse of the term “easter egg”. I like your style.
Ben West
@bewest
Jun 28 2016 22:22
hehe it's actually a feature of yargs, which is the thing parsing the command line
Sarah Hodson Grady
@shgrady
Jun 28 2016 22:22
@Spazholio trying to find the name of the app, the idea was that you could teach it certain sounds and it would do things for you. I think it was developed for the deaf
Paul Martin
@Spazholio
Jun 28 2016 22:23
I swear, I’ve been temp basal’d to 0 for the last ~3.5 hours, and I’m STILL going/staying low. Blech.
Sorry. Non-sequitur.
Ben West
@bewest
Jun 28 2016 22:24
eat food
don't allow a 0 temp for more than your DIA
if you don't get insulin (even while low) you'll develop ketones, if you go for longer than your DIA, you put yourself at risk of a wash out
Paul Martin
@Spazholio
Jun 28 2016 22:25
I had a spike at the 2.5-3 hour mark as my sugars started to shoot up to a whopping 108, but nothing since then.
How do I do that? Is there something in the system that doesn’t allow for a temp basal duration longer than my set DIA?
Ben West
@bewest
Jun 28 2016 22:26
you really don't want 0 insulin for > 4 hours
you'll have to eat some food :)
Paul Martin
@Spazholio
Jun 28 2016 22:26
And I’ve been eating. Like…not a lot, but glucose tabs.
Sarah Hodson Grady
@shgrady
Jun 28 2016 22:26
@Spazholio is a daredevil, I just had the ketone discussion with him yesterday @bewest
Paul Martin
@Spazholio
Jun 28 2016 22:26
If my numbers aren’t coming up as a result of eating raw glucose, that’s just bizarre.
Dana Lewis
@danamlewis
Jun 28 2016 22:27
your body is obviously doing something weird, ie your liver is empty and atttempting to store the glucose
you might want to consider some more complex carbs with some fat or protein in addition to carbs to help your body replenish
Ben West
@bewest
Jun 28 2016 22:27
recommend banana
Paul Martin
@Spazholio
Jun 28 2016 22:27
For lunch, I had 2 burger patties with cheese, bacon, tomatoes and pickles. I figured that’d be enough protein/fat to help out.
Ben West
@bewest
Jun 28 2016 22:28
ah ok, slow bun
Paul Martin
@Spazholio
Jun 28 2016 22:28
Didn’t even bolus for it, as I’ve been trending low around 4-5pm for the last week or so. Trying to establish a definite pattern before fixing.
No bun, assuming you meant “bun”. And not much of a burn, as my sugars didn’t up up 2 hours later as I’m used to.
Ben West
@bewest
Jun 28 2016 22:29
ah missing r
slow burn
Paul Martin
@Spazholio
Jun 28 2016 22:29
@danamlewis Wasn’t really aware that was a “thing”. Good to know. It’s almost like this is my 1st year and not my 20th, yeesh.
Ben West
@bewest
Jun 28 2016 22:30
I got wrong idea, had assumed you were low (and fasting for hours as I had done) and had nearly entire DIA with no insulin
Dana Lewis
@danamlewis
Jun 28 2016 22:30
@Spazholio have learned a lot more these past few years with all this access to my data.
Paul Dickens
@thebookins
Jun 28 2016 22:31
Can anyone help with a newbie question regarding pulling data from nightscout? doing openaps use ns shell get entries.json 'count=10' works ok but there's no glucose field in the JSON (just sgv). Do I make a report from that command and then another step to pipe the output (something like | json -e 'this.glucose = this.sgv' ? The dev docs don't seem to be entirely clear on this point. Also, is a count of 10 appropriate?
Paul Martin
@Spazholio
Jun 28 2016 22:39
You mention ketones as if they’re a bad thing - can you elaborate on that a bit? Before LCHF, I was actually keto, and it worked pretty well for me. What’s the complication with having non-hyperglycemic ketones present?
Tim Howard
@tghoward
Jun 28 2016 22:42
@thebookins yes, if you want a glucose field, piping it to json like that, and then to a file, such as > ns-glucose.json should do it
whether you need 10 records or not depends on the need/use?
Tim Mecklem
@tmecklem
Jun 28 2016 22:43
I just received a "slice of radio" pi hat and I'm wondering if there's anyone in the nearby range of Southwest Ohio with a cc-debugger programmer.
I'm all for flashing firmware onto stuff and voiding warranties
Paul Martin
@Spazholio
Jun 28 2016 22:45
What’s your definition of “nearby range”? I’m in Michigan.
Northern Michigan. =)
But if you get no takers, you can send it to me and I can flash it.
Ben West
@bewest
Jun 28 2016 22:48
ketones by themselves are not necessarily a problem, but as they build up, they poison your body as your blood turns more acidic: http://www.diabetes.org/living-with-diabetes/complications/ketoacidosis-dka.html?referrer=https://www.google.com/
I've never had any good experience with them, although I know some people target low/moderate levels
Paul Dickens
@thebookins
Jun 28 2016 22:49
@tghoward thanks for your help. Would I put the piping code in an alias?
Ben West
@bewest
Jun 28 2016 22:50
it'd be better for someone to provide a tool so people don't have to keep customizing
Paul Martin
@Spazholio
Jun 28 2016 22:50
But that’s only true if you’re hyperglycemic. If you have ample insulin and no high sugars, ketones don’t do the acid blood thing. =)
Ben West
@bewest
Jun 28 2016 22:50
with ample insulin, yes
Paul Martin
@Spazholio
Jun 28 2016 22:50
Does it alter your metabolism though? Maybe make you more/less resistant/sensitive?
Ben West
@bewest
Jun 28 2016 22:50
if you've been missing your entire DIA, you'll have 0 on board
Paul Martin
@Spazholio
Jun 28 2016 22:52
Hmm, fair point.
Do you think that would be something to introduce into oref0? A check to see if you’ve been temped to 0u for > DIA?
It’s certainly a non-standard situation, but apparently it can happen...
Ben West
@bewest
Jun 28 2016 22:54
I'll add an ns shell oref0_glucose use
Paul Martin
@Spazholio
Jun 28 2016 22:55
How would it be implemented, do you think? Because I’ll be honest, I didn’t notice that I had been temping that low for that long. Do you think that adding an automatic setting of 1u (or something) after the length of DIA has been exceeded would be a good idea?
Ben West
@bewest
Jun 28 2016 22:55
there's some discussion on it here: openaps/oref0#56
Paul Dickens
@thebookins
Jun 28 2016 22:55
@bewest sounds like a tidy solution! thanks
Tim Howard
@tghoward
Jun 28 2016 22:56
@thebookins Yes, an alias would work. The alias would look something like this: get-ns-glucose = ! bash -c "ns-get entries.json $NIGHTSCOUT_HOST | json -e 'this.glucose = this.sgv' > monitor/ns-glucose.json"
Pete Schwamb
@ps2
Jun 28 2016 22:56
I was wondering if this is more of an issue with kids and closed looping, too. We’re already starting at a pretty low basal rate; we often low temp for over 2 hours and sometimes more, and I start worrying about ketones.
Ben West
@bewest
Jun 28 2016 22:56
I think all the vendors will have to learn how to address this
Tim Howard
@tghoward
Jun 28 2016 22:57
@thebookins that's probably not exactly right, but close
Ben West
@bewest
Jun 28 2016 22:57
it's particularly an issue if someone is non-compliant or even abusing therapy somehow... I've heard lot of hard stories there
it's preferable in the short term
to use oref0 device-helper
becaues devices get uses and reports which make them work all the same way
Paul Dickens
@thebookins
Jun 28 2016 22:58
@tghoward yeah i get the picture - i think the ns device knows about $NIGHTSCOUT_HOST, so I don't have that env variable
thanks for your help
Ben West
@bewest
Jun 28 2016 22:59
so oref0 device-helper get-ns-glucose 'openaps use ns get entries/sgv.json count=10 | json -e "this.glucose = this.sgv"' | openaps import
minus typos...
this will create a device called get-ns-glucose
so then openaps use get-ns-glucose shell should work
and then you can create report by replacing use with four words :-)
Tim Howard
@tghoward
Jun 28 2016 23:00
@thebookins ^^^^ note the brilliance above
Ben West
@bewest
Jun 28 2016 23:01
I'll just add it to the NS tools
Tim Howard
@tghoward
Jun 28 2016 23:03
@bewest looks like I need to find some time to do some reformatting of my code :smile:
Paul Dickens
@thebookins
Jun 28 2016 23:05
@tghoward @bewest perfect! :smile:
Pete Schwamb
@ps2
Jun 28 2016 23:05
Bummed… new history message type (0x46) and haven’t been able to get carelink upload to work for a while.
Ah, should try minimed connect, but don’t have it with me.
Tim Mecklem
@tmecklem
Jun 28 2016 23:19
I've been trying to set up openaps reporting to nightscout, and I think I'm finally stuck on oref0-monitor/profile.json raised 'Namespace' object has no attribute 'bg_targets'
The docs I followed in github have some confusing inconsistencies between bg-targets and bg_targets. I'm not sure where I've gone wrong in setting up the reports.
using a dexcom g4 platinum with share an a medtronic 722 pump with carelink usb. openaps can talk to the dexcom and the pump fine.
Paul Martin
@Spazholio
Jun 28 2016 23:23
Maybe in your openaps directory, you can do a grep -ir “bg-targets” . to see where bg-targets is used, and switch that to bg_targets? Might be the quickest way to find out where the issue is.
Ben West
@bewest
Jun 28 2016 23:24
oref0 dev branch now has a version of the ns tool that will support this: openaps use ns shell oref0_glucose
it assumes you have a timezones device named tz and you want ten records
if you would like to customize it, the defaults is basically like this: openaps use ns shell oref0_glucose tz count=10
Paul Dickens
@thebookins
Jun 28 2016 23:26
@bewest awesome, and nice it's consistent with getting oref0_glucose directly from cgm
Paul Martin
@Spazholio
Jun 28 2016 23:26
So that gets the last 10 entries? Or the last 10 sgv entries?
Ben West
@bewest
Jun 28 2016 23:26
it rezones the glucose data streaming from ns, if you don't want any rezoning, use shell oref0_glucose_without_zone [args] instead
Paul Dickens
@thebookins
Jun 28 2016 23:26
when would you ever want > 10 entries?
Ben West
@bewest
Jun 28 2016 23:26
last 10 sgv entries
maybe for ama which wants 288
can be done with count=300 or similar
I just tested it like this:
openaps use ns shell oref0_glucose tz "find[dateString][\$gte]=2015&find[dateString][\$lte]=2015-03&count=3"
Paul Dickens
@thebookins
Jun 28 2016 23:27
right - not up to ama yet :smile:
Ben West
@bewest
Jun 28 2016 23:27
that's a kitchen sink example, showing off many of the customizable features
Paul Martin
@Spazholio
Jun 28 2016 23:28
So…if I wanted to find treatments that had “isf” in the reason field…what would that query be?
I mean, I know what it would be, but for the edification of everyone else in the room….
Ben West
@bewest
Jun 28 2016 23:29
here's another fun one: openaps use ns shell oref0_glucose tz "find[dateString][\$gte]=2015&find[dateString][\$lte]=2015-03&count=3&find[sgv][\$gt]=39&find[sgv][\$lte]=300"
Martin Haeberli
@mhaeberli
Jun 28 2016 23:29
how do I pull data from Azure / Nightscout into openaps ?
Paul Martin
@Spazholio
Jun 28 2016 23:30
I think @bewest just (inadvertently) told you. =)
use nightscout autoconfigure-device-crud to set up ns device in NS
then you can use openaps use ns shell oref0_glucose
@Spazholio why don't you try building it up from scratch, it'd surely start with openaps use ns somehow?
Martin Haeberli
@mhaeberli
Jun 28 2016 23:31
k thx
Paul Martin
@Spazholio
Jun 28 2016 23:31
Oh, I was using Robomongo to query the DB directly. Just still trying to wrap my head around the syntax.
Ben West
@bewest
Jun 28 2016 23:32
you familiar with PHP?
you know how php creates an array/object from query params?
that's how it works
find becomes the query object
Tim Mecklem
@tmecklem
Jun 28 2016 23:33

It seems to be when this report is invoked that my troubles appear:

[report "oref0-monitor/profile.json"]
insulin-sensitivities = settings/insulin-sensitivities.json
use = shell
settings = settings/settings.json
reporter = text
json_default = True
device = get-profile
bg-targets = settings/bg-targets.json
basal-profile = settings/selected-basal-profile.json
max-iob = max-iob.json
remainder =

other context:

[report "raw-pump/bg-targets-raw.json"]
device = pump
use = read_bg_targets
reporter = JSON

[report "settings/bg-targets.json"]
device = units
to = mg/dL
use = bg_targets
input = raw-pump/bg-targets-raw.json
reporter = JSON
Ben West
@bewest
Jun 28 2016 23:33
so in PHP, it'd be equivalent to mongo_query($_GET['find'])
Martin Haeberli
@mhaeberli
Jun 28 2016 23:36
@bewest so I installed openaps from github , but nightscout autoconfigure … fails as nightscout is somehow not defined. so maybe I also need to nightscout from github somehow?
Ben West
@bewest
Jun 28 2016 23:36
ah ok
sudo npm install -g git://github.com/openaps/oref0.git'#dev' should do it
nightscout should have tone of output
help output
nightscout ns help should generate similar, lots of output
nightscout autoconfigure-device-crud should generate small help output/error
Martin Haeberli
@mhaeberli
Jun 28 2016 23:38
so should I remove my current openaps directory that I just cloned and built from github
?
Paul Martin
@Spazholio
Jun 28 2016 23:40
I’m quite familiar with PHP, actually. I’ll re-look at it from that standpoint. Curious though (and I looked for this) - I can’t find a Mongo equivalent of MySQL’s “LIKE” command. Meaning, if I want to find all dates that have “2016” anywhere in them (for example), in MySQL it’d be “SELECT * FROM treatments WHERE whatever_the_date_column_is LIKE ‘%2016%’”. What’s the Mongo equivalent? I found something involving using a regex, but…please don’t make me write regexes?
Ben West
@bewest
Jun 28 2016 23:40
@mhaeberli this isn't openaps, this is just the oref0 part
@Spazholio they have regexp for that
Paul Martin
@Spazholio
Jun 28 2016 23:41
Drat.
Martin Haeberli
@mhaeberli
Jun 28 2016 23:41
@bewest thx
Ben West
@bewest
Jun 28 2016 23:41
there are regexp helpers built into the entries api, but dunno if support made it to treatments
think it works actually
it generates regexp queries for ranges
using glob syntax
this is a feature I added, not provided by mongo
api.get('/slice/:storage/:field/:type?/:prefix?/:regex?', prep_storage, prep_pattern_field, prep_patterns, query_models, format_entries);
Martin Haeberli
@mhaeberli
Jun 28 2016 23:43
@bewest - output is:
/usr/local/bin/nightscout: line 292: json: command not found
/usr/local/bin/nightscout: line 292: json: command not found
/usr/local/bin/nightscout: line 293: json: command not found
Traceback (most recent call last):
File "/usr/local/bin/openaps-import", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/ubuntu/openaps/bin/openaps-import", line 89, in <module>
app( )
File "/home/ubuntu/openaps/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/home/ubuntu/openaps/bin/openaps-import", line 77, in run
candidates = json.load(args.input)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Ben West
@bewest
Jun 28 2016 23:43
ah ok
sudo npm install -g json
@mhaeberli ^^ missing json command that's all :-)
Martin Haeberli
@mhaeberli
Jun 28 2016 23:44
k trying that
node - “no such file or directory"
@bewest Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/ubuntu/openaps/bin/openaps-device", line 35, in <module>
app( )
File "/home/ubuntu/openaps/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/home/ubuntu/openaps/bin/openaps-device", line 29, in run
self.commandsargs.command
File "/home/ubuntu/openaps/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/home/ubuntu/openaps/openaps/devices/add.py", line 23, in main
app.config.add_device(device)
File "/home/ubuntu/openaps/openaps/config.py", line 43, in add_device
self.add_section(section)
File "/usr/lib/python2.7/ConfigParser.py", line 264, in add_section
raise DuplicateSectionError(section)
ConfigParser.DuplicateSectionError: Section 'device "ns"' already exists
/usr/bin/env: 'node': No such file or directory
/usr/bin/env: 'node': No such file or directory
/usr/bin/env: 'node': No such file or directory
Traceback (most recent call last):
File "/usr/local/bin/openaps-import", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/ubuntu/openaps/bin/openaps-import", line 89, in <module>
app( )
File "/home/ubuntu/openaps/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/home/ubuntu/openaps/bin/openaps-import", line 77, in run
candidates = json.load(args.input)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Tim Mecklem
@tmecklem
Jun 28 2016 23:47
My wife tells me that I should use my fortunate proximity to Microcenter for good: offer to purchase and ship pi zeros at cost to fellow tiny computer enthusiasts in epic robot battles against diabetes.
Ben West
@bewest
Jun 28 2016 23:47
that's unique
so ... which node
Tim Mecklem
@tmecklem
Jun 28 2016 23:47
I suppose since she's the patient I should listen to her :)
Ben West
@bewest
Jun 28 2016 23:47
which nodejs
I think sudo apt-get install nodejs-legacy should fix that one
Martin Haeberli
@mhaeberli
Jun 28 2016 23:47
/usr/bin/nodejs
Ben West
@bewest
Jun 28 2016 23:47
yeah
due to a quirk of history, decades ago there was a radio program called node and added to the debian distro at some point
Martin Haeberli
@mhaeberli
Jun 28 2016 23:48
@bewest - looks like this worked
Ben West
@bewest
Jun 28 2016 23:48
when node.js came along and wanted to call itself node, debian laughed and called it nodejs
now, to support "legacy" scripts of node.js who assume it's called node, debian provides a nodejs-legacy package which calls it node again
Martin Haeberli
@mhaeberli
Jun 28 2016 23:49
:-)
cdaccarett
@cdaccarett
Jun 28 2016 23:49
im wondering if anyone can point me in the right direction to complete the "Unifying pump treatments in Nightscout" in the http://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-1/using-openaps-tools.html section.
Screen Shot 2016-06-28 at 4.44.55 PM.png
Screen Shot 2016-06-28 at 4.45.08 PM.png
Ben West
@bewest
Jun 28 2016 23:51
@mhaeberli if you got duplicate device it's probably already imported fine
Tim Mecklem
@tmecklem
Jun 28 2016 23:51
@Spazholio I might take you up on the offer to flash the firmware on this cc1110 chip.
Ben West
@bewest
Jun 28 2016 23:52
@mhaeberli simplest possible use is openaps use ns shell preflight should print true
Paul Martin
@Spazholio
Jun 28 2016 23:52
@tmecklem I don’t feel like scrolling up - it was the Slice of Radio, right? =)
Martin Haeberli
@mhaeberli
Jun 28 2016 23:52
@bewest true
Tim Mecklem
@tmecklem
Jun 28 2016 23:53
Slice of radio.jpg
Chris Oattes
@cjo20
Jun 28 2016 23:53
@cdaccarett The first one means you've typed the report to invoke incorrectly
@cdaccarett For the second, the first line of the error message tells you what it is missing
Kim St. Dennis
@kimstdennis_twitter
Jun 28 2016 23:54
@bewest quick distraction; can you point me to where there is some info on getting the values for basal changes to show on ns as seen in this image? https://cloud.githubusercontent.com/assets/394179/15442749/dcd90b46-1e97-11e6-9dc5-0c20711ec1fd.png
Tim Mecklem
@tmecklem
Jun 28 2016 23:54
That's my slice of radio. There are many like it, but that one is mine
Kim St. Dennis
@kimstdennis_twitter
Jun 28 2016 23:54
omg. sorry about that.
Paul Martin
@Spazholio
Jun 28 2016 23:54
Sure thing. I have one myself and flashed it, no problem. Drop me a private message if you want me to get that taken care of for you.
Tim Mecklem
@tmecklem
Jun 28 2016 23:55
Did you spring for the TI programmer or do something else?
Ben West
@bewest
Jun 28 2016 23:55
@kimstdennis_twitter you need to upload your pump-history to treatments endpoint
Paul Martin
@Spazholio
Jun 28 2016 23:55
I have the TI programmer. And I’ve used it for three separate things so far, so it was worth it.
That’s what I need to keep telling myself. And my wife. =)
Martin Haeberli
@mhaeberli
Jun 28 2016 23:56

@bewest openaps use ns shell oref0_glucose
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
[--version]
device ...
openaps-use: error: argument device: invalid choice: 'tz' (choose from u'ns')
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/ubuntu/openaps/bin/openaps-use", line 63, in <module>
app( )
File "/home/ubuntu/openaps/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/home/ubuntu/openaps/bin/openaps-use", line 58, in run
reporter(output)
File "/home/ubuntu/openaps/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/home/ubuntu/openaps/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/home/ubuntu/openaps/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Tim Mecklem
@tmecklem
Jun 28 2016 23:56
nice! I'm sure I couldn't get that much use out of one. I've fallen for the ESP8266 chips pretty hard, so I spend most of my time with NodeMCU stuff and raspberry pis (and elixir nerves... so good)
Ben West
@bewest
Jun 28 2016 23:56
it has to be reformatted using ns shell format-recent-history-treatments with two arguments: the first argument is a json file containing zoned pump-history, the second file must be the model of the pump (eg from openaps use pump model)
that creates a reformatted stream for ns
Kim St. Dennis
@kimstdennis_twitter
Jun 28 2016 23:57
@bewest oddly I have the icicle display, but no numerical values. I'll check out the treatments endpoint. thanks.
Ben West
@bewest
Jun 28 2016 23:58
then it gets uploaded using openaps use ns shell upload-non-empty-treatments with one argument, the output of the previous step