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

27th
Jan 2016
Jim Matheson
@jmatheson
Jan 27 2016 00:48
@scottleibrand re meal assist, does it know about the meal via a pump entry with carbs or ?
Dana Lewis
@danamlewis
Jan 27 2016 00:49
@jmatheson yes, from pump entry into bolus wizard
Jim Matheson
@jmatheson
Jan 27 2016 00:50
cool
i am supposed to be on low carb but sure want to test this bad boy out :clap:
Dana Lewis
@danamlewis
Jan 27 2016 00:51
what’s low carb to you?
Jim Matheson
@jmatheson
Jan 27 2016 00:51
50/day
Jason Calabrese
@jasoncalabrese
Jan 27 2016 00:55
my favorite of meal-assist is doing partial boluses when I expect activity, then if bg does start to rise it gets covered faster, but less chance of a low
still amazed at how today went, this is with a field trip, and now a spelling bee
Jim Matheson
@jmatheson
Jan 27 2016 00:57
:clap:
Jason Calabrese
@jasoncalabrese
Jan 27 2016 00:57
Screen Shot 2016-01-26 at 4.55.52 PM.png
Dana Lewis
@danamlewis
Jan 27 2016 00:57
:)
Jason Calabrese
@jasoncalabrese
Jan 27 2016 00:59
need a way to automate meal-assist in a way that the school nurses can use
Dana Lewis
@danamlewis
Jan 27 2016 00:59
are they not using bolus wizard?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 00:59
they like to do what the machine says
Dana Lewis
@danamlewis
Jan 27 2016 00:59
h
*ah
Jason Calabrese
@jasoncalabrese
Jan 27 2016 01:00
I could adjust the carb ratios, but would need to let the loop know that they are off
Jim Matheson
@jmatheson
Jan 27 2016 01:13
@danamlewis are you doing eating soon w/ meal assist?
Dana Lewis
@danamlewis
Jan 27 2016 01:15
@jmatheson yes. I always (try to, usually 75% successfully?) do eating soon. Meal assist is not super helpful for me, because I've for the most part nailed my meals after over analyzing everything for a year with #DIYPS. But if I am off by >50% on carbs or have some unexplained rise at the end of a meal, it helps regardless. (But I've only seen it kick in a couple of times, and not been super helpful for me yet, so that's what prompted @scottleibrand additional ideas on tweaks for it yesterday or today, whenever he shared that)
Jim Matheson
@jmatheson
Jan 27 2016 01:16
Do you use the wizard for eating soon?
Dana Lewis
@danamlewis
Jan 27 2016 01:17
Nah. I just use my easy bolus button (usually rounds to .5, 1, or 1.5 units, and my easy bolus button is .5)
(and then bolus snooze prevents the system from low temping and counteracting it, unless you have a sudden severe drop from something else happening)
Jim Matheson
@jmatheson
Jan 27 2016 01:21
i see.
i thought you might wizard correct to 80
Dana Lewis
@danamlewis
Jan 27 2016 01:23
You could. I use DIYPS web interface which is essentially doing the same thing - I hit eating soon, it sets my target to 80 for the next hour, which rejiggers the current recommendation. (that's also how I get around not using the bolus wizard to enter my carbs, because I strongly dislike all the button pushing required to enter carbs)
Jason Curry
@mccgm
Jan 27 2016 04:00
@JaysonEwer How did you change your pump from percent mode to absolute?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 04:01
There's a setting buried in the basal menu called Temp Basal Type
Jason Curry
@mccgm
Jan 27 2016 04:26
Ah, there it is. Still trying to manually send a temp basal to my pump, but my syntax is off. I think I am misinterpreting the -h. ```$ openaps use ** set_temp_basal 1.75
Scott Leibrand
@scottleibrand
Jan 27 2016 04:30
the ``` need to be on their own line.
for inline, just use a single `
Jason Curry
@mccgm
Jan 27 2016 04:33
So is it possible to manually instruct my pump (with a use command) to set a specific temp basal? Or does it have to draw the temp basal from a file like my suggested.json?
Scott Leibrand
@scottleibrand
Jan 27 2016 04:35
you can provide a file as input to a use command
there might be a way to type the json on the command line and redirect it to use stdin, but you can't just provide the arguments on the command line directly
Ben West
@bewest
Jan 27 2016 04:36
there is
Jason Curry
@mccgm
Jan 27 2016 04:36
This message was deleted
Ben West
@bewest
Jan 27 2016 04:37
echo '{"duration": 30, "rate": 0, "temp": "absolute" }' | openaps use pump set_temp_basal -
you can provide arguments to the mm-temp-basals.py tool
Scott Leibrand
@scottleibrand
Jan 27 2016 04:39
:+1:
Jason Curry
@mccgm
Jan 27 2016 04:40
pi@raspberrypi:~/ayeletssail $ cat enact/suggested.json
{"temp":"absolute","bg":252,"tick":-2,"eventualBG":209,"snoozeBG":215,"reason":"basal_iob 2.598 > max_iob 2","duration":0,"rate":0}
pi@raspberrypi:~/ayeletssail $ openaps use langerhans set_temp_basal 1.75
Tried that, but clearly I need more knowledge.
Scott Leibrand
@scottleibrand
Jan 27 2016 04:41
replace 1.75 with the filename
or do the full echo ... | openaps thing ben pasted above
Jason Curry
@mccgm
Jan 27 2016 04:41
pi@raspberrypi:~/ayeletssail $ cat enact/suggested.json
{"temp":"absolute","bg":252,"tick":-2,"eventualBG":209,"snoozeBG":215,"reason":"basal_iob 2.598 > max_iob 2","duration":0,"rate":0}
pi@raspberrypi:~/ayeletssail $ openaps use langerhans set_temp_basal enact/suggested.json
??
Ben West
@bewest
Jan 27 2016 04:42
that's right
Scott Leibrand
@scottleibrand
Jan 27 2016 04:42
yeah, try that and see what it does
Jason Curry
@mccgm
Jan 27 2016 04:42
I have not created an enact report or alias yet. Just trying to get more background understanding first
Ben West
@bewest
Jan 27 2016 04:42
duration 0, rate 0
Scott Leibrand
@scottleibrand
Jan 27 2016 04:43
it should print the enacted output to the screen (the same output it would print to the file if you put it into a report)
Ben West
@bewest
Jan 27 2016 04:43
try cp enact/suggested.json manual-basal.json
json -I -f manual-basal.json -e "this.duration = 30"
openaps use pump set_temp_basal manual-basal.json
Scott Leibrand
@scottleibrand
Jan 27 2016 04:44
that json command does the same as editing the file to change the duration from 0 to 30
Jim Matheson
@jmatheson
Jan 27 2016 05:40
Is it normal behavior to get your loop running on pi+carelink and then immediately go to read about all the smalller / better range hardware and have shopping carts open on several sites trying to decide which to click checkout on? :guitar: :+1: :clap: :baby_bottle: :game_die:
Scott Leibrand
@scottleibrand
Jan 27 2016 05:41
;-)
Dana Lewis
@danamlewis
Jan 27 2016 05:41
No. Cause up until a few weeks ago those options didn't exist. But you're the start of making it normal ;)
Ps - buy all the things! :D
Jim Matheson
@jmatheson
Jan 27 2016 05:42
When your wife tells you that we should go murse shopping this weekend….it’s time to buy smaller hardware.
Dana Lewis
@danamlewis
Jan 27 2016 05:42
Hahaha
Jim Matheson
@jmatheson
Jan 27 2016 05:44
if anyone wants to join me in a no murse pact let me know ( @mddub ?)
Thomas Emge
@ThomasEmge
Jan 27 2016 05:44
She actually did :blush:
Dana Lewis
@danamlewis
Jan 27 2016 05:44
I never had one ;) if that helps.
Jim Matheson
@jmatheson
Jan 27 2016 05:47
i remember being at diabetes camp as a kid and i looked around at my fellow campers….and said to myslelf. no way i am getting a fanny pack. it’s like deja’vu.
Dana Lewis
@danamlewis
Jan 27 2016 05:48
Hehe
Jim Matheson
@jmatheson
Jan 27 2016 05:49
with that said, if i had to get a murse i would. it’s worth it :)
Dana Lewis
@danamlewis
Jan 27 2016 05:49
Scott wore the loop in a flip belt for the wedding. A little hot for most occasions, but it wasn't a fanny pack and no one can see it that way :)
Jim Matheson
@jmatheson
Jan 27 2016 05:50
that’s dedication @scottleibrand
Scott Leibrand
@scottleibrand
Jan 27 2016 05:50
:-)
Dana Lewis
@danamlewis
Jan 27 2016 05:52
Suits have more give in the waist than most wedding dresses :) would've been awesome to have the Edison/RL, could've carried that setup easily!
Might run with the Edison/RL tomorrow to give it an actual test run.
Scott Leibrand
@scottleibrand
Jan 27 2016 05:52
:-)
Dana Lewis
@danamlewis
Jan 27 2016 05:58
@jmatheson The pic you tweeted earlier - are those the kind of lines you usually see with your low carb approach?
Will be curious to see your experience with meal assist
Jim Matheson
@jmatheson
Jan 27 2016 06:06
To be honest i’ve been off CGM for over a year (maybe 2?) before yesterday. I have done the slow carb diet 3 or 4 times over the last 5 years for several months at a time. My sugars (finger stick) flatlines starting week 2 of the diet. It’s like the cheater OpenAPS solution. I remember at one point going 72 hours without taking any bolus at all. Although I have theories that extended very low carb actually increases insulin resistance when you do say a normal diet once a week on saturdays. Today was very strange to be honest. My breakfast was 4 eggs and Latte. So that spike was either all milk related or more likely due standard basil rates being wrong.
Dana Lewis
@danamlewis
Jan 27 2016 06:09
Interesting. Thanks for sharing that.
Jim Matheson
@jmatheson
Jan 27 2016 06:11
tomorrow i am going 4 eggs and no milk (espresso) and will see what happens. if similar then i know i should adjust basil up a bit which should simmer down openaps adjustments
Dana Lewis
@danamlewis
Jan 27 2016 06:12
Nice to have some obvious variables to test with!
Jim Matheson
@jmatheson
Jan 27 2016 06:14
yea. the better method would be to do CGM only and some traditional basil testing. but i had been chomping at the openaps bit for too long :)
Dana Lewis
@danamlewis
Jan 27 2016 06:14
:)
Dragan Maksimovic
@dm61
Jan 27 2016 06:46
Screen Shot 2016-01-26 at 11.39.57 PM.png
another good night for openaps followed by a pretty good mixed openaps+manual day :smile:
Dana Lewis
@danamlewis
Jan 27 2016 06:48
Beautiful :)
Dragan Maksimovic
@dm61
Jan 27 2016 06:50
I can still do meals better than oref0 (tried meal assist, with mixed results), but otherwise it works really well for me
Scott Leibrand
@scottleibrand
Jan 27 2016 06:51
I'm working on that. :)
openaps/oref0#61
Dana Lewis
@danamlewis
Jan 27 2016 06:51
Same, @dm61
Dragan Maksimovic
@dm61
Jan 27 2016 06:53
I have to do long extended boluses for complex meals (as in the above example); oref0 tries too quickly (often in the wrong direction); but I have more testing to do, and look forward to testing updates
Scott Leibrand
@scottleibrand
Jan 27 2016 06:57
what is your IC ratio?
Dragan Maksimovic
@dm61
Jan 27 2016 06:58
about 10 g/U, slightly lower in the morning
Scott Leibrand
@scottleibrand
Jan 27 2016 06:58
so you bolus per the IC ratio, and still need a long extended bolus?
Dana Lewis
@danamlewis
Jan 27 2016 06:59
@dm61 Have you tried/thought about carb absorption rate ?
Scott Leibrand
@scottleibrand
Jan 27 2016 06:59
more direct question: what % of the carbs did you bolus for up front (per the IC ratio at the time) vs. using the extended bolus for?
Dragan Maksimovic
@dm61
Jan 27 2016 07:00
I cover carbs with IC ratio, then guesstimate an extended bolus for protein + any delayed carbs, then abort when I see bg curve bending down
Approx 80% of carbs up front
Scott Leibrand
@scottleibrand
Jan 27 2016 07:00
hmm k
Dana Lewis
@danamlewis
Jan 27 2016 07:00
What size meal usually? How many total carbs?
Dragan Maksimovic
@dm61
Jan 27 2016 07:00
This all depends on the meal - one learns from experience
Scott Leibrand
@scottleibrand
Jan 27 2016 07:01
I'm hoping I can get openaps to the point where it can do the subsequent stuff automatically, and you just need to do the initial bolus appropriately
Dragan Maksimovic
@dm61
Jan 27 2016 07:02
For lunch: about 45 total, bolused for 35g initially, then set 2U/h, which ended when I saw bg line bending down
almost no spike - this was a good day
I understand your approach - it is good. However, in the above example, oref0 would have dropped my temp basal much sooner - it cannot possibly know what I know from past experience
I also did 1g of square-wave bolus to effectively disable openaps :)
Martin Haeberli
@mhaeberli
Jan 27 2016 07:06
can I have openaps tell its tethered dexcom receiver to calibrate when Nightscout gets a calibration through the separate xDrip uploader?
Dana Lewis
@danamlewis
Jan 27 2016 07:07
@dm61 Unless/until we construct it to do so :)
@mhaeberli I haven't heard of anyone remote calibrating their receiver, but maybe @bewest or someone else has.
Dragan Maksimovic
@dm61
Jan 27 2016 07:07
I am pretty sure it can be done - however I think it will need to be tailored for each person individually
Martin Haeberli
@mhaeberli
Jan 27 2016 07:11
@dm61 @danamlewis - I’ll research a little bit but I thought I saw a note somewhere saying that at least with wireless xDrip one could calibrate from the uploader phone; so then a related question is - a) is there a USB protocol to do same with the receiver; b) if there is, what is it; c) if so, can we add it if it’s not already there to the dexcom command set in openaps ...
Dana Lewis
@danamlewis
Jan 27 2016 07:13
@mhaeberli You might want to ask that in the xDrip channel then too :) I haven't heard of it prior. That'll get you A and possibly B and then if so we can figure out if C is possible :)
Martin Haeberli
@mhaeberli
Jan 27 2016 07:13
@danamlewis thx
@danamlewis I’ll probably ask tomorrow; keep you posted
Dragan Maksimovic
@dm61
Jan 27 2016 07:14
good night everyone
Dana Lewis
@danamlewis
Jan 27 2016 07:20
Sounds good!
John Males
@johnmales
Jan 27 2016 10:28
ls
Matthias
@ceben80
Jan 27 2016 13:03

Hi there, I have a question regarding SSH key generation written in this section here:

https://openaps.gitbooks.io/building-an-open-artificial-pancreas-system/content/docs/getting-started/rpi.html

1.JPG
SSH generation works fine without any issues, but when I want to copy the public SSH key into the RPi2 the following permisson denied message comes up.
2.JPG
any idea?
Eric
@ecc1
Jan 27 2016 13:26
Did you create the .ssh directory as user pi, in pi's home directory?
(Try "ls -ld ~pi/.ssh" to make sure)
Aaron Michelson
@Aaybob
Jan 27 2016 13:37

Why is this happening?
calculate-iob://JSON/shell/monitor/iob.json

module.js:485
throw err;
^
SyntaxError: /home/pi/pancreas/First-commit/settings/profile.json: Unexpected end of input

Matthias
@ceben80
Jan 27 2016 14:36
@ecc1 yes this has been done
3.JPG
Eric
@ecc1
Jan 27 2016 16:00
But it's owned by root, not pi. Try doing chown pi:pi ~pi/.ssh (as root)
Matthias
@ceben80
Jan 27 2016 16:10
@ecc1
Oh yes, that's absolutely right , because I had probably tomatoes on the eyes :smiley: ....now it's working - Thanks a lot!
JaysonEwer
@JaysonEwer
Jan 27 2016 16:30
@mccgm Sorry, i'm a bit late on this and i'm sure its aready been answered, but on your pump navagate to the following location ACT>Basal>Temp Basal Type>Insulin Rate (U/H)
@jmatheson "Is it normal behavior to get your loop running on pi+carelink and then immediately go to read about all the smalller / better range hardware and have shopping carts open on several sites trying to decide which to click checkout on? :guitar: :thumbsup: :clap: :baby_bottle: :game_die:" I"m with you! :-D But i think i'll wait a bit till the burden of carrying around this heavy PI gets anoying. :-P I need to loose some weight anyway. :-D
Dana Lewis
@danamlewis
Jan 27 2016 16:33
:)
JaysonEwer
@JaysonEwer
Jan 27 2016 16:34
Besides, i've already purchased two 522 in the last week, one for backup, and still need to get another Carelink, but i'm not going the Carelink route, i'm going to do the CC1111 POWER @bewest route!! :clap:
Dana Lewis
@danamlewis
Jan 27 2016 16:34
Nice!
JaysonEwer
@JaysonEwer
Jan 27 2016 16:38
And of course, because I'm NOT A TWITTER PRO(yet) I @'d and should have #'d a couple of you yesterday with my first real overnight graph with temp basals visualized. I still need to get some @bewest FU going to figure out why my manual run of ns-upload works like a champ, but when I add it to my loop it fails. Its looking to use entries.json, should I just hard code my monitor/upload-status.json in your script, or just rename my report to entries.json ? :-) I guess I just answered my question. I should probably just use a report named entries.json. :-D
@bewest But I like the way your script dynamically builds the upload json. That's cool. I'm just not understanding why when I add it to my loop it can't do the same thing as when I run it manually.
Dana Lewis
@danamlewis
Jan 27 2016 16:41
@JaysonEwer What's your Twitter handle :)
JaysonEwer
@JaysonEwer
Jan 27 2016 16:41
@JaysonEwer :-D
Dana Lewis
@danamlewis
Jan 27 2016 16:42
Protected account?
JaysonEwer
@JaysonEwer
Jan 27 2016 16:42
oh, yeah, sorry, thats my bad, my wife did actually bring that to my attention. I'll fix that. stand by
Dana Lewis
@danamlewis
Jan 27 2016 16:42
That would be why can't see them :) (no one who's not following you will be able to see your tweets, or tweets to the hashtag)
Rachel Sandlain
@audiefile
Jan 27 2016 16:43
@jmatheson I've heard coffee / caffeine can cause spikes. Although probably the milk, I prefered milk to juice for lows as a kid
JaysonEwer
@JaysonEwer
Jan 27 2016 16:43
got it
Rachel Sandlain
@audiefile
Jan 27 2016 16:44
@JaysonEwer I think the entries.json is part of the data endpoint, not a local file in that case
Dana Lewis
@danamlewis
Jan 27 2016 16:45
I can see it now! And wow, what an awesome first night! Congrats @JaysonEwer
If/when you decide to unprotect your account, we'll also be able to RT :)
JaysonEwer
@JaysonEwer
Jan 27 2016 16:46
Fixed!
now the WHOLE WORLD IS MY OYSTER or something like that. :-P
Dana Lewis
@danamlewis
Jan 27 2016 16:47
Exactly ;) :)
JaysonEwer
@JaysonEwer
Jan 27 2016 16:48
Well, to be honest, I've had my overnights pretty much pinned down since I got my Dexcom a few years ago. BUT, having OpenAPS and Nightscout in play has only UPPED MY GAME!!!!
:-D
continual improvment with the visualization and reporting that Nightscout affords!!!
LOVE IT!!!
Dana Lewis
@danamlewis
Jan 27 2016 16:48
:)
Now you get follows and RTs, too :)
JaysonEwer
@JaysonEwer
Jan 27 2016 16:50
OH, BTW....while i'm ranting and shouting at you all. ;-) I logged into the Nightscout Foundation website and ordered some of those SWEET Nightscout sticker things. The recommended donation is $10 for one of them, I sent 30, with a note requesting 3, but instead of three stickers got 3 thank you cards. :-) I chuckled, but was hoping to put on on each of my cars.
one
3 thank you and one sticker, that is
Dana Lewis
@danamlewis
Jan 27 2016 16:51
Should ping @jwedding And ask about that ^
Jason Calabrese
@jasoncalabrese
Jan 27 2016 16:52
try to contact James Wedding a message on FB, let me know if you don't get a response
yes
JaysonEwer
@JaysonEwer
Jan 27 2016 16:52
Cool, thanks guys, no really, THANK YOU, from the bottom of my :heart:
@jasoncalabrese Thanks,will do.
Also, I totally need to get rolling with meal assist.
I'm not understanding why my basal is dropped to 0 as I bolus for a meal.
Dana Lewis
@danamlewis
Jan 27 2016 16:54
That shouldn't be impacted by meal assist or not - you should get a bolus snooze unless you start to drop and it looks like you're going low, which would happen if something (not meal bolus) else was driving you down in that time period
Grab some logs or some screen shots (future, or scroll back to a retro scenario) and we can dive in some more
JaysonEwer
@JaysonEwer
Jan 27 2016 16:56
well, if I'm at 80-100ish, and pre-bolus and wait ~15minutes, that's 5 loops prior to getting any carbs on-board.
i'm hoping to dip and then have the carbs bring me right back up, but hope not to OVER-SHOOT
Dana Lewis
@danamlewis
Jan 27 2016 16:56
Right, but your insulin won't kick in that fast, so if you drop then, it's from something prior.
(Earlier boluses or temp activity, physical activity, etc)
So if that's what is happening, loop is doing the right thing to prevent an oncoming low that could happen before meal carbs kick in
JaysonEwer
@JaysonEwer
Jan 27 2016 16:58
Well, I guess that's what i'm waiting the 15 minutes for, is the bolus to kick in
Dana Lewis
@danamlewis
Jan 27 2016 16:58
Insulin peaks 60-90 minutes. 15 minutes is a sniffle in time. So won't make you go low or trigger the loop to do anything
JaysonEwer
@JaysonEwer
Jan 27 2016 16:59
Yeah, but i've also noticed that I will be in perfect target range, bolus and then eat and then 20-30ish minutes later, I've got a temp basal of 0
Dana Lewis
@danamlewis
Jan 27 2016 16:59
Logs, please :)
JaysonEwer
@JaysonEwer
Jan 27 2016 16:59
stand by, it will take me a minute to pull that up.
Dana Lewis
@danamlewis
Jan 27 2016 16:59
There may be some other factors going on that the loop notices
No rush. I've got to drop off for work soon, anyway.
So can circle back and others can help review too
JaysonEwer
@JaysonEwer
Jan 27 2016 17:00
cool, yeah, its something i've been looking at and havne't had time to pick apart yet.
Dana Lewis
@danamlewis
Jan 27 2016 17:00
:+1:
JaysonEwer
@JaysonEwer
Jan 27 2016 17:00
I'll capture the event(s) and get them to you for your analysis.
have a great day at work!
Dana Lewis
@danamlewis
Jan 27 2016 17:01
Thx you too!
JaysonEwer
@JaysonEwer
Jan 27 2016 17:01
YOU GAME CHANGER, YOU!! :smile:
:clap:
Jim Matheson
@jmatheson
Jan 27 2016 18:17
@audiefile @danamlewis looks like my repeat of yesterday’s morning food routine with no changes except having an espresso instead of a latte ended in no spike today. (well i also had a disconnected pump for 15 minutes yesterday about an hour before the rise)
Dana Lewis
@danamlewis
Jan 27 2016 18:18
that could have accounted for a rise, need to repeat with a latte without the suspend :)
Scott Leibrand
@scottleibrand
Jan 27 2016 18:22
@Aaybob when you get unexpected end of input, check the file it's complaining about. It'll either be empty or have an error in it.
If it's not clear why that is, you can run the report that generates it to see what that report is complaining about.
Jim Matheson
@jmatheson
Jan 27 2016 18:24
trust me, i will be repeating the latte :)
Dana Lewis
@danamlewis
Jan 27 2016 18:24
:)
Jim Matheson
@jmatheson
Jan 27 2016 18:25
i’ve been preferring a cappuccino, so i will probably need to do this test at all 4 great coffee shops nearby using both style drinks.
luckily there are lots of great options in SF
Dana Lewis
@danamlewis
Jan 27 2016 18:26
I’m glad science gives us good reasons to test coffee, and pizza, and and :)
Jim Matheson
@jmatheson
Jan 27 2016 18:31
:pizza:
Rachel Sandlain
@audiefile
Jan 27 2016 18:35
Man @jmatheson that sounds so tough. Just HAVING to go to all those coffee shops. Thanks for taking that bullet for the team
Jim Matheson
@jmatheson
Jan 27 2016 18:36
Someone has to do it :)
Jason Calabrese
@jasoncalabrese
Jan 27 2016 18:40
@danamlewis, @scottleibrand, @bewest: I was chatting with @MilosKozak about a new andriod app that he's working on for the DanaR pump. He's looking for a home for the repo, maybe the NS org or OpenAPS org. It will work in combination with @timomer's HAPP. I'm hoping we can get the architecture right and keep the parts isolated enough that each will be safe on their own and it will be up to the user to hook things together.
right now it's able to do a sync of pump history to NS from the DanaR
JaysonEwer
@JaysonEwer
Jan 27 2016 18:41
@audiefile @jmatheson, Thanks for taking the bullet.
@jmatheson Was that you that had a little problem getting the pump pill to appear in your NS? I'm trying to figure out what i'm missing?
Jim Matheson
@jmatheson
Jan 27 2016 18:42
yes, it was
JaysonEwer
@JaysonEwer
Jan 27 2016 18:43
you upgraded your dev, right?
Jim Matheson
@jmatheson
Jan 27 2016 18:43
did you get OpenAPS pill to show and not pump or neither
JaysonEwer
@JaysonEwer
Jan 27 2016 18:43
I've got OpenAPS, but not pump
I think my dev branch is two commits behind, is that it?
Jim Matheson
@jmatheson
Jan 27 2016 18:43
ok. i got them both to work at the same time by making sure i upgraded to the current copy of dev
you have no pump pill at all or its there and just empty
JaysonEwer
@JaysonEwer
Jan 27 2016 18:44
yeah, I've only done that upgrade once and I was just trying to do it again and it seemed to want to merge somethign from my branch back to the Nightscout\dev branch, I"m very new to github.
Jim Matheson
@jmatheson
Jan 27 2016 18:45
yeah its way confusing. PM me your github link
JaysonEwer
@JaysonEwer
Jan 27 2016 18:45
non at all. Do I need to restart for it to appear? I just did a save?
Jim Matheson
@jmatheson
Jan 27 2016 18:45
you dont need to restart. Save should do it.
at least on azure
JaysonEwer
@JaysonEwer
Jan 27 2016 18:45
Yeah, i'm on azure.
stand by one sec
Thanks for the help, btw.
Jim Matheson
@jmatheson
Jan 27 2016 18:53
I have had no issues with coverage my first two nights. I have a new carelink under the mattress and have my Dexcom transmitter on my arm. In general the coverage seems better than I have heard others have. I am wondering if it has to do with the pump itself. I had gotten this 722 replaced with a new refurbished one right before i upgraded to my 723 4 years ago.
Dana Lewis
@danamlewis
Jan 27 2016 19:04
brand new carelink? could be that, too, in addition to the pump. not sure we’ve done enough comparisons to see if wear and tear on pump is what seems to correlate with better/not range
Jim Matheson
@jmatheson
Jan 27 2016 19:49
could be. I have two carelinks one is old one is new. actually might not know which is the new one anymore now that i think about it.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 19:50
so many factors, I have good coverage with the carelink under my son's bed and in his backpack
Jim Matheson
@jmatheson
Jan 27 2016 19:52
i heard that coverage is really bad if you are using a murse. it’s just a rumor though..
Dana Lewis
@danamlewis
Jan 27 2016 19:52
;p
Jim Matheson
@jmatheson
Jan 27 2016 19:55
@danamlewis @audiefile i may have spoken too soon, openaps has been working to keep me from rising for the last 45 mins. and creeping up a bit. probably need an increased basal after all. but milk was for sure part of it yesterday.
timomer
@timomer
Jan 27 2016 20:00
@danamlewis @scottleibrand @bewest @MilosKozak I have the HAPP treatments service working and an example app that can talk to it, any basal \ bolus requests will go to this example app if set in HAPP. almost done, just got a few things to finishing testing and ill push live eta end of this week
Scott Leibrand
@scottleibrand
Jan 27 2016 20:03
:+1:
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:05
having that split between 2 apps seems like it will help with the goal of making the user connect the parts
in that model would the pump apps like @MilosKozak is creating be similar to decocare, or would we need to split out a library?
JaysonEwer
@JaysonEwer
Jan 27 2016 20:09
@jasoncalabrese What is the best way to sync my forked NS/dev branch using the web interface, or should I just start using the command line?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:09
you can do it with pull requests
JaysonEwer
@JaysonEwer
Jan 27 2016 20:10
Yeah, for some reason i'm running into a problem, I'm not sure how, but my fork has a blank commit in it that seems to be causing a problem with my pull requests
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:10
I don't see a dev branch in your fork, maybe that was deleted?
JaysonEwer
@JaysonEwer
Jan 27 2016 20:10
is there a way to kill a commit?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:10
you can create a new branch from the web ui
JaysonEwer
@JaysonEwer
Jan 27 2016 20:10
I accidentally deleted it. :-/ should I just fork again?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:11
in the dropdown where you select the branch type dev
it will give you an option to create the branch
JaysonEwer
@JaysonEwer
Jan 27 2016 20:12
this is from the NS/cgm-remote-monitor right?
from NS/cgm-remote-monitor, I go to the dev drop down and it says, "This branch is 379 commits ahead, 1 commit behind master. "
to the right of that I should select pull request? Is that right?
that does the compare, and would have an option to create a PR if they were differnt
but you need to create the dev branch first
Cosmo Wolfe
@cozmo
Jan 27 2016 20:14
Hello all - Not sure the etiquette around this channel, but I’m new to the T1D hacking space, but very excited. I currently have a medtronic pump that doesn’t have the right firmware. I’m curious what everyone suggests as the best pump/cgm model that 1) is 1 - “hackable” 2 - ideally not an outdated model since in general I’d assume newer == better?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:14
Screen Shot 2016-01-27 at 12.14.28 PM.png
JaysonEwer
@JaysonEwer
Jan 27 2016 20:14
I got it, I needed to enter "dev" in the blank
yep, thanks
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:15
yeah
Dana Lewis
@danamlewis
Jan 27 2016 20:15
@cozmo welcome! here’s the list of pumps that will work: https://github.com/openaps/docs/blob/master/docs/getting-started/hardware.md
JaysonEwer
@JaysonEwer
Jan 27 2016 20:15
now its there, how do I sync it to make sure i've got the latest commits upstream?
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:15
the above link will let you create a PR
Dana Lewis
@danamlewis
Jan 27 2016 20:16
answer to your Q depends on which CGM you’re using. If dexcom, then any Medtronic pump model will work . If you’re using the Medtronic pump, then only the later models on that list have CGM integration on the pump.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 20:16
you can keep using the same link, and create a PR, that you merge to your dev branch whenever you want to update
JaysonEwer
@JaysonEwer
Jan 27 2016 20:17
Thank you, so before I was very close, but for some reason I was not able to swap the base for the head and it kept trying to merge a commit from my repo up to the NS/dev repo
I'm not even sure how I had a commit in my repo?
Cosmo Wolfe
@cozmo
Jan 27 2016 20:17
@danamlewis Thanks! I came across that page while researching, I guess more specifically I’m looking into buying a new pump/cgm and so I’m curious if there are any specific models of pump/cgm that people specifically reccomend. For example it seems as though a lot of people like the dexcom CGMs more than the medtronic CGMs, etc.
Dana Lewis
@danamlewis
Jan 27 2016 20:19
@cozmo you won’t be able to buy (From Medtronic) a pump that is compatible with writing to it (a la OpenAPS).
JaysonEwer
@JaysonEwer
Jan 27 2016 20:19
Thanks again, @jasoncalabrese I owe you a drink! :beer:
Dana Lewis
@danamlewis
Jan 27 2016 20:20
@cozmo There are people working on reverse engineering communications with the Animas Vibe (but that’s not a current model they’re selling, I believe), and the Omnipod, although they haven’t made progress to use it yet. For people buying new pumps, I tend to recommend doing a traditional compare about what features they want, as well as the path of that pump’s upgrades (i.e. new MDT are not compatible with openaps, but you’d be able to upgrade when their 670G gets approved; etc.)
Cosmo Wolfe
@cozmo
Jan 27 2016 20:21
That makes sense. Is there a discussion area for the reverse engineering the Animas/Omnipod? I have a fair amount of experience in reverse engineering lower level protocols and so that path seems interesting to me.
Scott Leibrand
@scottleibrand
Jan 27 2016 20:21
the reverse engineering is on the Animas Ping, not Vibe. I think you can still buy Pings, but they're not their newest model.
Dana Lewis
@danamlewis
Jan 27 2016 20:22
Oops, sorry, Ping not Vibe.
@cozmo yes, PM me your email and I can add you to that slack channel.
Cosmo Wolfe
@cozmo
Jan 27 2016 20:22
The main thing I want is a single site CGM/Infusion Set but seems like those are at least a year out in the USA :(
Dana Lewis
@danamlewis
Jan 27 2016 20:22
..likely farther out than that from what I’ve heard :/
Cosmo Wolfe
@cozmo
Jan 27 2016 20:24
I think(?) they’re testing one in Europe somewhere? Been a bit since I’ve looked into that.
Dana Lewis
@danamlewis
Jan 27 2016 20:25
yea. but testing in Europe and FDA approval in US is sometimes much further spaced apart.
Cosmo Wolfe
@cozmo
Jan 27 2016 20:26
:thumbsup:
Ben West
@bewest
Jan 27 2016 20:57
I saw working ping code somewhere
Scott Leibrand
@scottleibrand
Jan 27 2016 20:59
Yeah, @mariusae has it working.
Ben West
@bewest
Jan 27 2016 21:00
apparently there's a possibility that some of the medtronic RF/hardware work may be help talk to ping, they use a similar frequency, it's possible same hardware/radio can be used
Scott Leibrand
@scottleibrand
Jan 27 2016 21:01
Yeah, lots of people in the slack channel are flashing radios very similarly to the ones we're using to replace Carelink.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 21:05
Will be interesting to see if the Ping stays on the market
Their sales may take off
timomer
@timomer
Jan 27 2016 22:10
@jasoncalabrese you are spot on, HAPP is a notification app only, if the user wishes to connect a Pump Driver app / build one - thats up to them
Jason Calabrese
@jasoncalabrese
Jan 27 2016 22:11
HAPP would also do all the uploads to NS, etc? so the driver apps don't really need a UI
maybe just config/status
Milos Kozak
@MilosKozak
Jan 27 2016 22:43
i need/want more control from ns. i'm still not sure if i put it into driver or happ
dougtakeuti
@dougtakeuti
Jan 27 2016 22:43

Hi. I'm still stuck with generating monitor/upload-status.json. I went through section 4.2 of the docs several times but no luck. Then I tried the documentation that was generated by @dm61, https://github.com/dm61/docs/blob/dev/docs/Automate-system/vizualization.md, but still haven't managed to produce it. Currently I have the env vars defined in .profile and the following in my openaps.ini:

[device "ns-upload"]
vendor = openaps.vendors.process
extra = ns-upload.ini

[device "ns-status"]
fields = clock iob suggested enacted battery reservoir status
cmd = ns-status
vendor = openaps.vendors.process
args =

[report "monitor/upload-status.json"]
use = shell
device = ns-status
clock = monitor/clock-zoned.json
iob = monitor /iob.json
suggested = enact/suggested.json
enacted = enact /enacted.json
battery = monitor/current_battery_status.json
reservoir = monitor/reservoir.json
status = monitor/current_pump_status.json
reporter = JSON

The ns-upload.ini looks like this:

[device "ns-upload"]
fields =
cmd = ns-upload
args = https://mysite.azurewebsites.net hashedAPI_SECRET

and this is what I get when invoking the report https://gist.github.com/juliatakeuti/376d70681618ed5eab73
I checked that all the required reports exist, make sense and are located in the corresponding folders, particularly clock-zoned.json. I still have doubts about the set up because of apparent inconsistencies (imho) in the documentation, as the commands suggested in the docs lead to outcomes that are different from the examples shown. I decided to follow the examples and structured the corresponding parts of my openaps.ini in the same way as shown in the docs. Any ideas would greatly appreciated!

Scott Leibrand
@scottleibrand
Jan 27 2016 22:44
you have a typo for iob
there's an extra space: "monitor /iob.json"
same with enacted actually
Jason Calabrese
@jasoncalabrese
Jan 27 2016 22:45
eagle eyes
dougtakeuti
@dougtakeuti
Jan 27 2016 22:45
ok I new I needed someone else to pick that kind of thing!
marius a. eriksen
@mariusae
Jan 27 2016 22:51
@bewest @scottleibrand yep. been looping evenings for the last few days with ping :-)
dougtakeuti
@dougtakeuti
Jan 27 2016 22:51
I corrected those mistakes and still get the same error...
Scott Leibrand
@scottleibrand
Jan 27 2016 22:57
does the monitor/ directory exist, with all the input files in it?
paste the output of an ls -la monitor
dougtakeuti
@dougtakeuti
Jan 27 2016 23:06
ok
ls -la monitor
total 56
drwxr-xr-x 2 root root 4096 Jan 27 18:11 .
drwxr-xr-x 7 root root 4096 Jan 27 19:42 ..
-rw-r--r-- 1 root root 1747 Jan 27 20:16 clean_glucose.json
-rw-r--r-- 1 root root   21 Jan 27 20:16 clock.json
-rw-r--r-- 1 root root   27 Jan 27 20:18 clock-zoned.json
-rw-r--r-- 1 root root   44 Jan 27 20:16 current_battery_status.json
-rw-r--r-- 1 root root   69 Jan 27 20:16 current_pump_status.json
-rw-r--r-- 1 root root 2213 Jan 27 20:16 glucose.json
-rw-r--r-- 1 root root 1431 Jan 27 20:16 glucose-raw.json
-rw-r--r-- 1 root root   72 Jan 27 20:16 iob.json
-rw-r--r-- 1 root root 6165 Jan 27 20:16 pumphistory.json
-rw-r--r-- 1 root root    5 Jan 27 20:18 reservoir.json
-rw-r--r-- 1 root root   58 Jan 27 20:16 temp_basal.json
Scott Leibrand
@scottleibrand
Jan 27 2016 23:07
root
that's bad
you need to stop using sudo to run openaps stuff, and chown everything to be owned by the pi user
right now the pi user doesn't have permissions to write to the monitor/ directory, because it's owned by root and read-only for other users
dougtakeuti
@dougtakeuti
Jan 27 2016 23:09
I see.
Scott Leibrand
@scottleibrand
Jan 27 2016 23:09
chown pi.pi -R monitor should do it for that directory
there may be other files and directories that need that also
run ls -la * to see what else is owned by root
Ben West
@bewest
Jan 27 2016 23:10
also do the .git dir
dougtakeuti
@dougtakeuti
Jan 27 2016 23:10
ok, let me do that
Ben West
@bewest
Jan 27 2016 23:10
if you run openaps as root, it'll create hidden files under .git dir as root
Scott Leibrand
@scottleibrand
Jan 27 2016 23:10
maybe just chown pi.pi -R .* * to get them all
Ben West
@bewest
Jan 27 2016 23:10
can do chown -R pi.pi .
Scott Leibrand
@scottleibrand
Jan 27 2016 23:11
will that get hidden dirs? though you needed .* for those
Ben West
@bewest
Jan 27 2016 23:12
yeah, if you glob, you need a glob to get the hidden ones
if you give it a dir, it just recurses
dougtakeuti
@dougtakeuti
Jan 27 2016 23:13
@bewest it says operation not permitted
Jim Matheson
@jmatheson
Jan 27 2016 23:14
gotta sudo that one :)
dougtakeuti
@dougtakeuti
Jan 27 2016 23:15
oh dear... so much for a noobs!
Jim Matheson
@jmatheson
Jan 27 2016 23:16
sudo just means do this command as root user. if you leave it off it will do it as the pi user.
dougtakeuti
@dougtakeuti
Jan 27 2016 23:16
ok now everything is pi
not complaining, just laughing at myself!
thanks! let me try again now
Ben West
@bewest
Jan 27 2016 23:17
no worries :)
easy fix
Jim Matheson
@jmatheson
Jan 27 2016 23:17
my loop is running great but i am locked out of my pi. i must have done something wrong with the password login i was working on last night.
if only i had a usb keyboard….
Ben West
@bewest
Jan 27 2016 23:18
generally, sudo is only needed to install software, and other admin tasks
no keyboard needed, you can take out the sd card, insert in your pc, and install an ssh key so you can ssh to it
Scott Leibrand
@scottleibrand
Jan 27 2016 23:19
@jmatheson are you getting a password error, or just can't connect?
Jim Matheson
@jmatheson
Jan 27 2016 23:19
Permission denied (publickey).
Scott Leibrand
@scottleibrand
Jan 27 2016 23:19
are you connecting as the pi user?
Jim Matheson
@jmatheson
Jan 27 2016 23:19
yea
Scott Leibrand
@scottleibrand
Jan 27 2016 23:19
k. it'll often default to your current username
Ben West
@bewest
Jan 27 2016 23:19
I've done similar to put wifi passwords on the disk without any access to the machine
Scott Leibrand
@scottleibrand
Jan 27 2016 23:20
coming from a mac or PC?
Ben West
@bewest
Jan 27 2016 23:20
both
Scott Leibrand
@scottleibrand
Jan 27 2016 23:20
you can't read/write the ext4 partition from OS X
unless you install custom unsupported not-free software
@jmatheson PC or Mac?
Jim Matheson
@jmatheson
Jan 27 2016 23:23
mac.
Scott Leibrand
@scottleibrand
Jan 27 2016 23:24
try ssh-add or ssh-add -l and make sure your private key is loaded
Jim Matheson
@jmatheson
Jan 27 2016 23:25
no dice
Scott Leibrand
@scottleibrand
Jan 27 2016 23:25
did you disable password login at some point on the Pi?
Jim Matheson
@jmatheson
Jan 27 2016 23:26
yes. i was working through the pi getting started docs last night. It did not work or at least i thought it did not work.
and then i got sidetracked.
not sure if i lost my ssh earlier or if it rebooted or what, but my connection dropped and then when i tried to reconnect...
Scott Leibrand
@scottleibrand
Jan 27 2016 23:27
at this point your best bet is probably to hook up a console cable or keyboard+monitor, or find a PC where you can directly edit the contents of the SD card.
Jim Matheson
@jmatheson
Jan 27 2016 23:29
yea. i have it in monitor with mouse now. just nothing but an apple ble keyboard. might have to go shopping later :)
guess it is finally time to use Amazon PrimeNow.
Scott Leibrand
@scottleibrand
Jan 27 2016 23:31
heh
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:32
a console cable is really good to have around
Scott Leibrand
@scottleibrand
Jan 27 2016 23:32
:+1:
can't get them from Prime Now, but they're cheap to have on hand for next time
and much easier to carry in your gear bag, vs. a keyboard and monitor. :)
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:33
one of the benefits of the edison is you just use a usb cable
Jim Matheson
@jmatheson
Jan 27 2016 23:33
yea, it would probalby fit into a murse no problem
scottleibrand @scottleibrand considers setting up a bot to recommend an Edison every time someone mentions a murse. ;-)
Jim Matheson
@jmatheson
Jan 27 2016 23:34
wish i knew about it before noon, could have had a console cable by dinner through the slow amazon route.
Scott Leibrand
@scottleibrand
Jan 27 2016 23:34
if this were Slack I'd Just Do It. :)
Jim Matheson
@jmatheson
Jan 27 2016 23:35
i was about to do primenow but now i need to make a decision
Scott Leibrand
@scottleibrand
Jan 27 2016 23:35
if you can get something today and choose not to, you'll be wishing you had
Dana Lewis
@danamlewis
Jan 27 2016 23:36
Scott Leibrand
@scottleibrand
Jan 27 2016 23:37
we need to figure out how to flash our other RLs with subg_rfspy and wire them up like @TC2013 did for us. is that documented anywhere yet?
Dana Lewis
@danamlewis
Jan 27 2016 23:37
Huge difference running with Edison vs running with Pi. Edison can go on an arm band, like a Dexcom does. (I have tried running with a Pi & Battery in flip belt, but gets hot and bulky).
Given how hard running a marathon was pre-loop, in terms of managing BGs and balancing hydration and energy over that many hours…wondering how much easier it would be with an Edison-sized loop :)
Jim Matheson
@jmatheson
Jan 27 2016 23:38
You already know i want an edison. you are just taunting me now.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:38
bet you'd just need to eat carbs and the loop would be able to add little bits of basal as needed
Dana Lewis
@danamlewis
Jan 27 2016 23:39
@jasoncalabrese exactly. I drank gatorade for my full before, would be SO NICE to be able to drink gatorade for energy & hydration and less about preventing BG drops.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:40
might need to adjust sensitivity some
Dana Lewis
@danamlewis
Jan 27 2016 23:42
not sensitivity if you’ve done training, probably just targets.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:42
I adjusted targets for camping was wishing I adjust sensitivity some too
Dana Lewis
@danamlewis
Jan 27 2016 23:43
running is a little different for everyone :)
@jmatheson not meaning to taunt. meaning to inspire :) (interest, at least)
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:43
should be tunable
Jim Matheson
@jmatheson
Jan 27 2016 23:44
what is the battery of choice for the edison?
Scott Leibrand
@scottleibrand
Jan 27 2016 23:45
we're using an 850mAh Li-po we already had, and got about 8.5 hours' use out of it. just ordered a 2000mAh Li-po to test that.
Jason Calabrese
@jasoncalabrese
Jan 27 2016 23:45
your's is soldered with the ribbon cable, I need to order another 1 and other soldering stuff
been dragging it out after killing the first edison breakout board
Jim Matheson
@jmatheson
Jan 27 2016 23:47
I am for sure hyped up for an edison @danamlewis but i also will want a RL, and building one of those scares me.
Dana Lewis
@danamlewis
Jan 27 2016 23:47
why is that @jmatheson ?
Jim Matheson
@jmatheson
Jan 27 2016 23:48
i saw the digi-key BOM list
Jim Matheson
@jmatheson
Jan 27 2016 23:48
could bridge the gap until i get over my fears
Scott Leibrand
@scottleibrand
Jan 27 2016 23:49
I think the TI has better range than the RL too
wonder if you can solder the TI to the Edison with a ribbon cable the same way as the RL
that would cut down own size and power consumption a bit
I think that doc may be out of date wrt firmware, too: subg_rfspy is probably better than MMCommander.
Jim Matheson
@jmatheson
Jan 27 2016 23:51
the main question to address is which fear is larger. Solder or Murse.
Scott Leibrand
@scottleibrand
Jan 27 2016 23:52
lol
Jim Matheson
@jmatheson
Jan 27 2016 23:52
so it is pretty clear i should just order the RL parts
Scott Leibrand
@scottleibrand
Jan 27 2016 23:53
I'm not convinced RL is the best solution. I would get an Edison+TI first.
RL was designed to be a standalone BT adapter. if we ever get it working that way with the pumps, that'll be awesome. but for now the TI is just as good or better in every way I can think of for connecting to an Edison/Pi
https://github.com/oskarpearson/mmeowlink/wiki also, if you haven't read that yet
Jim Matheson
@jmatheson
Jan 27 2016 23:55
yeah. i secretly want to work on an iOS app with RL plus xDripG5
Scott Leibrand
@scottleibrand
Jan 27 2016 23:59