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

30th
Jun 2016
Paul Martin
@Spazholio
Jun 30 2016 00:31 UTC
I'd prefer emacs to vi :P
Them’s fightin’ words.
David Cintron
@loudestnoise
Jun 30 2016 01:02 UTC
Once you learn vi/vim it's the jam. I know people who love emacs. I just learned vi first and never went back
Scott Leibrand
@scottleibrand
Jun 30 2016 01:06 UTC
I've heard emacs is a pretty good OS. ;-)
Chris Oattes
@cjo20
Jun 30 2016 01:09 UTC
I haven't actually used emacs in about 8 years :P
@scottleibrand sorry for that long commit/merge thing in my pull request, I'll start putting things in branches from now on
Martin Haeberli
@mhaeberli
Jun 30 2016 01:16 UTC
@bewest - sorry to lean on you, but
```
openaps use tz rezone —astimezone
so what arguments do I use, say, for Pacific?
Ben West
@bewest
Jun 30 2016 01:17 UTC
if that's your system's timezone then you don't need to specify, but it'd be --timezone PST or --timezone PDT
Martin Haeberli
@mhaeberli
Jun 30 2016 01:18 UTC
k thx. @bewest - any thoughts on why openaps use ns shell latest-treatment-time returns 0 ?
is a meal bolus not a treatment?
Ben West
@bewest
Jun 30 2016 01:19 UTC
it will adjust each record's --date field, if you use --astimezone it will correctly shift the hours as well as the zone
without any --timezone, it uses the system's locale
(not the input's)
Martin Haeberli
@mhaeberli
Jun 30 2016 01:19 UTC
cool - i’ll try that, too
Ben West
@bewest
Jun 30 2016 01:20 UTC
ah, yes
This message was deleted
This message was deleted
actually, it's doing openaps use ns shell get treatments.json'?find[enteredBy]=/openaps:\/\//&count=1' | json 0
and that's why, your enteredBy says rileylink
enteredBy": "rileylink://RileyLink" is what yours said
once you start pushing openaps treatments in, it'll come back with a more recent date
Martin Haeberli
@mhaeberli
Jun 30 2016 01:24 UTC
ok, thx - now I have to RTFM re pushing openaps treatments
openaps use ns shell get treatments.json'?find[enteredBy]=/rileylink:\/\//&count=1' | json 0
{
  "eventType": "BG Check",
  "created_at": "2016-06-29T23:37:27Z",
  "glucoseType": "Meter",
  "enteredBy": "rileylink://RileyLink",
  "timestamp": "2016-06-29T23:37:27Z",
  "units": "mg/dL",
  "_id": "5774644893a430e19deb4b0a",
  "glucose": 83
}
(so, by the way, why are timestamps still Zulu?)
slowly learning how to use markdown in gitter … :-)
Ben West
@bewest
Jun 30 2016 01:25 UTC
they're zoned which is good
openaps use ns shell get treatments.json'?find[enteredBy]=/rileylink:\/\//&count=1' | openaps use tz rezone --astimezone --date timestamp --date created_at -
oops
Martin Haeberli
@mhaeberli
Jun 30 2016 01:25 UTC
cute!
Ben West
@bewest
Jun 30 2016 01:26 UTC
actually, default might work too
Martin Haeberli
@mhaeberli
Jun 30 2016 01:26 UTC
oops ? that worked!
Ben West
@bewest
Jun 30 2016 01:26 UTC
yeah
so that should have "shifted" it to your local zone
Martin Haeberli
@mhaeberli
Jun 30 2016 01:26 UTC
openaps use ns shell get treatments.json'?find[enteredBy]=/rileylink:\/\//&count=1' | openaps use tz rezone --astimezone -
[
  {
    "eventType": "BG Check", 
    "created_at": "2016-06-29T16:37:27-07:00", 
    "glucoseType": "Meter", 
    "enteredBy": "rileylink://RileyLink", 
    "timestamp": "2016-06-29T16:37:27-07:00", 
    "units": "mg/dL", 
    "_id": "5774644893a430e19deb4b0a", 
    "glucose": 83
  }
]
Ben West
@bewest
Jun 30 2016 01:27 UTC
although, FWIW, the python stuff is all zone aware or not, so it's fine so long as a zone is specified
the zones don't have to match, that is, in the python stuff, they just have to be there
Martin Haeberli
@mhaeberli
Jun 30 2016 01:27 UTC
k
Ben West
@bewest
Jun 30 2016 01:28 UTC
so usually for those two steps, we'd add a report for each
so openaps report add example-ns-glucose-raw.json JSON ns shell get treatments.json'?find[enteredBy]=/rileylink:\/\//&count=1' would define/save config for example-ns-glucose-raw.json, and then we could set up the zoning with openaps report add ns-glucose-raw.json JSON tz rezone --astimezone example-ns-glucose-raw.json (creating ns-glucose-raw.json which depends on the output from the previous step)
and since it's treatments, probably name it something not glucose
Martin Haeberli
@mhaeberli
Jun 30 2016 01:32 UTC
so I just created (incorrectly) “glucose” reports, then created “treatments” per your hint. any easy way to delete reports?
(the glucose ones)
Paul Martin
@Spazholio
Jun 30 2016 01:37 UTC
So I’m seeing stuff on the FB group about a couple people putting their sensors on their legs, and I’m curious if anyone here has tried doing that before?
David Cintron
@loudestnoise
Jun 30 2016 01:43 UTC
Crazy talk that is
Paul Martin
@Spazholio
Jun 30 2016 01:44 UTC
And it was REALLY close to the ankle, not up on the thigh. The few people who have done it say they get crazy accurate readings. Is that because it’s closer to the muscle or something?
Ben West
@bewest
Jun 30 2016 01:50 UTC
@mhaeberli yeah, openaps report remove report-to-remove.json
David Cintron
@loudestnoise
Jun 30 2016 01:53 UTC
@Spazholio I’ve only ever done arms and abdomen. I did try and put an OmniPod on my lower back once. It didn’t go well
Paul Martin
@Spazholio
Jun 30 2016 01:57 UTC
My last arm install went horribly. Put it too high up, so moving my arm pulled on the tape. Oops.
Sarah Hodson Grady
@shgrady
Jun 30 2016 01:59 UTC
Muscle and blood crazy accurate, though Omnipod in muscle gets more painful as the 72 hours wears on, Dexcom does not bother me at all in muscle @Spazholio
Paul Martin
@Spazholio
Jun 30 2016 02:00 UTC
Ok, so that’s one in favor, and one “hell no”. =)
Sarah Hodson Grady
@shgrady
Jun 30 2016 02:04 UTC
Yeah, it's definitely for me about where I will not knock it off, but I have been aiming for veins lately.
Paul Martin
@Spazholio
Jun 30 2016 02:05 UTC
I like your style. =)
Have you tried on the leg as well? If so, specifically where?
Sarah Hodson Grady
@shgrady
Jun 30 2016 02:05 UTC
Been thinking about my forearm because you have a nice vein on the underside.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 30 2016 02:08 UTC
I’m going to guess that "openaps size (0) is less than 64 and not 15, which may cause an error.” during Preflight is mainly due to Carelink dropping out. I practically have to be on top of this thing to get it to work properly.. :worried:
Sarah Hodson Grady
@shgrady
Jun 30 2016 02:09 UTC
I have been more of a pump on the leg person because well the Omnipod is bigger, but since switching to Medtronic getting ready to try again, honestly I tried my thighs a couple times but always seem to forget it's there and being a girl....ripped it off.

itsuckstopeesittingdown

And hashtag makes giant, funny.
Paul Martin
@Spazholio
Jun 30 2016 02:19 UTC
“It suck stop peeing sitting down” is how I read it initially.
David Cintron
@loudestnoise
Jun 30 2016 02:21 UTC
LOL
Lynne Butts
@flutelynne_twitter
Jun 30 2016 02:34 UTC
@Spazholio I have used the top of the thigh with success, and the back of the arm for over 8-9 years. Mostly the arms. Use a door jamb to push up the back of your arm to access it easier, or a counter or chair.
Paul Martin
@Spazholio
Jun 30 2016 02:35 UTC
@flutelynne_twitter Last time I did it (successfully) I just did it in the mirror. Held my arm over my head, and did the deed.
Lynne Butts
@flutelynne_twitter
Jun 30 2016 02:36 UTC
I wouldn't be coordinated enough to do that.
Dana Lewis
@danamlewis
Jun 30 2016 02:39 UTC
If you insert downward, it's a lot easier to insert and detach
I do the back of my arms without needing to prop on anything. But, I'm also ambidextrous so maybe that influences ease of insertion?
There's some good YT videos in arm insertions if anyone needs them
Lynne Butts
@flutelynne_twitter
Jun 30 2016 02:41 UTC
I like the narrower part on top so the water drains from the transmitter a little better. But maybe it doesn't matter.
iananders
@iananders
Jun 30 2016 03:12 UTC
upgraded my G4 to the G5 and my nightscout stopped working - so i created an entire new nightscout instance but am having trouble getting the dev branch to work - the master branch works fine...any ideas?
David Cintron
@loudestnoise
Jun 30 2016 03:20 UTC
@iananders are you using the G5 app or receiver?
how did you get your BGVs to Nightscout before?
iananders
@iananders
Jun 30 2016 03:20 UTC
switching from the G4 by receiver through USB to (hopefully) G5 through app/share
oh sorry - was talking about my openaps - i had nightscout also going through the share bridge with my G4 share
Ben West
@bewest
Jun 30 2016 03:25 UTC
@loudestnoise if you're using openaps use oref0_glucose --no-raw with g5, you should be able to zone it and upload it to NS entries.json
I'm doing that currently, it's in my aliases
David Cintron
@loudestnoise
Jun 30 2016 03:41 UTC
@iananders Ah ok, I thought you were talking about Nightscout itself, I gotcha
iananders
@iananders
Jun 30 2016 03:41 UTC
i am actually - can't seem to get the dev branch (for my openaps setup) to work
deploying the dev branch gives me a blank nightscout black screen with dashes, deploying the master pulls in my data properly
David Cintron
@loudestnoise
Jun 30 2016 03:51 UTC
sometimes I notice you have to give it a few minutes and it will load. My assumption is it’s reaching your mlab DB
Personally I had an issue with a new Nightscout install was refusing to connect to my mlab db, so I just made a new one
iananders
@iananders
Jun 30 2016 03:54 UTC
hm it's interesting you suggest that - when i had the dev branch deployed i was getting nothing into mlab - and let it run for several hours - but now switching to master has data flowing like normal into mlab, weird right?
this is on a new mlab database too
David Cintron
@loudestnoise
Jun 30 2016 03:55 UTC
yeah, I spent a couple days trying to figure it out and just gave up and made the new db
I tried figuring out how to run mongo myself, but gave up quickly on that. I’m self hosting my Nightscout though
Garrett Webb
@garetis
Jun 30 2016 04:14 UTC
Um.. I clicked the "logarithmic view" on my NS just to see what it would look like, and the whole thing froze and went from everything being fine to the "- - -" . Has that happened to anyone before? Is there a way to reset NS?
iananders
@iananders
Jun 30 2016 04:27 UTC
@loudestnoise weird - redeploy finally worked. super odd.
David Cintron
@loudestnoise
Jun 30 2016 04:28 UTC
:+1:
Greg Scull
@komby
Jun 30 2016 05:01 UTC
Anyone see this ? raise InvalidPacketReceived("Error decoding FourBySix packet")
iananders
@iananders
Jun 30 2016 05:59 UTC
if i am trying to setup a G5+ edison + TI stick setup, and am currently trying to pull glucose data from nightscout, can i refer to "ns" as my cgm device (like i was setting up a pi system with my receiver plugged in directly)?
ryanchen26
@ryanchen26
Jun 30 2016 06:19 UTC
This message was deleted
Sulka Haro
@sulkaharo
Jun 30 2016 08:58 UTC

@Spazholio yeah, you need to add a preference. You can call

sulka$ oref0-get-profile --export-defaults
{
    "max_iob": 0,
    "type": "current",
    "max_daily_safety_multiplier": 3,
    "current_basal_safety_multiplier": 4
}

to see what the current preferences are

The magic values you want to add and tweak are the multipliers

You can also call

oref0-get-profile --update-preferences preferences.json > preferences_new.json

to have the script spew out an update file for you, with the new prefs added

I recall you'll want to set both max_daily and current_basal multiplier up by one
Ben West
@bewest
Jun 30 2016 09:24 UTC
nice, is that using yargs?
Matthias
@ceben80
Jun 30 2016 10:25 UTC

I have installed curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -on ubilinux

Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  nodejs
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'nodejs' instead of 'npm'
git is already the newest version.
python is already the newest version.
python-dev is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Conflicts: nodejs-legacy
E: Unable to correct problems, you have held broken packages.
bash: line 13: openaps: command not found

any idea :question:

Matthias
@ceben80
Jun 30 2016 11:04 UTC
RTFM....forgot some stuff :smile: - now openaps is installed :tada:
/home/edison/src/oref0/node_modules/oref0 -> /usr/local/lib/node_modules/oref0 -> /home/edison/src/oref0
installed /etc/udev/rules.d/80-medtronic-carelink.rules
installed /etc/udev/rules.d/80-dexcom.rules
Installing bash completion script /etc/bash_completion.d/python-argcomplete.sh
openaps 0.1.6-dev
edison@ubilinux:~$
Paul Martin
@Spazholio
Jun 30 2016 12:22 UTC
@sulkaharo I already did that. Does the preferences.json need to be included somewhere in my reports though? I still saw myself getting capped at one point, even after running the --export-defaults and creating the preferences.json file.
Sulka Haro
@sulkaharo
Jun 30 2016 12:23 UTC
Yes - it's a replacement for max_iob.json for get-profile
Paul Martin
@Spazholio
Jun 30 2016 12:36 UTC
Ah, perfect. Thank you.
Sulka Haro
@sulkaharo
Jun 30 2016 12:40 UTC
Note you still need the max iob setting in there as well
Paul Martin
@Spazholio
Jun 30 2016 13:14 UTC
Gotcha.
Paul Martin
@Spazholio
Jun 30 2016 13:34 UTC
Question - my preflight's been failing for the last hour or so (all 0/-99 readings) out of the blue. No idea why. I have an Edison with a TI via/serial rig and I've already tried rebooting it. Any ideas what might be going on?
Looks like a full power down and start up (not restart) of the Edison may have done the trick.
Scott Leibrand
@scottleibrand
Jun 30 2016 13:55 UTC
@sulkaharo @Spazholio I would leave the max current basal multiplier at 4 and just raise the max daily basal multiplier to 4 to start with.
@Spazholio I sometimes see that, and only a full halt and power cycle will fix. Probably a big in subg_rfspy, but hard to pin down.
Sulka Haro
@sulkaharo
Jun 30 2016 13:58 UTC
Depends on what caps the basal, though?
Scott Leibrand
@scottleibrand
Jun 30 2016 13:59 UTC
Yeah. If you're only seeing issues when current basal is really low, you'd want to change that. We generally run into the max daily cap first though.
Paul Martin
@Spazholio
Jun 30 2016 14:02 UTC
@scottleibrand - agreed, I bumped them both to be 4, but I didn't replace it in my scripts yet.
Does anyone who uses a Pebble watch and the Nightscout interface ever get the "RELOAD/RESTART" error message on there?
Sulka Haro
@sulkaharo
Jun 30 2016 14:27 UTC
Wife uses it, gets it all the time
Paul Martin
@Spazholio
Jun 30 2016 14:28 UTC
So...what am I meant to RELOAD and/or RESET?
NS was functioning fine. Do I have to restart the watch?
Chris Oattes
@cjo20
Jun 30 2016 14:41 UTC
blob
interesting levels of basal precision
I'll fix that when I get home
Dan Piessens
@dpiessens
Jun 30 2016 14:48 UTC
@bewest In the nightscout autoconfig, which report prevents duplicate treatments from being uploaded. I was looking into the performance of my NS instance and realized it's bad because almost all the pump entries are being uploaded with every loop
GabeA23
@GabeA23
Jun 30 2016 14:51 UTC
My rigs not totally set up yet but I'm on the market for a smart watch. Any recommendations? It seems like most people go with the pebble. Anyone go with the Apple Watch? I do have an iPhone...
Sarah Hodson Grady
@shgrady
Jun 30 2016 14:55 UTC
@GabeA23 you might look at the CGM in the cloud fb page, this gets discussed daily. There are a lot of options for pebble watchfaces, and the Careportal app, cards for pebble. Pebbles used to be kind of a pain for iPhones because you could not control the notifications independently from the phone, but pretty sure that was fixed.
GabeA23
@GabeA23
Jun 30 2016 14:59 UTC
@shgrady thanks!
Sarah Hodson Grady
@shgrady
Jun 30 2016 15:02 UTC
no prob, nightly debate at my house whether my S7 and pebble time round are cooler(maybe not) but more functional(for me for sure) than my husband's iPhone/iWatch @GabeA23
Dana Lewis
@danamlewis
Jun 30 2016 15:02 UTC
@GabeA23 I've only seen one person build an Apple Watch app that pulls in OpenAPS info and they haven't released to open source yet. At this point I'd go with a pebble if you want flexibility for showing OpenAPS and BG info in various ways
Lynne Butts
@flutelynne_twitter
Jun 30 2016 15:25 UTC
@Spazholio Sometimes the reload/restart only needs a middle button hit, then the back button to reload. Other times, one has to forget the watch on the phone and the pebble, and reload it.
Paul Martin
@Spazholio
Jun 30 2016 15:41 UTC
"forget the watch on the phone and the pebble" <-- can you elaborate? I don't want to have to remove the watchface and set everything up again.
Dana Lewis
@danamlewis
Jun 30 2016 15:43 UTC
forget it in bluetooth, @Spazholio
go to bluetooth and tap it and select “forget device"
Paul Martin
@Spazholio
Jun 30 2016 15:43 UTC
Ugh. Thankfully, I didn't have to do that last night. It went off at 2am and I just switched things around a bit until it came back.
Dana Lewis
@danamlewis
Jun 30 2016 15:43 UTC
but you won’t have to set up everything again
Paul Martin
@Spazholio
Jun 30 2016 15:44 UTC
Possibly silly question - which device do I forget? Both of them?
Each of my Pebbles have two BT connections - one "regular" and the other BLE.
Dana Lewis
@danamlewis
Jun 30 2016 15:50 UTC
usually if you forget one, the other goes
Scott Leibrand
@scottleibrand
Jun 30 2016 16:02 UTC
I almost never have to completely forget a BT device. usually toggling airplane mode (on either/both the phone and/or the watch) and if necessary restarting the watch is sufficient
and I sometimes need to open the Pebble app on the phone
Paul Martin
@Spazholio
Jun 30 2016 16:08 UTC
Ok, gotcha. Just flip lots of things around until the Pebble sorts itself out. =)
Scott Leibrand
@scottleibrand
Jun 30 2016 16:12 UTC
pretty much. :)
Paul Martin
@Spazholio
Jun 30 2016 17:11 UTC
Ok, pulled pork. You MAYBE had a teaspoon of BBQ sauce in you - there's no cause for an 80 point rise. Simmer down.
Lynne Butts
@flutelynne_twitter
Jun 30 2016 18:27 UTC
Maybe there were more carbs in the marinade or dry rub while it cooked.
Paul Martin
@Spazholio
Jun 30 2016 18:54 UTC
Or maybe my body's correcting itself from the persistent lows I had 2 days ago. Or cosmic rays. For these one-offs, I've given up trying to figure out why - I just ride 'em out now. =)
Lynne Butts
@flutelynne_twitter
Jun 30 2016 19:07 UTC
Yes. Sometimes a rough ride.
iananders
@iananders
Jun 30 2016 19:58 UTC
'''pi@raspberrypi:~/Xopenaps $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Thu Jun 30 2016 12:31:00 GMT-0700 (PDT) vs Thu Jun 30 2016 12:56:49 GMT-0700 (PDT)
'''
still having trouble with the above - i have nightscout and system time on the same time zone
Jason Wittmer
@jbwittmer
Jun 30 2016 20:09 UTC
This message was deleted
This message was deleted
This message was deleted
This message was deleted
Sarah Hodson Grady
@shgrady
Jun 30 2016 20:53 UTC
alien probes are clearly made of sugar, why doctors have never found them @Spazholio
Paul Martin
@Spazholio
Jun 30 2016 21:24 UTC
I pay those aliens good money to get probed, and this was NOT part of the deal. I will be having a VERY stern talk to them.
iananders
@iananders
Jun 30 2016 21:45 UTC
ok fixed my suggested.json over some syntax issues - anyone here willing to talk through the enact logic?
Matt Walker
@walker0
Jun 30 2016 22:09 UTC
@Spazholio are you accounting for the protein in your equivalent carb count? I find I have to pay a lot of attention to it especially after cutting out some carbs
Paul Martin
@Spazholio
Jun 30 2016 22:17 UTC
@walker0 Sometimes yes, sometimes no. It’s the damnedest thing - sometimes they affect me, sometimes they don’t. And admittedly, I didn’t today, but I didn’t have THAT much protein. I usually only have to do that when I have a LOT of protein.
Paul Dickens
@thebookins
Jun 30 2016 22:47 UTC
Hi all, trying to get the loop running with a 712, and got an error ("byte array index out of range" from memory, or something like that) on invoking monitor/status.json. Is this one of the reports that needs to be hard-coded? What's the consequence of not knowing the status (e.g. if the pump is in the middle of a bolus)?
Jason Calabrese
@jasoncalabrese
Jun 30 2016 22:52 UTC
I think you can read the status, but not carb ratios and some other settings
Paul Dickens
@thebookins
Jun 30 2016 22:56 UTC
thanks @jasoncalabrese, I guess something else must be causing the error - will have another go tonight
Dana Lewis
@danamlewis
Jun 30 2016 23:22 UTC
@thebookins did you get it more than once? sometimes I get that even with working rigs
Matt Walker
@walker0
Jun 30 2016 23:25 UTC
@Spazholio my general rule is 1/3 to 1/2 protein as equivalent carbs, you'll have to figure it out for yourself but I've found it makes a big difference
Paul Dickens
@thebookins
Jun 30 2016 23:25 UTC
@danamlewis yeah a couple of times, from memory it had something to do with the "bolusing" field
so it should work on the 712?
Paul Martin
@Spazholio
Jun 30 2016 23:26 UTC
Oh, I generally do 70% of protein as carbs, given over 2-3 hours. But with the rig, I’ve just been using temp targets to emulate it. However, sometimes I don’t even need it. Couple of nights ago, I had chicken and peas. Bolused for the peas, nothing for the chicken. Perfect numbers.
Dana Lewis
@danamlewis
Jun 30 2016 23:33 UTC
check the hardware page, it’s either the x12 or the x15 where you have to do something extra at some point related to status, but it’s a simple fix and listed there @thebookins