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

1st
May 2017
susieanneh
@susieanneh
May 01 2017 00:15
hi guys! Im setting up heroku and i get an error that says my api secet needs to be 12 characters and it is?
Tim Street
@tim2000s
May 01 2017 00:15
Hey @PopcornPam_twitter - I've been using oref1 with Fiasp. When the Fiasp works it's very good with SMB, but I've had a few issues with the insulin. There are a few changes I've made outside the DIA adjustment, and I'm happy to PR them into the oref1 docs, but I'd also suggest keeping a tight eye on it as you start to use Fiasp due to the number of similar experiences I've heard about with regard to insulin absorption.
PopcornPam
@PopcornPam_twitter
May 01 2017 00:17
@tim2000s , I don't think I can use my insurance in Canada, so was going to get just a bottle (the endocrinologist of the t1d clinic I work with in Haiti is in Montreal, and has said she would bring me a bottle next time i see her). So I was wondering about saving it and doing injections for those times when i am super high, like forgot to bolus, or know it is a super high carb meal
are you running your loop on fiasp?
Tim Street
@tim2000s
May 01 2017 00:19
Yup. Have been for over a month.
I know of a couple of others who are too.
PopcornPam
@PopcornPam_twitter
May 01 2017 00:19
how has your skin been reacting?
and do you like it better or worse?
rsilvers129
@rsilvers129
May 01 2017 00:20
@PopcornPam_twitter I asked Dr today about ultra fast acting insulin and he said none was available. How can I get FIASP?
PopcornPam
@PopcornPam_twitter
May 01 2017 00:21
Get a Canadian doctor to write a prescription and have someone get it for you in Canada
rsilvers129
@rsilvers129
May 01 2017 00:21
Let me know what it ends up costing per bottle to do that. I will compare to what Humalog costs, and see if it is worth it.
PopcornPam
@PopcornPam_twitter
May 01 2017 00:22
I am getting a free sample from my endo friend up there, but the internet seems to think it would be about 100$
Tim Street
@tim2000s
May 01 2017 00:22
@PopcornPam_twitter - I've written all about my experiences here: http://www.diabettech.com/Faster-insulin
It's the same price as Novolog in Europe.
rsilvers129
@rsilvers129
May 01 2017 00:23
I know but we are talking about insurance-paying for Novalog/Humalog vs paying for FIASP out of pocket. Huamlog costs me $6.67 cents per 10 ml with insurance.
Tim Street
@tim2000s
May 01 2017 00:25
I've had some areas where there were skin reactions but not many, but the bigger issue has been the complete loss of action from time to time. Just the other day I boluses 42u for 160g carbs without ending up low. That's a real oddity and I think it showed up in the pump trials that Novo did without them recognising what was happening as it looks like an occlusion in terms of body's reaction to insulin. Hi
@rsilvers129 - over the counter in Europe, it will be about the same price.
PopcornPam
@PopcornPam_twitter
May 01 2017 00:26
hmm that is making is sound way less appealing
rsilvers129
@rsilvers129
May 01 2017 00:27
I use 35 units per day. So that is like $7 a month for me now.
A vial of Humalog in Canada is about $72 now. So if FIASP is the same price, then that is 10x more than I pay now.
Aaron Michelson
@Aaybob
May 01 2017 00:48
@esialb Quoting"@rsilvers129 my assumption is that the difficulty creates a barrier to entry such that is somewhat protective". Isn't OpenAPS more safe than an un(regulated) insulin pump, an insulin pump that does not care what the blood sugar is? It is dificult when things change. For example if someone says "I will by miracle cure you of diabetes". and if I believe it I don't believe a full cure but a partial cure happens. So then I take less insulin because if I take the same amount, an unregulated dose, I suffer hypoglycemia. So the "cure" must have the barrier that one is able to adjust dosages to deal with the "miracle of a partial cure". Because if one receives a partial cure without medical intervention in dosage quantities the cure causes death. So, yes safety is an issue in a disease in which a dose taken perhaps a dozen times a day if delivered in too large a quantity could cause accidental death. And of course the recourse or "cure" for this danger has always been let the blood sugar go high. And don't expect a lengthy existance. Sorry if off topic, just feeling alone in my struggle.
Scott Leibrand
@scottleibrand
May 01 2017 01:06
@rsilvers129 I've seen people quoting about $30 per bottle for Fiasp in Canada
rsilvers129
@rsilvers129
May 01 2017 01:23
@cameronrenwick I made you the battery adaptor you asked for. You just print one of these, and then run two wires into it. The wires wrap around the two contact points. You can use the o-ring from the Medtronic cap on it. Seal where the wires come out.
IMG_5663.JPG.jpeg
Put a JSC connector on the wires.
Then get something like this: https://www.adafruit.com/product/3287 (but re-wire it in parallel).
Martin Haeberli
@mhaeberli
May 01 2017 01:35
@rsilvers129 nice work! on the battery adapter !
Andy Sharrow
@dramageek
May 01 2017 01:37
@rsilvers129 Nice! I've personaly found the lithium batteries to be enough of a compromise, but major props for helping out someone with a specific request find what they're looking for!
rsilvers129
@rsilvers129
May 01 2017 01:39
Three AA lithiums should last one month.
rsilvers129
@rsilvers129
May 01 2017 02:23
Does SMB use more power?
Scott Leibrand
@scottleibrand
May 01 2017 02:32
It actually has some power saving features that aren't in dev yet.
Robin Kirkman
@esialb
May 01 2017 02:34
@Aaybob I don't claim to know your struggle and am only seeing this from an outsider's perspective. From that outsider's perspective, I see a software project that helps a lot of people but may have risks if used without sufficient knowledge. The "barrier to entry" I mentioned was about sufficient knowledge of how the software works, including setting up an edison to run the software. I'm not saying the net results would be bad if OpenAPS were a truly point-and-click solution of some kind, just that people should understand the risks they take and understanding OpenAPS and the edison it runs on is part of understanding that risk.
Dana Lewis
@danamlewis
May 01 2017 02:35
:+1:
birdfly
@birdfly
May 01 2017 02:36
@danamlewis
When sensitivity is normal and basals are well tuned, we expect somewhere between 45-50% of non-meal deviations to be negative, and the remaining 50-55% of deviations should be positive.
I cannot understand this sentence very well
what does the "deviations" mean
rsilvers129
@rsilvers129
May 01 2017 02:40
I may want to write up a simpler guide once I have experience. One that doesn't mention things that don't matter anymore, such as you can use a Raspberry Pi or a Carelink. And it would not jump around with hyperlinks. I don't think it can be done with PRs as there is too much to untangle. I would have to just write a quide, put it in PDF format, and put it online.
Dana Lewis
@danamlewis
May 01 2017 02:44
PDF's are static and prevent ongoing changes. Welcome PRs (or a proposal of how to redesign when it gets to the point of you being ready) to change and improve the docs for sure, but any guides or docs need to be in a format where everyone can contribute, fix issues, and improve upon.
Scott Leibrand
@scottleibrand
May 01 2017 02:53
@rsilvers129 sounds like you want to do something along the lines of what @Kdisimone has been working on. You might want to offer to help with that.
katie disimone
@Kdisimone
May 01 2017 03:04

@rsilvers129 I hear what you’re saying…but starting a new set of docs has to be pretty well planned out. There’s a lot of history to support users on older setups (you’d be surprised by the number of people still on rpi setups), and a lot of brand new, never opened Terminal app type users. The easy part about writing docs for Loop was that there is a very very restricted set of gear to use…an apple computer, an iPhone, and Xcode. About the only variability is whether or not someone signs up for a paid developer account or not.

there’s a lot of base to support in openaps docs. Mac users, windows users, etc. and a lot of different rig setups. Even while moving to explorer and edison as a preferred setup…there’s still a lot of features and platforms to consider around that.

So, in short, there’s not just a lot of depth…there’s also a lot of breadth to cover in the OpenAPS docs. Doing an overhaul of them will require a lot of planning and effort to make sure that no important parts are left behind.

But, while that “overhaul” might be super tempting as a fulfilling topic…there’s also plenty of areas where regular PRs would bring some immediate help to others before an overhaul can be planned out. I tend to focus on iPhone, mac, and g4 setups…because that’s what I have. But, I’ve been doing a lot of work driving to my father-in-law’s house to borrow his Windows computer to find more info to add to the docs. I’ve borrowed android phones to get more familiar with them. All of these experiences will help me be more informed in any docs reorganizing so that I am not so narrowly focused on my own preferred setup…giving due space and importance to android phone selection for BT setup for example.

I’m certain there are many areas in the current docs that can be filled in prior to a reordering effort.

Dana Lewis
@danamlewis
May 01 2017 03:05
:+1: Fwiw, I can make a list around known areas of improvement if anyone wants to help focus on filling those content gaps in the meantime, while we’re also working on a broader re-org
JELCRAWFORD
@JELCRAWFORD
May 01 2017 03:08
Im happy to help out with the list if there are pieces I can add to. We have (in addition list by @Kdisimone
X drip+ and assorted hardware to add to experience
katie disimone
@Kdisimone
May 01 2017 03:08

that’s just my ideas…i’ve been discussing some ideas with @danamlewis in the background about reordering somethings. for example, i think nightscout setup might be best to do first before starting on rig building. (so not Phase 1, but rather Phase 0). Because stopping after flashing, then Nightscout, then coming back to loop building seems like that’s probably not the order most people are doing anyways. And, I think more emphasis should be put on the “finishing” steps of papertrail and preferences.json setting.

But, I’ve certainly found a lot of value in fleshing out those sections even IF we aren’t ready to reoder them. Just today, I submitted a PR for the accessing your rig page to flesh out the Windows users and troubleshooting steps for Mac users who get errors in Screen mode. So, when we are ready to reorder…the full pages are ready.

Dana Lewis
@danamlewis
May 01 2017 03:08
awesome!
@JELCRAWFORD finishing some code-related PRs and I’ll make a quick list (also after I finish reviewing @Kdisimone ’s current PR :D) #doallthethings thanks!
JELCRAWFORD
@JELCRAWFORD
May 01 2017 03:11
Also running both a mac and windows here. Besides all that - we've got one tech person and one truly non technical person - so wide range of experience in that regard...
katie disimone
@Kdisimone
May 01 2017 03:11
and by “we”…i usually mean @danamlewis and company….so :clap: for all her and @scottleibrand work on this. Thanks
@JELCRAWFORD yeah, my husband doesn’t know a riley from an explorer board…so there’s that
Dana Lewis
@danamlewis
May 01 2017 03:11
@JELCRAWFORD btw, super good to know - are you running xdripAPS? I feel bad always nudging our European friends to be first on the list of helpers on that topic
JELCRAWFORD
@JELCRAWFORD
May 01 2017 03:11
Agreed with @Kdisimone!
See. Non tech. Maybe running xdrip aps.... I don't know for sure. But I've got a contact to answer that :)
Dana Lewis
@danamlewis
May 01 2017 03:13
JELCRAWFORD
@JELCRAWFORD
May 01 2017 03:13
Xdrip+, wixel, bt chip, android phone. I know that those. Still need to learn spidering tho..
Sodering. Apparently not a 'real' word.
Robin Kirkman
@esialb
May 01 2017 03:14
soldering i think
Scott Leibrand
@scottleibrand
May 01 2017 03:14
@birdfly the deviations thing is something we need to document better in the docs. the way that works is, we calculate how much BG should be rising or falling from insulin activity alone (which we call BGI, for BG Impact). then, we compare the actual rise or fall in BG to the predicted BGI, and that difference is what we call the deviation.
JELCRAWFORD
@JELCRAWFORD
May 01 2017 03:15
Ahhh. Yes. Your right @esialb Your spelling looks much better :). I'm sure your coding too :)
Dana Lewis
@danamlewis
May 01 2017 03:15
awesome screenshot additions by @Kdisimone to the docs on the “accessing your rig” page: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/accessing-your-rig.html :clap:
Robin Kirkman
@esialb
May 01 2017 03:15
Depends on what codebase you're talking about. My github is full of some terrible stuff too.
Scott Leibrand
@scottleibrand
May 01 2017 03:16
@JELCRAWFORD you must be really confused as a Canadian, given that we Yanks pronounce soldering as soddering, and the Brits pronounce it as soul-dering. ;-p
birdfly
@birdfly
May 01 2017 03:16
@scottleibrand thx,but I think that it should the same if the sensitivity is normal and basals are well tuned
there should be no deviations or the deviations is zero
Scott Leibrand
@scottleibrand
May 01 2017 03:18
@birdfly if sensitivity is normal, then you'll see about the same number of (slightly) positive deviations as (slightly) negative ones, just from random stuff
if you're running resistant, you'll see a lot of cases where BG is not falling as fast as predicted from BGI * ISF
conversely, if you're running sensitive, there'll be a lot more cases where BG is falling faster than predicted
if autosens sees that, it can take that median ("typical") deviation, and calculate what change to ISF (and basals) would have been required to cancel it out
rsilvers129
@rsilvers129
May 01 2017 03:21
Thanks @Kdisimone and @danamlewis So much to do. I wish I started a year ago. One year less damage to me from managing my pump myself. Now I want to save others. It is surprisingly hard to convince people to change to something as dramatically better as what you and others have created.
Dana Lewis
@danamlewis
May 01 2017 03:21
@rsilvers129 well said :+1: <3
birdfly
@birdfly
May 01 2017 03:24
@scottleibrand thx a lot ,let me take some time to think about it
the typical is 1800/TDD ? @scottleibrand
Dana Lewis
@danamlewis
May 01 2017 03:31
re: oref1 stuff - need a few eyeballs on the code before we officially merge to dev, if anyone wants to glance on it and flag anything that should block this from going to dev (or otherwise say if it looks good to you): openaps/oref0#452
re: testing SMB and oref1 stuff, stay tuned - building a list of testing scenarios so that once this PR is merged into dev, people can help tackle specific types of builds and tests related to these features being on or off in various combinations
and re docs (previous conversation w/ @JELCRAWFORD @Kdisimone and anyone else who wants to help beef up the docs), here are the few areas I have specifically noted as needing improvements in the short term:
1) Now that we have the Mac-specific and Windows-specific Edison setup pages - we need someone to cross check with the general “Setting up Your Edison” page, which has a bunch of good troubleshooting stuff, all mixed in with Mac, Pi, and Windows setup instruction. A) Pull the Pi-specific stuff into it’s own page; B) Double check what’s there for Windows and Mac is all represented on their specific pages; and C) then change that page to an overall troubleshooting page with the aggregated troubleshooting tips.
2) Flow for Phase 0 isn’t quite right anymore – check the flow in RTD to see which pages link where for next steps so they all lead you to the next step of the build (vs relying on the ‘next’ button that’s the next page in the section that may be a different computer-based build of the same steps you already did)
3) Oref0-setup page always needs some love – people keep skipping steps on the page – PRs welcome to format the page and sub step content better! http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/oref0-setup.html
4) Also re: tracking and logs – help make it clear that Papertrail is great, but for detailed troubleshooting you need to be able to log into the rig (from computer or mobile) and type l and bring up the full details of what the rig is doing
Scott Leibrand
@scottleibrand
May 01 2017 03:33
@birdfly we don't use TDD directly in any way. we start with whatever is configured in the pump, and iterate from there (with autosens in real time, or over the course of weeks with autotune)
of course, if someone (or their endo) configures their pump based on 1800/TDD or any other rule of thumb, we can iterate from there.
birdfly
@birdfly
May 01 2017 03:35
got it
katie disimone
@Kdisimone
May 01 2017 03:50

@danamlewis that oref0-setup page...what would you think about changing the setup instructions to remove the part about first time installers not use the --btmac extension.

I think that adding the --btmac for every setup is a good idea. Even if people decide they don't want to pair with a phone later, adding that extension only installs the bluez software part. And that bluez install takes a pretty good chunk of time.

I'd think it would be nice to prompt everyone to use the extension and just say "adding the extension does not automatically enable BT-pairing for your phone. You will still need to set that up through the steps in phase 4. Adding the --btmac installs code that prepares your rig for pairing when you're ready to set it up.

I think it would remove a hurdle for people who might do things in stages to have bluez already on when they are ready vs tackling rerun and then pairing at same time.

Thoughts? Others have opinion?

Dana Lewis
@danamlewis
May 01 2017 03:52
hm. interesting take - I was leaning toward removing notes about btmac there because it takes so long in comparison, otherwise adding ~30-45 minutes to what should be a super speedy first time setup. definitely see your point, though
so would be a tradeoff: people would already have it - however, equally likely to jump the gun and say “it doesn’t work” when it’s still installing 30 minutes in?
(my original thought was to remove all traces about bluetooth, and maybe make the note about how to run oref0-setup with BTMAC as part of the bluetooth tethering page, vs keeping it on the oref0-setup page, to help cut down on overall confusion for brand newbies)
Robin Kirkman
@esialb
May 01 2017 03:55
@danamlewis outsider perspective, i've seen a lot of worry about power consumption by a lot of people and bt tethering might be preferred over wifi as a default
Kevin Marshall
@ruess
May 01 2017 03:56

@ruess
Hey all - anyone ever had any issues with jubilinux being stubborn and not changing hostname from localhost to your desired hostname?
ran through the following commands: myedisonhostname=myname
plus: echo $myedisonhostname > /etc/hostname

sed -r -i"" "s/localhost( jubilinux)?$/localhost $myedisonhostname/" /etc/hosts
and literally nothing happens

Robin Kirkman
@esialb
May 01 2017 03:56
@ruess you have to reboot before it notices the new hostname
Kevin Marshall
@ruess
May 01 2017 03:56
hmm. Ok - done that but i’ll give it another whirl
Eric
@ecc1
May 01 2017 03:56
or run the hostname command as root to set it
Robin Kirkman
@esialb
May 01 2017 03:57
@ecc1 does that update /etc/hostname ?
Eric
@ecc1
May 01 2017 03:57
# hostname NEWHOSTNAME
Dana Lewis
@danamlewis
May 01 2017 03:57
@esialb true. I’m coming from the perspective of trying to limit the number of things that complicate first-time setups - and bluetooth is definitely one that trips people up from looping, and I’d rather get people looping successfully and then come back and do bluetooth. @Kdisimone but maybe there’s a way to have them run btmac as part of setup, and not tell them about bt setup then? so they can do it later, but work through the flow of getting looping first?
Kevin Marshall
@ruess
May 01 2017 03:57
that’s what I’m used to @ecc1 in most linux systems - this new hostname method is new to me
Eric
@ecc1
May 01 2017 03:57
No, you still have to do that, it just allows you to change it in the running system rather than rebooting
Kevin Marshall
@ruess
May 01 2017 03:57
oh i see
Robin Kirkman
@esialb
May 01 2017 03:58
@ruess my understanding is that the idea is to have commands people can copy and paste without knowing how/why they work
@ruess so if you feel comfortable editing /etc/hostname and /etc/hosts by hand, you may as well
Kevin Marshall
@ruess
May 01 2017 03:59
right - ya normally i learn the why’s when the copys and pastes stop working - otherwise my brain would be filled with millions of linux commands I rarely use ;)
thanks - will give this all a go
JELCRAWFORD
@JELCRAWFORD
May 01 2017 04:00
@scottleibrand @esialb - all I know is that coding, sodering (or more properly soldering), PR's, Github, carb counting, ISF and a very large number of other things were not part of my repertoire a short year ago (tomorrow marks exactly 1 year) - and admittedly - I still don't count coding at all . I still am pretty new at most all of it, including basic math (damn my grade 5 teacher being right about how important math was in 'real life') but can bumble along with some of it, have an immense amount more knowledge, and less sleep. OpenAPS has improved many of these things immensely. My wish for all of us here, and everyone else D touches, is a cure. Until then, I guess I'll solder on, or soder on, or sodder on... or whatever it takes :) I've also learned some of this stuff isn't as hard or impossible as I thought at the start...
Dana Lewis
@danamlewis
May 01 2017 04:00
:) <3 :+1: :clap:
JELCRAWFORD
@JELCRAWFORD
May 01 2017 04:02
@danamlewis - just curious - did you intend people to go to the specific OS pages when installing or use the more generic page. I have to admit - I did not even notice the "go here for MAC" instructions, but used the pages with each OS included on each page. It wasn't until @jmcrawford asked me why I was using 'those' instructions that I'd even realized there were a second set of OS specific ones....
Robin Kirkman
@esialb
May 01 2017 04:03
@JELCRAWFORD if you find yourself with suggestions for jublinux along that journey, drop me a line or something. I can't help with OpenAPS itself, but jubilinux is my pet project and I want it to be useful to anyone who wants to use it.
Dana Lewis
@danamlewis
May 01 2017 04:03
@JELCRAWFORD now that we have os-specific pages, I think it’s better to use those - HOWEVER there’s some really good universal troubleshooting stuff on the main multi-page that I don’t think makes sense to duplicate across each OS page. Does that make sense?
I think @Kdisimone more recently added a note to the multi-page calling out the OS-specific pages, but as always - probably somethign that can be made more clear in the meantime while those pages all get refreshed
JELCRAWFORD
@JELCRAWFORD
May 01 2017 04:04
@esialb I don't know if I'll ever be smart enough for that, but I will certainly suggest as we go. Having just received a shiny new 630g pump up here in Canada, I want to find out who, if anyone is workign on that communication protocal... damn medtronic for having made it more difficult...
@danamlewis - yes, makes total sense. I think much quicker with OS specific - I probably should have done a PR at the time to draw attention more specifically to the OS specific pages... I'll look again to see - maybe I'm the only one who didn't notice such a thing...
Kevin Marshall
@ruess
May 01 2017 04:05
awesome - it worked - thanks all!
JELCRAWFORD
@JELCRAWFORD
May 01 2017 04:05
I probably also haven't looked since @Kdisimone made her change - the new OS specific pages are fantastic - images are great.
Dana Lewis
@danamlewis
May 01 2017 04:06
heh - good rule of thumb is, if you find a problem or think there’s a problem w/ overlooking something, it can probably be improved :D and it’s definitely worth PRing a fix or improvement in! (cause for every one person who speaks up, there’s 2-3 more who didn’t say anything)
:+1: agreed
Kevin Marshall
@ruess
May 01 2017 04:06
@esialb - is jubilinux your distro??
Dana Lewis
@danamlewis
May 01 2017 04:07
Oh - and something minor to add to the list - the “my first PR” page needs 2 new screenshots, too, to reflect the changed style of OpenAPS RTD: http://openaps.readthedocs.io/en/latest/docs/Resources/my-first-pr.html
katie disimone
@Kdisimone
May 01 2017 04:08

@esialb @danamlewis working off my new user experience (of having a child with the rig going to school), was that BT setup was way more important to seeing this as a useable system. TBH, I think we would've gone back to Loop if we had to rely on anna trying to remember to toggle wifi-tethered hotspots on/off. She just couldn't do that, and our cell data plan could never handle being on hotspot a majority of the day (even with 18gb a month) either.

And I'd rather have people not give up on the system because they don't give it the fair shake early in the game. BT-tether was a big part of us being able to feel like the setup was something we wanted to keep.

@danamlewis lol, already grabbed those screenshots for the pr page. Lol. Same minds
Dana Lewis
@danamlewis
May 01 2017 04:10
@Kdisimone good points, and fair enough - but let’s have them do the btmac stuff but NOT then immediately try to do bluetooth. I’d rather them have the 45 minutes install and get looping, and then do bluetooth (so maybe we change how we make a note to point people to bluetooth, but not have it come before step 3)
:D
there’s a lot of basics about tailing logs (step 3) and then all of the phase 3 stuff that people just don’t read, and immediately stop and say “now what” without reading further. not sure how to bridge that, maybe it’s adding those pages into the same phase as setup script?
(not sure how easy or complicated a change it needs to be to bridge that gap - ideas welcome)
JELCRAWFORD
@JELCRAWFORD
May 01 2017 04:11
@danamlewis @Kdisimone - interestingly (perhaps), eventhough @jmcrawford uses papertrail to monitor and is infinitely more skilled than I at all of it, I log in directly - papertrail feels like one more thing... It looks great there, but I suspect for some, one less thing is more...
katie disimone
@Kdisimone
May 01 2017 04:11
Totally agree. BT pairing is way too much for early setup stages!
sdneufer
@sdneufer
May 01 2017 04:13
,V
Dana Lewis
@danamlewis
May 01 2017 04:14
actually - skip the 45 minutes. what if it would work with stock bluez?
@Kdisimone up for some testing? :D
katie disimone
@Kdisimone
May 01 2017 04:14
@danamlewis of course! Always
Scott Leibrand
@scottleibrand
May 01 2017 04:14
I think the reason we compile bluez >= 5.37 is for openxshareble, which requires the experimental BLE features. I suspect BT tethering might work with the older packaged install (5.24 or whatever it is)
katie disimone
@Kdisimone
May 01 2017 04:14
I think the bluez installed with the current jubilinux is older version. Want me to try with that?
Scott Leibrand
@scottleibrand
May 01 2017 04:15
so yeah, let's try running through the BT setup steps with that version of bluez
if you can make that work we can update oref0-setup to only require bluez >= 5.37 for openxshareble
Dana Lewis
@danamlewis
May 01 2017 04:15
:raised_hands:
rsilvers129
@rsilvers129
May 01 2017 04:15
The instructions here http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/autotune.html#phase-c-future-current-wip-running-autotune-more-easily-as-an-average-user say "If you do not regularly enter carbs (meals) into Nightscout, autotune will try to raise basals at those times of days to compensate. " Do you have to enter carbs into Nightscout with the iPhone? Or does entering carbs into the Bolus Wizard take care of that?
katie disimone
@Kdisimone
May 01 2017 04:15
I'll give it a whirl
Dana Lewis
@danamlewis
May 01 2017 04:15
@rsilvers129 entering carbs into bolus wizard on pump works
rsilvers129
@rsilvers129
May 01 2017 04:16
thanks
JELCRAWFORD
@JELCRAWFORD
May 01 2017 04:16
@rsilvers129 in fact entering carbs in both will cause trouble - you must pick one only
katie disimone
@Kdisimone
May 01 2017 04:16
And by "it" I mean BT pairing on jubilinux standard install
Scott Leibrand
@scottleibrand
May 01 2017 04:16
:+1: thx
Dana Lewis
@danamlewis
May 01 2017 04:26
nice clarification PR @rsilvers129 - thanks! openaps/docs#802
Dana Lewis
@danamlewis
May 01 2017 04:38
thanks @Kdisimone for the new “how to make a PR” screenshots + fixing the numbering :) openaps/docs#803
Robin Kirkman
@esialb
May 01 2017 05:13
@scottleibrand bluez 5.23
Scott Leibrand
@scottleibrand
May 01 2017 05:17
:+1:
Tim Street
@tim2000s
May 01 2017 05:50
@esialb - when we've tested power consumption of bt tethering vs wifi we've found it makes very little difference to the Edison and only affects the phone, so if you have accessible wifi, you might as well save yourself money on the hotspot tariff.
katie disimone
@Kdisimone
May 01 2017 05:57

Bluez 5.23 doesn’t work with the current directions. @scottleibrand @danamlewis thus far it is hanging up on the command

root@jubilinux:~# sudo /usr/local/bin/bluetoothd --experimental &
[1] 4629
root@jubilinux:~# sudo: /usr/local/bin/bluetoothd: command not found

It stops there with no active prompt. If I press return, this happens:

root@jubilinux:~# sudo: /usr/local/bin/bluetoothd: command not found

[1]+  Exit 1                  sudo /usr/local/bin/bluetoothd --experimental
root@jubilinux:~#

I suppose I could go to google and see if there’s a different set of instructions for bluez 5.23?

Scott Leibrand
@scottleibrand
May 01 2017 06:01
@Kdisimone I think we could skip the whole "kill the currently running bluetoothd and restart it with --experimental" part of the directions if we're going with the packaged version. the bluetoothd that's already running should be fine to proceed with. (now that you've killed it, it might be easiest to reboot the rig)
katie disimone
@Kdisimone
May 01 2017 06:02
ok, i’ll try that
no dice. when i enter bluetoothctl, it’s frozen. No colors and will not accept any typing.
Screen Shot 2017-04-30 at 11.04.39 PM.png
Scott Leibrand
@scottleibrand
May 01 2017 06:05
hmm, that seems like a different problem not caused by the version number
but I'm not sure offhand what it'd be
katie disimone
@Kdisimone
May 01 2017 06:05
i flashed with jubilinux 0.1.1
katie disimone
@Kdisimone
May 01 2017 06:25
I have no bluetooth.service to start maybe?
root@jubilinux:/lib/systemd/system# ls
acpid.path                runlevel1.target.wants
acpid.service                runlevel2.target
acpid.socket                runlevel2.target.wants
autovt@.service                runlevel3.target
avahi-daemon.service            runlevel3.target.wants
avahi-daemon.socket            runlevel4.target
basic.target                runlevel4.target.wants
bluetooth.target            runlevel5.target
bootlogd.service            runlevel5.target.wants
bootlogs.service            runlevel6.target
bootmisc.service            screen-cleanup.service
checkfs.service                sendsigs.service
checkroot-bootclean.service
Scott Leibrand
@scottleibrand
May 01 2017 06:27
hmm, not sure. If you can't figure it out, and no one else pipes up to help, we can revisit later.
katie disimone
@Kdisimone
May 01 2017 06:32
I believe I’m missing bluetoothctl…which is with the bluez-utils package. I’ll see if i can find out how to install that
nope…that looks like a dead end.
root@jubilinux:~# apt-get install bluez-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package bluez-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  bluez

E: Package 'bluez-utils' has no installation candidate
root@jubilinux:~#
Martin Haeberli
@mhaeberli
May 01 2017 06:35
@Kdisimone as I recall from having done this just a few days ago - re-running oref0-setup with the same set of parameters, adding –btmac=’AA:BB:CC:DD:EE:FF' at the end - AUTOMATICALLY installs the needed bluetooth magic
it does look from your notes above like you CANT do it directly from apt-get
katie disimone
@Kdisimone
May 01 2017 06:35
@mhaeberli I am trying to test out pairing without that command.
thank though.
Martin Haeberli
@mhaeberli
May 01 2017 06:36
ok - RTD says that the first time you do that it gets and builds the needed code
which was my experience
NP
katie disimone
@Kdisimone
May 01 2017 06:36
You can scroll up through Gitter a few hours above and read what I’m trying to test out. :)
Martin Haeberli
@mhaeberli
May 01 2017 06:37
k thx sorry to have missed the party
katie disimone
@Kdisimone
May 01 2017 06:37
no worries. right now it isn’t feeling much like a party LOL
oh, some progress
Screen Shot 2017-04-30 at 11.40.49 PM.png
Martin Haeberli
@mhaeberli
May 01 2017 06:41
yay!
katie disimone
@Kdisimone
May 01 2017 06:45
got it paired…leaving house to test
Dana Lewis
@danamlewis
May 01 2017 06:47
The things you do for us @Kdisimone <3
Scott Leibrand
@scottleibrand
May 01 2017 06:48
@Kdisimone I think this qualifies you as a Linux sysadmin. ;-)
katie disimone
@Kdisimone
May 01 2017 06:56
well, not quite there yet. It didn’t switch over when I left. I’m back now to debug a little but will probably have to try tomorrow.
Dana Lewis
@danamlewis
May 01 2017 07:01
:+1:
katie disimone
@Kdisimone
May 01 2017 07:09
root@jubilinux:~# iwconfig wlan0 txpower off; sleep 120; iwconfig wlan0 txpower auto
Error for wireless request "Set Tx Power" (8B26) :
    SET failed on device wlan0 ; Input/output error.
Robin Kirkman
@esialb
May 01 2017 07:28
@tim2000s I was thinking about power consumption of a phone; anecdotally I have seen a lot of discussions of OpenAPS used on the go, and phones can run out of battery much faster with wifi than bt tethering
@Kdisimone the edison's wifi driver doesn't do a lot of things
@scottleibrand my understanding is that the bluetoothd started by /etc/rc.local is a special one compiled specifically for edison. i could be wrong though. it's what came with ubilinux
katie disimone
@Kdisimone
May 01 2017 07:32
It failed to connect on my time away from house too. Bummed. Not sure where to go yet to fix. I tried removing the pairing and redoing it. same problem
Robin Kirkman
@esialb
May 01 2017 07:33
@Kdisimone switching between wifi and bluetooth is probably going to require some custom scripts
katie disimone
@Kdisimone
May 01 2017 07:33
I ended up doing apt-get install bluez and then choosing to keep the currently installed version
Robin Kirkman
@esialb
May 01 2017 07:33
automatically switching i mean
katie disimone
@Kdisimone
May 01 2017 07:34
is there custom script that comes in though for the bluez 5.37 that our current installtion directions uses?
Robin Kirkman
@esialb
May 01 2017 07:34
@Kdisimone do you have bluetooth issues on 0.2.0-SNAPSHOT? that has bluez already installed
but it's 0.5.23
Also, killing the existing bluetoothd process can break bluetooth in general, i think it's some sort of race condition. that's why there's all the sleeping in /etc/rc.local
katie disimone
@Kdisimone
May 01 2017 07:37
root@jubilinux:~# bluetoothctl
[NEW] Controller 58:A8:39:01:48:E2 BlueZ 5.23 [default]
[NEW] Device 48:A1:95:A5:A7:31 Katie
[bluetooth]#

I flashed 0.1.1 jubilinux and then just tried to pair my phone without doing anything special after installation of openaps. Theory being perhaps we could get away with not using 5.37.

but when i tried, bluetoothctl was frozen. I had to use apt-get install bluez to get bluetoothctl working.

Robin Kirkman
@esialb
May 01 2017 07:37
finally, for whatever unkown reason, sometimes you have to re-pair a device before it will connect even if you have already paired
katie disimone
@Kdisimone
May 01 2017 07:37
0.2.0-SNAPSHOT was the version I flashed the other night, right? I haven’t tried on that
Robin Kirkman
@esialb
May 01 2017 07:37
yeah 0.2.0-SNAPSHOT is the one that doesn't require keyboard interaction or anything like that
katie disimone
@Kdisimone
May 01 2017 07:37
Hmmm…I’ll try that (repairing a pair lol)
Robin Kirkman
@esialb
May 01 2017 07:38
one place to look is /etc/rc.local which can optionally start the "always pair" bluetooth agent
initiate a pairing request with that running and it won't matter what pin you provide; non-interactive pairing acceptance from the edison to a pair request by another device
the always pair agent requires bluez
katie disimone
@Kdisimone
May 01 2017 07:40
I’ll try turning on the always pair…in there now
Robin Kirkman
@esialb
May 01 2017 07:41
it will almost certainly break if you kill the existing bluetoothd though
that tends to break any existing process using bluetooth
katie disimone
@Kdisimone
May 01 2017 07:41
hmmm
Robin Kirkman
@esialb
May 01 2017 07:42
if you must kill the existing bluetoothd to use a newer bluez, then always pair agent needs to be run after that
my typical use of always pair is with the rfcomm-getty stuff, exposing a login console over bluetooth
there is an android app that can connect to it, as well as linux computers
i forget which app it is, but if you search for "rfcomm terminal" in the google play store it should be able to be found
katie disimone
@Kdisimone
May 01 2017 07:44
i’m iphone
Robin Kirkman
@esialb
May 01 2017 07:44
no dice on the iphone though
i have an android tablet i do it from; my phone is an iphone too
tynbendad
@tynbendad
May 01 2017 13:32
any way to force the rig off the hotspot quicker when wifi is available? @Kdisimone you mentioned a "backup reboot script" to help with getting rig back on wifi sooner - do you have such a script? kid doesn't appreciate lack of wifi since he can't use youtube on cell data ;)
katie disimone
@Kdisimone
May 01 2017 13:35

Only by turning off hotspot can you get it to switch faster. But if the error is because of the spidev already in use message, that won't help it connect to the wifi, it only will kick rig off of BT 😜

It should switch fairly quick though, so you may have an error (like spidev already in use). Have you looked at papertrail?

tynbendad
@tynbendad
May 01 2017 13:37
no, haven't set it up yet, had trouble all day yesterday just getting rig back up :(, not sure what the problem was, ended up resetting a lot.
he's using it again today, went from wifi->bt ok this morning when i tested before he left (i shut all my routers off ;)
if i find spidev already in use error, what can i do?
katie disimone
@Kdisimone
May 01 2017 13:48
There's a reboot script for it in the cron already. Since I have a separate fix for it installed...I am not sure how to two fixes compare. I know mine catches that error pretty frequently still because it logs them. I'll send you the fix on fb msg if you want to try it.
elodaille01
@elodaille01
May 01 2017 13:53
Hi I made an incorrect change in my openaps.ini (nano openaps.ini), how could I restore what it was just before please ?
tynbendad
@tynbendad
May 01 2017 13:53
@Kdisimone please do send, i won't have rig access until late today but will look tonight assuming it happens again
many thanks
guess i should order a 2nd rig for backup & debug use ;)
tynbendad
@tynbendad
May 01 2017 14:38
if you bolus but don't eat the carbs and start dropping before bolus snooze is done, will openaps start 0-temping anyway at some point?
Tim Street
@tim2000s
May 01 2017 14:53
@tynbendad yes, but dependent on bolus size it's likely that rescue carbs will be needed.
elodaille01
@elodaille01
May 01 2017 14:59
please @scottleibrand ,what should I do ..I can't rerun oref0 :

ConfigParser.NoSectionError: No section: u'device "ns-glucose"'
Reinitialized existing Git repository in /root/OpenAPSLulu/.git/
On branch master
Untracked files:
.bash_profile
.git-rewrite/
.gitignore
autotune/
cgm.ini
cgm/glucose.json
detect-sensitivity.ini
determine-basal.ini
get-profile.ini
iob.ini
meal.ini
mmtune_old.json
monitor/carbhistory.json
monitor/edison-battery.json
monitor/glucose.json
nightscout/
ns-glucose.ini
ns.ini
oref0-runagain.sh
oref0.ini
pebble.ini
preferences.json
pump-session.json
settings/autotune.json
settings/temptargets.json
tz.ini
units.ini
upload/
xdrip.ini

nothing added to commit but untracked files present
Can't init /root/OpenAPSLulu

I think I've got that problem because I changed things in 'openaps.ini' (in order to set up autosens), but I was wrong..
I want to reinstall oref0 (because I don't know what else I could do)..but the lines I pasted above appear to me !
thank for your help
thank you sorry
katie disimone
@Kdisimone
May 01 2017 15:45

You can delete your openaps directory and orfe0 to completely start over with phase 2 if you want @elodaille01

rm -rf myopenaps
rm -rf src

Totally up to you

tynbendad
@tynbendad
May 01 2017 15:46
or if you might want to reference something (like oref0-runagain.sh) in it, just rename it, e.g., mv myopenaps myopenaps.old
elodaille01
@elodaille01
May 01 2017 15:51
@Kdisimone I 've already done it..(all the phase 2)..and that is what I get .. (the lines pasted previously ... but if I understand correctly, I must first do what you tell me? 'rm -rf myopenaps and rm -rf src ?)
thank you so much ;)
katie disimone
@Kdisimone
May 01 2017 16:45

One command removes your OpenAPS directory. The other command removes your oref0 directory.

That way when you redo phase 2, you are starting with a fresh slate

Andrew Baugh
@baughaw
May 01 2017 17:55
@rsilvers129 Got my case today, fits perfect. Thanks again!
rsilvers129
@rsilvers129
May 01 2017 18:56
@baughaw Nice. Who printed it?
Andrew Baugh
@baughaw
May 01 2017 18:57
@rsilvers129 printathing.com
ordered on Friday and showed up today.. not bad
Andrew Baugh
@baughaw
May 01 2017 19:03
blob
cameronrenwick
@cameronrenwick
May 01 2017 19:39
Looking for second rig suggestions. Currently have a single edison/explorer w 2000 mah lipo but am thinking a second would be a good idea. Also planning on fabricating a second xdrip bridge "just to be safe". I'm wondering about everyone's thoughts on this. I'll admit I love the idea of the whole house (based on several raspberry pi's set up in concert w wifi wixels so you don't need to carry any thing...) all thoughts or considerations welcome
PieterGit
@PieterGit
May 01 2017 19:46
@esialb isn't the always pair agent a security problem?
@scottleibrand or @danamlewis : openaps/oref0#445 is ready to merge afaict. fixes not killing hanging reset.py
Dana Lewis
@danamlewis
May 01 2017 19:51
@PieterGit :+1: thx
PieterGit
@PieterGit
May 01 2017 19:55

next on my wihslist:

  • try out Adjust target when high (#441)
  • improve pancreable pebble output (show 90 minutes instead of 30 minutes; notification "low expected in X minutes"; possible refactor to python)
  • fix glucose.json copy stuff for G4-upload (or has this been resolved already?)
  • decrease logging for ww pump users (the whole reset.py sequence stuff should not be logged)
  • drop or rewrite of oref0-dexusb-cgm-loop.py, possible a rewrite to a cgm daemon that will read the fresh cgm values seconds after they are available at the dexcom and that will trigger relevant loops when there is a new cgm value

Why is that those wish list grows instead of gets smaller...

Dana Lewis
@danamlewis
May 01 2017 19:56
heh. mine too :)
adjust target when high went into dev yesterday, FYI.
Scott Leibrand
@scottleibrand
May 01 2017 19:57
which glucose.json copy stuff? for xdrip? I don't know of any issues with g4-upload direct from CGM: that's what we're using successfully
Dana Lewis
@danamlewis
May 01 2017 19:57
for your second one - you may can help with openaps/oref0#453 for the low prediction needing carbs part :)
PieterGit
@PieterGit
May 01 2017 19:58
i noticed it on my branch https://github.com/PieterGit/oref0/commits/wwresetpyworkaround :smile: (took a while to understand what happened)
@danamlewis : i wouldn't use pushover, but a webservice on the rig, similar to xdrip integration and https://github.com/lukas-ondriga/openaps-share APSapi.py
that way it can also work offline and i think it's more secure
PieterGit
@PieterGit
May 01 2017 20:06
i needed a symlink from monitor/glucose-unzoned.json -> ../../myopenas-cgm-loop/monitor/glucose-oref0.json to make the upload work
Scott Leibrand
@scottleibrand
May 01 2017 20:07
pretty sure that's not required for our setup
PieterGit
@PieterGit
May 01 2017 20:10
i'll have a look with a new install. btw more stuff for my wishlist:
  • revive two edisons with xfstk recovery that are not booting because of my linux 4.x attempts (which turned a hardware issue), need those edison working for when my new explorer boards arrive
  • on my first rev board with trace cut i get several kernel traces so i wonder if thats a side effect of the trace cut, or something with my setup (pebble/sometimes bt tethering/no bt tethering to dexcom)
did anybody else report lsusb 99 errors which disappear after replugging the usb adapter at the edison side of the rig? i need to do that on every (re)boot
Scott Leibrand
@scottleibrand
May 01 2017 20:20
we haven't had that with our OTG hardware, and I don't recall anyone else complaining about it.
Diabetic_Dude
@diabetic_dude_twitter
May 01 2017 21:01
is there a way to add Insulin Cartridge Change to IFTTT?
Scott Leibrand
@scottleibrand
May 01 2017 21:05
yeah, anything that NS care portal does can be added via the NS API with IFTTT
you just need to look at https://yournightscout.com/api/v1/treatments.json and see what it looks like there, then have IFTTT write the same thing
jmcrawford
@jmcrawford
May 01 2017 21:08
@Kdisimone I'm just catching up on the older parts of your BT trials - I think the issue you saw with bluetoothctl hanging is due to no bluetoothd process running in the background. I've not yet figured out the correct syntax to get the stock bluetooth.service method of starting it to work, but manually starting it as in the docs should suffice.
Bear in mind, this is from a guy who hasn't gotten BT tethering working yet, so ymmv.
As far as auto-switching between wifi/bt, isn't that done with Scott's oref0-online script? Is that set up in cron if you don't add the --btmac option in oref0-setup?
Arlene Samowich
@webwiztn
May 01 2017 21:44
@baughaw What parameters did you use to print the case - infill, thickness, material? Thanks!
Diabetic_Dude
@diabetic_dude_twitter
May 01 2017 21:50
Thanks, made the modifications made the modification waiting to verify it is working for me
katie disimone
@Kdisimone
May 01 2017 22:00

@diabetic_dude_twitter

{"enteredBy": "IFTTT", "eventType": "Insulin Change", "duration": 0, "secret": "your hashed API here"}

@jmcrawford I posted how I got it started and paired later last night. I just can't get it to switch to BT when the wlan0 was powered down.

Tried several ways and times.

I will look at the cron on that rig and see what came on...good idea
Martin Haeberli
@mhaeberli
May 01 2017 22:48
not done by any means, but I remain amazed at how very cool this is - just spun up IFTTT integration for the first time! :+1: :clap: @danamlewis @scottleibrand #openaps
Dana Lewis
@danamlewis
May 01 2017 22:51
:) :+1: IFTTT = awesomeness