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

22nd
May 2016
Dana Lewis
@danamlewis
May 22 2016 00:01
@Spazholio hope you could tell I was joking :)
I still think that PR needs to have the content be three pages, I’d be fine with the content going to dev as-is.
But @scottleibrand just took off, so I’ll leave it there to see if Matt has time to do that, otherwise I can do that in a few days. And if anyone has further feedback on that, they can comment on the open PR so we can track discussion around improving that section
Nathan Racklyeft
@loudnate
May 22 2016 00:08
@mhaeberli @channemann is doing that now actually. But once you go down that path, upgrading to the G5 means one less thing carry.
Paul Martin
@Spazholio
May 22 2016 00:12
On an unrelated note, after 20 years as a T1D, I stillcan’t bolus for Taco Bell properly. I have it MAYBE 3 times a year, and it’s always a freaking rollercoaster. Tasty, though.
Dana Lewis
@danamlewis
May 22 2016 00:12
heh. have you tested out eating soon/temp targets, yet?
Paul Martin
@Spazholio
May 22 2016 00:12
(and @danamlewis, I absolutely knew you were joking - I was just off fixing a low)
Dana Lewis
@danamlewis
May 22 2016 00:12
:) but :/ for the low
Paul Martin
@Spazholio
May 22 2016 00:12
I don’t have the temp_targets.json report. Unsure how to generate it. Once I figure it out, it’ll go in my doc. =)
Dana Lewis
@danamlewis
May 22 2016 00:13
it gets triggered from Nightscout :)
Paul Martin
@Spazholio
May 22 2016 00:14
…oh. So Could not sort temptargets_data. Optional feature temporary targets disabled. is because I haven’t put something in NS?
Huh. What do I put and where? =)
Dana Lewis
@danamlewis
May 22 2016 00:14
try triggering it in NS and see if that magically creates it
Paul Martin
@Spazholio
May 22 2016 00:15
Seriously, I was up so high earlier, and if I play my cards right, I’ll have an all-time low in the next 10 minutes! WHEEEE!
(I’ve eaten, and I’m 100% safe, it’s just amusing to me)
Dana Lewis
@danamlewis
May 22 2016 00:15
Care Portal: temporary target. then eating soon is an option, which sets a temp target to 80
That’s also the way to trigger “activity mode”, i.e. a higher (say 140) temp target for exercise time period
and it’ll tell the loop and use that as the targets.
Paul Martin
@Spazholio
May 22 2016 00:16
Ok. And this is just aggressive temp-basal’ing, right? I still need to bolus like I normally would?
Dana Lewis
@danamlewis
May 22 2016 00:16
eating soon means getting a bit of insulin activity going before mealtime
yes. but it helps cut down on meal spikes so the carbs aren’t an hour ahead of peak insulin activity time otherwise
Paul Martin
@Spazholio
May 22 2016 00:18
Ok. And “soon” in this context means “within the hour”?
Dana Lewis
@danamlewis
May 22 2016 00:18
yep
it’s not necessary to be precise about the timing. because you’re targeting 80, and with temps.
but even 30min helps, so if you can remember to do it as you head into a meal, it helps
Dana Lewis
@danamlewis
May 22 2016 00:26
This is what the experience is like for me if I bolus at the same time I eat (or even 15 min prior), compared to using eating soon mode:
Screen Shot 2016-05-21 at 5.25.48 PM.png
Screen Shot 2016-05-21 at 5.25.56 PM.png
not always perfect, still requires meal bolus, but helps me a lot to blunt and cut off what would otherwise be a big meal spike
Paul Martin
@Spazholio
May 22 2016 00:30
Wait, the insulin’s supposed to kick in closer to 15-30, no? Are you using (Novo|Huma)log?
I mean, either way that’s a hell of an improvment. =)
Dana Lewis
@danamlewis
May 22 2016 00:30
kick in vs peak is a little different
Humalog for me
Paul Martin
@Spazholio
May 22 2016 00:34
Interesting. I was always told that kick-in was after roughly 15 mins, and peak was after an hour. Never really tested it, just always kinda went with what I was told there, since it seemed to fit. I’ll try the “eating soon” mode next time. My numbers are going to be weird for the next day or so due to the Taco Bell, so maybe on Monday or Tuesday. =)
Dana Lewis
@danamlewis
May 22 2016 00:35
yep. it kicks in earlier, but if carbs hit at 15 minutes and insulin “starts” at 15 min, too, the ability for your body to then “use” it and get it matching with the glucose..it gets behind, thus the “peak” activity and impact around an hour or beyond.
John Benjamin
@Bender1061
May 22 2016 00:47
does sudo oref0-reset-usb turn off then HDMI output on the Raspberry Pi 3?
ddaniels1
@ddaniels1
May 22 2016 00:53
all of a sudden seeing
AssertionError
Dana Lewis
@danamlewis
May 22 2016 00:53
@Bender1061 that command is supposed to reset the USB stack
ddaniels1
@ddaniels1
May 22 2016 00:53
and all reports failing on the RPI. tried oref-reset-git
oref0-reset-git
tried re-installing dev, still no luck
any ideas?
Dana Lewis
@danamlewis
May 22 2016 00:54
hmm. don’t remember seeing an AssertionError before. has anything else changed?
(and/or, as always, is pump in range?)
ddaniels1
@ddaniels1
May 22 2016 00:55
pump in range, have been running TI stick for a few days with minimal problems, lost power to RPI and then reconnected. Worry it got corrupted somehow. Would re running install from source fix that, or are there other issues that can arise?
Dana Lewis
@danamlewis
May 22 2016 00:58
might be the next best thing to try if oref0-reset-git didn’t do it
ddaniels1
@ddaniels1
May 22 2016 00:58
should I just remove the SRC directory and then reinstall?
think it is something global because my NS download gives the same error so not tied to the TI stick or pump
Dana Lewis
@danamlewis
May 22 2016 00:59
getting into the genre of things I haven’t done myself but (if you have a backup somewhere), doesn’t hurt to try
John Benjamin
@Bender1061
May 22 2016 01:02
@danamlewis Yeah I was reading something online when suddenly my hdmi monitor went dead (connected to the Pi), I've been having the whole rig just stop responding every couple hours, so I added that to my prechecks, I have a waittime of 120 seconds, but I forgot to wait to see what happens. I just cycled power cause there was no reading from the SD card. I looked at my logs and I don't see anything that looked out of place, other than it had done that command, but by the time I had opened the openaps.log it had already started on a loop, so I don't know if that was the timeing or not. course as I'm writing this, i'm wondering why I don't just try to sent that command now. lol, Lets see what happens
Dana Lewis
@danamlewis
May 22 2016 01:02
heh
John Benjamin
@Bender1061
May 22 2016 01:03
nope, back to drawing board
Dana Lewis
@danamlewis
May 22 2016 01:04
For both of you, once you figure these issues out, might be good to add to the Troubleshooting page: https://github.com/openaps/docs/blob/master/docs/docs/Resources/troubleshooting.md#dealing-with-a-corrupted-git-repository
jaylagorio
@jaylagorio
May 22 2016 01:11
@Bender1061 Because of the way the Pi works dropping USB might drop more than just the USB devices. On the Pi2 Ethernet is on the USB bus so you'll usually lose that too as the bus goes down and comes back up. I can't speak to the Pi3 though, I don't have one of those.
I also don't know what bus HDMI is on, if it's on that bus dropping USB will also kill that as well
John Benjamin
@Bender1061
May 22 2016 01:20
it did not, i tried it manually, it only killed the USB Ports on a Pi 3
Martin Haeberli
@mhaeberli
May 22 2016 01:24
@loudnate thanks!
jaylagorio
@jaylagorio
May 22 2016 01:26
@Bender1061 Nice, that's definitely an improvement if they took networking (plus the new Wifi and BT interfaces) off that bus.
John Benjamin
@Bender1061
May 22 2016 01:32
has anyone ever looked into 28/24AWG USB Cables? at home these are all I use, due to the fact you have the larger 24 gauge wire that is used for power. While this might now seam like a huge difference, it really is. If you supply enough power ie a good battery with a nice large current output (more than 1A) you can charge a cell phone nearly twice as fast. now I've been using one of those short USB cables that are listed on the documents to keep the Raspberry Pi 3 hooked up to the battery. The last couple of days I've noticed that the battery gets quite toasty warm. One of the huge advantages as well of using a Larger power cable is it does allow you to pull more power . kind of think about how if you hook up two jumper cables when you are jumping your car, you can generally jump the car right away with out letting it charge for a bit first (trust me, try it), anyways this allows you to pull much more power without melting your jumper cables (or damaging your battery). Well the same thing happens with a battery for our rigs. Today I've been running my rig all afternoon with my larger 28/24AWG cable, and the Pi has a tiny bit of warmth to it, but the battery is cool to the touch. So the cable I'm using is a bit long for what I want to use, but this might be a solution to the problem I hear about people talking about heat. http://www.amazon.com/Monoprice-1-5-Feet-Ferrite-Plated-108639/dp/B009GUPXAW?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_search_detailpage
Jason Calabrese
@jasoncalabrese
May 22 2016 02:00
@danamlewis are those eating soon images in post somewhere?
Dana Lewis
@danamlewis
May 22 2016 02:01
@jasoncalabrese nah, I just made them today. I can put them somewhere if they’re helpful, though...
Jason Calabrese
@jasoncalabrese
May 22 2016 02:03
I would be nice to be able point to them from the NS readme in the openaps plugin section, other places too
ddaniels1
@ddaniels1
May 22 2016 02:55
@danamlewis I would be happy to work on docs to set up "eating soon" I think it is an important feature for Olivia and other younger kids especially. I think @scottleibrand mentioned that it might be useful because of the finicky habits of younger kids, if they don't eat much, just cancel it. Helps also because young children especially toddlers spike very high and fast. Starting low will help them. Olivia doesn't feel well when her BS goes over 250.
Dana Lewis
@danamlewis
May 22 2016 02:58
Great @ddaniels1! See above earlier description of how it works, plus https://diyps.org/2015/03/26/how-to-do-eating-soon-mode-diyps-lessons-learned/ for a longer version, but getting it into the docs so more people can use it sooner would be nice
@jasoncalabrese I wasn't sure if it was already written up over on NS side or not
ddaniels1
@ddaniels1
May 22 2016 02:59
OK, I will start working on it, will search on NS as well. Only catch is you will have to put up with my questions while I do it:)
Dana Lewis
@danamlewis
May 22 2016 03:00
Deal, as always :) start a PR, and I'm happy to edit!
ddaniels1
@ddaniels1
May 22 2016 03:01
OK. I assume it requires AMA branch to work?
Dana Lewis
@danamlewis
May 22 2016 03:03
This message was deleted
Well. Take that back.
Eating soon mode can be done manually, if you trigger it in NS it will set the temporary targets to the pu
Jarred Yaw
@jyaw
May 22 2016 03:04
does the 722 not have iob? just transitioned over today. Are you all using nightscout to calculate iob or are you just keeping track using another openaps tool?
Dana Lewis
@danamlewis
May 22 2016 03:04
(Gitter is not my friend tonight.) *pump. Need clarification from @jasoncalabrese on which branch is required for it for openaps integration
@jyaw 722 has iob. You're probably noticing that it was 723 when it showed up in the status screen, 722 forces you to go through bolus wizard to see it.
But - very important:
We do net iob tracking for openaps because we calculate the impact of temp basal rates. So this is why monitoring is important, because the pump iob is just bolus iob, rather than net.
So you'll want to look in your logs and/or get Nightscout set up to report net iob from openaps so you can easily see it.
Once you go on openaps and use temps to correct, you shouldn't be using the pump reported iob, because it's wrong (only bolus) and will throw you off from making the right decisions
Jason Calabrese
@jasoncalabrese
May 22 2016 03:12
@danamlewis there's nothing mentioned about it in the NS readme yet, but it's been on dev for a while. I think we should add something here: https://github.com/nightscout/cgm-remote-monitor/blob/dev/README.md#openaps-openaps
Dana Lewis
@danamlewis
May 22 2016 03:13
Sounds good
Jason Calabrese
@jasoncalabrese
May 22 2016 03:14
I think we're going to need a way to customize the default reasons, for activity mode I'm liking 140-140, maybe just store what was used last for the browser
Jarred Yaw
@jyaw
May 22 2016 03:14
@danamlewis understood, just keep getting 0 back in my iob.json from the pump so I wondered if it was there or not (I know its non-zero due to a recent bolus)
thanks for the clarification!
Dana Lewis
@danamlewis
May 22 2016 03:15
In that case, there's portably something going on that needs to be debugged :)
Jarred Yaw
@jyaw
May 22 2016 03:18
awesome... will get to it
ddaniels1
@ddaniels1
May 22 2016 03:19
Finally got my edison flashed and openaps loaded. Pulled in my openaps instance and all the files look good. BUT, when I run any openaps command I get:
---No section: u'device "pump"'---
any ideas?
there is a pump device in openaps.ini
Ben West
@bewest
May 22 2016 03:23
ah, maybe pump.ini is missing
the device.ini files are not checked into git by default because there is often private/sensitive information in them
you can manually check them in using git add to add them, or you can back up your previous instance using oref0 export-loop
save it to a file like oref0 export-loop | tee backup-loop-export.json and can copy that to newer pi, and import it using openaps import
Paul Martin
@Spazholio
May 22 2016 03:27
I’d love some feedback on this sample doc before I get too deep into this: https://github.com/Spazholio/docs/blob/dev/docs/reference/openaps/openaps-report-settings-profile.md
I want to make them all interlinked whenever there’s a dependency. Here’s to hoping I have the internal linking set up correctly...
I’m designing them to be one page per report. It’s not for getting a loop setup, but more for “What the heck does this file do again? I can’t remember how I set it up?” - that sort of thing. I’ll likely do devices afterward. I’ll go back and include them in the “Dependencies” section after.
ddaniels1
@ddaniels1
May 22 2016 03:31
@bewest Feeling better?
thanks for the tip
Ben West
@bewest
May 22 2016 03:32
yes, thanks much
still small/light/trace ketones this morning
took all day yesterday, probably could have been more aggressive with some bananas, feedback is tracking in oref0#56
ddaniels1
@ddaniels1
May 22 2016 03:43
@bewest that worked and now I can run openaps commands on the Edison. What is weird though is I just invoked the monitor/ns-glucose.json report and I looked at the file and nothing there. but no errors.
Ben West
@bewest
May 22 2016 03:44
is there a monitor directory?
mkdir monitor
ddaniels1
@ddaniels1
May 22 2016 03:44
yes there is one, but it is empty when I less it even though the report was written.
Ben West
@bewest
May 22 2016 03:45
openaps report show --json | json -g | json -a name | while read dir ; do dirname $dir; done | sort | uniq | xargs mkdir
ooo typo
oh report was written but empty?
ddaniels1
@ddaniels1
May 22 2016 03:46
mkdir: cannot create directory ‘enact’: File exists
mkdir: cannot create directory ‘monitor’: File exists
mkdir: cannot create directory ‘settings’: File exists
Ben West
@bewest
May 22 2016 03:46
ah, you already made them :-)
ddaniels1
@ddaniels1
May 22 2016 03:46
yup. I pulled my working openaps instance via bitbucket to the edison.
Ben West
@bewest
May 22 2016 03:46
you said it was created but empty
ddaniels1
@ddaniels1
May 22 2016 03:47
yes output from openaps was normal, but nothing there. COnfirmed NS is up and it is set to pull 28 hours of data for autosens
Ben West
@bewest
May 22 2016 03:48
is that report using the ns device? ( openaps report show --cli monitor/ns-glucose.json), the device should be same for both edison/previous-pi
ddaniels1
@ddaniels1
May 22 2016 03:48
doubled@ubilinux:~/Documents/try5$ openaps monitor-cgm
ns-glucose://text/shell/monitor/ns-glucose.json
reporting monitor/ns-glucose.json
Ben West
@bewest
May 22 2016 03:48
openaps report show --cli monitor/ns-glucose.json should tell you the use underneath
ddaniels1
@ddaniels1
May 22 2016 03:49
openaps use ns-glucose shell
[device "ns-glucose"]
fields = 
cmd = bash -c "curl -s $NIGHTSCOUT_HOST/api/v1/entries/sgv.json?count=288 | json -e \"this.glucose = this.sgv\""
args = 

ns-glucose.ini (END)
I see!
don't have variables entered for nightscout host and api secret!
remind me where that goes? Crontab?
Ben West
@bewest
May 22 2016 03:52
actually
try: nightscout autoconfigure-device-crud
it will save those in your ini for you
nightscout autoconfigure-device-crud https://mysite.com mylongsecretpassphrase
this creates a new ns device
to get glucose: openaps use ns shell get entries.json count=288 or similar
same device can upload files to NS too: openaps use ns shell upload entries.json nightscout/my-prepped-file-to-upload.json
so it's multi-use/flexible, no need to worry about environment variables
Paul Martin
@Spazholio
May 22 2016 03:58
Oh, @bewest - is the nightscout device working in the AMA branch, or does that still need to be integrated?
ddaniels1
@ddaniels1
May 22 2016 03:59
IF you mean for upload there are issues with it failing if there is not a change in enacted/suggested.json
@scottleibrand said he was going to work on fixing that
Paul Martin
@Spazholio
May 22 2016 04:01
I think it goes beyond that - my ns device is completely non-functional after switching to AMA. Which isn’t crippling, but I liked the functionality it provided. =)
Ben West
@bewest
May 22 2016 04:04
ah, it's missing from AMA
you can do it on your original pi setup using master/dev
then import it
like, do it on one with master then openaps device show ns --json | tee ns-backup.json
oh...
actuallynm
Paul Martin
@Spazholio
May 22 2016 04:05
heh
Ben West
@bewest
May 22 2016 04:07
hmm, ok this time I'll try rebasing it and see what happens
ddaniels1
@ddaniels1
May 22 2016 04:07
thanks @bewest !
bewest @bewest blinks
Ben West
@bewest
May 22 2016 04:15
wow, couple stabs in the dark, but not as bad as the merge
Paul Martin
@Spazholio
May 22 2016 04:16
HAH! “That…there’s no way I got it right on the first try. I must have made a mistake somewhere.” =)
ddaniels1
@ddaniels1
May 22 2016 04:18
@bewest what is the proper syntax to create the report I will need with the new ns device? openaps report add monitor/ns-glucose.json JSON ns get entries.json count=288
?
Jarred Yaw
@jyaw
May 22 2016 04:18
Anyone have a few pointers to where I could look to debug my pump config? When I do openaps use pump iter_pump 100, I get no bolus information, when I know I should...
Ben West
@bewest
May 22 2016 04:20
as a reminder
I actually do not recommend advanced-meal-assist for beginners, it's on a feature branch, meaning it's not even in dev
that said, openaps/oref0#119
this one was rebased to sit on top of dev
close, ns shell get entries.json count=288
Paul Martin
@Spazholio
May 22 2016 04:29
Hey @bewest - when writing some of this documentation, should I try to replace iter_glucose_hours and other iter_ commands with the equivalent oref0 ones? Is it fairly safe to assume that with a basic install now, everyone should have the proper oref0 stuff installed and can use those commands?
Some of the setup.sh scripts still reference iter_glucose_hours but in my personal openaps dir, I’m using oref0.
Ben West
@bewest
May 22 2016 04:33
yes
oh
yes
Paul Martin
@Spazholio
May 22 2016 04:33
Yeah, that’s what I figured. =)
Ben West
@bewest
May 22 2016 04:33
it's in master, and released, so yes please :-D
same for nightscout autoconfigure-device-crud
Paul Martin
@Spazholio
May 22 2016 04:35
I’ve got 10 new docs, and about 10 more to go, so once I get this PR submitted, I’m definitely gonna want you, @danamlewis, and @scottleibrand to give them several once-overs to make sure I’m not using deprecated code anywhere.
Ben West
@bewest
May 22 2016 04:35
there are some syntax hints here for reminders: https://github.com/openaps/docs/issues/129#issuecomment-216069305
Paul Martin
@Spazholio
May 22 2016 04:36
I’m having issues with writing the reference doc for the monitor/glucose.json file. Because that involves the raw dirs that you recommended (I really like that concept - good call), and some magic afterward to determine whether or not to use NS data or CGM data. I’ll figure it out later though.
Ben West
@bewest
May 22 2016 04:37
feel free to use the issues there to preview content/snippets
ah, the "whether or not to use NS data or CGM data" I'm looking at that problem with a different frame
Paul Martin
@Spazholio
May 22 2016 04:37
In that case, I suspect I’ll be rewriting this doc later on. =)
Ben West
@bewest
May 22 2016 04:38
I'm thinking more of performing a gap sync against available sources, but need some more feedback/usage on the tools to do it well
ddaniels1
@ddaniels1
May 22 2016 04:39
What are the power issues with NS data vs. CGM data? Meaning when you are out and about and have to be tethered to your phone with the RPI/Edison.
In order to get NS data.
Paul Martin
@Spazholio
May 22 2016 04:40
Crap, I get a little hinky on converting use to report add syntax. Does this look right? openaps report add monitor/glucose.json cgm oref0_glucose --hours "25.0" --threshold "100"
ddaniels1
@ddaniels1
May 22 2016 04:40
Anyone run NS locally on the edison in order to visualize to have a true "camping" mode openaps
Paul Martin
@Spazholio
May 22 2016 04:41
@ddaniels1 There area a couple reasons I prefer CGM data, but the fact I don’t have to be 100% connected - no hotspot - is my primary one. Some fun timezone differences between the info returned from NS versus what’s returned from the CGM is another.
Wait - throw a JSON in there right after the report name. NOW is it right? It looks right...
Ben West
@bewest
May 22 2016 04:45
use becomes report add name JSON
yuppers :-)
Paul Martin
@Spazholio
May 22 2016 04:45
You keep saying that and I keep not remembering it. Hang on, adding to my notes.txt. First thing in there is that damned lsgaps command usage. =)
Ben West
@bewest
May 22 2016 04:49
running NS locally on edison/pi is very interesting
I tried doing it but I think it overheated
tried using an edison configured to use external sd card as rootfs
Jarred Yaw
@jyaw
May 22 2016 05:32
@bewest have you ever seen a 722 that didn't return bolus data on a use pump iter_pump command when you had verified bolus data on the device itself?
ddaniels1
@ddaniels1
May 22 2016 05:47
Anyone on who can help troubleshoot TI stick connection? Was working great on RPI, can't get it to connect to edison
Jarred Yaw
@jyaw
May 22 2016 05:48
I have an older 715, may just check that one in the morning and see if I get the same behavior
Ben West
@bewest
May 22 2016 06:43
hmmm
Ben West
@bewest
May 22 2016 06:50
@jyaw are you using carelink stick?
ddaniels1
@ddaniels1
May 22 2016 06:54
ahhh, it's a permissions thing. I just ran mmtune as sudo and it worked. Just need to figure out where to adjust the permissions then.
Ben West
@bewest
May 22 2016 06:57
for cc1111-something?
it's almost always udev rule :-)
This message was deleted
This message was deleted
$ cat  /etc/udev/rules.d/20-subg_rfspy.rules 
# TI_DONGLE board with subg_rfspy usb firmware
# SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="8001" MODE:="0660" SYMLINK+="RFSPY%n", GROUP="dialout" ENV{ID_MM_DEVICE_IGNORE}="1"
# create a symlink to the ttyUSB device created automatically above
ACTION=="add",                                       \
  SUBSYSTEM=="tty", \
  ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="8001", \
  ENV{ID_MM_DEVICE_IGNORE}="1", \
  GROUP="dialout", \
  SYMLINK+="RFSPY%n"
I have that one for my cc1111 stick
Ben West
@bewest
May 22 2016 07:14
what this rule says is that the "device file" ( the /dev/RFSPY0 in this case should belong to the dialout group
so if you are also in dialout (sudo usermod -a -G dialout pi, logout, log in again to refresh your permissions) should do the trick
it's usually some variant of this technique, you can type groups to find out which groups you are already in
@jyaw if you're using the carelink stick, if you'd like to learn how to use the mm-send-comm.py and some other mm-* tools, you can use them to cross-reference and verify things
Ben West
@bewest
May 22 2016 07:20
they provide -h output, but it's useful to know it needs your serial number, and you have to become aware of the medtronic's pump session
easiest way is openaps use pump model and then you can use mm-* tools for three minutes or so
then the "session" ends
openaps can wake it up again automatically
or, you can give mm-send-comm.py --init adding the --init flag wakes up the pump
tweak ReadHistoryData --save --page 0 sans any typos should save a raw page of history data
ddaniels1
@ddaniels1
May 22 2016 07:27
Great thanks, just got called in for an emergency heart surgery so I'll have to try in the morning.
Ben West
@bewest
May 22 2016 07:36
wow
Jarred Yaw
@jyaw
May 22 2016 09:13
@bewest yes I'm starting out with the care link. I'll give those mm-* commands a try and get back later with results. Thanks!
Scott Leibrand
@scottleibrand
May 22 2016 10:17
Heh, I did a merge of AMA and dev on the plane as well. Will have to see if I got the same results as @bewest did. :-)
timomer
@timomer
May 22 2016 10:43
@andrew-warrington @colinlennon @xpucuto @oskarpearson @danamlewis 26th ill be there from 12, its in the lobby area just turn right when you walk in or ask reception. Tea and Coffee will be provided by the lovely people at CBS ;) http://whoozin.com/MMC-3Y3-74MV
joannestevens
@joannestevens
May 22 2016 10:45
Sorry, very basic question here, can anyone give me any troubleshooting I am unable to communicate with receiver, I can communicate with pump no problem
I can't see anything on the resources for it
Hristina Dimova
@xpucuto
May 22 2016 10:55
@timomer I will do my best to come, probably straight from the airport. You will be there till 2pm right?
timomer
@timomer
May 22 2016 10:56
@xpucuto ill be there at least until 3pm :) will be leaving direct to the airport from there
Hristina Dimova
@xpucuto
May 22 2016 10:57
@timomer great :) save me a coffee then ;)
P.s what infution sets are you using?
timomer
@timomer
May 22 2016 11:11
@xpucuto will do ;) im using Accu-Chek FlexLink 6mm
Hristina Dimova
@xpucuto
May 22 2016 11:15
:+1: I am curious to see the new MM Mio 30 which is not yet available here .
Scott Leibrand
@scottleibrand
May 22 2016 11:20
@joannestevens what kind of receiver?
joannestevens
@joannestevens
May 22 2016 11:22
Dexcom G4
Colin Lennon
@colinlennon
May 22 2016 11:22
@timomer Great! I'll be there. I get into Gatwick at 11, so I'll head straight from the airport.
Scott Leibrand
@scottleibrand
May 22 2016 11:23
@joannestevens can you describe what you've done and what error you get? generally "it doesn't work" isn't quite enough info to help troubleshoot. :)
joannestevens
@joannestevens
May 22 2016 11:25

Using username "pi".
pi@raspberrypi.local's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun May 22 12:09:45 2016
pi@raspberrypi ~ $ cd myopenaps
pi@raspberrypi ~/myopenaps $ openaps use jocgm iter_glucose 1
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.0', 'openaps-use')
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-use", line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/vendors/dexcom.py", line 271, in main
for item in self.dexcom.iter_records(self.RECORD_TYPE):
AttributeError: 'NoneType' object has no attribute 'iter_records'
pi@raspberrypi ~/myopenaps $

Scott Leibrand
@scottleibrand
May 22 2016 11:27
and has openaps use jocgm ever worked?
or are you setting it up for the first time?
joannestevens
@joannestevens
May 22 2016 11:28
No, I have started from scratch again, so right back at the beginning. It has my glucose readings on there no probs
Scott Leibrand
@scottleibrand
May 22 2016 11:28
if this is the first time, you should check that the USB cable you're using is capable of transmitting data
was it working before with this exact same hardware and cable?
does the charging icon turn on when you plug it in?
joannestevens
@joannestevens
May 22 2016 11:29
No, I was trying to use using xdrip
Scott Leibrand
@scottleibrand
May 22 2016 11:29
(a power-only cable will charge but not do data, but if it won't even charge then it's a bad cable)
joannestevens
@joannestevens
May 22 2016 11:30
Ok, maybe I have the wrong cable then, it's def charging
Scott Leibrand
@scottleibrand
May 22 2016 11:30
if you use Dexcom studio or similar, use the cable that works with that
joannestevens
@joannestevens
May 22 2016 11:31
I don't use, the receiver was bought from ebay
joannestevens
@joannestevens
May 22 2016 11:39
Thanks @scottleibrand, changed the cable and now I have communicate with receiver
Scott Leibrand
@scottleibrand
May 22 2016 11:39
nice
John Males
@johnmales
May 22 2016 11:42
Hi @scottleibrand, I see openaps/oref0#120 about the autosens issue. Just checking - to test this I would checkout the fix-autosens-data-warning branch of openaps, install it and then test?
joannestevens
@joannestevens
May 22 2016 11:52
Next stupid question ... and I apologise in advance .... I am trying to SSH in to my pi through Juice SSH on my android phone. I have put the ip address in but is asking for an identity. What goes there? Anything I want. Also asking for authentification password is that just raspberry, as that is not working
Jarred Yaw
@jyaw
May 22 2016 11:55
Identity is the username (pi, unless you've added a different user)
joannestevens
@joannestevens
May 22 2016 11:59
Thanks @jyaw that's sorted it ...
Scott Leibrand
@scottleibrand
May 22 2016 12:06
@johnmales correct. sounds like you did that and it worked, so I'll go ahead and merge it. :)
John Males
@johnmales
May 22 2016 12:07
Yep all good answered my own question :)
Colin Lennon
@colinlennon
May 22 2016 12:08
Quick question regarding auto-sens.json - one of the reports which is passed as an input is the basal profile report. I am correct in thinking this should be the active basal profile?
Scott Leibrand
@scottleibrand
May 22 2016 12:09
nope
Colin Lennon
@colinlennon
May 22 2016 12:09
Ah really? Ok
Scott Leibrand
@scottleibrand
May 22 2016 12:09
it wants the whole thing, so it can correctly determine net iob at every point in the last 24h
Colin Lennon
@colinlennon
May 22 2016 12:10
Right. I think I might have my basal_profile.json report configured incorrectly then
It only contains info on the standard profile
I'll check that
Scott Leibrand
@scottleibrand
May 22 2016 12:16
oh wait
are you saying the active profile vs. patterns a and b?
or just the "current" basal rate (for this point in time)?
Colin Lennon
@colinlennon
May 22 2016 12:18
My basal_profile.json contains info on the standard profile, i.e. not profile A or profile B
Even though I currently have profile A selected
My active_basal_profile.jsonhas the info for profile A so that looks okay
Scott Leibrand
@scottleibrand
May 22 2016 12:19
ok, then yeah, you could just pass active_basal_profile.json as the argument there, or update your basal_profile.json report to do what active_basal_profile.json does
can you also check whether the docs are correct on this point? this seems like the kind of thing we could have missed there.
fwiw read_selected_basal_profile is the use you want your report to be running
Colin Lennon
@colinlennon
May 22 2016 12:22
Thanks. Yeah, I'll check that. I'm building a new rig, but copying across config from an existing one then modifying. So it'll probably be a mistake I've made while doing that. I'll check the docs though, just in case
Scott Leibrand
@scottleibrand
May 22 2016 13:14
@logichammer and any other volunteers: I just opened openaps/docs#186 to track what needs done to finish documenting the setup of (advanced) meal assist.
If anyone wants to help out with that, please feel free to dive in.
Scott Leibrand
@scottleibrand
May 22 2016 13:55
Per yesterday's conversation, the other big thing we need volunteers to help figure out and document (and perhaps coordinate those doing so) is openaps/docs#132 - figuring out how to use templates to dramatically simplify setup.
joannestevens
@joannestevens
May 22 2016 14:17
@scottleibrand I am just at the beginning of this process, I wont be much help to you but I can probably look for where the documentation needs a little more explaining for those of us are not as familiar with all the terminology as others
Scott Leibrand
@scottleibrand
May 22 2016 14:20
Yes, please take notes. You might even want to start making clarifying edits to your own forked copy of the docs so you can PR them in.
joannestevens
@joannestevens
May 22 2016 14:27
@scottleibrand ok, will start to do that... perfect example trying to pull data from Nightscout, the instructions there are difficult to understand
Scott Leibrand
@scottleibrand
May 22 2016 14:29
Issue for documenting easier Nightscout uploads: openaps/docs#129
Jarred Yaw
@jyaw
May 22 2016 14:35
@bewest I ran the following command and am getting some errors...
```
mm-send-comm.py -tweak ReadHistoryData --save --page 0 (omitting --serial SERIAL)
errors:
ERROR:decocare.stick:size (0) is less than 64 and not 15, which may cause an error.
WARNING:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:0] download_i[2] status[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>] poll_size[0] poll_i[False] command[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>]:download(attempts[2],expect[0],results[0]:data[0]):BAD AILING
WARNING:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:data:unknown] reader[ReadRadio:size:0] download_i[3] status[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>] poll_size[0] poll_i[False] command[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>]:download(attempts[3],expect[0],results[0]:data[0]):BAD AILING
ERROR:decocare.stick:size (0) is less than 64 and not 15, which may cause an error.
WARNING:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:size[64]:data:''] reader[ReadRadio:size:0] download_i[2] status[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>] poll_size[0] poll_i[False] command[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>]:download(attempts[2],expect[0],results[0]:data[0]):BAD AILING
WARNING:decocare.stick:Stick transmit[TransmitPacket:ReadPumpModel:size[64]:data:''] reader[ReadRadio:size:0] download_i[3] status[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>] poll_size[0] poll_i[False] command[<LinkStatus:0x03:status:size=??LinkStatus:error:True:reason:[]:size(0)>]:download(attempts[3],expect[0],results[0]:data[0]):BAD AILING
CRITICAL:decocare.session:this seems like a problem
Scott Leibrand
@scottleibrand
May 22 2016 14:40
Are you using a Carelink stick? Is it working otherwise?
Jarred Yaw
@jyaw
May 22 2016 14:42
Yes I am. It will return read_status, read_clock_model, etc correctly, but I'm not getting bolus info in my iter_pump commands
Hmmm did it again and I got this error...
WARNING:decocare.stick:bad zero CRC?
Jarred Yaw
@jyaw
May 22 2016 14:53
Under the 'javascript' section there's another structure of error-related info:
{'radio': {'errors.crc': 0,
           'errors.naks': 0,
           'errors.sequence': 0,
           'errors.timeouts': 57,
           'packets.received': 39L,
           'packets.transmit': 116L},
 'usb': {'errors.crc': 1,
         'errors.naks': 0,
         'errors.sequence': 0,
         'errors.timeouts': 0,
         'packets.received': 1567L,
         'packets.transmit': 1568L}}
Paul Martin
@Spazholio
May 22 2016 15:11
@scottleibrand Any thoughts on the PR that just got merged? Should I keep the format, change it up, etc?
Jarred Yaw
@jyaw
May 22 2016 15:16
@scottleibrand have y'all seen this with bad care link sticks? I'm sure I'm not beyond user error but I've been pretty careful to follow directions here...
Scott Leibrand
@scottleibrand
May 22 2016 15:44
@Spazholio it looked good to me.
@jyaw not sure then. Maybe ask @bewest when he gets online later.
Dana Lewis
@danamlewis
May 22 2016 15:50
@Spazholio I've been sleeping for 12 hours :) so will take a look at your content and formatting later today
Paul Martin
@Spazholio
May 22 2016 16:06
@danamlewis Rest is good. Taking my boys to a BBQ, I'll check out comments later. Thanks!
Dana Lewis
@danamlewis
May 22 2016 16:11
:+1:
jaylagorio
@jaylagorio
May 22 2016 16:13
@bewest Is there a nuance when communicating with the Dexcom receiver over Bluetooth that I'm missing? I can communicate with it to get things like the transmitter ID and other attributes that still rely on sending and receiving packets but as soon as I try to pull data from databases, including the XML from the manufacturing database, I get all kinds of (I think) garbage. Nothing looks like it does over USB. Have any pointers for me?
Also everything over USB is working just great so I'm thinking it's related to the different interface.
Rob Kresha
@rkresha
May 22 2016 16:48
If a have a second carelink do I just plug it into the pi and it then broadcasts over both?
btw first night letting open operate on a closed loop was last night. Was amazing!
n+=1
Dana Lewis
@danamlewis
May 22 2016 16:51
:) nice @rkresha! need a few more nights, then submit to the form so we can roll the count :)
I haven’t plugged two sticks in directly to same Pi, not sure if that helps at all. (have used two Pi instead to improve range reach)
Rob Kresha
@rkresha
May 22 2016 16:52
its in charge from 10pm to 7am because I haven't gotten my power bank yet
Dana Lewis
@danamlewis
May 22 2016 16:53
:+1:
Rob Kresha
@rkresha
May 22 2016 16:54
thanks to everyone for all your contributions! :+1:
@danamlewis you aren't talking about the pr for active loopers are you?
jaylagorio
@jaylagorio
May 22 2016 16:55
@rkresha If you put two sticks on the same Pi you get two devices that could be used. I think it'll use /dev/ttyUSB0 by default but you can point it at /dev/ttyUSB1 as well. I'm not under the impression it will use both devices at the same time.
Rob Kresha
@rkresha
May 22 2016 16:56
gotcha @danamlewis
jaylagorio
@jaylagorio
May 22 2016 16:57
@danamlewis In news related to @rkresha (congrats, BTW!), it looks like MedWow fell through. No one is responding to requests at all, I guess I was under the mistaken impression that it was eBay-like and people are monitoring their sales.
Rob Kresha
@rkresha
May 22 2016 16:58
good info @jaylagorio . I'll just try to get the stick closer to me. Should the stick point away from me or towards me?
Mixed results so far
Dana Lewis
@danamlewis
May 22 2016 16:59
@jaylagorio bummer to hear :/ at one point I heard the same thing…then a few weeks ago several people suddenly had responses, but sounds like it’s back to being wiped out :/
@rkresha it’s actually the underside for strongest signal, but definitely play around with it to see what gets you strongest signal
Rob Kresha
@rkresha
May 22 2016 17:00
@jaylagorio try Reddit . Buddy of mine picked up an old device from someone in the /r/diabetes
jaylagorio
@jaylagorio
May 22 2016 17:00
@rkresha Someone did some research on that and documented it, complete with pictures. Let me see if I can find that. I think the verdict was to have the part without the USB connector pointed at you.
Dana Lewis
@danamlewis
May 22 2016 17:00
:+1:
jaylagorio
@jaylagorio
May 22 2016 17:00
And as Dana clarified, the underside was more sensitive in that orientation
Rob Kresha
@rkresha
May 22 2016 17:01
Good info :smile:
jaylagorio
@jaylagorio
May 22 2016 17:01
@rkresha How did that work out for him? Did he just post something about looking for hardware and someone showed up right off the bat?
Rob Kresha
@rkresha
May 22 2016 17:01
how tight are your big targets?
Bg
Dana Lewis
@danamlewis
May 22 2016 17:02
@rkresha varies by person. definitely recommend starting with higher targets than you’d manually treat to, and then as you get comfortable looping bring them down in 10 point increments. i.e. if you manually target 100, start with loop target of 130-140 for a night or two; then 120-130, then 110-120, etc. to see what your sweet spot is
Rob Kresha
@rkresha
May 22 2016 17:02
he said he was looking to loop and had a pump that was too new. < a week for response
jaylagorio
@jaylagorio
May 22 2016 17:03
That's pretty cool. BTW, here's that test: https://gist.github.com/channemann/0ff376e350d94ccc9f00
Rob Kresha
@rkresha
May 22 2016 17:03
so 10 points
k
mine was 90 - 130 last night
Dana Lewis
@danamlewis
May 22 2016 17:04
I usually see people do 10-120. and I would definitely start with a higher low end of your target
Rob Kresha
@rkresha
May 22 2016 17:04
i got into the mix too late and went a little low
Dana Lewis
@danamlewis
May 22 2016 17:04
(you can do what you want, of course. but that’s what I recommend for people to get started with conservatively)
Rob Kresha
@rkresha
May 22 2016 17:04
it*
John Benjamin
@Bender1061
May 22 2016 17:04
Ok, so meal assist is Amazing, I'm only using the Dev branch and I ate pizza last night, did not bolus, just entered the carbs into careportal. and while my blood sugar did go up, nothing like the ups and downs I've always had in the past with my favorite problem food! I'm going to have to see if I can get the Temp Targets to work now.
Rob Kresha
@rkresha
May 22 2016 17:05
it handled the sugar I took in like a champ tho
Scott Leibrand
@scottleibrand
May 22 2016 17:05
Yeah, there's no reason to be more than 10 points wide on target range.
Dana Lewis
@danamlewis
May 22 2016 17:05
oh dear. @Bender1061 we highly recommend you still do initial meal bolus, even with meal assist.
glad it helped…but meal bolus still needed, it’s not designed to replace a bolus, just help with the drifts and at the end of a meal
Rob Kresha
@rkresha
May 22 2016 17:06
@scottleibrand that's what I needed to know. Thanks
John Benjamin
@Bender1061
May 22 2016 17:06
Issue, with pizza is I need to use square wave bolus
jaylagorio
@jaylagorio
May 22 2016 17:06
I had no idea pizza was such a big problem for everyone across the board, I really thought it was just me.
Dana Lewis
@danamlewis
May 22 2016 17:06
@Bender1061 yep. so do a normal bolus first, and then let meal assist act like the rest of the square part
Rob Kresha
@rkresha
May 22 2016 17:07
I still need to finish reading the docs and submitting PRs as required
Dana Lewis
@danamlewis
May 22 2016 17:07
:)
John Benjamin
@Bender1061
May 22 2016 17:07
whats that's telling me is, that maybe my carb ratio is too high, since it did not go that high, 225 while elevated is not that high
Dana Lewis
@danamlewis
May 22 2016 17:08
@Bender1061 I wouldn’t change ratios based on one instance of observing it doing meal-assist, especially without a base meal bolus.
John Benjamin
@Bender1061
May 22 2016 17:09
@danamlewis oh of course. Granted tell that to the Endo's at a hospital and they look at you like a rock
Dana Lewis
@danamlewis
May 22 2016 17:09
we’re working on a few tools to help ID times when ratios or basals may be off, but don’t have them yet, and I wouldn’t feel confident making any change or recommending it without several days worth of data incorporated
Rob Kresha
@rkresha
May 22 2016 17:10
@jaylagorio thanks for the link. Looking now
Scott Leibrand
@scottleibrand
May 22 2016 17:11
@Bender1061 after you get temp targets and AMA dialed in, you'll probably start thinking 225 is super high. ;-)
John Benjamin
@Bender1061
May 22 2016 17:12
@danamlewis has their been any thoughts about somehow adding glycemic indexes to our meals?
@scottleibrand That will be very nice
Dana Lewis
@danamlewis
May 22 2016 17:13
@Bender1061 everyone has different schools of thoughts about what drives meal absorption, for me it’s carb absorption at a flat rate, regardless of food...
..so other than that, no, although there are a few others working on other tools (like @bustavo was tweeting yesterday about a new tool to visualize) outside of openaps that might be helpful in helping you figure out the right up front bolus for a certain meal
otherwise, OpenAPS is designed to respond to changes in BG, from whether that’s food-related or sick or stress or exercise or whatever.
John Benjamin
@Bender1061
May 22 2016 17:15
@danamlewis yeah fats and proteins make huge differences for me, just doing a judge on how a meal is would effect my duel wave bolus ratio
jaylagorio
@jaylagorio
May 22 2016 17:15
@rkresha Any chance your friend ball-parked the price he paid for you?
Scott Leibrand
@scottleibrand
May 22 2016 17:15
AMA automatically detects how fast carbs are absorbing, eliminating the need to predict it based on GI.
John Benjamin
@Bender1061
May 22 2016 17:17
@scottleibrand so with that you would not bolus with meal then?
Dana Lewis
@danamlewis
May 22 2016 17:17
no. with AMA, you still do an upfront meal bolus @Bender1061
but then you do n’t have to worry about the square or dual wave elements of timing long tail insulin. that’s the part AMA or meal assist does.
John Benjamin
@Bender1061
May 22 2016 17:18
so I would not want to use my bolus wizard, or I would have to cut that number in half then
half as an example
Dana Lewis
@danamlewis
May 22 2016 17:19
because of the peak time of current insulins, I think we’ll always have to do an up front meal bolus to start a meal. otherwise any loop will be too slow to ramp up insulin action and you’ll end up with a huge spike.
you want to still put in the right amount of carbs for the meal, but depending on your ratios, the amount of carbs, etc. you might end up doing a little bit less for an up front meal bolus and the loop kicking in appropriately an hour or two after the meal instead.
will require some experimentation to see what works best for you.
John Benjamin
@Bender1061
May 22 2016 17:21
yeah, but this gives me a lot more tools to see what works best
Dana Lewis
@danamlewis
May 22 2016 17:21
yup!
John Benjamin
@Bender1061
May 22 2016 17:23
like my pizza last night, a little upfront bolus would have helped, but If I'm just eating something like normal bread or for ramans sake, Dextrose (I love my bottlecaps) I need to bolus full amount (well pre bolus would be better)
Dana Lewis
@danamlewis
May 22 2016 17:23
and start exploring eating soon mode as a temp target too :) to help blunt meal spikes
but yea, the point is that you can find what works well for you for meals, and the loop will help course correct around that
jaylagorio
@jaylagorio
May 22 2016 18:34
@bewest Nix my earlier question about Bluetooth - I just figured it out. All of the data comes back in 20 byte chunks so it was a matter of organizing it into one logical payload.
Ben West
@bewest
May 22 2016 18:55
yep, working on your own?
jaylagorio
@jaylagorio
May 22 2016 19:11
Yeah, I wanted to push the uploader to the Windows Store with BLE today but I didn't get a chance to really sit down with it this week. So I pushed an update that gets the sensor data, fingers sticks, and insertions (for SAGE) as well as a devicestatus posting for battery level. It also crashes less, haha
Now that I've had a few hours since then I've finally gotten the BLE stuff working so I'll do what I did last week - implement it today, burn it in all week, and then push it to the Store on the 29th.
Even though I'm doing the Windows Store app on a laptop this is in preparation for the HP Elite X3 to come out in the next few months, which is why BLE was important to me. The USB connection is fine and all but I don't want to have something attached to the phone.
image.png
Saskia
@Missdazzle
May 22 2016 19:14
@/all Hey everybody! I´m able to loop without the last alias of my start-loop which is the alias upload. It works very fine so far! I´m still missing some treatments in NS like the change in den basal pill box and the change of the blue basal line, and the devicestatus.json only shows "uploader battery" but the rest looks good. Well I´m working my way thru the problems I´m still having. Might be able to do some troubleshooting here with you tomorrow.. :smile:
jaylagorio
@jaylagorio
May 22 2016 19:14
^^ Screenshot while the update goes through, I expect it to be available tomorrow.
Scott Leibrand
@scottleibrand
May 22 2016 19:15
@Missdazzle be careful with the @ all thing: it notifies everyone in the channel that they have a message waiting.
Sounds like you're making good progress. :-)
jaylagorio
@jaylagorio
May 22 2016 19:17
@bewest Did you ever get decocare working on Windows with the CareLink stuff I posed?
Saskia
@Missdazzle
May 22 2016 19:18
@scottleibrand Oh sorry! So next time I will skip that! Yes, it looks pretty good! But you shouldn´t take a look at my flat...
Dana Lewis
@danamlewis
May 22 2016 19:21
:)
joannestevens
@joannestevens
May 22 2016 19:39
pi@raspberrypi ~/myopenaps $ openaps report add monitor/glucosetest.json text ns-glucose shell
added ns-glucose://text/shell/monitor/glucosetest.json
pi@raspberrypi ~/myopenaps $ openaps report invoke monitor/glucosetest.json
ns-glucose://text/shell/monitor/glucosetest.json
bash: json: command not found
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 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/invoke.py", line 48, in main
reporters.Reporter(report, device, task)(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/reporters/init.py", line 18, in init
self.output = getattr(self.method, 'get_output_stream', default_prep_stream)(self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/reporters/init.py", line 5, in default_prep_stream
return open(reporter.report.name, 'w')
IOError: [Errno 2] No such file or directory: u'monitor/glucosetest.json'
pi@raspberrypi ~/myopenaps $ pi@raspberrypi ~ $ cd myopenaps
-bash: pi@raspberrypi: command not found
pi@raspberrypi ~/myopenaps $ pi@raspberrypi ~/myopenaps $ openaps report add monitor/glucosetest.json text ns-glucose shell
-bash: pi@raspberrypi: command not found
pi@raspberrypi ~/myopenaps $ added ns-glucose://text/shell/monitor/glucosetest.json
-bash: added: command not found
pi@raspberrypi ~/myopenaps $ pi@raspberrypi ~/myopenaps $ openaps report invoke monitor/glucosetest.json
-bash: pi@raspberrypi: command not found
pi@raspberrypi ~/myopenaps $ ns-glucose://text/shell/monitor/glucosetest.json
-bash: ns-glucose://text/shell/monitor/glucosetest.json: No such file or directory
pi@raspberrypi ~/myopenaps $ bash: json: command not found
-bash: bash:: command not found
pi@raspberrypi ~/myopenaps $ Traceback (most recent call last):
-bash: syntax error near unexpected token most' pi@raspberrypi ~/myopenaps $ File "/usr/local/bin/openaps-report", line 4, in <module> -bash: syntax error near unexpected tokennewline'
pi@raspberrypi ~/myopenaps $ import('pkg_resources').run_script('openaps==0.1.0', 'openaps-report')
-bash: syntax error near unexpected token `'pkg_resources''
pi@raspberrypi ~/myopenaps $ File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
-bash: File: command not found
pi@raspberrypi ~/myopenaps $ File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
-bash: File: command not found
pi@raspberrypi ~/myopenaps $ File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
-bash: syntax error near Am trying to add and invoke the reports so I can pull data from nightscout, any idea what I have done wrong?
Jarred Yaw
@jyaw
May 22 2016 19:46
@bewest weird thing just hapennded... I noticed that temp basal and bolus info just started showing up about in openaps command output about 2 hours ago. Is there some reason that after being used after some period of dormancy that the pump log would be sub-par or unreliable? (based on some searches, looks like the CRC errors might be no big deal)
Scott Leibrand
@scottleibrand
May 22 2016 19:49
we have seen some issues when the pump's history is completely empty
seems to behave better once there is a full "page" of data
I remember setting hundreds of temp basals to get it to fill up the first time we started looping 2 years ago :)
Jarred Yaw
@jyaw
May 22 2016 19:53
great news @scottleibrand ! Maybe I'm out of the woods now, I was starting to think I was crazy or things were broke. haha.
Dana Lewis
@danamlewis
May 22 2016 19:58
;) y ou’re usually not crazy, it’s usually something basic but who would’ve thought to do that-type-thing
Frank Best
@efbest
May 22 2016 20:01
My loop broke after my openaps.ini was truncated; had to start from scratch! Now I get error messages I don't understand: "Carb ratio data should have an array" - and my iob is zero!
Frank_openaps $ cat settings/profile.json
[{"msg":"Carb ratio data should have an array called schedule with a start and ratio fields.","file":"settings/basal_profile.json","data":[{"i":0,"start":"00:00:00","rate":2.4000000000000004,"minutes":0},{"i":1,"start":"05:30:00","rate":4.5,"minutes":330},{"i":2,"start":"07:00:00","rate":2.4000000000000004,"minutes":420},{"i":3,"start":"15:00:00","rate":1.9000000000000001,"minutes":900}]},{"msg":"Carb ratio should have units field set to 'grams'.","file":"settings/basal_profile.json","data":[{"i":0,"start":"00:00:00","rate":2.4000000000000004,"minutes":0},{"i":1,"start":"05:30:00","rate":4.5,"minutes":330},{"i":2,"start":"07:00:00","rate":2.4000000000000004,"minutes":420},{"i":3,"start":"15:00:00","rate":1.9000000000000001,"minutes":900}]}]
Scott Leibrand
@scottleibrand
May 22 2016 20:02
check your input files being passed to that report
Frank Best
@efbest
May 22 2016 20:02
cat monitor/iob.json
{
  "netbasalinsulin": 0, 
  "activity": 0, 
  "basaliob": 0, 
  "hightempinsulin": 0, 
  "bolussnooze": 0, 
  "iob": 0
Scott Leibrand
@scottleibrand
May 22 2016 20:03
and what inputs are you passing to that?
Frank Best
@efbest
May 22 2016 20:04
cat settings/basal_profile.json
[
  {
    "i": 0, 
    "start": "00:00:00", 
    "rate": 2.4000000000000004, 
    "minutes": 0
  }, 
  {
    "i": 1, 
    "start": "05:30:00", 
    "rate": 4.5, 
    "minutes": 330
  }, 
  {
    "i": 2, 
    "start": "07:00:00", 
    "rate": 2.4000000000000004, 
    "minutes": 420
  }, 
  {
    "i": 3, 
    "start": "15:00:00", 
    "rate": 1.9000000000000001, 
    "minutes": 900
cat settings/profile.json
[{"msg":"Carb ratio data should have an array called schedule with a start and ratio fields.","file":"settings/basal_profile.json","data":[{"i":0,"start":"00:00:00","rate":2.4000000000000004,"minutes":0},{"i":1,"start":"05:30:00","rate":4.5,"minutes":330},{"i":2,"start":"07:00:00","rate":2.4000000000000004,"minutes":420},{"i":3,"start":"15:00:00","rate":1.9000000000000001,"minutes":900}]},{"msg":"Carb ratio should have units field set to 'grams'.","file":"settings/basal_profile.json","data":[{"i":0,"start":"00:00:00","rate":2.4000000000000004,"minutes":0},{"i":1,"start":"05:30:00","rate":4.5,"minutes":330},{"i":2,"start":"07:00:00","rate":2.4000000000000004,"minutes":420},{"i":3,"start":"15:00:00","rate":1.9000000000000001,"minutes":900}]}]
Frank Best
@efbest
May 22 2016 20:18
openaps gather-profile 
MMT754://JSON/read_settings/settings/settings.json
reporting settings/settings.json
MMT754://JSON/read_bg_targets/settings/bg_targets_raw.json
reporting settings/bg_targets_raw.json
units://JSON/bg_targets/settings/bg_targets.json
reporting settings/bg_targets.json
MMT754://JSON/read_insulin_sensitivities/settings/insulin_sensitivities_raw.json
reporting settings/insulin_sensitivities_raw.json
units://JSON/insulin_sensitivities/settings/insulin_sensitivities.json
reporting settings/insulin_sensitivities.json
MMT754://JSON/read_basal_profile_std/settings/basal_profile.json
reporting settings/basal_profile.json
get-profile://text/shell/settings/profile.json
Carb ratio data should have an array called schedule with a start and ratio fields.
Carb ratio should have units field set to 'grams'.
reporting settings/profile.json
Scott Leibrand
@scottleibrand
May 22 2016 20:37
Need to check contents of all of those that are inputs to the profile.json report.
And possibly run oref0-get-profile manually to debug.
Frank Best
@efbest
May 22 2016 20:38
I have no file carb_ratios.json ...
Scott Leibrand
@scottleibrand
May 22 2016 20:40
Ah, there you go.
Are you setting up meal assist, or is that now required by default?
Frank Best
@efbest
May 22 2016 20:42
No, I'm trying to set-up my loop again; openaps.ini is empty and I made no back-up, stupid me!
Scott Leibrand
@scottleibrand
May 22 2016 20:43
Do the docs say to set up the carb_ratios.json report? If not we should add that.
Or maybe make it optional if you're not trying to use meal assist.
ddaniels1
@ddaniels1
May 22 2016 20:44
@scottleibrand , When I set up my Edison I used the auto-crud script to set up the NS glucose download instead of entering NIGHTSCOUT and API secret in the ~/.profile. Now when I run my loop I get
Frank Best
@efbest
May 22 2016 20:44
No, they didn't
ddaniels1
@ddaniels1
May 22 2016 20:44
ns-status://JSON/shell/monitor/upload-status.json
reporting monitor/upload-status.json
Input file entries.json does not exist.
Loop Fail..
Scott Leibrand
@scottleibrand
May 22 2016 20:44
Sounds like a PR is in order then.
ddaniels1
@ddaniels1
May 22 2016 20:45
Trying to track through the logic but getting stumped
Scott Leibrand
@scottleibrand
May 22 2016 20:45
@ddaniels1 sounds like you want to replace ns-status with the auto-crud style upload?
not sure that is documented yet.
Scott Leibrand
@scottleibrand
May 22 2016 20:46
Please update docs when you figure it out. :-)
in the mean time you should get the right number of arguments if you add the env vars.
ddaniels1
@ddaniels1
May 22 2016 20:49
I added NIGHTSCOUT_HOST= and API_SECRET to ~/.profile and still no luck
Same ones including the password Hashed that were working on the RPI
Frank Best
@efbest
May 22 2016 21:28
I've got a settings/carb_ratios.json, but the error remains
Carb ratio should have units field set to 'grams'.
reporting settings/profile.json
pi@raspberrypi:~/Frank_openaps $ cat settings/carb_ratios.json
{
  "units": "grams", 
  "first": 1, 
  "schedule": [
    {
      "q": 0, 
      "start": "00:00:00", 
      "r": 75, 
      "ratio": 7.5, 
      "offset": 0, 
      "i": 0, 
      "x": 0
    }, 
    {
      "q": 0, 
      "start": "21:00:00", 
      "r": 150, 
      "ratio": 15.0, 
      "offset": 1260, 
      "i": 42, 
      "x": 1
    }, 
    {
      "q": 0, 
      "start": "23:30:00", 
      "r": 150, 
      "ratio": 15.0, 
      "offset": 1410, 
      "i": 47, 
      "x": 2
    }
mm22dl
@mm22dl
May 22 2016 21:49
Hey everyone! Was wondering how you guys first started playing around with your pump and OpenAPS... Since I'm new to the world of insulin pumps, I'm only testing OpenAPS on and old pump I found online. However, since I'm officially on the 640g, I'm not filling the old pump with insulin... Is there a way to simulate a full cartridge, and see whether a bolus was successful or not?
Dana Lewis
@danamlewis
May 22 2016 21:50
good Q @mm22dl .. rewind the pump, and during priming stick your finger or a pencil (eraser end) in for the motor to sense
you don’t need to fill a cartridge and put it in, but you could also fill one with water and put it in
(but we also don’t recommend remote bolus, even for testing, so suggest trying that with a high temp to see the same effect ;))
jaylagorio
@jaylagorio
May 22 2016 21:51
@mm22dl Where did you find an old pump online?
ddaniels1
@ddaniels1
May 22 2016 22:18
Very strange error going on. I used the auto-crud device to set up my new NS download on the new rig. NS glucose download works find. Then when I go to run openaps status-upload ! bash -c "openaps report invoke monitor/upload-status.json && ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json monitor/upload-status.json" I get:
ns-status://JSON/shell/monitor/upload-status.json
reporting monitor/upload-status.json
Input file entries.json does not exist.
Does anyone know what entries.json is? can't figure out the logic fail
Scott Leibrand
@scottleibrand
May 22 2016 22:18
That means you didn't pass three arguments.
ddaniels1
@ddaniels1
May 22 2016 22:18
Also when I run ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json monitor/upload-status.json it uploads. that doesn't make sense
When i run ns-upload from the command line it works.
Scott Leibrand
@scottleibrand
May 22 2016 22:19
Because your environment variables aren't set right in the context you're invoking that alias in.
Maybe you're not sourcing profile in cron.
ddaniels1
@ddaniels1
May 22 2016 22:20
Ah that may be it. Even though I'm not running it in cron it needs to be in there?
Scott Leibrand
@scottleibrand
May 22 2016 22:21
Well, wherever you're running it.
ddaniels1
@ddaniels1
May 22 2016 22:22
so that would make it run from the command line but not the alias?
Scott Leibrand
@scottleibrand
May 22 2016 22:26
Probably quotes.
Not sure.
If you echo the vars at the command line they show?
Jason Calabrese
@jasoncalabrese
May 22 2016 22:28
The NS crud generation puts all that in the inis
Scott Leibrand
@scottleibrand
May 22 2016 22:29
But he's not using that here.
ddaniels1
@ddaniels1
May 22 2016 22:29
I think maybe that is where I got screwed up, I have the old set up of ns-upload per the docs, then last night because of an issue with installing the env vars on the edison @bewest suggested using autocrud, now there is a mismatch of sorts.
so the ns download device is set up via auto crud, upload is still the old way
val-albany
@val-albany
May 22 2016 23:42

Hi I am just getting started, I am able to talk to talk to both pump and dexcom, and can manually run the commands that create the json files for bg_targets, basal_profile, insulin_sensitivities and settings. I set up the first oref0 device, but the group of three that follow are truncated in the docs. I can guess at the "requires" being those 4 json files, but the actual command is cut off (at least when viewed on my mac):
https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/Using-oref0-tools.html

what do I need to pass to get my get-profile actually working????

val-albany
@val-albany
May 22 2016 23:48
lol nevermind. copy grabbed the whole thing for me :P
Dana Lewis
@danamlewis
May 22 2016 23:53
:+1: