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

29th
Feb 2016
dougtakeuti
@dougtakeuti
Feb 29 2016 00:33
Thank you @scottleibrand and others for the hints yesterday. I also liked the discussion about what in range is for different people as YDMV indeed. For us it is what the endo says, 80-180. This is mainly due to insulin resistance in the mornings. I think we are likely to gradually change this as we get used to openaps, but who knows what adolescence is going to be like.
Scott Leibrand
@scottleibrand
Feb 29 2016 00:55
@itsn0tm3 I find that the Dexcom with 505 or later firmware does a way better job than meter at telling you what BG is at any given time, provided you calibrate it properly. You'd probably have to do three meter readings (and pick the middle one) do do as well with finger sticks. The Dex is using up to 11 meter readings, so it's like having a rolling average of all of those. I wouldn't put the same trust in the Enlite sensor though.
Brian Bonner
@itsn0tm3
Feb 29 2016 00:58
@scottleibrand define 'properly'? Would that be every 12 hours? I've heard some suggest more but minimum seems to be 12? I've seen some do 1 time a day!
dougtakeuti
@dougtakeuti
Feb 29 2016 01:09
@scottleibrand following you advice, when I look at last night, I still have doubts. I can't see what I could have done differently given the constraints I have. Here is the story: she had been high above 200 mg/dL for 2 hours after 40g of carbs. Openaps had been high temping all along, but bg would only increase. Just before midnight we measure 298 mg/dL while the sensor showed ~250 mg/dL. I did not calibrate and gave only 1 UI after checking that iob was 1.1 UI, enough to bring it down to 100's (ISF=90) while avoiding over correcting. At 3 am I measured 190 mg/dL and decided to calibrate and give another correction of 0.6 UI, thinking that there would still be room for low temping if needed. I go back to bed and wake up after the second pump alarm, when she was 64. I noticed that openaps high temped after the correction bolus and could not low temp in time to avoid the low. I don't understand why it would high temp. I still have to upgrade to the branch you suggested.
Feb28b.png
William Fallon
@inform880
Feb 29 2016 01:17
I have my data uploading to Nightscout, but my basal is not being graphed correctly. It just has a perfectly straight line. Did I miss a step?
Ben West
@bewest
Feb 29 2016 01:23
@inform880 what is your basal schedule?
oh, that's not your piture, sorry
live4sw
@live4sw
Feb 29 2016 01:27
@inform880 I also am having the same issue, just added NS openaps today, wonder if there is a common thing people are missing
William Fallon
@inform880
Feb 29 2016 01:31
Screenshot 2016-02-28 20.30.32.png
Here's a picture of what it looks like
Ben West
@bewest
Feb 29 2016 01:52
there's a tool called mm-format-ns-profile
mm-format-ns-profile settings carb-ratios active-basal-profile insulin-sensitivities bg-targets
that will print something that can be uploaded to NS profile
William Fallon
@inform880
Feb 29 2016 02:01
This message was deleted
live4sw
@live4sw
Feb 29 2016 02:02
same - i set up latest-ns-treatment-time, format-latest-nightscout-treatments, and upload-recent-treatments. that results in it uploading units left and the last openaps status
but no basal changes
Ben West
@bewest
Feb 29 2016 02:04
bewest@bewest-MacBookPro:~/Documents/openaps$ mm-format-ns-profile monitor/settings.json monitor/carb-ratios.json monitor/active-basal-profile.json monitor/insulin-sensitivities.json monitor/bg-targets.json  /dev/fd/1
{ 
  "dia": "4",
  "carbratio": [
    { 
      "start": "00:00:00",
      "r": 13,
      "ratio": 13,
      "offset": 0,
      "i": 0,
      "x": 0,
      "time": "00:00",
      "value": "13"
    },
    { 
      "start": "06:30:00",
      "r": 15,
      "ratio": 15,
      "offset": 390,
      "i": 13,
      "x": 1,
      "time": "06:30",
      "value": "15"
    }
  ],
  "carbs_hr": "30",
  "delay": "20",
  "sens": [
    { 
      "i": 0,
      "start": "00:00:00",
      "sensitivity": 45,
      "offset": 0,
      "x": 0,
      "time": "00:00",
      "value": "45"
    }
  ],
  "startDate": "2016-02-28T18:02-0800",
  "timezone": "America/Los_Angeles",
  "basal": [
    { 
      "i": 0,
      "start": "00:00:00",
      "rate": 0.7000000000000001,
      "minutes": 0,
      "time": "00:00",
      "value": "0.7000000000000001"
    },
    { 
      "i": 1,
      "start": "06:30:00",
      "rate": 1.05,
      "minutes": 390,
      "time": "06:30",
      "value": "1.05"
    },
    { 
      "i": 2,
      "start": "09:30:00",
      "rate": 1.1,
      "minutes": 570,
      "time": "09:30",
      "value": "1.1"
    },
    { 
      "i": 3,
      "start": "13:30:00",
      "rate": 0.9,
      "minutes": 810,
      "time": "13:30",
      "value": "0.9"
    }
  ],
  "target_low": [
    { 
      "value": "106",
      "time": "00:00"
    }
  ],
  "target_high": [
    { 
      "value": "125",
      "time": "00:00"
    }
  ],
  "created_at": "2016-02-28T18:03-0800",
  "units": "mg/dL"
}
bewest@bewest-MacBookPro:~/Documents/openaps$
[bewest-MacBookPro] 0*!   1   2   3
live4sw
@live4sw
Feb 29 2016 02:07
isn't this just something we can edit on our nightscout site by doing it in master first before upgrading to dev?
Ben West
@bewest
Feb 29 2016 02:07
you can do it on NS in the UI or simply upload it once
live4sw
@live4sw
Feb 29 2016 02:08
ah. i've created the profile already and set it up, i'm just not seeing the openaps enacted basals display, just my normal basals
Ben West
@bewest
Feb 29 2016 02:08
with ns-upload configured, you can do that mm-format-ns-profile ... | ns-upload profile.json - just once
live4sw
@live4sw
Feb 29 2016 02:08
dunno if @inform880 is in the same boat as me, but i think he may be
Ben West
@bewest
Feb 29 2016 02:08
oh enacted is different
for one thing, historically we don't show enacted at all
the reason is because enacted does not come from pump history
we only want actual pump history in NS
live4sw
@live4sw
Feb 29 2016 02:09
oh ok, i mean pump history then, whatever the temp basals have been over time, they don't seem to be displaying on my NS site
Ben West
@bewest
Feb 29 2016 02:09
what mine does is simply wait the 5 minutes until next time and uploads all the not-yet-uploaded history
I see, so for that, at some point, we should have pump-history with the timestamped rezoned
and in addition, the mm-format-ns-treatments tool is used to clean it up
I have an alias like this:
err, sorry
I have a device like this:
bewest@bewest-MacBookPro:~/Documents/openaps$ openaps device show format-latest-nightscout-treatments  --ini
[device "format-latest-nightscout-treatments"]
vendor = openaps.vendors.process
extra = format-latest-nightscout-treatments.ini
fields = 
cmd = bash -c
args = "( openaps latest-ns-treatment-time  > reporting/ns-latest-treatments.json ) && nightscout cull-latest-openaps-treatments monitor/pump-history-zoned.json model.json $(openaps latest-ns-treatment-time)"
Bill Stackpole
@billstackpole
Feb 29 2016 02:12
having some weirdness in OpenAPS oref0 tools - anyone willing to take a crack at it?
Scott Leibrand
@scottleibrand
Feb 29 2016 02:12
@juliatakeuti what do you see in NS retro mode when you put it just after the last bolus when it should've stopped high temping?
Bill Stackpole
@billstackpole
Feb 29 2016 02:13
have created the monitor/iob.json report but when attempting to invoke throws multiple errors (most basic of which is "cannot find settings/profile.json" ... "no json object could be decoded". )
Think this is because I have just installed a new sensor and have no data for last 4 hrs - thoughts?
(and perhaps this is the wrong forum - feel free to point me in the right direction - tnx)
Ben West
@bewest
Feb 29 2016 02:14
you created a report called monitor/iob.json and it isn't working?
Scott Leibrand
@scottleibrand
Feb 29 2016 02:14
@juliatakeuti I think the latest meal-assist branch would be a little better about cutting off high temp. Biggest challenge we've had with meal assist is communicating to the user when the loop has already high temped enough and they don't need to do the correction bolus they really want to do because they're still high. but also need to figure out why it wasn't able to start low temping after she started dropping.
Bill Stackpole
@billstackpole
Feb 29 2016 02:14
bewest - correct.
Ben West
@bewest
Feb 29 2016 02:14
try openaps report show monitor/iob.json --json | json
that should print out the definition for the report
Jim Matheson
@jmatheson
Feb 29 2016 02:15
@billstackpole just to verify, you are seeing your Basal blue line in NS? It’s just not displaying the adjustments correctly.
Bill Stackpole
@billstackpole
Feb 29 2016 02:16
pi@openaps-raspi:~/billopenaps $ openaps report show monitor/iob.json --json | json
{
"type": "report",
"name": "monitor/iob.json",
"monitor/iob.json": {
"profile": "settings/profile.json",
"use": "shell",
"clock": "monitor/clock.json",
"reporter": "JSON",
"json_default": "True",
"pumphistory": "monitor/pumphistory.json",
"device": "calculate-iob",
"remainder": "[]"
}
}
Ben West
@bewest
Feb 29 2016 02:16
ah ,great, so we're depending on settings/profile.json existing already
Bill Stackpole
@billstackpole
Feb 29 2016 02:16
dunno what NS is... Have a medtronic w/pump and sensor.
Ben West
@bewest
Feb 29 2016 02:16
think convo/threads might have been crossed there
Bill Stackpole
@billstackpole
Feb 29 2016 02:17
ah - so you are correct - no profile.json yet.
Jim Matheson
@jmatheson
Feb 29 2016 02:17
sorry, i meant @live4sw
Scott Leibrand
@scottleibrand
Feb 29 2016 02:17
NS is Nightscout, though.
Bill Stackpole
@billstackpole
Feb 29 2016 02:17
tnx. Not sure what NightScout is - think it's an alarming system for Dexcom?
similar to the one for children sold by Medtronic?
Ben West
@bewest
Feb 29 2016 02:18
did you already set up the report? openaps settings/profile.json --json | json
live4sw
@live4sw
Feb 29 2016 02:18
@jmatheson that's right, i see the basal lines for my regular profile, just not the temp basals
Ben West
@bewest
Feb 29 2016 02:18
it's the only real-time visualization system for diabetes
Scott Leibrand
@scottleibrand
Feb 29 2016 02:18
Nightscout is what you'll want to set up to visualize BG (from Dexcom or Medtronic CGM) and the actions OpenAPS is taking.
Ben West
@bewest
Feb 29 2016 02:18
it also does remote monitoring and has some alarms and other widgets
Bill Stackpole
@billstackpole
Feb 29 2016 02:18
@bewest - apparently not.
@bewest - no profile.json :-(
Ben West
@bewest
Feb 29 2016 02:19
it is the only one that combines pump and cgm data from different vendors in real-time
oh
ok, we need that one first
William Fallon
@inform880
Feb 29 2016 02:19
@live4sw me too
Bill Stackpole
@billstackpole
Feb 29 2016 02:19
tnx - lemme go look and see where I missed the instruction. (slow child here <grin>)
Ben West
@bewest
Feb 29 2016 02:19
well, let's take a look at the openaps menus directly and see if anything pops out
live4sw
@live4sw
Feb 29 2016 02:19
Ok, I think i see the issue. I followed the docs to add the three aliases
Ben West
@bewest
Feb 29 2016 02:19
what happens if you do openaps use pump -h
live4sw
@live4sw
Feb 29 2016 02:20
but when it goes to format the latest treatments, it says upload/latest-treatments.json doesn't exist
Jim Matheson
@jmatheson
Feb 29 2016 02:20
ok, yup.
gotta get that going beforehand and you should be good
Ben West
@bewest
Feb 29 2016 02:20
this is kind of towards the end in mine:
    ...                   Read insulin sensitivities.
    read_selected_basal_profile
                        Fetch the currently selected basal profile.
    read_settings       Read settings.                                               
    read_status         Get pump status
    read_temp_basal     Read temporary basal rates.
    reservoir           Get pump remaining insulin
Bill Stackpole
@billstackpole
Feb 29 2016 02:20
@bewest - you mean me for the pump -h?
Ben West
@bewest
Feb 29 2016 02:21
yeah, should see something like above in the output
openaps use pump -h is listing everything we know how to do with the pump
Bill Stackpole
@billstackpole
Feb 29 2016 02:21
read_insulin_sensitivities
Read insulin sensitivities.
read_selected_basal_profile
Fetch the currently selected basal profile.
read_settings Read settings.
read_status Get pump status
read_temp_basal Read temporary basal rates.
reservoir Get pump remaining insulin
resume_pump resume pumping.
scan scan for usb stick
set_temp_basal Set temporary basal rates.
settings Get pump settings
status Get pump status (alias for read_status)
suspend_pump Suspend pumping.
yup - pump is responding
dougtakeuti
@dougtakeuti
Feb 29 2016 02:21
Feb28c.png
@scottleibrand Sorry, I'm not quite sure exactly what you have referred to I'm guessing is this:
Ben West
@bewest
Feb 29 2016 02:22
oh, you're past that and setting up oref0
ok, let me skip a head a tiny bit
Bill Stackpole
@billstackpole
Feb 29 2016 02:22
@bewest - yup
Ben West
@bewest
Feb 29 2016 02:23
oref0 has three parts: get-profile, calculate-iob, determine-basal
Bill Stackpole
@billstackpole
Feb 29 2016 02:23
think I got it
Ben West
@bewest
Feb 29 2016 02:23
calculate-iob use the profile from get-profile as input
Bill Stackpole
@billstackpole
Feb 29 2016 02:23
had to invoke the profile.json report (in settings) before it would be generated
Ben West
@bewest
Feb 29 2016 02:23
so get-profile has to come first
Bill Stackpole
@billstackpole
Feb 29 2016 02:23
now that it's there
Ben West
@bewest
Feb 29 2016 02:23
yeah
Bill Stackpole
@billstackpole
Feb 29 2016 02:23
the iob.json works
thankyou!
Ben West
@bewest
Feb 29 2016 02:23
same principle for determine-basal
it uses the output from calculate-iob
live4sw
@live4sw
Feb 29 2016 02:24
sorry, @jmatheson - what creates the upload/latest-treatments.json file?
Bill Stackpole
@billstackpole
Feb 29 2016 02:24
BTW - anyone aware of any local groups dedicated to meeting with others so people can collectively build OpenAPS?
Ben West
@bewest
Feb 29 2016 02:24
it's a good idea
Bill Stackpole
@billstackpole
Feb 29 2016 02:24
I'm thinking of starting a meetup of pumpers at my university.
thoughts?
Ben West
@bewest
Feb 29 2016 02:24
there's been bunch of random meetups, but it'd be good to get regular groups going
Bill Stackpole
@billstackpole
Feb 29 2016 02:25
I'm thinking something like LUGs or B-Sides groups
Ben West
@bewest
Feb 29 2016 02:25
yeah, good idea
Bill Stackpole
@billstackpole
Feb 29 2016 02:25
but for OpenAPS.
Will advise. I stumbled on this forum - how can I find other similar ones? Is there an IRC hook to connect to this one as well (or only the web interface)?
Ben West
@bewest
Feb 29 2016 02:26
yes, visit http://irc.gitter.im in your browser for irc instructions
there are multiple rooms nearby, see nightscout/public, nightscout/dexdrip, ps2/rileylink, many
dougtakeuti
@dougtakeuti
Feb 29 2016 02:27
@scottleibrand I'll have a go at meal-assist branch tomorrow and let you know.
Ben West
@bewest
Feb 29 2016 02:27
nightscout/ios, tidepool-org/public, there's a whole bunch of related efforts
@billstackpole everything's open to pull requests/patches, feel free to ask questions, but be mindful you'll be expected to start answering some/contributing to docs and things as you get going to help everyone behind you :-)
maybe we can call that "leaving a wide wake?"
Dana Lewis
@danamlewis
Feb 29 2016 02:31
:+1: @bewest and welcome @billstackpole glad you jumped in here :)
I don't know of anyone in your neck of the woods but that doesn't mean you can't start a meetup and create some other interested folks ;)
Scott Leibrand
@scottleibrand
Feb 29 2016 02:33
@juliatakeuti can you scrub the NS display to the point where you think it was making a bad decision (continuing to high temp after your correction bolus) and click the OpenAPS pill to get details on what it was thinking at the time?
Bill Stackpole
@billstackpole
Feb 29 2016 02:35
k - lets try w/IRC
woop
Scott Leibrand
@scottleibrand
Feb 29 2016 02:35
@billstackpole welcome. To answer your email question, we've been able to publish everything we've written on OpenAPS. We have just restrained from making setup "too easy" to make sure people understand what they're doing
Between the reference design, the openaps/docs, and the oref0 code and comments, you should be able to get up to speed.
Bill Stackpole
@billstackpole
Feb 29 2016 02:37
@scottleibrand - thank you for the reply! (finding my way around - feeling a bit overwhelmed, but making some progress tonight. Slow and painful cause I'm new to RasPi (and learning by making mistakes <grin>)
Scott Leibrand
@scottleibrand
Feb 29 2016 02:37
:-)
Dana Lewis
@danamlewis
Feb 29 2016 02:37
You won't do it in a day, so take your time because the learning process is an investment in fixing the breaks later :)
Bill Stackpole
@billstackpole
Feb 29 2016 02:39
understood. Every time I email you I find (at least some of) the answers in my travels (but appreciate your support and feedback). Off to my Endo tomorrow - going to pitch this (already talked to my pump folks). And thank you for doing this. My initial goal was the same as yours (and I think may still be put into place - that is to provide an alarm that wakes me and not JUST my wife. <smile>)
Dana Lewis
@danamlewis
Feb 29 2016 02:40
:) :D :+1:
NS might be a good place to start on the alarm front
No reason to recreate the wheel unless you want to :) and if in that case, go for it too!
Bill Stackpole
@billstackpole
Feb 29 2016 02:41
well I'm impressed with your overnight BG readings - and would like to mimic them myself.
so I might do both (and if I get numbers like yours then the alarm wont alarm!)
Dana Lewis
@danamlewis
Feb 29 2016 02:42
Yea we spent a long time building a system to wake me up then a little time building the last bit so I didn't have to wake up ;)
Scott Leibrand
@scottleibrand
Feb 29 2016 02:43
Yeah, I was really impressed at how rarely we get overnight alarms now. I stopped bothering to put the CGM alarm on my side of the bed (since it doesn't wake Dana up, but who cares if it never goes off) ;-)
dougtakeuti
@dougtakeuti
Feb 29 2016 02:44
Feb28d.png
@scottleibrand that's a cool feature!
Jim Matheson
@jmatheson
Feb 29 2016 02:45
the only alarm i have is if openaps drops connection :)
Bill Stackpole
@billstackpole
Feb 29 2016 02:45
Nice. So I just shot over to the nightscout site - it indicates that bare minimum is the Dexcom, Android, and cables. I have Medtronic, iPhone. Is there a port for that?
live4sw
@live4sw
Feb 29 2016 02:45
@jmatheson I think I was able to do it! Essentially, I hadn't added an invoke for pumphistory-zoned.json to my monitor-pump alias, so I did that. Next, I also hadn't created a settings/model.json, which I just did once (no need to do it every time)
Dana Lewis
@danamlewis
Feb 29 2016 02:45
^kudos to @jasoncalabrese For the Ns tooltip feature! (@juliatakeuti)
dougtakeuti
@dougtakeuti
Feb 29 2016 02:45
absolutely!
Dana Lewis
@danamlewis
Feb 29 2016 02:45
@live4sw Congrats on all the progress!
Jim Matheson
@jmatheson
Feb 29 2016 02:46
@live4sw nice! was there something confusing in the docs or you just missed a section
Dana Lewis
@danamlewis
Feb 29 2016 02:46
@billstackpole There's a couple of ways to get data up to NS, keep poking around. That's the original basic way you referred to
Bill Stackpole
@billstackpole
Feb 29 2016 02:47
@danamlewis - k - i'll keep looking tnx.
live4sw
@live4sw
Feb 29 2016 02:47
Thanks. Nothing confusing about the docs, but what was missing was that it didn't specifically say anywhere that you need to make sure that the pumphistory-zoned.json is included as a report to invoke in the monitor-pump alias, and also to make sure you have a settings/model.json report
Dana Lewis
@danamlewis
Feb 29 2016 02:47
@live4sw Want to PR that to dev docs so we can get it included? :)
live4sw
@live4sw
Feb 29 2016 02:47
yep, working on it now
Dana Lewis
@danamlewis
Feb 29 2016 02:48
Awesome!
Jim Matheson
@jmatheson
Feb 29 2016 02:48
:thumbsup:
Scott Leibrand
@scottleibrand
Feb 29 2016 02:48
@juliatakeuti that pill says BG 70. I don't think you're scrubbed to the time we're interested in. You said it was >160 and still high temping, right?
scottleibrand @scottleibrand idly wonders how hard it is to change your github username. Kinda weird to be talking to Doug's daughter all the time. ;-)
Jim Matheson
@jmatheson
Feb 29 2016 02:53
i think it’s pretty easy to change
Dana Lewis
@danamlewis
Feb 29 2016 02:53
Kudos on the first PR @live4sw :)
Jim Matheson
@jmatheson
Feb 29 2016 02:54
unless you have links hard coded all over the place. not sure they 301 it
dougtakeuti
@dougtakeuti
Feb 29 2016 02:54
@scottleibrand that is correct. The dashed line you see across the points is the 180 mg/dL upper limit.
Scott Leibrand
@scottleibrand
Feb 29 2016 02:58
Might be easier for you to PM me your NS link so I can find what we're looking for...
live4sw
@live4sw
Feb 29 2016 02:59
Thanks dana - this has been pretty cool so far. I was intimidated back in october when I first tried setting it up on my own but the documentation is much better now. Will email you to add my contact info to your distribution list.
live4sw
@live4sw
Feb 29 2016 03:24
One more question for tonight - my high alarm is set for 180, but ever since setting up openaps on nightscout, it alarms at 155. Any way to change this?
Jim Matheson
@jmatheson
Feb 29 2016 03:31
not sure why that is the case, but you can customize all the alarms in your env settings on the NS side -> https://github.com/nightscout/cgm-remote-monitor#alarms
there is also a nightscout/public gitter channel if you end up digging in and have more questions
live4sw
@live4sw
Feb 29 2016 03:34
Will do, thanks
diabeticgonewild
@diabeticgonewild
Feb 29 2016 03:34

Wooohooo! Got a 100 on my engineering economy quiz! Have a final exam on Tuesday!

Afterwards, I have 1.75 weeks to do OpenAPS work, or whatever else you guys would want me to do!

Only have to get a 73 on the final exam to get an A!
I bought a (second) Edison today!
Jim Matheson
@jmatheson
Feb 29 2016 03:50
thinking about breaking down and buying the low end Pebble. Want the new apple watch but that is 6 months away most likely. Does not seem economical sense to buy one one and then another then.
diabeticgonewild
@diabeticgonewild
Feb 29 2016 03:54
Apple Watch 2 is expected to come out soon...
Jim Matheson
@jmatheson
Feb 29 2016 03:58
it will be this fall
my plan was to buy an apple watch after their march announcement (old or new one depending on if they annouce). but buying two in 6 months seems like not the best idea.
I was hoping to help contribute to one of the watch apps folks are working on once I get one.
Ben West
@bewest
Feb 29 2016 04:23
mark wilson has got been cooking up some really incredible pebble stuff
in addition, we found a technique for openaps to talk directly to the pebble...
Dana Lewis
@danamlewis
Feb 29 2016 04:24
:+1: For @mddub
Ben West
@bewest
Feb 29 2016 04:24
so seems likely pebble will become another openaps device at some point in the mysterious future :-D
Dana Lewis
@danamlewis
Feb 29 2016 04:25
:) @bewest
@jmatheson I am still trucking on with my pebble steel, @scottleibrand Just switched from original kickstarter to pebble time steel and likes it.
Jim Matheson
@jmatheson
Feb 29 2016 04:26
thats why i am thinking about considering it. It certainly is not for the astetics :)
i think i’d go for the $78 one. just use it until watch 2 is out and then turn it into my visualition tool for dirt bike, mtb and snowboarding :)
Dana Lewis
@danamlewis
Feb 29 2016 04:27
sounds like a good rationalization ;) (aka the sort of thinking I'd do about it)
Jim Matheson
@jmatheson
Feb 29 2016 04:29
openaps direct would be great. especially when i figure out how to get my G5 direct to the edison.
Dana Lewis
@danamlewis
Feb 29 2016 04:30
:+1:
Ben West
@bewest
Feb 29 2016 04:34
that tool has some help output now:
$ mm-format-ns-profile help              mm-format-ns-profile: Format known pump data into Nightscout "profile".
Profile documents allow Nightscout to establish a common set of settings for
therapy, including the type of units used, the timezone, carb-ratios, active
basal profiles, insulin sensitivities, and BG targets.  This compiles the
separate pump reports into a single profile document for Nightscout.

Usage:
mm-format-ns-profile pump-settings carb-ratios active-basal-profile insulin-sensitivities bg-targets

Examples:
bewest@bewest-MacBookPro:~/Documents/openaps$ mm-format-ns-profile monitor/settings.json monitor/carb-ratios.json monitor/active-basal-profile.json monitor/insulin-sensitivities.json monitor/bg-targets.json
Mark Wilson
@mddub
Feb 29 2016 04:55
@danamlewis still a work in progress as always, but if your loop is uploading pump history to nightscout using the oref0 scripts, my watchface can render basals and boluses: https://github.com/mddub/urchin-cgm/#pump-data
the status bar height and content are configurable, so you could include however much you want of the summary you're using pebble cards(?) for
Dana Lewis
@danamlewis
Feb 29 2016 05:11
Oooh neat, @mddub - looking forward to checking it out!
Skimming the readme and seeing the screenshot example including basal renders - is that with a baseline of zero? (Vs showing net, adjustments to scheduled)
Jim Matheson
@jmatheson
Feb 29 2016 05:14
@mddub expect questions and oooh’s and ahhh’s from me in about 24 hours :)
Mark Wilson
@mddub
Feb 29 2016 05:15
@danamlewis: right, they're relative to a basal of 0, but scaled to the height of the graph. so 0 will always appear as no basal graphed, but a maxed-out graph may mean a different absolute basal rate depending on that 4-hour period
if you have strong opinions about this (e.g. specify a constant max value for the basal graph), i'm open to suggestions... it's a fairly new feature
i chose a dynamic maximum because it's not obvious how to derive a static max basal without building assumptions like "3x max basal, 4x current basal" into the watchface itself
Dana Lewis
@danamlewis
Feb 29 2016 05:18
Gotcha, makes sense. Cool. Will play more in a couple of days and think through it, suspecting this may be my winner with some openAPS status text pulled into the bottom :)
Mark Wilson
@mddub
Feb 29 2016 05:19
@jmatheson++
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:27
That's nice @mddub
Mark Wilson
@mddub
Feb 29 2016 05:28
thanks @jasoncalabrese, only possible thanks to your and @bewest's work normalizing the mm history for ns
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:29
I'd like to get the enacted and suggested info there to
Just installed will be nice to have for my trip
Mark Wilson
@mddub
Feb 29 2016 05:33
i have an okay python script which produces a one-line summary of my loop state, been meaning to put it on github
also been thinking about the best way to summarize those "openaps" devicestatus entries
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:35
Really nice having openaps iob on my watch
Dana Lewis
@danamlewis
Feb 29 2016 05:38
hm, interesting. been thinking. i almost think just having “x minutes ago” plus net IOB would be all the info I might need in the watch face..since I can look down at my pump and (usually) see the temp rate.
(vs someone monitoring from afar)
that usually is enough for me to know status of the system
Mark Wilson
@mddub
Feb 29 2016 05:39
yeah, leaning towards something like (4) 1.3u 1.8x23
Dana Lewis
@danamlewis
Feb 29 2016 05:40
ah, nice.
subtle, too
Mark Wilson
@mddub
Feb 29 2016 05:40
openaps status is from 4 minutes ago, iob, current temp basal relative to now
Dana Lewis
@danamlewis
Feb 29 2016 05:40
yup yup
that plus the basals graphed… :D
Jim Matheson
@jmatheson
Feb 29 2016 05:41
i still feel like i like to know what the eventual BG is calculated at. but i am a newbie
not sure I understand what "current temp basal relative to now” means.
relative to current basal?
without a temp
Dana Lewis
@danamlewis
Feb 29 2016 05:43
what’s the current temp, and how long has it been running. i.e. for 1.8x23, it’s a 1.8 temp basal that’s been running for 7 min, and thus will last 23 more minutes unless a new one is enacted
Mark Wilson
@mddub
Feb 29 2016 05:43
oh, just that the most recent pump data may be from 4 minutes ago, but based on that data, at this moment, there are 23 minutes left in the current temp
Jim Matheson
@jmatheson
Feb 29 2016 05:43
ah ok
can’t that be inferred from the graph?
Dana Lewis
@danamlewis
Feb 29 2016 05:44
@jmatheson but that’s the cool thing about @mddub ’s stuff here, you can customize with the type of info you want :)
Jim Matheson
@jmatheson
Feb 29 2016 05:44
yea
Dana Lewis
@danamlewis
Feb 29 2016 05:44
hmm, don’t think you’d be able to see the time of the temp on the graph
Jim Matheson
@jmatheson
Feb 29 2016 05:44
it would be how long the bar extended i would assume
Dana Lewis
@danamlewis
Feb 29 2016 05:44
but i think overall you could juxtapose cgm trace and basal and get a good idea of where things are heading
Mark Wilson
@mddub
Feb 29 2016 05:45
you can kind of tell, but not really, because 1) the current openaps uploader setup (or mine, at least) doesn't upload an enacted temp basal until the next run of the loop, when it's become part of pump history, and 2) the graph is quantized to every 5 minutes to line up with the cgm readings
not sure if you've noticed (1) with your setup, or perhaps you pull history again at the end of your loop or pad history with a pseudo temp to reflect enacted
Jim Matheson
@jmatheson
Feb 29 2016 05:47
i usually see what is upcoming to the right of the vertial dashed line in NS. but i think it just shows up next loop.
Mark Wilson
@mddub
Feb 29 2016 05:47
for me, the shape of the temp basal graph is more to tell me what the loop's been up to / what the trend is, the status bar tells me how or whether it's working "right now"
ah, yeah, my graph doesn't extend beyond the present (...yet) and doesn't really have enough precision
Jim Matheson
@jmatheson
Feb 29 2016 05:48
i dont think i have ever been wondering about that stat “how much left before it flips off” except when my rig goes offline for some reason. i mostly am looking for places where openaps is not going to get me where i need to be.
i will have to play with the custom stuff you built in.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:50
Time since last loop is something I watch, just to see that everything is working
I upload status right at the end of the loop
Jim Matheson
@jmatheson
Feb 29 2016 05:51
yeah, that is my #1 driver.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:51
But history at the start of the next loop
Jim Matheson
@jmatheson
Feb 29 2016 05:51
thats what i am doing too
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:52
Says there a newer version, thought I just got the pbw from github
Jim Matheson
@jmatheson
Feb 29 2016 05:52
i like how @mddub has reasons why there is a problem in there. that would be huge to get into NS (reasons would be slightly different)
Mark Wilson
@mddub
Feb 29 2016 05:52
@jasoncalabrese sorry, i just pushed a new one :) https://github.com/mddub/urchin-cgm/commits/master
there's an update-every-minute-instead-of-when-new-sgv-is-expected feature i realized i should get out there if people are starting to play with the basal graph
Jim Matheson
@jmatheson
Feb 29 2016 05:54
it is crazy how fast my iphone battery drains with G5 ble + rig over wifi hotspot + watching NS. i dont think it will even last 3 hours without a second battery.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 05:58
I turned on every minute with the graph, guess that is a little much
Mark Wilson
@mddub
Feb 29 2016 05:58
@jasoncalabrese what i'd really like is for openaps to report why the loop failed
unfortunately i can't see how it can be done in a generic way since everyone glues their aliases together slightly differently
then summarize.py produces something like "preflight", "cgm", "pump" when my suggest report failed, plus the last time the loop was successful
Jim Matheson
@jmatheson
Feb 29 2016 06:00
nice
super helpful
might have to try that
Mark Wilson
@mddub
Feb 29 2016 06:03
i should really clean it up and put it on github
Jim Matheson
@jmatheson
Feb 29 2016 06:03
you should :laughing:
@jasoncalabrese would be nice if we could pump that output into the default openaps pill in NS as we talked about a few weeks ago.
Mark Wilson
@mddub
Feb 29 2016 06:05
a couple parts of my loop i think could be worth sharing, most of it is awful and clearly the result of several iterations when things weren't working and needed a quick hack
Jim Matheson
@jmatheson
Feb 29 2016 06:06
yea, if you want some eyes on it i could try to review / give feedback. i think most of us have loops with lots of inefficiencies.
Mark Wilson
@mddub
Feb 29 2016 06:07
@jmatheson here's the summarize.py that bash script refers to: https://gist.github.com/mddub/26d0b0dd06d0fab16225
it probably should just save the last successful loop time explicitly in the bash script instead of what i chose to do here, which is persist it within the summary text between runs, and guess when it's not present
it kind of seems to work so far, though
Jim Matheson
@jmatheson
Feb 29 2016 06:14
are you still using carelink or are you doing tuning of a stick in preflight?
Mark Wilson
@mddub
Feb 29 2016 06:15
i'm using the ti stick, no tuning though, preflight is just an attempt at clock read
sometimes it's useful to see the failure being preflight ("pf") vs pump
Jim Matheson
@jmatheson
Feb 29 2016 06:16
for sure. i have been getting some tuning that comes back really bad which in turns causes failures for me.
Mark Wilson
@mddub
Feb 29 2016 06:17
going on chris' recommendation, i just ran mmtune once and have left it
Jim Matheson
@jmatheson
Feb 29 2016 06:17
yeah i should analyze my data and see when it does work if it ever varies much
Mark Wilson
@mddub
Feb 29 2016 06:17
do you get very different results in different environments?
Jim Matheson
@jmatheson
Feb 29 2016 06:18
thats what i need to test. it’s usually just better/worse from what i see, but not sure if it is across the board or by band.
feels like across the board. annoying since sometimes it is just me at home.
Mark Wilson
@mddub
Feb 29 2016 06:21
yeah, that sucks. maybe RL will be better if you use it via the ribbon? with the ti stick i can't go across my apartment like @bewest was reporting, but i get success within backpack-in-the-corner distance, which is life-changing enough for me
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:22
I'm using a custom layout with the BG on the top, would be nice to swap sizes with the time
Jim Matheson
@jmatheson
Feb 29 2016 06:22
seems like my tuning every loop is a waste of time
posted my results in mmeowlink
Mark Wilson
@mddub
Feb 29 2016 06:23
@jasoncalabrese file an issue with details and i'll bump the priority on that :)
Jim Matheson
@jmatheson
Feb 29 2016 06:23
i think i am getting interference because it does not seem related to distance. i had an issue tonight with everything 6 inches away.
Mark Wilson
@mddub
Feb 29 2016 06:24
must be those J-church trains
Jim Matheson
@jmatheson
Feb 29 2016 06:24
i dont think i can switch to the RL unless i figure out what is wrong with my Intel board or buy a new one
seriously
and ship @bewest some money or work a trade :)
Mark Wilson
@mddub
Feb 29 2016 06:27
i heard he hacks for beer
Jim Matheson
@jmatheson
Feb 29 2016 06:34
yeah, i was going to offer to let @bewest hack on my G5 by bringing my arm and some IPA over.
i still have leftovers from the last meetup so i can easily pay that forward :)
Mark Wilson
@mddub
Feb 29 2016 06:39
ha, that's the philosophy of openaps, after all
Jim Matheson
@jmatheson
Feb 29 2016 06:42
i try
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:43
For the status bar, maybe a list of fields world work
Really like the openaps basal, but miss raw
Mark Wilson
@mddub
Feb 29 2016 06:45
you mean select as many status bar content options as you want?
instead of one
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:46
Maybe, even as text
Jim Matheson
@jmatheson
Feb 29 2016 06:47
it’d be great to come up with a way to have an options feed (for pebble or NS or whatever) where you basically pick what you want on your dashboard and the ordering/layout.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:47
Yeah, wet talked about that in the other room
They'd like it for the careportal pebble app
Mark Wilson
@mddub
Feb 29 2016 06:48
would need a common set of "things" first
isn't careportal for input?
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:48
Yeah, to input carbs, boluses, etc
Jim Matheson
@jmatheson
Feb 29 2016 06:48
do we need a common set? each thing has a label and a value (and maybe color).
as new things are avaiable they are just added to the list of options
Mark Wilson
@mddub
Feb 29 2016 06:49
oh, yeah, that kind of thing gets hard fast though
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:49
Something with plugins
Yeah, endless
Mark Wilson
@mddub
Feb 29 2016 06:50
unless it's basically a bunch of boxes of text
but then why not just use cards for pebble
well, actually, maybe what makes the most sense is a cards for pebble endpoint with configurable content
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:51
Could be smart out when to show things, but that's hard to customize
Mark Wilson
@mddub
Feb 29 2016 06:51
but i think if your data is meant to be truly glanceable, there's not that many things you want to view
Jim Matheson
@jmatheson
Feb 29 2016 06:51
yeah, i just want boxes on NS.
where i can use the limits to manage colors or alerts. and maybe have them only appear if they are yellow/red option.
Mark Wilson
@mddub
Feb 29 2016 06:52
so kind of a nicer interface to configure plugins?
Jim Matheson
@jmatheson
Feb 29 2016 06:52
i guess i will be learning what pebble cards are this week :)
yes
Mark Wilson
@mddub
Feb 29 2016 06:52
"cards for pebble" is an app that lets you specify your own url with json that can be displayed on the watch
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:52
If plugins could describe their options in some way we might be able to use it in multiple places
Jim Matheson
@jmatheson
Feb 29 2016 06:53
i do think it might depend on how people’s brains work though. (what they’d like)
Mark Wilson
@mddub
Feb 29 2016 06:53
in theory, could have a nightscout endpoint in the format it expects
i believe that's what @danamlewis uses for her text status display now: https://github.com/openaps/oref0/blob/master/bin/oref0-pebble.js
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:55
Yes
Mark Wilson
@mddub
Feb 29 2016 06:56
yeah, a small interface around extendedSettings on plugins would open up a lot of possibilities
Jim Matheson
@jmatheson
Feb 29 2016 06:57
back to earlier in the thread, the thing i want to be more actively alerted for is when oref0 wants to either high temp above the limit or low temp below zero. because i should be taking action at that point.
or at least monitor more closely
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:58
Yeah, I've though about that some, could generate the config screens
Mark Wilson
@mddub
Feb 29 2016 06:58
@jmatheson: i don't think it's in the structured data, but the "reason" usually notes when the required temp was min'd or max'd, right?
Jason Calabrese
@jasoncalabrese
Feb 29 2016 06:59
The 2nd raw number is the un-scaled?
Mark Wilson
@mddub
Feb 29 2016 06:59
no, it's the most recent 2 readings by default, there's a slider to adjust
Jim Matheson
@jmatheson
Feb 29 2016 07:00
yes, it tells me under reason. but i really dont know that unless i am actively monitoring the logs or happen to drill in on the openaps pill in NS.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 07:01
Nice, didn't notice the option before
Think this will work great for me
Mark Wilson
@mddub
Feb 29 2016 07:02
yeah, really need that part of the reason to be more structured... then i could imagine putting the openaps pill in urgent state when that happens and triggering an ifttt notification
Jim Matheson
@jmatheson
Feb 29 2016 07:02
yeah.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 07:03
Yeah, loop needs to be able to ask for help
A way to generate notifications
Jim Matheson
@jmatheson
Feb 29 2016 07:06
200.gif
They are apparently going to be producing a small-form-factor industrial board soon, including Bluetooth and wifi
very interested to know how it would compare to the Edison power-consumption-wise
@ps2 ^^^^
Chris Oattes
@cjo20
Feb 29 2016 09:34
@oskarpearson that looks interesting
RPi3 is out - with WiFi and BLE integrated :)
JaysonEwer
@JaysonEwer
Feb 29 2016 15:09
@jmatheson LOL
Jason Calabrese
@jasoncalabrese
Feb 29 2016 15:19
Watch the rigs from the sky via my new hootoo
Jason Calabrese
@jasoncalabrese
Feb 29 2016 15:36
SSH via tunnels working too while rig is on the way to school
Kevin Wells
@wkcwells
Feb 29 2016 15:48
Finally sorted out my time zone issue. I somehow chaned the zoned report setups inadvertantly. Thanks for the help @ochenmiller @scottleibrand & @jasoncalabrese .
I need to get a new OpenAPS pump. I’m not getting much response from MedWow sellers. Any other good sources to check?
Jason Calabrese
@jasoncalabrese
Feb 29 2016 16:12
Did you see the emails for some medwow dealers? Either here yesterday or in the mmeowlink room
Kevin Wells
@wkcwells
Feb 29 2016 16:14
Nope - I can’t keep up in real time. :( Thanks. I’ll look.
Matthias
@ceben80
Feb 29 2016 16:57
Great....looping for around 30 hours without a break, working fantastic :wink:
Jason Calabrese
@jasoncalabrese
Feb 29 2016 17:01
:+1:
William Fallon
@inform880
Feb 29 2016 17:04

I'm getting this weird error near the end of my loop:

/usr/local/lib/node_modules/oref0/lib/bolus.js:162
  treatments.forEach(step);
             ^
TypeError: Object 2016-02-29T11:55:20-05:00 has no method 'forEach'
    at reduce (/usr/local/lib/node_modules/oref0/lib/bolus.js:162:14)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-normalize-temps.js:35:33)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

I'm 99% sure it's something in my upload-recent-treatments alias, as my basal graph is still not showing temp basals. What do you guys think?

Should mention: Everything else is working perfectly
Scott Leibrand
@scottleibrand
Feb 29 2016 17:32
Run that alias manually to confirm, then check the formatting of its inputs.
Rachel Sandlain
@audiefile
Feb 29 2016 17:40
Wow @mddub you've done a lot of work recently !
I'd second having eventual bg in the status. Maybe something like 4m,3.4u->106,1.8x23?
Jason Calabrese
@jasoncalabrese
Feb 29 2016 17:58
Having the basal activity glancable is so nice
I've been running it with raw and rig battery
And a bolus just showed up
Timing is nice, right after the pushover was cleared the watch was already current
Scott Leibrand
@scottleibrand
Feb 29 2016 19:00
Ok, I'm convinced. How do I install the latest?
Rachel Sandlain
@audiefile
Feb 29 2016 19:05
Pebble app needs developer mode enabled
Then download the pbw from the link in the read me
Configure to taste
Jason Calabrese
@jasoncalabrese
Feb 29 2016 19:17
Milos Kozak
@MilosKozak
Feb 29 2016 19:18
what app is on the phone?
Jason Calabrese
@jasoncalabrese
Feb 29 2016 19:18
Heidi won't let me post to Twitter while traveling
Ali Mazaheri
@amazaheri
Feb 29 2016 19:19
:)
Jason Calabrese
@jasoncalabrese
Feb 29 2016 19:19
Just the pebble app
Dana Lewis
@danamlewis
Feb 29 2016 19:21
Bringing a guinea pig on this trip was a good idea ;) https://twitter.com/danamlewis/status/704385774595268608
I love it, @mddub. (Even though you should still change your Twitter handle ;))
Scott Leibrand
@scottleibrand
Feb 29 2016 19:22
Is there any way to make the time font smaller when I reduce the size of its box?
Jim Matheson
@jmatheson
Feb 29 2016 19:27
@scottleibrand what was the process again to reduce the 2 hour dead zone? I just had to wait through my weekly dead zone and want to get rid of that. Can i just say new sensor on the receiver on a different day and then receiver vs G5 app just thinks it needs replacing at different times?
diabeticgonewild
@diabeticgonewild
Feb 29 2016 19:32
Urchin CGM is awesome!
@danamlewis is that Urchin CGM watchface (did they update it?!)
Dana Lewis
@danamlewis
Feb 29 2016 19:35
Yep, @mddub updated with more of his good work!
diabeticgonewild
@diabeticgonewild
Feb 29 2016 19:35
? Urchin is updated?
Oh, sorry I'm slow!
The handle function @ threw me off!
That's awesome!
I need to update!
Scott Leibrand
@scottleibrand
Feb 29 2016 19:37
@jmatheson not sure for G5, since it does BT pairing. Best bet might be to just hot swap transmitter to a new sensor between readings
Jim Matheson
@jmatheson
Feb 29 2016 19:38
not actually changing sensors
just trying to get past the app telling me it’s been a week so i need to break for 2 hours
Scott Leibrand
@scottleibrand
Feb 29 2016 19:41
With G4 each one can be restarted independently. Not sure that's possible with G5.
Since the calibration logic is now in the transmitter.
Jim Matheson
@jmatheson
Feb 29 2016 19:45
i see.
is that confirmed? (logic in transmitter)
Dana Lewis
@danamlewis
Feb 29 2016 19:48
Yes. Was in receiver before, now has to be able to do transmitter side since phone can be primary display
Scott Leibrand
@scottleibrand
Feb 29 2016 19:49
Calibrations can be entered from either app or receiver, right? Don't need to do both because they send it to transmitter over BLE.
Jim Matheson
@jmatheson
Feb 29 2016 19:56
yea, i think so. i did not have a receiver for the first month and have not really used it since. been playing with it this am though and it did not ask for BG after i entered it in the mobile app
bummer
guess no need to hot swap then unless i need to swap mid week for some reason
Jason Calabrese
@jasoncalabrese
Feb 29 2016 20:01
I thought there was a trick for the g5, something with putting the phone in airplane mode
Rachel Sandlain
@audiefile
Feb 29 2016 20:07
Meanwhile, you can take it as a reminder to back up your rig :wink:
Since you're already down
Jim Matheson
@jmatheson
Feb 29 2016 20:18
the pebble has arrive. gotta love amazon.
diabeticgonewild
@diabeticgonewild
Feb 29 2016 20:31

WTF Dexcom is telling me now my sensors are no longer approved because I have Medicare as primary and Aetna (completely private insurance) as secondary.

They paid for it last year, when Medicare denied it. I'm so angry.

Dexcom gave me the runaround to and pretty much treated me like dirt
Jason Calabrese
@jasoncalabrese
Feb 29 2016 20:38
They seem to be sending more and more to 3rd parties
Wonder if they'll stop selling direct completely
It was nice to be able to pick up directly from them, when we didn't want to wait for shipping
Jim Matheson
@jmatheson
Feb 29 2016 20:41
made it exactly 1 minute into my pebble setup before encountering problems. just stuck on an image of a watch and a lightning bolt. hopefully google will be my friend here.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 20:42
I've seen stuff like that setting up on iOS, uninstalling of killing the app seen to be the only fix
diabeticgonewild
@diabeticgonewild
Feb 29 2016 20:45
It was being covered and is covered by Aetna. It was just confirmned. Aetna is calling Dexcom.
I was crying and yelling. That's how upset I was. I said some things I shouldn't had said.
I didn't swear though, and nothing super bad that could get me into trouble.
I'm just not having that great of a day. Usually I can keep it together pretty well.
C-Ville
@C-Ville
Feb 29 2016 20:46
@diabeticgonewild I hope you told them at the beginning of the call you dont want that recorded for quality.... ;-)
diabeticgonewild
@diabeticgonewild
Feb 29 2016 20:46
LMAO@
They have to record everything. It protects both sides.
Jim Matheson
@jmatheson
Feb 29 2016 20:49
thanks @jasoncalabrese that worked
Jason Calabrese
@jasoncalabrese
Feb 29 2016 20:51
Good, happens also everything I need to reinstall my wife's phone, haven't seen it on Android
*almost every time..
diabeticgonewild
@diabeticgonewild
Feb 29 2016 20:53
Aetna couldn't get ahold of Dexcom cause of the long hold times. So I am about to talk to them, with a reference number in hand.
I'm almost out of sensors.
They make me so angry. No accountability.
William Fallon
@inform880
Feb 29 2016 20:54
@scottleibrand I ran that alias and got the same error, so I know that's the problem. I looked at the alias definition and it looks fine, I think:
upload-recent-treatments ! bash -c "openaps format-latest-nightscout-treatments && test $(json -f upload/latest-treatments.json -a created_at eventType | wc -l ) -gt 0 && (ns-upload $NIGHTSCOUT_HOST $API_SECRET treatments.json upload/latest-treatments.json ) || echo \"No recent treatments to upload\""
diabeticgonewild
@diabeticgonewild
Feb 29 2016 21:01
Now they are saying the issue is that I need to go through a 3rd party distributor....
I need to go to bed. I'm really tired and I think I'm high.
Jason Calabrese
@jasoncalabrese
Feb 29 2016 21:04
Yup, that's what they made us do
Heard it from others too
Rachel Sandlain
@audiefile
Feb 29 2016 21:07
@jmatheson cgm in the cloud is great for basic pebble set up, probably at least one post in the group with that exact problem. Try searching. Post if you can't figure it out or find info
diabeticgonewild
@diabeticgonewild
Feb 29 2016 21:07
@jasoncalabrese I don't know why they make it so hard to get sensors.
But yeah I'm about to fall asleep. Good end to my temper tantrum....
Jason Calabrese
@jasoncalabrese
Feb 29 2016 21:08
I blame insurance
But also easier for them to work with a few 3rd parties and avoid insurance crap completely
diabeticgonewild
@diabeticgonewild
Feb 29 2016 21:11
Agreed.
Mark Wilson
@mddub
Feb 29 2016 21:26
@jasoncalabrese nice layout, it's so great to see arrangements i never would have come up with
Jason Calabrese
@jasoncalabrese
Feb 29 2016 21:32
Nice to be able to move things around, played with it for a while
Mark Wilson
@mddub
Feb 29 2016 21:38
@danamlewis @scottleibrand: thanks for the mention, glad you're enjoying it :D working on making time font size configurable soon
Scott Leibrand
@scottleibrand
Feb 29 2016 21:44
Just updated bin/oref0-html.js to output the info as plain text above the HTML tags. probably isn't valid HTML, but it displays fine on the watchface as well as in browser. :)
Dana Lewis
@danamlewis
Feb 29 2016 21:44
:D
Scott Leibrand
@scottleibrand
Feb 29 2016 21:45
configured my face to get 4 lines of text output: basically everything except the "reason" field (for that, I have to open Cards for Pebble)
Mark Wilson
@mddub
Feb 29 2016 21:45
i had it showing 5 lines for a while, but slowly reduced it to a single status line as i became more comfortable with how it works
i can see how you'd still want a lot of context whenever you're iterating on the algorithm
i also shortened long words like "eventual" ;)
Scott Leibrand
@scottleibrand
Feb 29 2016 21:48
"XXX+0 13:41, 2.6U->84-141, Tmp: 30m@1.1U/hr at 13:44: None"
Could get that down to 3 lines, or maybe 2...
do you have a way to do "minutes ago" client-side?
I'm printing timestamps because I don't trust comms to my server
Mark Wilson
@mddub
Feb 29 2016 21:50
not right now, but it's something that's definitely needed
i think i'll add a custom url option which is "custom json", formatted like cards for pebble, but with support for a timestamp field that can be used to display recency
Jim Matheson
@jmatheson
Feb 29 2016 21:53
my second shot at a layout @mddub
Mark Wilson
@mddub
Feb 29 2016 21:53
alternatively, if you're uploading openaps entries to devicestatus collection, i'm experimenting with a one-line openaps summary option which uses that
Jim Matheson
@jmatheson
Feb 29 2016 21:53
IMG_4482.jpg
no photo of first one, but had status up top in white then clock and huge graph vertically with BG on right
Mark Wilson
@mddub
Feb 29 2016 21:55
@jmatheson: nice! looks like you'd be happier with a smaller time, too?
Jim Matheson
@jmatheson
Feb 29 2016 21:55
yea. i tried removing it since i dont wear a watch but then felt like i would keep looking at it to see what time it was anyway
i also tapped my graph out at 200, am sure i will want to change it if i am in the 2’s but most of the time i’d rather have the vertical room.
also might be good to allow time to be the sidebar.
but not sure if i’d end up using that or not, but i wanted to try it
Mark Wilson
@mddub
Feb 29 2016 21:57
hmm, that's an interesting idea, would have to be formatted in a clever vertical way
Jim Matheson
@jmatheson
Feb 29 2016 21:59
it’s too early to tell how much i will focus on the numbers vs the graphs. i want to figure out how to do custom URL at some point. still have interest in projected BG but will take some work
Mark Wilson
@mddub
Feb 29 2016 21:59
next meetup i'd be happy to work on that with you
i wrote a script with chris for his openaps-predict-based loop which creates a summary text file and commits it to bitbucket, no need for your own server
Jim Matheson
@jmatheson
Feb 29 2016 22:00
nice. i think we should try to target 1 or 2 things to accomplish as a group for each meetup.
Mark Wilson
@mddub
Feb 29 2016 22:00
for now could probably just grep bits of suggested.json
Jim Matheson
@jmatheson
Feb 29 2016 22:01
yes. for a first pass would be a good hack.
William Fallon
@inform880
Feb 29 2016 22:14
This message was deleted
William Fallon
@inform880
Feb 29 2016 22:21

I don't know what to do, I'm thinking about starting over. I don't understand why I'm getting this error:

/usr/local/lib/node_modules/oref0/lib/bolus.js:162
  treatments.forEach(step);
             ^
TypeError: Object 2016-02-29T11:55:20-05:00 has no method 'forEach'
    at reduce (/usr/local/lib/node_modules/oref0/lib/bolus.js:162:14)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-normalize-temps.js:35:33)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

when I use the command format-latest-nightscout-treatments. I've checked the alias definition, it's the same one from the documentation. I know I'm generating the reports it needs. I've looked through bolus.js in the repo, but without compiling and spending a lot of time looking at the other code, I don't know or understand most of it. (I do most of my programming in C++ and Labview). Does anybody know what I might have missed?

PieterGit
@PieterGit
Feb 29 2016 22:35
Did anybody give http://www.pimodulescart.com/shop/item.aspx?itemid=24 (UPS PIco Uninterruptible Power Supply
with Peripherals and I2C control Interface) a try for openaps? It has a LiPO Battery 450 mAh battery, but can be ordered with a PIco LiPO Battery 3000mAh as well... Just found it on a dutch tweakers site in a thread discussing the raspberry pi 3.
William Fallon
@inform880
Feb 29 2016 22:37
Here's the text from my main loop alias: http://pastebin.ca/3385073
Ben West
@bewest
Feb 29 2016 23:08
@inform880, openaps alias show --json loop?
at some point in your loop, you're running oref0-normalize-temps, and the input is not what the tool expects
Jim Matheson
@jmatheson
Feb 29 2016 23:15
just got a first pass going @mddub grep -E 'eventualBG|mealAssist' ~/aps/control/enacted.json | sed 'N;s/\n/ /' | sed -E -e 's/,|:|\"//g' | awk '{print "eBG="$2" ma="$4}' > pebble.txt | git push
now need to figure out what else i want to show and in what format
Mark Wilson
@mddub
Feb 29 2016 23:19
@jmatheson: nice! i'd suggest including the timestamp of the last successful loop too
i use a shortened version of the modification time of suggested.json (stat -c %y enact/suggested.json)
Jim Matheson
@jmatheson
Feb 29 2016 23:20
i was going to ask what the best way to determine last successful loop
Ben West
@bewest
Feb 29 2016 23:22
without getting to much into weeds, how do you define success?
if it's working but you can't tell (no uploading or whatever) is that still success?
Jim Matheson
@jmatheson
Feb 29 2016 23:22
that is what i am wondering
Ben West
@bewest
Feb 29 2016 23:22
I've been thinking there might be two separate/independent things happening: acting as NS uploader 2.0, simply unify all the data
Jim Matheson
@jmatheson
Feb 29 2016 23:22
i care about both
Ben West
@bewest
Feb 29 2016 23:23
and 2.) actually maintaining control/automation
Mark Wilson
@mddub
Feb 29 2016 23:23
do you often have connectivity issues? i basically always assume it has upload ability at home and the office, so stale last success time means the loop failed to finish the 'suggested' report
Ben West
@bewest
Feb 29 2016 23:23
yeah, suggested is a good test
Jim Matheson
@jmatheson
Feb 29 2016 23:24
for me right now if i lose connection (which i do more than i want) i am screwed anyway.
Ben West
@bewest
Feb 29 2016 23:24
maybe should add looped_at: <iso> to suggested
then you can use json -f suggested.json looped_at
Mark Wilson
@mddub
Feb 29 2016 23:25
until then, maybe something like date --date=@`stat -c %Y enact/suggested.json` +%H:%M?
Ben West
@bewest
Feb 29 2016 23:27
yeah, seems good
Mark Wilson
@mddub
Feb 29 2016 23:28
@bewest i mentioned these scripts i use last night, would really prefer this instrumentation to happen at the openaps level but not sure what it should look like/where it should log to
maybe something like openaps instrument-alias <alias> <something to do with stdout/stderr on exit 0> <something to do with stdout/stderr on exit 1>
Ben West
@bewest
Feb 29 2016 23:28
ah nifty
hmm, the summarize thing can be made into contrib/plugin/use
if summarize is normal thing, only non-openaps thing is scp
seems reasonable to assume there's an openaps send-backup alias that can be no-op or scp or something
for LOOP_STATE, you might find it easier to do:
cat <<EOF | json
{ "foo": $MY_SUCCESS_FOO,
 // ...
}
EOF
Mark Wilson
@mddub
Feb 29 2016 23:34
ah nice, thanks for that
Ben West
@bewest
Feb 29 2016 23:34
might make escaping easier
Mark Wilson
@mddub
Feb 29 2016 23:34
i'm not very good at bash, much worse when writing it in vanilla vi on my pi
Ben West
@bewest
Feb 29 2016 23:34
<3 inline heredocs
yeah, I can barely operate on the pi
that might be it's own oref0-loop-state type of tool
then, this script just needs to know that there are aliases called, preflight,monitor-cgm, etc...
for ns-upload, I greatly prefer setting up ns-upload as openaps device
the hostname and the secret gets saved in the extra ini
makes rest of args provided unique to the specific upload without depending on env variables that may or may not be set up
Mark Wilson
@mddub
Feb 29 2016 23:39
eh, i prefer to keep those secrets defined in env by the bash script that kicks off the loop since they're shared among different steps
Ben West
@bewest
Feb 29 2016 23:39
except when you're setting it up
or maintaining
then someone may be debugging and forget to set env
Mark Wilson
@mddub
Feb 29 2016 23:40
right, debugging is harder, but i'm debugging those pretty rarely
then again, explicit secrets in the ini is probably a conceptually easier setup for most users
Ben West
@bewest
Feb 29 2016 23:41
yeah, we can have a tool edit it
specifically, the openaps import tool can be used by script specifically to maintain that one thing
Mark Wilson
@mddub
Feb 29 2016 23:42
that too, it's part of openaps
Ben West
@bewest
Feb 29 2016 23:42
whereas env will always require special user involvement
try this:
now that we have bunch of loops
I'm looking at expomrting many of the
would love to see this output from bunch of people:
for type in vendor device alias report ; do openaps $type show --json ; done | json -g
you can openaps import this into brand new repo :-)
so I'd like to start working on tools that automate the "shape/form" of our existing loops, now that we have them
could have nice little app that spits out json to import
Mark Wilson
@mddub
Feb 29 2016 23:45
nice!! nit: i think it should go vendors, devices, reports, aliases
Ben West
@bewest
Feb 29 2016 23:45
yeah, feel free to tweak
think openaps-import is still in dev
you'll notice gotcha exporting alias inis, too
only as INI
json is fine
Mark Wilson
@mddub
Feb 29 2016 23:47
hmmmmm
wouldn't be much work to parse a loop into a graph with this
Ben West
@bewest
Feb 29 2016 23:47
yeah :-D
maybe, it's kind of tough
mine includes schedules as rrule rfc, too:
$ openaps schedule show --json | json -g
[
  {
    "main": {
      "phases": "",
      "rrule": "RRULE:FREQ=MINUTELY;INTERVAL=5"
    },
    "type": "schedule",
    "name": "main"
  },
  {
    "handle-weekends": {
      "phases": "",
      "rrule": "RRULE:BYMINUTE=0;BYDAY=FR,SA;BYHOUR=6;FREQ=HOURLY;INTERVAL=6"
    },
    "type": "schedule",
    "name": "handle-weekends"
  }
]
Mark Wilson
@mddub
Feb 29 2016 23:49
report -> device -> vendor comes for free, for alias dependencies you can make assumptions about the commands
Ben West
@bewest
Feb 29 2016 23:50
I'm going to introduce a new do command, which can report on the things it's doing... so you can compose alias and know which ones are running still
so lot of the aliases would change from ! bash -c into do ...
Mark Wilson
@mddub
Feb 29 2016 23:51
what would phases look like?
Ben West
@bewest
Feb 29 2016 23:51
not 100% sure
might be same interface as do
so think: do preflight monitor-cgm all-pump suggest validate enact report
so maybe phases would just be preflight monitor-cgm ...
they'd generate system-wide events, but that's not especially interesting unless there's something somewhere that can be told "when this event happens on that thing, also do this thing"
so simultaneously working on eg, a dexcom daemon, it just sends new events when new bg comes in
so in that scenario you might want to say openaps signal add dexcom://NewGlucose do refresh suggest validate enact report
but that seems a little further off still
Mark Wilson
@mddub
Feb 29 2016 23:55
so commands are triggered by signals and/or recurrence rules
Ben West
@bewest
Feb 29 2016 23:55
aha, good question
so the recurrence rules actually just cause events
the daemon scans schedules, and arms triggers
but the triggers just send events
Mark Wilson
@mddub
Feb 29 2016 23:56
ah, nice
Ben West
@bewest
Feb 29 2016 23:56
and by default they go onto the Do queue
and by default they map to alias names
that can be easily modified by giving more significance to phase instead or something
Mark Wilson
@mddub
Feb 29 2016 23:57
my loop polls dexcom for glucose then checks ns if that fails, trying to imagine how i'd model that with events
Ben West
@bewest
Feb 29 2016 23:58
well in meantime, we need to make these lower bits more like lego
Mark Wilson
@mddub
Feb 29 2016 23:58
i guess a check-ns-if-last-dex-glucose-is-stale recurrence
Ben West
@bewest
Feb 29 2016 23:58
we now have better idea of what it takes to validate and get data from a device than year ago
we can use the new import stuff to make it easier to get all that stuff done
or provide new uses/tools that just do right thing
hmm, I think with dexcom daemon, it would throw events when dexcom connects/disconnects