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

24th
Jun 2016
Paul Martin
@Spazholio
Jun 24 2016 00:00
Oh, I’m with you. I just posted in another channel: "From 44 :arrow_lower_right: to 146 :arrow_double_up: to 90 :arrow_right:, all in less than 2 hours. My poor auto-sens must be so confused. =)” Oops.
Sarah Hodson Grady
@shgrady
Jun 24 2016 00:02
a day in the life right?
Scott Leibrand
@scottleibrand
Jun 24 2016 00:04
@shgrady correct: all the ones you need should be tagged.
Eric
@ecc1
Jun 24 2016 00:05
I pre-ordered a few of these: https://getchip.com/pages/chip and will see if I can get the radios working with them when they arrive. At least they run a 4.x kernel ...
Paul Martin
@Spazholio
Jun 24 2016 00:05
Pretty much. This is one of the more extreme that I’ve had, and I’m gonna spike again later on, but yeah - it’s a crapshoot sometimes. =)
Sarah Hodson Grady
@shgrady
Jun 24 2016 00:09
ahh, not even kidding, I have a report for everyone that did not error, and seemed possibly useful, but its been a good way for me to get to know this new pump full of saline
tazitoo
@tazitoo
Jun 24 2016 00:13
@ecc1 - IIRC correctly, you have been working with some RF12(?) radios - any chance you are working with them over SPI? or serial?
David Cintron
@loudestnoise
Jun 24 2016 00:17
@ecc1 I’ve seen those CHIP computers. So neat. Keep us updated on if you can get OpenAPS working. Looks like they have a single full size USB and a micro USB. How cool
Andy Probolus
@AndyProbolus_twitter
Jun 24 2016 00:58
We just ran our first open loop on a real live body. :)
Scott Leibrand
@scottleibrand
Jun 24 2016 00:58
:clap: congrats! :-)
Dana Lewis
@danamlewis
Jun 24 2016 00:59
Whoohoo! Always good to graduate from dead bodies ;)
David Cintron
@loudestnoise
Jun 24 2016 01:03
I’m thinking I want to try and use IFTTT to alert me about certain Nightscout events. I’m wanting for starters to know if my pump battery is running below a certain voltage and needs to be changed. I’m using PUMP_WARN_BATT_V=1.39 as suggested in the docs in my.env file. Can anybody tell me which Nightscout event level that goes to? I’m thinking it’s ns-info or ns-warning. I figure somebody is doing this already :wink2:
@AndyProbolus_twitter Congrats! It’s pretty exciting when you first start looping.
Eric
@ecc1
Jun 24 2016 01:13
@tazitoo I have both a CC1101 module and a RFM69HCW module working quite well over SPI from the Edison. I also wrote a mmeowlink driver that allows either one to be used as a different kind of radio ('spi').
Unfortunately I'm finding some weird differences in behavior based on which kernel is running on Edison, probably some regression in the spidev driver, since the code and userland is the same ...
Paul Martin
@Spazholio
Jun 24 2016 01:23
@scottleibrand I was going to start poking around at BT tethering with the Edison. Did you have any resources that you’ve tried that didn’t work that would at least give me a jumping off point?
Odd. When running bluetoothctl on the Edison, it just hangs until I hit CTRL+C. Haven’t seen that one before...
Eric
@ecc1
Jun 24 2016 01:35
Running "hciconfig" should list the BT adapter; if not, try doing "sudo rfkill unblock bluetooth" . Also might need to use bluetoothctl to do "power off" and then "power on".
Paul Martin
@Spazholio
Jun 24 2016 01:36
bluetoothctl doesn’t allow me me to type anything once I’m in a BT shell.
Paul Martin
@Spazholio
Jun 24 2016 01:43
hciconfig shows:
hci0:    Type: BR/EDR  Bus: UART
    BD Address: 43:34:1B:00:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
    UP RUNNING PSCAN 
    RX bytes:633 acl:0 sco:0 events:34 errors:0
    TX bytes:968 acl:0 sco:0 commands:34 errors:0
Looks right to me.
Paul Martin
@Spazholio
Jun 24 2016 02:03
I think I may give Yocto a shot since Ubilinux is discontinued.
I know I’ve asked before, but what’s the thing that Ubi gives us that Yocto doesn’t?
Brandon Faloona
@bfaloona
Jun 24 2016 02:07
Looking at my raw-pump/settings.json from my Medronic 523, I see a 50 value for insulinConcentration
We don't see a setting for that in the pump menu. Does this value get used in openaps calculations?
Brooke Armstrong Pazoles
@bpazoles
Jun 24 2016 02:12
@AndyProbolus_twitter hooray! Congratulations!!
Scott Leibrand
@scottleibrand
Jun 24 2016 02:16
@Spazholio reasonable package management.
Paul Martin
@Spazholio
Jun 24 2016 02:17
Is that the only thing? I mean, that’s a big deal to me, but if I have to learn to live with it since Ubi’s no longer supported, then I suppose I’ll have to learn.
I tried using that jubilinux, and that gave me the BT weirdness. Gonna try with stock Ubi and start on the BT stuffs.
Ben West
@bewest
Jun 24 2016 02:32
ubilinux has apt-get while yocto doesn't, that's the main difference
since when is ubilinux not supported?
"7th June 2016 - unfortunately, in the absence of sponsorship, we are not in a position to continue providing ubilinux or technical support for Intel Edison. Please contact us if you wish to engage our professional services team."
Ben West
@bewest
Jun 24 2016 02:38
hehe, "absence of sponsorship"
Andy P
@NowhereMan_81_twitter
Jun 24 2016 02:40
@Spazholio ... I noticed you commented earlier that you were seeing Could not find glucose data when trying to enable auto-sens & meal assist. I am having the same problem. Can I ask how you fixed that?
Paul Martin
@Spazholio
Jun 24 2016 02:41
@NowhereMan_81_twitter Well, you can certainly ask...
It’s been a while. =)
Andy P
@NowhereMan_81_twitter
Jun 24 2016 02:41
:)
Paul Martin
@Spazholio
Jun 24 2016 02:42
Can you give me the full error? Maybe some of the lines preceding it? Might jog my memory...
Ben West
@bewest
Jun 24 2016 02:42
interesting, they're making it for "UP" computer, slightly more expensive version of PI it looks like
Paul Martin
@Spazholio
Jun 24 2016 02:43
It’d be nice if they’d give exact steps that they take right now to make their image so someone could at least roll their own.
I know there’s ways to do it, but some step-by-steps would be great.
Brett
@burgertime14
Jun 24 2016 02:46
@Spazholio there are a couple of how to docs I found on rolling your own, not for the faint of heart, require a custom kernel compile
@Spazholio if it becomes an issue, I can put together a step by step, I HATE having to compile the linux kernel, that is a place where FreeBSD is so much better :)
Ben West
@bewest
Jun 24 2016 02:47
edison is more complicated than your normal kernel build
Paul Martin
@Spazholio
Jun 24 2016 02:48
I think that was one of the complaints I’ve read about it - is it released under the GPL? If so, aren’t they required to provide a way to provide an exact build?
Brett
@burgertime14
Jun 24 2016 02:49
@bewest right, appears that there are some Yocto specific patches that have to be applied. might actually be something that I can contribute, not much for dev work anymore
but not worth the work yet, 3.10 kernel, no real need to upgrade
Paul Martin
@Spazholio
Jun 24 2016 02:52
Last time I had to custom compile a kernel was 2.2.16.
(why do I remember that?!)
Andrew Dodd
@Entropy512
Jun 24 2016 02:53
@Spazholio Going back to your low-carb diet comments - interestingly, it seems to be a "complication" of those on SGLT-2 inhibitors once their metabolism adjusts. I suspect that's a part of why my insulin sensitivity is so variable. When I'm in gluconeogenesis - I am HIGHLY insulin-resistant. Once it stops, it's like flipping a switch, and the daily pattern of that is a serious PITA.
Overall it helps a lot to keep the calorie budget weighted towards "stop being a fatty", but occasionally (like this week, and the final week of 2015) it can be... difficult
Andy P
@NowhereMan_81_twitter
Jun 24 2016 02:54

@Spazholio ... ```edison@EdisonAPS:~/openaps$ openaps report invoke settings/autosens.json
detect-sensitivity://text/shell/settings/autosens.json

Could not find glucose data

/usr/local/lib/node_modules/oref0/lib/determine-basal/cob-autosens.js:50
avgDelta = avgDelta.toFixed(2);
^
TypeError: Object NaN has no method 'toFixed'
at detectSensitivityandCarbAbsorption (/usr/local/lib/node_modules/oref0/lib/determine-basal/cob-autosens.js:50:29)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-detect-sensitivity.js:73:5)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
reporting settings/autosens.json```

Paul Martin
@Spazholio
Jun 24 2016 02:54
I’ve been having SERIOUS lows for the last few days around 4pm. I don’t eat breakfast, and for lunch, I’ve been trying out Keto-chow (it’s a keto-friendly shake). I wonder if that’s part of the problem?
Andrew Dodd
@Entropy512
Jun 24 2016 02:55
I have tended to have difficult (insulin-resistant) highs in the mornings
with significant insulin sensitivity in the afternoons/evenings
at least a 4:1 ISF ratio if not more
not looping yet but talking to the endo tomorrow about finally going from MDI to pump
just because - my basal requirements vary so much from evening to morning that being able to suspend in evenings like tonight
Gera Yeremin
@gera3d
Jun 24 2016 02:56
Hello everyone so I got all my parts from Amazon to build my open APS Rig. I am going to twitch stream me unpacking everything and putting it together.
We will see how to goes.
Andrew Dodd
@Entropy512
Jun 24 2016 02:57
and crank it up in the morning without alarm-clocking a 4AM NPH injection
Gera Yeremin
@gera3d
Jun 24 2016 02:57
I hope to use this in the future to help other people who want to build one.
Andrew Dodd
@Entropy512
Jun 24 2016 02:57
is getting to be a good reason for finally switching off MDI
@gera3d nifty... personally I've always been more of a "wall of text" type of person as far as docs go, but I know others like the "epic youtube HOWTO" approach.
dougtakeuti
@dougtakeuti
Jun 24 2016 02:58
Welcome and good luck @gera3d !
Brandon Faloona
@bfaloona
Jun 24 2016 02:59
@gera3d Sounds fantastic. I look forward to hearing how it goes / watching it.
Paul Martin
@Spazholio
Jun 24 2016 02:59
Ok, I need some help here. With a stock Ubilinux image, here’s what sudo rfkill list shows:
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: brcmfmac-wifi: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: bcm43xx Bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
3: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
But when I run bluetoothctl I can’t actually type. It just sits there.
Andrew Dodd
@Entropy512
Jun 24 2016 02:59
@Spazholio I used to custom-compile LOTS of kernels - but for Android. Used to be a heavy contributor (actually, founder) of an AOSP-derivative project. Mostly retired from Android these days
well at least Android hacking
Paul Martin
@Spazholio
Jun 24 2016 03:00
I’ve never had this happen with a fresh Ubi install, so I’m kinda at a loss.
@Entropy512 Never got into Android programming. And once I got away from Gentoo and Slackware, I never needed to compile custom kernels. =)
Ben West
@bewest
Jun 24 2016 03:01
bluetoothctl might not let you type unless you type valid commands like help and stuff
it won't echo empty newlines by default the way bash does, it'll just eat those
Paul Martin
@Spazholio
Jun 24 2016 03:02
Well, I did try “scan on”. I’ll try “help” in a second. But I’ve also never seen that happen before, where it won’t echo commands.
Ben West
@bewest
Jun 24 2016 03:02
it usually does not
Paul Martin
@Spazholio
Jun 24 2016 03:02
“help” doesn’t work.
Andrew Dodd
@Entropy512
Jun 24 2016 03:03
@Spazholio heh. I switched from Gentoo to Ubunto, been slacking ever since. :) As far as Android, I was a CyanogenMod maintainer back before the Focal incident, then one of the Omni founders, but I haven't done much Android stuff in close to a year now.
Paul Martin
@Spazholio
Jun 24 2016 03:03
I’ve always been able to see what I’m typing into bluetoothctl. Odd.
Gera Yeremin
@gera3d
Jun 24 2016 03:03
OK guys here is the link:
https://www.twitch.tv/gera3d
Andrew Dodd
@Entropy512
Jun 24 2016 03:03
Kind of proud of how I set things up so that others could take up the banner without me.
Ben West
@bewest
Jun 24 2016 03:03
:-)
Andrew Dodd
@Entropy512
Jun 24 2016 03:03
A lot of projects don't do that kind of handoff well (Paranoid Android, ChameleonOS, AOKP, etc.)
Ben West
@bewest
Jun 24 2016 03:03
that always takes a lot more work than the person doing it seems to get credit for @Entropy512 ;-)
Andrew Dodd
@Entropy512
Jun 24 2016 03:04
tbh sometimes the project founders get far more credit than those really keeping it alive
(Paranoid Android after OnePlus' hiring binge for example)
lately I've been mostly logic-analyzering Sony's E-mount protocols
and reading tons of insulin pharmacodynamic modeling literature and the NS codebase
almost to the point where I'm going to try tweaking some things
I really want to be able to visualize IOB
given how important the slope is as far as actual activity
Dana Lewis
@danamlewis
Jun 24 2016 03:07
@Spazholio if you changed your lunch up, and you were using basals to cover partially for lunch, that might be contributing.
@Entropy512 have you checked out glucodyn yet?
Paul Martin
@Spazholio
Jun 24 2016 03:08
@danamlewis Might be. My lunch has 5g carbs, but a lot of protein. The odd thing is that I’ve had these shakes before. And this is happening 4 hours after I eat. Numbers are nice and stable after I eat at 12, but then just fall off a cliff between 4 and 5.
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:09
@bewest, @danamlewis... i'm struggling to set up the auto-sens and meal assist. Have you seen this error message before? Not quite sure how to resolve...
>>>Could not find glucose data

/usr/local/lib/node_modules/oref0/lib/determine-basal/cob-autosens.js:50
        avgDelta = avgDelta.toFixed(2);
                            ^
TypeError: Object NaN has no method 'toFixed'
    at detectSensitivityandCarbAbsorption (/usr/local/lib/node_modules/oref0/lib/determine-basal/cob-autosens.js:50:29)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-detect-sensitivity.js:73:5)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
reporting settings/autosens.json
Dana Lewis
@danamlewis
Jun 24 2016 03:09
Right but if your 2pm and on basals might be too high as a baseline
Paul Martin
@Spazholio
Jun 24 2016 03:09
@danamlewis I’m using temp targets to cover the protein. I think I’ll stop doing that.
@NowhereMan_81_twitter Oh man, I had that EXACT toFixed error. I hav zero clue h…WAIT.
Andrew Dodd
@Entropy512
Jun 24 2016 03:10
@danamlewis No, thanks for the tip.
Paul Martin
@Spazholio
Jun 24 2016 03:11
I think @bewest helped me create a special glucose.json for auto-sens. Something about needing ONLY sgv entries in there or something. Let me see if I can backtrack and remember….
Andrew Dodd
@Entropy512
Jun 24 2016 03:11
Although it says it's based on how pumps model bolus wizard, and I know Medtronic's model is pretty simplistic...
Brandon Faloona
@bfaloona
Jun 24 2016 03:12
@bewest @scottleibrand @danamlewis Do any of you know the answer to this...
(from above)
Looking at my raw-pump/settings.json from my Medronic 523, I see a 50 value for insulinConcentration
We don't see a setting for that in the pump menu. Does this value get used in openaps calculations?
Andrew Dodd
@Entropy512
Jun 24 2016 03:12
but it looks like a great base for stuff
Dana Lewis
@danamlewis
Jun 24 2016 03:12
@Entropy512 Worth checking out and I know @kenstack and @bustavo the creators are all over this topic and good people to talk to :)
@bfaloona no, it is not used anywhere
Brandon Faloona
@bfaloona
Jun 24 2016 03:13
@danamlewis Thanks! I can't figure out where it got that value from.
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:14
@Spazholio Thanks! I am pulling entries from NS for my glucose... I just tried adding ?count=288 to the end of my string, but perhaps that's not right
args = -c "curl -s https://mysite.azurewebsites.net/api/v1/entries.json?count=288 | json -e 'this.glucose = this.sgv'"
Andrew Dodd
@Entropy512
Jun 24 2016 03:15
I'm still trying to understand where the pharmacodynamics that cause figure 1B of http://onlinelibrary.wiley.com/doi/10.1002/cpdd.221/pdf
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:15
or, more, fully.... [device "curl"] fields = cmd = bash vendor = openaps.vendors.process args = -c "curl -s https://mysite.azurewebsites.net/api/v1/entries.json?count=288 | json -e 'this.glucose = this.sgv'"
Paul Martin
@Spazholio
Jun 24 2016 03:16
I think it’s pulling some entries that don’t have an sgv entry in them.
Andrew Dodd
@Entropy512
Jun 24 2016 03:16
I STILL can't find any model that explains the fairly constant GIR for 2 hours (from around 1h after dose to 3h)
Paul Martin
@Spazholio
Jun 24 2016 03:16
So I had to do something in order to have a glucose.json that ONLY has entries with a sgv entry in them.
@bewest So with Ubi apparently going away, are you going to switch over to Yocto, or just persist with Ubi for a bit? Just curious what you plan on doing.
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:18
@Spazholio is it referenced here? openaps/oref0#127
Paul Martin
@Spazholio
Jun 24 2016 03:18
Bingo.
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:18
@bewest mentions using something like.... `openaps use ns shell get entries/sgv.json count=288
I'm just not sure how to turn that into an entry in my openaps.ini file that outputs to glucose.json
Paul Martin
@Spazholio
Jun 24 2016 03:19
You can make it into a report, and then tell the auto-sens.json to look at THAT instead of glucose.json
Do you know how to turn that into a report?
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:20
no... that's where i'm having some brain-freeze action right now...
Paul Martin
@Spazholio
Jun 24 2016 03:20
Hang on...
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:20
I should know this
Paul Martin
@Spazholio
Jun 24 2016 03:21
Replace the word use in that command with report add [REPORTNAME] JSON
Andrew Dodd
@Entropy512
Jun 24 2016 03:21
grumble, direct-linking that Wiley PDF fails
Paul Martin
@Spazholio
Jun 24 2016 03:21
That’ll add the report. I’d recommend calling it something like monitor/auto-sens-glucose.json
Andrew Dodd
@Entropy512
Jun 24 2016 03:21
despite that being EXACTLY what got me there from elgoog
http://onlinelibrary.wiley.com/doi/10.1002/cpdd.221/full - hopefully this works, and you can grab the full PDF from there
but it contains the results of a bioequivalence study of U100 vs U200 Humalog
with a 20U bolus
fairly constant glucose infusion rate in a euglycemic clamp from 1h to 3h from dose
and I can't find ANY model that supports that particular data
which leads me to ?????????
Andy P
@NowhereMan_81_twitter
Jun 24 2016 03:25
hmm.... no dice. still have the same error.... even with the new monitor/auto-sens-glucose.json report
'doh'.... wait... I forgot to link the autosens.json report to the new glucose report! let me try that again
@Spazholio Bingo! that did it. Thank you!
and thanks @bewest too!
David Cintron
@loudestnoise
Jun 24 2016 03:28
:+1:
Gera Yeremin
@gera3d
Jun 24 2016 03:32
The pie kit comes with 2 heat sinks that have type on them do I just remove tape and apply?
Andrew Dodd
@Entropy512
Jun 24 2016 03:32
@danamlewis Thanks for the link. I'm reading their paper (or the one they reference) at http://www.jdst.org/May2009/Articles/VOL-3-3-ORG12-ELLINGSEN.pdf
Gera Yeremin
@gera3d
Jun 24 2016 03:32
No quick silver required?
Andrew Dodd
@Entropy512
Jun 24 2016 03:32
familiar with the work of C. Dalla Man that they reference
one thing I'm trying to figure out is how the "default" DIA of NS came to be
while in general it seems like longer curves with a "tail" are more common with research
and at least on reference I found somewhere (can't find it at the moment) said Medtronic's default was "6 hours" - not sure which pump that was for, was one of the later units (722?)
so a default DIA of 3 with 0 activity past then = ??? I think very few people fit that model
Gera Yeremin
@gera3d
Jun 24 2016 03:36
Ok so I am building this and I am not sure where I put the sandisk chip.
Does it go into the pie?
Scott Leibrand
@scottleibrand
Jun 24 2016 03:38
@Entropy512 would love to see someone (you?) build an algorithm for determining the insulin activity curve from CGM and pump data.
David Cintron
@loudestnoise
Jun 24 2016 03:38
@gera3d You actually take out the microSD and that goes directly into the RPi
I was watching your Twitch!
Gera Yeremin
@gera3d
Jun 24 2016 03:39
Found it!
dougtakeuti
@dougtakeuti
Jun 24 2016 03:39
@gera3d have you already copied the operational system to the SD card?
Gera Yeremin
@gera3d
Jun 24 2016 03:40
Nope
Matthew Zimmerman
@mzimmerman
Jun 24 2016 03:40
I'm the tech saavy brother of @japrobo , they've shared your all's concern about the SD cards failing - has anyone thought of running the openaps configuration/directory on a ramdisk/tmpfs ?
Gera Yeremin
@gera3d
Jun 24 2016 03:40
Can I have a link to that?
Paul Martin
@Spazholio
Jun 24 2016 03:41
@NowhereMan_81_twitter Glad to hear it. =)
David Cintron
@loudestnoise
Jun 24 2016 03:41
but yeah, you need to do that first ^
Gera Yeremin
@gera3d
Jun 24 2016 03:41
@dougtakeuti thanks
dougtakeuti
@dougtakeuti
Jun 24 2016 03:42
@gera3d the docs is your Bible - follow them! :smile:
Andy Probolus
@AndyProbolus_twitter
Jun 24 2016 03:43
got open loop working for the last several hours, and we are really excited. Thanks to @danamlewis and @scottleibrand for all your help.
Scott Leibrand
@scottleibrand
Jun 24 2016 03:43
@mzimmerman yes. But instead, the most common workaround is to use an Edison for mobile use and keep the Pi plugged in.
@AndyProbolus_twitter :+1: :-)
Matthew Zimmerman
@mzimmerman
Jun 24 2016 03:46
Interesting, thank you -- I was already trying to look at different boards that would be less power hungry than the Pi (I know, jumping ahead!)
Dana Lewis
@danamlewis
Jun 24 2016 03:46
@AndyProbolus_twitter congrats :)
Gera Yeremin
@gera3d
Jun 24 2016 03:48
@loudestnoise Thanks for all your help dude. I really appreciate it.
David Cintron
@loudestnoise
Jun 24 2016 03:52
I’m excited to watch your progress. Keep doing the Twitch. I think I subscribed to your channel
Hristina Dimova
@xpucuto
Jun 24 2016 05:22
@jyaw unfortunately I can't not help with any advice on the error you get . All this is very new to me . I got it working by the instructions but I couldn't manage to display my bg or temp basal on the watch . I don't know how to do that . I am only able to display text as the example . :(
Sulka Haro
@sulkaharo
Jun 24 2016 06:42
@Spazholio @scottleibrand I have nothing committed yet; one of the local branches has a partial implementation of moving the maxSafeBasal multipliers into preferences.json. I'll see if I can get that fully working this weekend - it's midsummer though and that means 48 hours of sauna, bbq and bonfires in Finland. ;)
Ben West
@bewest
Jun 24 2016 07:07
all parts of that sound awesome
especially the bbq and sauna and bonfires
Jim is CrushingT1D
@CrushingT1D
Jun 24 2016 07:37
@gera3d
What's your twitch link? Would love check it out. I've stuck with snapchat/youtube so far for my videos
Ben West
@bewest
Jun 24 2016 07:40
Jim is CrushingT1D
@CrushingT1D
Jun 24 2016 07:44
thanks, on mobile so a pain to try to find old posts :)
Jarred Yaw
@jyaw
Jun 24 2016 14:02
@xpucuto thanks anyway, I'm still not quite that far, works rarely with my setup. I messaged @mddub to see if he had any insight to the error I was having. I used the pebble alias @scottleibrand used to aggregate info for the pebble watch notification. It's a great starting point! https://github.com/scottleibrand/openaps-sh/blob/advanced-meal-assist/setup.sh
Scott Leibrand
@scottleibrand
Jun 24 2016 14:03
@jyaw fwiw, oref0-pebble is for Cards for Pebble, not Urchin. oref0-html produces output Urchin can use though.
Jarred Yaw
@jyaw
Jun 24 2016 14:06
@scottleibrand cool, so the pebble process in your setup is essentially the same as oref0-pebble? I'll look into the diff between the output. Thanks, there's no Urchin support in pancreabble afaik, but it'd be sweet to get it there.
Chris Oattes
@cjo20
Jun 24 2016 14:18
would anyone be interested in a way of not sleeping for 15 seconds if oref0-reset-git doesn't find a corrupted repo?
Scott Leibrand
@scottleibrand
Jun 24 2016 14:25
Intention is to run it in a standalone cron, so the sleep doesn't matter. If you want to run it in the loop, eliminating the sleep would be helpful there, but I didn't see a good way to accomplish that given oref0-fix-git-corruption's tendency to get stuck in a near-infinite loop.
Chris Oattes
@cjo20
Jun 24 2016 14:25
I think I found a way
albeit a slightly clunky one
oref0-fix-git-corruption &
pid=$!
(sleep 15; killall oref0-fix-git-corruption) &
sleep_pid=$!
wait $pid

status=$?
if [ $status -lt 128 ]; then
        kill $sleep_pid 2> /dev/null
fi
Scott Leibrand
@scottleibrand
Jun 24 2016 14:29
Not bad. Have you tested it against a process it actually has to kill?
I'd say once that is tested and known to work in that situation, let's update it.
Chris Oattes
@cjo20
Jun 24 2016 14:31
I haven't tested it against a process it actually has to kill. Not sure how to force it.
I could write an infinite loop script and have it launch that instead to test it
Chris Oattes
@cjo20
Jun 24 2016 14:36
if I put a sleep 30 at the start of oref0-fix-git-corruption it gets killed after 15 seconds
kenstack
@kenstack
Jun 24 2016 14:37
@Entropy512 hi andrew let me now if you have questions on “IOB”. IOB as glucodyn and the pump bolus calculators use it is really a combination of multiple effects - insulin action on glucose (transport of glucose from the blood to tissue/muscle), insulin independent action (ie brain uses glucose from plasma without insulin) and hepatic supression of glucose production. There is no direct relationship between dalla-man, hovorka, etc to the simple IOB curve fits of overall action. We are curently working on a new model that spearates these efffects - the IOB curve mechanics are a very poor representation of low insulin situations like pump suspend.
Eric
@ecc1
Jun 24 2016 15:18
Re: rolling one's own ublinux equivalent: these instructions look promising, will try them soon: http://mr-smirnov.com/2016/02/08/intel-edison-building-debian-image/
Matt Walker
@walker0
Jun 24 2016 15:22
@ecc1 I need to do that too, mostly to enable proper sleep modes on the edison
Pete Schwamb
@ps2
Jun 24 2016 15:42
Hmm, I would figure that your best bet at doing proper sleep would be with Yocto. It generally has tighter OS/HW integration, since it is the distro that intel works on. What advantage does debian have?
Paul Martin
@Spazholio
Jun 24 2016 15:42
Proper package management is one.
Matt Walker
@walker0
Jun 24 2016 15:45
Sorry wasn't paying enough attention, I'm running yocto and planning on compiling a custom yocto kernel to enable proper sleep
Pete Schwamb
@ps2
Jun 24 2016 15:48
@walker0 ah, that makes sense.
@Spazholio I guess opkg seemed to work fine for me.
Paul Martin
@Spazholio
Jun 24 2016 15:50
@ps2 I had some aspects of Python that simply will not install. I can't recall which offhand, but it was a fairly major component. gobject, maybe? gi.repository I think...
Jarred Yaw
@jyaw
Jun 24 2016 15:52
@ps2 @Spazholio I had the same experience with gobject and yocto, stopped me from easily getting openxshareble from working, so I swapped to ubilinux
Would definitely rather use yocto for BT tethering, but would like to use openxshareble more
Eric
@ecc1
Jun 24 2016 15:58
The instructions seem to indicate that the option to produce .deb packages is provided in the Intel bitbake setup, so I'm hopeful that it's at least semi-officially supported.
Paul Martin
@Spazholio
Jun 24 2016 15:58
Had anyone tried setting up a cross-compile environment?
Greg Scull
@komby
Jun 24 2016 16:11
after looping for 2 months we went to the endo today. My wife called to say that the dr office could only download 5 days worth of data from the pump is that normal for a MM pump? It works fine for openaps and I have the data in nightscout but i dont think the dr was very happy they didnt have the data for their reports.
Sarah Hodson Grady
@shgrady
Jun 24 2016 16:13
@komby did she fess up to why it might be off or play dumb?
Scott Leibrand
@scottleibrand
Jun 24 2016 16:16
@komby sounds like the pump history is full of temp basals, so it can only hold 5 days' worth.
Greg Scull
@komby
Jun 24 2016 16:29
ahh that makes sense
Sarah Hodson Grady
@shgrady
Jun 24 2016 16:29
@komby I ask because I am not sure my endo office will even notice a use of temp basals (I spend half my visit on their tech problems), but I think I might get kicked out of the practice for looping.
Chris Oattes
@cjo20
Jun 24 2016 16:29
really?
Sarah Hodson Grady
@shgrady
Jun 24 2016 16:31
they throw a fit when I adjust my own basals
Brooke Armstrong Pazoles
@bpazoles
Jun 24 2016 16:32
Adjust your own basals?? That's nuts. You need a new endo! I've been adjusting my basals since I was 10.
You would think they would want competent patients...
Greg Scull
@komby
Jun 24 2016 16:34
I think my wife told her that she is on openaps, at least told her CDE
Rim Dargis
@rjd107
Jun 24 2016 16:34
Did the end actually know what openaps is?
endo*
Scott Leibrand
@scottleibrand
Jun 24 2016 16:34
@shgrady I second the motion for a new endo
Brooke Armstrong Pazoles
@bpazoles
Jun 24 2016 16:35
My endo doesn't know but he won't care. He will be neutral or maybe happy for me. I basically use him to write my prescriptions and tell me I'm do
I'm doing alright
In my opinion unless your labs or averages are way off, or unles
unless uou ask for guidance, your endo should leave you alone about management decisions
Garrett Webb
@garetis
Jun 24 2016 16:38
I quit going to endo a while ago, and use a PCP to give me everything I want. If my metrics/labs were off, I would reconsider that policy, but I like being able to ask for the supplies I need, rather than have an endo second-guessing everything I ask for
Greg Scull
@komby
Jun 24 2016 16:40
well i only got bits and pieces of information but I did get the important update from the appointment today. A1C 6.5 down from 7.3 after two months of looping. AND the nightscout estimator was spot on :)
Brooke Armstrong Pazoles
@bpazoles
Jun 24 2016 16:42
Fabulous @komby!! Congratulations!!
And yeah, @garetis, exactly. I'm lucky that my endo doesn't second guess me but if he didn't trust me I would ditch him quick.
Eric
@ecc1
Jun 24 2016 16:48
@Spazholio The bitbake infrastructure builds the whole cross-toolchain as part of the build.
David Cintron
@loudestnoise
Jun 24 2016 16:53
@garetis Same here. PCP writes my Rx-es and I just see him a couple times a year for “follow up”. He’s awesome. When I told him I was going to do OpenAPS he kind of rolled his eyes, but said, “I’ll sign the prescriptions for this other pump"
Can I send the log from my cronjob that runs my loop to syslog and use the | tee -a /var/log/openaps/loop.log thing
I’ve been using Papertrail, which gets my /var/log/syslog, but I can’t install their app log sender package as they don’t have one for armhf on RPi
guess I could try and compile myself
Greg Scull
@komby
Jun 24 2016 17:57
Is it possible to use the tethered Dexcom data with an edison rig?
David Cintron
@loudestnoise
Jun 24 2016 18:08
I think maybe you could use USB OTG like people do with Nightscout mobile phone rigs
not sure if anyone is doing it that way. I think either people pull from Nightscout or use openxshareble
Greg Scull
@komby
Jun 24 2016 18:10
I think one of its ports are usbotg
David Cintron
@loudestnoise
Jun 24 2016 18:10
Yeah it is
Greg Scull
@komby
Jun 24 2016 18:10
but it cant be used if you are powering via lipo so that is out
David Cintron
@loudestnoise
Jun 24 2016 18:10
well there are other options to power
depending on what breakout board you’re using
Greg Scull
@komby
Jun 24 2016 18:11
Im using the intel one
Rim Dargis
@rjd107
Jun 24 2016 18:12
Aruduino or breakout board
Greg Scull
@komby
Jun 24 2016 18:12
breakout one. looks like i could feed it 12v and that might work
Rim Dargis
@rjd107
Jun 24 2016 18:13
Yes but if your wanting a loop, you would need an additinal usb port for the TI usb stick.. not sure if the intel board will support a usb hub
Plus a non-micro usb power source
Greg Scull
@komby
Jun 24 2016 18:14
im using a ti mini dev board that is wired to the edison
so I will have the free USB port
Sarah Hodson Grady
@shgrady
Jun 24 2016 18:36
@bpazoles @scottleibrand laughing, I kind of ignore the eye rolls, you guys act like I might have much choice in rural indiana lucky to even be able to see one
my PCP gives me what I ask for, I want my endo to push my buttons a little
Marianne Smith, PMP
@mariannesmith77_twitter
Jun 24 2016 18:40

Hi everyone, closed the loop, and I am noticing today that my enact/suggested is recommending a temp basal but not returning a duration. Any insight into this? see below
reporting enact/enacted.json
{
"temp": "absolute",
"bg": 143,
"tick": "+0",
"eventualBG": 143,
"snoozeBG": 143,
"mealAssist": "Off: Carbs: 95 Boluses: 3.9 ISF: 36, Target: 120 Deviation: 0 BGI: 0",
"reason": "Eventual BG 143>=130, adj. req. rate:2.3 to maxSafeBasal:2.0, temp 2 >~ req 2.0U/hr"

}

{
"bg": 143,
"temp": "absolute",
"snoozeBG": 143,
"timestamp": "2016-06-24T14:37:12.104396",
"missing": [
"duration",
"rate"
],
"reason": "Eventual BG 143>=130, adj. req. rate:2.3 to maxSafeBasal:2.0, temp 2 >~ req 2.0U/hr",
"eventualBG": 143,
"error": "missing required input fields",
"input": {
"reason": "Eventual BG 143>=130, adj. req. rate:2.3 to maxSafeBasal:2.0, temp 2 >~ req 2.0U/hr",
"bg": 143,
"eventualBG": 143,
"temp": "absolute",
"snoozeBG": 143,
"mealAssist": "Off: Carbs: 95 Boluses: 3.9 ISF: 36, Target: 120 Deviation: 0 BGI: 0",
"tick": "+0"
},
"mealAssist": "Off: Carbs: 95 Boluses: 3.9 ISF: 36, Target: 120 Deviation: 0 BGI: 0",
"tick": "+0"
}

Scott Leibrand
@scottleibrand
Jun 24 2016 18:45
@mariannesmith77_twitter no, it's saying the 2U/hr temp that is already set is good enough.
Marianne Smith, PMP
@mariannesmith77_twitter
Jun 24 2016 19:28
@scottleibrand that is what we were starting to think.
@scottleibrand thank you
dancinbear8825
@dancinbear8825
Jun 24 2016 20:42
So I am trying to read through and understand setting up Open loop, but I am stuck at Github. I just dont get it. I see about scripts such as below, but I dont understand what to do with it or where to do it, or what to expect from it. I tried looking at their training, but there is nothing until July.

!/bin/bash

sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y git python python-dev python-software-properties python-numpy python-pip nodejs-legacy npm watchdog && \
( curl -s https://bootstrap.pypa.io/ez_setup.py | sudo python ) && \
sudo easy_install -ZU setuptools && \
sudo easy_install -ZU openaps && \
sudo easy_install -ZU openaps-contrib && \
sudo openaps-install-udev-rules && \
sudo activate-global-python-argcomplete && \
sudo npm install -g json oref0 && \
echo openaps installed
openaps --version
David Cintron
@loudestnoise
Jun 24 2016 20:56
@dancinbear8825 so do you already have a Raspberry Pi with an Raspbian on it and you’re trying to run that script to install OpenAPS?
dancinbear8825
@dancinbear8825
Jun 24 2016 21:07
Yes and no, I have purchased the raspberry Pi, but I already have an adnroid tunning Xdrip that I was hoping to utilize and learn with prior to having to work blind with the raspberry pi. I dont even know if that is an option and I am too dumb to understand the github portion. I wanted to have open-loop without integrating the pump portion so I could learn it but am stumped. I want to see what the end result is supposed to look like-- does that make any sense?
And yes, that is the page I was on
David Cintron
@loudestnoise
Jun 24 2016 21:11
ok, so you need a Linux computer to use that script
well
yeah, at least I think you do
Paul Martin
@Spazholio
Jun 24 2016 21:12
If I have an Edison breakout board all wired up with a TI stick in serial (and running Ubi), and another breakout board with nothing wired up (running Yocto) - can I just swap the Edisons and have it work just the same?
Scott Leibrand
@scottleibrand
Jun 24 2016 21:13
afaik all the persistent storage is on the edison itself, so yes, that should work. doesn't hurt to try.
David Cintron
@loudestnoise
Jun 24 2016 21:14
@dancinbear8825 That portion of the docs assume you’re using Linux to install those packages
And I think more specifically a distro that uses apt-get
Paul Martin
@Spazholio
Jun 24 2016 21:14
I figured it would (can’t think of any fundamental differences) but it never hurts to ask. Or try, true.
David Cintron
@loudestnoise
Jun 24 2016 21:14
which is Debian I think?
Scott Leibrand
@scottleibrand
Jun 24 2016 21:15
yeah, apt-get is on debian-based distros like debian, ubuntu, raspbian, and ubilinux
dancinbear8825
@dancinbear8825
Jun 24 2016 21:15
So is it possible to run openloop using an existing xdrip /android set up so I can become familiar with the actual functionality of it?
Scott Leibrand
@scottleibrand
Jun 24 2016 21:15
@dancinbear8825 you can run HAPP on an android and do open looping that way
it won't talk to your pump, though: you'll need to manually enter what you're doing.
dancinbear8825
@dancinbear8825
Jun 24 2016 21:17
Scott I looked at the link Dana sent me on HAPP but I am still stuck on how to go about actually putting it together. I am okay with it not talking to the pump (on Omnipod anyways). I just dont understand how to get anywhere in Github or what I am doing within it.
David Cintron
@loudestnoise
Jun 24 2016 21:18
There’s an APK file on that github page
I think you can just install it on your Android phone
dancinbear8825
@dancinbear8825
Jun 24 2016 21:20
I tried opening it but not supported by my device- (iphone) and I honestly dont know what an APK file is! I will get out the Android and try to open it there
Scott Leibrand
@scottleibrand
Jun 24 2016 21:21
yeah, HAPP only works with Android. There are iOS based options, but they require a RileyLink to talk to a Medtronic pump (and aren't designed to open loop with other pumps like HAPP).
David Cintron
@loudestnoise
Jun 24 2016 21:22
Yeah, you said xDrip/Android so I assumed you had an Android phone
guess you’re strictly using it as an uploader for Nightscout?
dancinbear8825
@dancinbear8825
Jun 24 2016 21:23
Correct. Says there is a problem parsing the package
dancinbear8825
@dancinbear8825
Jun 24 2016 21:37
Ok, got the Xdrip with WF installed but thats as far as I got, I am guessing there is a lot more to be done?
David Cintron
@loudestnoise
Jun 24 2016 21:40
I’m not sure what WF is
You might pop over into the Gitter channel for HAPP to see someone could help
Paul Martin
@Spazholio
Jun 24 2016 22:03
Does anyone know offhand if connman supports PEAP and/or MSCHAPv2?
dancinbear8825
@dancinbear8825
Jun 24 2016 22:10
Thank you for your help
Paul Martin
@Spazholio
Jun 24 2016 22:10
Wow, Yocto doesn’t support ps -ef or ps aux. Ugh.
Pete Schwamb
@ps2
Jun 24 2016 22:14
I think just vanilla ps gives you everything on yocto, no?
(it’s been a while)
Paul Dickens
@thebookins
Jun 24 2016 22:18
hi all, roughly how long should I expect the loop to take to execute? openaps do-everything is taking 7 or 8 minutes, making a 5-minute cron job a bit problematic
Paul Martin
@Spazholio
Jun 24 2016 22:19
@ps2 Yeah, but tell that to my muscle memory. =)
Scott Leibrand
@scottleibrand
Jun 24 2016 22:21
@thebookins what all are you running in do-everything? autosens? AMA?
Paul Dickens
@thebookins
Jun 24 2016 22:26
@scottleibrand no just trying to get a vanilla version of the loop running as per the docs
Scott Leibrand
@scottleibrand
Jun 24 2016 22:28
generally it doesn't take that long. I would try running the component aliases individually preceded with the time command to see how long each one takes
Paul Dickens
@thebookins
Jun 24 2016 22:30
@scottleibrand ok, thanks, I'll try running the components separately
I'm running on an old raspberry pi (version 1 model b) while I wait for a new one
that wouldn't have anything to do with the speed?
Scott Leibrand
@scottleibrand
Jun 24 2016 22:35
ah, most definitely
you might be able to speed it up, but the pi 1 is considerably slower than the pi 2, edison, etc.
so you might need to make the loop run every 10 minutes instead of 5
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 24 2016 22:36
I provisioned my Pi, installed openaps, went through the various tutorials on using openaps commands, reports, alias’s, have Nightscout working great with my G5 bridge in place, I can communicate with pump and dexcom G5 with openaps, I went through the walkthrough and understand the nees to generate a number of reports and schedule them to run at different times etc. I went back to Phase 1 to get Nightscout working with openaps and hit a wall “openaps use ns shell preflight” returns false. Can someone point me to where I went wrong in the docs?
Scott Leibrand
@scottleibrand
Jun 24 2016 22:37
it's also possible the docs are incorrect. you might want to compare to the dev docs and see if that's clearer or more correct
Paul Martin
@Spazholio
Jun 24 2016 22:37
So on Yocto, I set up a connection via connmanctl and it seems to associate on reboot, but it never pulls an IP unless I systemctl restart connman. That can’t be the intended behavior, can it?
Paul Dickens
@thebookins
Jun 24 2016 22:40
@scottleibrand right, so it's likely to do with the pi 1. BTW, I don't have the time command; perhaps I need to update? Is updating just a matter of re-running curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash - ?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 24 2016 22:41
Ok thanks scott I will dig in there. thanks
Lynne Butts
@flutelynne_twitter
Jun 24 2016 22:45
Looking on the search, and I have "power-cycling USB to fix dead stick"...should I just wait a while? One of the searches, the guy said that his came on after 20 minutes
Scott Leibrand
@scottleibrand
Jun 24 2016 22:45
time is not a stand-alone command, it's a built-in part of bash. try time sleep 1
should show something like:
real    0m1.006s
user    0m0.000s
sys     0m0.000s
you can do the same thing with any command on the command line: just put time in front of it to get timing details
Paul Dickens
@thebookins
Jun 24 2016 22:50
@scottleibrand of course! blame it on lack of sleep; i was calling openaps time do-everything will swap the commands around, thanks scott
Lynne Butts
@flutelynne_twitter
Jun 24 2016 22:54
would I put this in cron? * killall -g --older-than 10m openaps && sudo oref0-reset-usb
It is weird because it is looping
I will try later...I keep getting "broken pipe"
Scott Leibrand
@scottleibrand
Jun 24 2016 23:19
@flutelynne_twitter yes, you should have that killall in place. the && sudo oref0-reset-usb portion is only useful if your carelink or TI stick is connected via USB.
the killall ensures that if an openaps command is taking too long, it gets killed off so another one can start
Matt Walker
@walker0
Jun 24 2016 23:31
@Spazholio is that problem on wifi? Mine reconnects perfectly after reboot
Paul Martin
@Spazholio
Jun 24 2016 23:32
It is, but I’m poking at it some more. It might be a moot point if this thing doesn’t handle PEAP/MSCHAPv2 properly. If not, I’ll have to switch back to using wpa_supplicant.
Matt Walker
@walker0
Jun 24 2016 23:37
@Spazholio makes sense, they are much more annoying networks to interface with. You could try these instructions
Paul Martin
@Spazholio
Jun 24 2016 23:41
I’ve got a perfect wpa_supplicant.conf file that I just move from system to system, which means I should have all the specific info needed. We’ll see on Monday when I head back to work. =)
Paul Martin
@Spazholio
Jun 24 2016 23:48
If I want to do BT tethering, is connman pretty much what I have to use? I’m fairly new to BT tethering, and wasn’t sure if there were other options...