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

6th
Mar 2016
Bill Stackpole
@billstackpole
Mar 06 2016 00:01
in the profile editor of NightScout website.
not yet openaps-ing. built the RasPi system, have it talking to my pump, need a window of time to read, grok, test, play, etc.
but am working on it!
Rachel Sandlain
@audiefile
Mar 06 2016 00:08
@billstackpole sorry confused. I meant you can not require a password to access your nightscout site. The care portal pebble app requires an API_SECRET which is a password you set in your site set up. Is that what you mean?
Scott Leibrand
@scottleibrand
Mar 06 2016 00:08
Ah. I'm not sure Nightscout uses it either: it probably inherited the field from our original openaps-js code.
Rachel Sandlain
@audiefile
Mar 06 2016 00:10
Which app so you think is my pebble app? I havent published one. I did start a watchace but never finished as there are much better options available now
Dana Lewis
@danamlewis
Mar 06 2016 00:17
Screen Shot 2016-03-05 at 4.17.03 PM.png
@C-Ville :) where OpenAPS is (n=1)*38
Jason Calabrese
@jasoncalabrese
Mar 06 2016 00:28
Would be nice if there was some measure of use after first getting setup
Loop uptime
JaysonEwer
@JaysonEwer
Mar 06 2016 02:32
@hichameyessou , I've found folks on Craigslist in the US. I got my spare 522 from a guy for 250 that I found on Criagslist, it was more used than the one I got for 450 on Medwow, which is my current primary OpenAPS pump.
Ben West
@bewest
Mar 06 2016 02:41
@scottleibrand the API_SECRET? there's an option where all the write apis are protected by the API_SECRET
oh, carb thingy
eyim
@eyim
Mar 06 2016 02:43
@scottleibrand @billstackpole nightscout uses the carb absorption rate for determining carbs left on board if you turn that option on
Eric Luhrs
@eluhrs
Mar 06 2016 02:44
I'm having trouble getting data from my G5 with loudnate/dexcom_reader from git. Is anyone familiar with this?
Jason Calabrese
@jasoncalabrese
Mar 06 2016 02:45
I know some people have done it, but not sure if there are instructions anywhere
Eric Luhrs
@eluhrs
Mar 06 2016 02:47
I'm not terribly familiar with python. It built without error, but then said something about being the same version when I installed it. Still getting the same error message ("Could not parse EGVRecord").
JaysonEwer
@JaysonEwer
Mar 06 2016 02:49
@julza78 Congrats!! 👏🏻👍
rafaelmatuk
@rafaelmatuk
Mar 06 2016 02:51
for the ones asking for options to buy a pump: I just bought mine on craiglist for 150, but had to go outside of my local city. Just type the city and .craigilst (the "near by" option of craiglist does not work very well). I found a few available in Phoenix, the midwest is dry and please do not pay a lot. Some folks out there are asking for 2,000
make sure they check the software version number
Scott Leibrand
@scottleibrand
Mar 06 2016 02:52
@eyim ah, right. Once it get the COB algorithm in advanced-meal-assist done, we should consider porting that to NS.
Eric Luhrs
@eluhrs
Mar 06 2016 02:52
You can also google "site:craigslist.org keyword" to search everywhere. Handy when shipping is an option.
Scott Leibrand
@scottleibrand
Mar 06 2016 02:53
Nice.
rafaelmatuk
@rafaelmatuk
Mar 06 2016 02:53
I have a question: I updated my nightscout to the dev version in order to enable openAPS. I can see the openAPS plugin and the site receives openAPS status. However, I cannot see the "pump" plug in and I do not see updates or treatments uploaded to NS. Any tips will be greatly appreciated.
Jason Calabrese
@jasoncalabrese
Mar 06 2016 02:53
Think we should just pull oref0 into NS
As a git dependency
There would be some data conversion needed
But not a lot
Scott Leibrand
@scottleibrand
Mar 06 2016 02:58
:+1:
Rachel Sandlain
@audiefile
Mar 06 2016 03:01
@rafaelmatuk the pump plugin is a separate plugin from the openaps one
rafaelmatuk
@rafaelmatuk
Mar 06 2016 03:02
I know - do you know any documentation I can check?
Jason Calabrese
@jasoncalabrese
Mar 06 2016 03:05
There's some in the readme on the dev branch
For the plugin options
rafaelmatuk
@rafaelmatuk
Mar 06 2016 03:05
ok
thanks
Rachel Sandlain
@audiefile
Mar 06 2016 03:07
What Jason said :wink:
rafaelmatuk
@rafaelmatuk
Mar 06 2016 03:42
ok - now I am confused. Am I supposed to see a "pump" under "show plugins" in NS?
Jason Calabrese
@jasoncalabrese
Mar 06 2016 03:43
You'd add it to your ENABLE setting first
rafaelmatuk
@rafaelmatuk
Mar 06 2016 03:43
already did and restarted the app
Jason Calabrese
@jasoncalabrese
Mar 06 2016 03:44
You first enable a plugin, and then show it, so that it can be used on some devices but not all
Look at the YOUR-SITE/api/v1/status.json
It will list the enabled plugins
rafaelmatuk
@rafaelmatuk
Mar 06 2016 03:47
everything seems to be ok: {"status":"ok","name":"Nightscout","version":"0.9.0-dev","serverTime":"2016-03-06T03:46:16.767Z","apiEnabled":true,"careportalEnabled":true,"boluscalcEnabled":false,"head":"7c355953e94540773d315633655c320ebede3b0f","settings":{"units":"mg/dL","timeFormat":12,"nightMode":false,"editMode":true,"showRawbg":"never","customTitle":"Nightscout","theme":"default","alarmUrgentHigh":true,"alarmUrgentHighMins":[30,60,90,120],"alarmHigh":true,"alarmHighMins":[30,60,90,120],"alarmLow":true,"alarmLowMins":[15,30,45,60],"alarmUrgentLow":true,"alarmUrgentLowMins":[15,30,45],"alarmUrgentMins":[30,60,90,120],"alarmWarnMins":[30,60,90,120],"alarmTimeagoWarn":true,"alarmTimeagoWarnMins":15,"alarmTimeagoUrgent":true,"alarmTimeagoUrgentMins":30,"language":"en","scaleY":"log","showPlugins":" delta direction upbat","heartbeat":60,"baseURL":"","thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":80,"bgLow":55},"DEFAULT_FEATURES":["delta","direction","timeago","devicestatus","upbat","errorcodes","profile"],"alarmTypes":["predict"],"enable":["careportal","pump","rawbg","iob","maker","bridge","cob","bwp","cage","basal","openaps","treatmentnotify","delta","direction","timeago","devicestatus","upbat","errorcodes","profile","ar2"]},"extendedSettings":{"devicestatus":{"advanced":"TRUE"}}}
Jason Calabrese
@jasoncalabrese
Mar 06 2016 03:53
It might be something cached in you browser
eyim
@eyim
Mar 06 2016 03:54
Make sure in the configuration that you don't have a space after pump if it is the last one
I use heroku and if there is a space after pump at the end then it doesn't show up
rafaelmatuk
@rafaelmatuk
Mar 06 2016 04:14
it happens on all browsers...I re-deployed this a few times already so perhaps I need to re-do it from scratch...
Jason Calabrese
@jasoncalabrese
Mar 06 2016 04:15
Your dev branch might not be current
rafaelmatuk
@rafaelmatuk
Mar 06 2016 04:15
could be
rafaelmatuk
@rafaelmatuk
Mar 06 2016 04:40
got it
refreshed the branch...the master was up to date but not the dev one. It appears now
thanks!
Jason Calabrese
@jasoncalabrese
Mar 06 2016 05:03
Great
Matthias
@ceben80
Mar 06 2016 08:23
@scottleibrand
Regarding the SD card imaging tool in github, here my PR for the openAPS doc
openaps/docs#94
Nathan Morse
@morsen
Mar 06 2016 09:52
Hi @danamlewis, everyone. I'm Nathan; I was at the meeting in Seattle on Sunday afternoon. I'm just checking in, and will get going on the build for my son. Thanks to everyone for your involvement, and I'll be talking with you as time goes by. :)
Ben West
@bewest
Mar 06 2016 09:55
howdy @morsen, welcome
Sulka Haro
@sulkaharo
Mar 06 2016 10:18
Oops @bewest / @scottleibrand you might want to look at this: noticed that if I go to Bolus Wizard, enter carbs, choose bolus amount but then cancel before actually bolusing, it creates a record in the pump memory but doesn't give a bolus, as expected. However, this makes OpenAPS pick up the wizard record, so 1) my nightscout visualization shows the record, and 2) OpenAPS meal assists shows the carbs (but not IOB).
Unsure what would be the right thing to do with the carb record. I cancelled because we didn't actually eat yet.
Ben West
@bewest
Mar 06 2016 10:30
nice, so it's potentially useful if explored under right context?
or conversely should be ignored as nosie
noise even
Nathan Morse
@morsen
Mar 06 2016 10:32
That sounds interesting and fun.
Ben West
@bewest
Mar 06 2016 10:33
I think tidepool has documented some of these edge cases
Nathan Morse
@morsen
Mar 06 2016 10:33
I have two questions already, if I may: Are there any version issues with the CareLink USB stick vs. Pump revs? Also, I definitely want to set up the TI radio stick. I will set up the the CareLink USB first, but I want to have the TI hardware ready to go; what is the part information for the TI device? Thanks!
Ben West
@bewest
Mar 06 2016 10:34
this is yet another area where we would love additional documentation from medtronic (another call/ask medtronic issue) in order to to better pursue basic therapy
eg, this is inside their "design warehouse"
no
@morsen the decoding-carelink repo aka "decocare" supports all paradigm series pumps
all the paradigm series product line from Medtronic uses same RF technology
the six series is different technology
there's a new effort on that :-)
any paradigm pump can at least be read/audited by decocare
Nathan Morse
@morsen
Mar 06 2016 10:39
Meaning Medtronic 6xx pumps?
Ben West
@bewest
Mar 06 2016 10:39
different pumps have different features, we're still fleshing out exactly how that works
right 6xx is completely new technology
Nathan Morse
@morsen
Mar 06 2016 10:39
ok
Ben West
@bewest
Mar 06 2016 10:39
need more letters/emails/calls to medtronic
just generate support tickets
Nathan Morse
@morsen
Mar 06 2016 10:40
Thanks, @bewest. I've got openaps/docs forked, I thought I might add something explicit, like "All CareLink USB devices are compatible with all Medtronic MiniMed 5xx insulin pumps"
Ben West
@bewest
Mar 06 2016 10:40
support tickets have a cost, both financial and political/regulatory
Nathan Morse
@morsen
Mar 06 2016 10:40
hah
Maybe "Any CareLink USB device"...
Ben West
@bewest
Mar 06 2016 10:41
when I complaint to regulatory they say I should complain to vendor to submit a new product
yes, any carelink usb device is right idea
Nathan Morse
@morsen
Mar 06 2016 10:41
cool. just since I am coming into this fresh, I don't know whether there are multiple versions and possible incompatibilities. Thanks.
Ben West
@bewest
Mar 06 2016 10:42
can it issue commands to dose/basal/set time "command and control?" maybe depending on firmware
for reading what's going on, it should be all good
Nathan Morse
@morsen
Mar 06 2016 10:42
:thumbsup:
Ben West
@bewest
Mar 06 2016 10:42
in either case, feel free to report bugs/issues
in github land everything is an "issue"
I really do encourage calling up medtronic
and getting used to their phone support
and trying to ask questions about getting more information about this stuff
the reason all this stuff works is due to years of reverse engineering, trying to guess and deduce
my thinking is that for a machine plugged into my body, I shouldn't have to guess
but I've been treated as a lone-wolf, someone to be ignored
so the more people calling in to demand this information, the better
it's kind of like being able to choose a car mechanic
your mechanic assumes she can access information about your car to service it
no information, no service
Ben West
@bewest
Mar 06 2016 10:48
most of these vendors know me, medtronic especially
but they can just say they don't make pumps for me
that's what every vendor says, actually ;p
so more people logging support tickets to get basic information the better
Nathan Morse
@morsen
Mar 06 2016 10:57
Alright, @bewest, will do!
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 11:08
@bewest would you happen to have a more specific pointer to Tidepool’s documented edge cases regarding @sulkaharo’s carb entry issue?
I’ve tried looking at the chrome-uploader repo and found stuff like https://github.com/tidepool-org/chrome-uploader/blob/master/docs/misc/2015.06.29CareLinkCSVChanges.md
But no more details on parsing Medtronic data
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 11:18
Thanks @LorelaiL! Tried looking at the source files, also from different branches, couldn’t find it documented.
Need to try it out and see how the parser handles it, I guess. :)
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 11:26
By the way, I’ve got a software version on the 640G that issues the alarm for rising glucoses way too eagerly. Regardless of the settings (one arrow, two arrows, three arrows, or custom), I get an alert almost any time there’s any rise in BG. I contacted Medtronic support regarding this on January 5 via a form on their website, they responded via email on February 10 (!), asking for my CareLink credentials so they can look at the data. Since then, nothing.
If anyone has the need some time to discuss quality and processes in the healthtech space, you may use that as an example. I don’t think anyone using nightscout or openaps has ever needed to wait for that long to get their problems addressed. :)
Nathan Morse
@morsen
Mar 06 2016 11:42
Bad news for me (re: initial build). Turns out that a pump failure in late summer 2014 means that ours was replaced with a MiniMed 523 w/ >v2.4 firmware. Boo. Since all the info I've seen has stressed the importance of this, I'm guessing there's no way to flash an earlier firmware onto the device. I just thought I would mention it. Thanks. :)
Nathan Morse
@morsen
Mar 06 2016 11:54
fyi, Raspberry Pi 3 is out
Nathan Morse
@morsen
Mar 06 2016 12:06
The power supply section says that something > 8000mah is desired, but the Amazon link to the TeckNet 9000mah battery is actually a 6000mah model.
which part of that needs to be adjusted? the battery requirement text, or the link? :)
JaysonEwer
@JaysonEwer
Mar 06 2016 13:11
I would say the link. :-)
Good morning all.
JaysonEwer
@JaysonEwer
Mar 06 2016 13:16
ive got a question regarding reservoirs being empty and how OpenAPS handles that scenario? I can share what I have experienced, but I haven't explored the expected behavior as programmed yet.
I'm actually somewhat alarmed to learn that there is not reservoir empty alarm on the pump. Being a long time Animas pumper, I honestly have been awakened from deep sleep by my Animas pump more than a few times in ten years when my reservoir was empty and I forgot to refill before going to bed.
Bill Stackpole
@billstackpole
Mar 06 2016 13:19
morning folks - some questins about the oref0 tools configuration specific to invoking reports
attempting to invoke settings/settings.json and receiving this result:
openaps repsettings/settings.json raised 'Pump' object has no attribute 'model'
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:20
There are NS alarms for low reservoir that can be sent via pushover, works just like battery and other alarms
JaysonEwer
@JaysonEwer
Mar 06 2016 13:20
I think this one is on Medtronic, but I'm wondering if we can add an alert/alarm to OpenAPS that will at least let Nightscout know that the pump reservoir is empty?
Messages crossed in ether, @jasoncalabrese
I'm also surprised to see the pump pill in a "happy" state with 0 units in reservoir? Is that expected?
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:22
No, that's not right, could be a bug
JaysonEwer
@JaysonEwer
Mar 06 2016 13:23
I'm sure I just need to adjust my behavior of running my reservoir until it's empty, but that seems like it might be a bug.
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:23
Maybe some setting isn't right
JaysonEwer
@JaysonEwer
Mar 06 2016 13:23
What data can I get you from my end?
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:24
I'm only up since I needed to halt my Edison to get the RL going again
JaysonEwer
@JaysonEwer
Mar 06 2016 13:24
I've got my low res alarm set to 30 units but that's almost a full day for me, it just gives me a heads up.
Understood, it's early where you are I'll just put my thoughts down now and then we cannivestigate later.
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:25
Did that alarm work
The 30U?
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 13:25
@JaysonEwer I’m using the Medtronic 640G and was a bit puzzled by the empty reservoir management. Previously I used the Accu-Chek pump and it told me exactly when it decided the reservoir was empty (valve pushed all the way). However, my Medtronic 640G estimates when the reservoir has 0 units of insulin and keeps pushing for about 25-30 units more, before it gives an insulin delivery error.
JaysonEwer
@JaysonEwer
Mar 06 2016 13:25
Yes, I receive the low res alarms, but I don't think I see them on NS
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:25
What's urgent set to?
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 13:27
So you do eventually get a warning when insulin delivery stops.
Not sure how it’s implemented in older Medtronic pumps, though.
JaysonEwer
@JaysonEwer
Mar 06 2016 13:27
Ah, interesting point @mrinnetmaki , because it hasn't provided me with any sort of empty/ no insulin alert either, seems odd that that wouldn't be an alert able event?
@jasoncalabrese urgent in NS or pump?
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:28
In NS
You said warn was 30U and it worked
JaysonEwer
@JaysonEwer
Mar 06 2016 13:28
Is that set on he backend or in profile?
Bill Stackpole
@billstackpole
Mar 06 2016 13:28
I may have figured it out - apparently the data in the directory was old (a few days since I've played with it) and regenerating the reports allowed for successful invocations.
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:29
It's an env var
Default is 5U
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:31
That's awesome @jasoncalabrese !
JaysonEwer
@JaysonEwer
Mar 06 2016 13:31
Ah, I'm not sure I set that, I'll have to fix that. I'm on my mobile now. @jasoncalabrese go rest!😳THANK YOU for jumping in though.
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 13:31
@JaysonEwer you could (first take the pump off, then) bolus 50 units to make sure the reservoir gets really empty and see whether you get an alarm then.
In case your pump is still in that state.
Scott Leibrand
@scottleibrand
Mar 06 2016 13:31
The 522/523 pumps are the same: low reservoir alarm, nothing at "empty", but alarm again on no delivery.
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 13:32
@scottleibrand thanks, good to know.
JaysonEwer
@JaysonEwer
Mar 06 2016 13:32
That's kinda cool, I guess. VERY GOOD to know!
Scott Leibrand
@scottleibrand
Mar 06 2016 13:32
Only problem is if you have air bubbles in the reservoir, you may not get any insulin for the last few U.
So better to replace/refill before the no delivery alarm.
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:33
BTW, it's one of those days for me where I can't really read due to convergence insufficiency with my eyes (my left eye is worse) so I am using a screenreader for almost everything...Voice Dream Reader and Kurzweil 3000, ftw...
JaysonEwer
@JaysonEwer
Mar 06 2016 13:33
im at 0.0 but like @mrinnetmaki mentioned, there is not log/history that says, you hit 0.0 at blah time, which is odd
Scott Leibrand
@scottleibrand
Mar 06 2016 13:34
Are you nearsighted? When I take my contacts out, I read best by covering one eye so the other can focus without strain...
JaysonEwer
@JaysonEwer
Mar 06 2016 13:34
@scottleibrand Once again, YOU ROCK!!
Scott Leibrand
@scottleibrand
Mar 06 2016 13:35
we have our system send hourly alert emails once reservoir gets below 5U, and at 8am/8pm below 20U
using the data uploaded for the pump pill
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:36
I'm nearsighted. But it affects both eyes, and even when I take my glasses off (I'm not a candidate for contacts due to dry eyes due to autoimmune autonomic ganglionopathy) and cover one eye, it's still a problem. It affects both eyes. Covering one eye kind of gives me a headache too, for some reason. This is all due to autoimmune autonomic ganglionopathy.
JaysonEwer
@JaysonEwer
Mar 06 2016 13:36
Thanks all for the info, I guess there is no concern on my part at this point that OpenAPS is still looping and enacting while there is 0.0 😉 Insulin in my reservoir! 😀
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:36
My neuro-opthalmologist tells me to take my glasses off when this is a problem (but I only wear them when I am driving...cause the problem is so significant)
Scott Leibrand
@scottleibrand
Mar 06 2016 13:37
Only concern is you might start to rise due to pumping air, so it's time for replacement/refill unless you want to stress-test it. :-)
JaysonEwer
@JaysonEwer
Mar 06 2016 13:37
@scottleibrand is the wizardry of that setup posted somewhere, I think I like the logic, prudence and wisdom of that setup and would like to replicate!
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:38
SR.jpg
See that's Windows (Kurzweil 3000) screenreader in action...
Scott Leibrand
@scottleibrand
Mar 06 2016 13:38
It's just two cron jobs on my server. Requires having email set up server side, so not really applicable to most setups.
JaysonEwer
@JaysonEwer
Mar 06 2016 13:39
Well at this point I was just trying to understand it and possibly capita any data necessary, but is sounds like you are all over this and it is expected behavior. I'm going to jump in shower and then replace my reservoir! :smile:
Scott Leibrand
@scottleibrand
Mar 06 2016 13:39
Do you know how to refill a reservoir using the stuff that comes with it?
obviosuly you can do so using a syringe too, but the stuff they supply makes it easier.
Jason Calabrese
@jasoncalabrese
Mar 06 2016 13:40
The low res NS alarms should keep going off, I expected it to be so annoying that is have to replace the res after a warning
Scott Leibrand
@scottleibrand
Mar 06 2016 13:40
Or you can transfer remaining insulin to a new reservoir using the same kit that you use to fill from the bottle.
Have a good morning! It's not even 6am here, so Jason and I should go back to sleep. :-)
JaysonEwer
@JaysonEwer
Mar 06 2016 13:42
yes you should I already yelled at Jason to go rest.😉
Thank you gents!!
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:43
OK weird, my left eye is starting to work better now...
JaysonEwer
@JaysonEwer
Mar 06 2016 13:44
Btw, @scottleibrand , yes, I know all those tricks, I was doing that for a few days, but I realized I was starting to see a correlation between using the insulin dregs to slightly less control so I stopped doing that. Especially when I was using Apidra, I'm currently using Novolog/Asparte
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:44
I like Novolog...
Scott Leibrand
@scottleibrand
Mar 06 2016 13:45
Interesting. I would've thought that the slight reduction in efficacy would be outweighed by it being <10% of the volume of a new reservoir.
I'm looking forward to Novo's faster aspart. In for FDA approval now.
Should make meal (pre)boluses much easier.
Laters.
C-Ville
@C-Ville
Mar 06 2016 13:49
@scottleibrand I am wondering if the reduction in activity of the insulin may be more substantial than expected, from what I heard Insulin is pretty delicate when exposed to air and motion. I could imagine an influence if you refill insulin into a reservoir and then from that reservoir into another reservoir
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:51
But yeah, my eye problems definitely cause a print impairment. What I fear is this: https://nfb.org/images/nfb/publications/fr/fr19/fr05si06.htm ....The first 2 paragraphs apply to me already, in the exact same way this guy describes...
But back to work on OpenAPS...
Scott Leibrand
@scottleibrand
Mar 06 2016 13:51
So you're thinking the transfer might degrade it further? Or just that 3 days is about the limit?
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:52
Trying to install Ubilinux on my Edison...
Scott Leibrand
@scottleibrand
Mar 06 2016 13:53
i wonder if anyone has done controlled studies on whether the effect of insulin working less on old sites/reservoirs comes mostly from the site itself or from the old insulin...
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:54
I'm sure they have.
Scott Leibrand
@scottleibrand
Mar 06 2016 13:54
wonder if it'd be worthwhile to just put 1.5 days' worth of insulin in, and top it off to that level with fresh refrigerated insulin every day.
C-Ville
@C-Ville
Mar 06 2016 13:55
I am currently on ICT, and have never tracked, but I can try documenting if I do see an increase in insulin doses required over time on a given pen cartridge
Scott Leibrand
@scottleibrand
Mar 06 2016 13:55
How long do those last?
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:55
There's a book called Galenics (sp?) of Insulin that tells you the degradation of insulin based on the preservatives (meta-cresol) put inside of it.
Scott Leibrand
@scottleibrand
Mar 06 2016 13:56
pretty sure the effect we care about is from it sitting non-refrigerated in the reservoir. So heat (and maybe motion?) sensitive.
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:56
I don't have access to it via Bookshare.org. Going to look for it via institutional access.
C-Ville
@C-Ville
Mar 06 2016 13:57
7-10 days, depending on how much I am eating :-)
diabeticgonewild
@diabeticgonewild
Mar 06 2016 13:57
It tells you based on temp in that book, too.
Scott Leibrand
@scottleibrand
Mar 06 2016 13:57
@C-Ville interesting. Pump reservoirs are usually refilled after about 3 days.
When pump site is changed.
So even insulin transferred between reservoirs wouldn't be out any longer than your pens.
C-Ville
@C-Ville
Mar 06 2016 13:59
@scottleibrand a good portion of my TDD is covered by my basal insulin, this is why the 3ml pen cartridges last longer for me
Scott Leibrand
@scottleibrand
Mar 06 2016 13:59
And by then only 1% of it is left of you transfer the last 10% each pump site.
Wonder if we should use pump site age as a variable when we go use machine learning to evaluate ISF and basals. :-) @amazaheri
Ok, now back to sleep. :)
Dana Lewis
@danamlewis
Mar 06 2016 14:07
@JaysonEwer That "wisdom" was built because the system shipped as-is is batty (or drives me batty? :)) thus, all the work around and fixes I've designed like this.
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:08
This.jpg
This is from Galenics of Insulin....
fallon225
@fallon225
Mar 06 2016 14:08
Normally, when we do pizza, at the time of bolus, we started a 95% increase temp basal for 8 hours. How do we do that with the openaps? This was our first pizza after starting the openaps. I didn't have him start a temp, because I wanted to see how it played out. But after about 45 minutes, I had him start a double increase basal (from .8 to 1.6) for 3 hours. After half an hour, the aps overrode it, and gave him a 0 for a bit before kicking in and figuring stuff out on its own. How do we work something like that? It doesn't know he had pizza. We normally stay under 200 for pizza with a constant double basal.
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:09
It's about the stability of insulin
fallon225
@fallon225
Mar 06 2016 14:09
2016.03.06.JPG
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:09
Based on temperature
Dana Lewis
@danamlewis
Mar 06 2016 14:09
@fallon225 Most people use square wave or dual wave for things like that
*however
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:09
Insulin is more stable to temperature changes than you would think...
Dana Lewis
@danamlewis
Mar 06 2016 14:10
Openaps is not currently reading iob (I think) from square and dual waves
So if you feel like you definitely have that nailed, some people still do the square and just let openAPS temp to tweak based on observed bg changes. But generally not super ideal since it won't know accurate net IOB
fallon225
@fallon225
Mar 06 2016 14:11
We did do 10.8 over an hour (like normal) and 2.2 as now (a cookie)
Bill Stackpole
@billstackpole
Mar 06 2016 14:11
configuration question re: oref0 and cgm device - trying to "openaps report add monitor/glucose.json JSON cgm iter_glucose 5" and result is "usage: openaps-report add [-h] report {base,text,stdout,JSON} device ...
openaps-report add: error: argument device: invalid choice: 'cgm' (choose from u'calculate-iob', u'determine-basal', u'get-profile', u'oref0', u'pump')"
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:11
I have severe gastroparesis (with one of the worst gastric emptying studies that my endo has ever seen) and I have a gastric pacemaker (and if that didn't relieve my severe nausea and vomiting, I would have had surgery to get a feeding tube), and I don't even do dual or square wave boluses.
Dana Lewis
@danamlewis
Mar 06 2016 14:11
The other option (I know, not ideal) is to not loop during the immediate time after pizza for an hour or two ...
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:11
Mine however, is NOT diabetes-related.
fallon225
@fallon225
Mar 06 2016 14:11
no, sorry. 8.6 hour and 2.2 now.
Bill Stackpole
@billstackpole
Mar 06 2016 14:12
if I try openaps-use, same result (doesn't recognize the cgm device). Thoughts? (also please feel free to redirect me to a different channel as appropriate for this type of question)
Dana Lewis
@danamlewis
Mar 06 2016 14:12
@billstackpole Nope, good place to ask these Qs
fallon225
@fallon225
Mar 06 2016 14:12
W is thinking. Is it easy to turn off the looping for a bit?
Dana Lewis
@danamlewis
Mar 06 2016 14:13
@billstackpole Do -h as it suggests to show the syntax you need
fallon225
@fallon225
Mar 06 2016 14:13
Can you set a turn off for 2 hours and have it turn back on automatically? Can you do a script or something?
Dana Lewis
@danamlewis
Mar 06 2016 14:13
@fallon225 Yes. Just unplug your Pi or shut it down. Or unplug Carelink stick from rig. Or go out of range of it
@fallon225 You could, but not sure that's safe. Easier to consciously de-loop and then re-engage in looping so you know it's working again when you want it
Bill Stackpole
@billstackpole
Mar 06 2016 14:14
@danamlewis - since using a Medtronic pump and cgm, and no menu item for cgm shows, should I use "pump"?
(rather than "cgm")?
Dana Lewis
@danamlewis
Mar 06 2016 14:15
Caveat that I haven't done a Medtronic CGM setup, but I think cgm comes from pump record, too so yes try that
Bill Stackpole
@billstackpole
Mar 06 2016 14:16
ding ding ding! that's the one.
tnx
Dana Lewis
@danamlewis
Mar 06 2016 14:16
:)
Fwiw, it's really hard to do something "wrong" or something you can't fix. So always worth trying :)
Bill Stackpole
@billstackpole
Mar 06 2016 14:18
erring on the side of caution (but so far things seem to be making sense!)
Dana Lewis
@danamlewis
Mar 06 2016 14:18
Yup. @bewest did an awesome job constructing the openaps toolset, most of the time -h is excellent for teaching the syntax with a command or showing the error
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 14:20
I’ve always filled my pump reservoirs up, and used them until empty. So I’ve changed the insulin only once a week, although I change the infusion site every 3 days. I’ve been thinking of doing a retrospective study now on my own data: do I see any effect for the 4+ days since change.
Dana Lewis
@danamlewis
Mar 06 2016 14:22
@mrinnetmaki Would love to see your results from that
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:23
This.jpg
@mrinnetmaki @danamlewis Insulin is more temperature stable than you think it is!
Mikael Rinnetmäki
@mrinnetmaki
Mar 06 2016 14:26
I’ve only gotten my insulin to ever degrade (so much that I had noticed it) in temperatures below -10˚C or in heat when the pump was exposed to direct sunlight.
But both of those have happened several times and with really clear effects (the insulin not having any effect anymore)
diabeticgonewild
@diabeticgonewild
Mar 06 2016 14:30
Indeed.
Bill Stackpole
@billstackpole
Mar 06 2016 14:35
another question - specifically related to cloning the glucosetools repo - not sure where the appropriate setup.py should be stored after using easy_install (apparently not in my path as "which setup.py" isn't revealing it and find command isn't showing anything intuitive). ???
Dana Lewis
@danamlewis
Mar 06 2016 14:48
@billstackpole Looks like @tghoward Is awake, he might be able to help troubleshoot this once since he's done a MdT sensor setup
Bill Stackpole
@billstackpole
Mar 06 2016 14:48
think I have part of it working.
not sure I need the setup.py (but would like to know how to clone it locally)
am modifying my config to use glucoseclean.json now
will advise
Tim Howard
@tghoward
Mar 06 2016 14:49
@billstackpole yes, on your question about using pump instead of cgm, that's correct
JaysonEwer
@JaysonEwer
Mar 06 2016 14:50
@danamlewis , I'm sorry I woke you guys up. 😕😳. It seems @scottleibrand never made it back to bed or is "working" in bed either way it appears as though he's not resting. 😀 @scottleibrand it's more the site becoming overly saturated and less absorption than the insulin, but I was also changing sites when I noticed my body being less responsive to the "older"insulin I had moved from the old reservoir. I don't have much empirical data to back it up, this is just my observations.
Dana Lewis
@danamlewis
Mar 06 2016 14:54
@JaysonEwer You didn't wake us up. I had a 7 am PT flight so was up anyway :)
Bill Stackpole
@billstackpole
Mar 06 2016 14:58
@tghoward and/or @danamlewis - throwing error when invoking suggested.json
live4sw
@live4sw
Mar 06 2016 14:59
I've been getting these errors recurringly for a little while - it passes preflight but then errors at settings. Resetting the USB ports seems to fix it. Any thoughts? Might it make sense to add a USB reset to the echo No CGM data?
Mar  6 09:56:01 raspberrypi openaps: pump://JSON/read_settings/settings/settings.json
Mar  6 09:56:01 raspberrypi openaps: Traceback (most recent call last):
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/bin/openaps-report", line 4, in <module>
Mar  6 09:56:01 raspberrypi openaps:     __import__('pkg_resources').run_script('openaps==0.0.10', 'openaps-report')
Mar  6 09:56:01 raspberrypi openaps:   File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 724, in run_script
Mar  6 09:56:01 raspberrypi openaps:   File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1650, in run_script
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
Mar  6 09:56:01 raspberrypi openaps:     app( )
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/cli/__init__.py", line 44, in __call__
Mar  6 09:56:01 raspberrypi openaps:     self.run(self.args)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
Mar  6 09:56:01 raspberrypi openaps:     output = app(args, self)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
Mar  6 09:56:01 raspberrypi openaps:     return self.method.main(args, app)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/reports/invoke.py", line 40, in main
Mar  6 09:56:01 raspberrypi openaps:     output = task.method(args, app)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/uses/use.py", line 45, in __call__
Mar  6 09:56:01 raspberrypi openaps:     output = self.main(args, app)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/vendors/medtronic.py", line 217, in main
Mar  6 09:56:01 raspberrypi openaps:     return getattr(self.pump.model, name)(**self.get_params(args))
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/models/__init__.py", line 26, in __call__
Mar  6 09:56:01 raspberrypi openaps:     self.validate( )
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/models/__init__.py", line 18, in validate
Mar  6 09:56:01 raspberrypi openaps:     self.response.check_output(data)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/commands.py", line 123, in check_output
Mar  6 09:56:01 raspberrypi openaps:     return self.checker(data)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/commands.py", line 75, in __call__
Mar  6 09:56:01 raspberrypi openaps:     self.check_fields(data)
Mar  6 09:56:01 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.21-py2.7.egg/decocare/commands.py", line 72, in check_fields
Mar  6 09:56:01 raspberrypi openaps:     raise BadResponse( )
Mar  6 09:56:01 raspberrypi openaps: decocare.commands.BadResponse
Mar  6 09:56:01 raspberrypi openaps: No CGM data.
Dana Lewis
@danamlewis
Mar 06 2016 14:59
@live4sw Are you in good range?
live4sw
@live4sw
Mar 06 2016 14:59
yep, within a few feet
Bill Stackpole
@billstackpole
Mar 06 2016 14:59
let me know if you want me to paste here or wait till you resolve current issue.
Dana Lewis
@danamlewis
Mar 06 2016 14:59
Often if it passes preflight it might be range
@billstackpole Please paste, thanks!
Bill Stackpole
@billstackpole
Mar 06 2016 15:00
pi@openaps-raspi:~/billopenaps $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
module.js:340
throw err;
      ^
Error: Cannot find module '/home/pi/billopenaps/monitor/glucoseclean.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-determine-basal.js:33:24)
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)
reporting enact/suggested.json
Dana Lewis
@danamlewis
Mar 06 2016 15:00
If you do three backticks on the line above, and after, a big paste, it can format all as one block. @billstackpole
Example with three backticks 


Lots of paste
Bill Stackpole
@billstackpole
Mar 06 2016 15:01
in an irc client - throwing me a warning that I might be banned.
lemme go to web client...

```pi@openaps-raspi:~/billopenaps $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json

module.js:340
throw err;
^
Error: Cannot find module '/home/pi/billopenaps/monitor/glucoseclean.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-determine-basal.js:33:24)
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)
reporting enact/suggested.json

Dana Lewis
@danamlewis
Mar 06 2016 15:02
(My flight is pushing back so when I stop responding in a bit, that's why :))
Bill Stackpole
@billstackpole
Mar 06 2016 15:02
oh - looks like it's looking for glucoseclean in monitor directory
will dig around and reconfig - tnx.
and I haven't generated it!
doh
Dana Lewis
@danamlewis
Mar 06 2016 15:05
:+1:
Tim Howard
@tghoward
Mar 06 2016 15:05
:+1:
Bill Stackpole
@billstackpole
Mar 06 2016 15:09
think I need to add one more to the determine_basal report so that the glucoseCLEAN report is invoked first. Does this make sense to you?
Tim Howard
@tghoward
Mar 06 2016 15:11
Yes, create a glucoseclean.json first before running suggested.
That's one thing about MM cgm data, needs a little more massaging
Bill Stackpole
@billstackpole
Mar 06 2016 15:12
can I just add that to this line as follows? does the order matter? ($ openaps report add enact/suggested.json text determine-basal shell monitor/iob.json monitor/temp_basal.json monitor/glucose.json settings/profile.json)
so it would read: ($ openaps report add enact/suggested.json text determine-basal shell monitor/iob.json monitor/temp_basal.json monitor/glucose.json MONITOR/GLUCOSECLEAN.JSON settings/profile.json)
William Fallon
@inform880
Mar 06 2016 15:13
What do you guys do about corruption? It seems like it happens randomly sometimes. I know it happens every single time I unplug the pi without shutting it down properly, and it happens sometimes even when I shut down the pi properly. Every time it happens, it's always the openaps.ini file that says its corrupted. I use this script to fix it: https://github.com/openaps/oref0/blob/master/bin/oref0-reset-git.sh
Tim Howard
@tghoward
Mar 06 2016 15:13
If you have that report already built and configured (e.g. configured to use monitor/glucose.json), then, yes, that should do the trick
@inform880, There's oref0-fix-git-corruption which works pretty well.
Some folks add it to a cron job in case there are power problems
This message was deleted
Bill Stackpole
@billstackpole
Mar 06 2016 15:21
so how many on line now actually using the openAPS in control mode? Im currently in manual - first two corrections suggested appear to be an accurate method of maintaining stability.
Dana Lewis
@danamlewis
Mar 06 2016 15:22
38 loopers
William Fallon
@inform880
Mar 06 2016 15:22
@tghoward I can't seem to find oref0-fix-git-corruption anywhere in the repo
Bill Stackpole
@billstackpole
Mar 06 2016 15:22
(and I still have a little bit of a logic error - I had to create the glucoseclean.json manually but then it generated a logical suggestion.)
I may be #39...
depending on personal confidence level and amount of time to devote to debug in the next week or so. Told my endo 30 days to go-time.
might be less...
@tghoward - is the setup.py in the github repo strictly for unit testing?
and if so, how do I get that repo (script) to my pi?
Dana Lewis
@danamlewis
Mar 06 2016 15:25
You need to have a couple of nights successful looping first :) so someone might beat you, but it's not a race. Loop when you're ready :)
:+1: For acknowledging personal confidence level!
Bill Stackpole
@billstackpole
Mar 06 2016 15:27
well I like the idea of reducing my excursions (don't we all) and hope to drop my A1C as a result.
Dana Lewis
@danamlewis
Mar 06 2016 15:28
:) :+1: :chart_with_downwards_trend:
Tim Howard
@tghoward
Mar 06 2016 15:33
@inform880 , the dev version of the script you mentioned uses it.
https://github.com/openaps/oref0/blob/dev/bin/oref0-reset-git.sh
and the command is also in the dev branch, same place:
https://github.com/openaps/oref0/tree/dev/bin
Tim Howard
@tghoward
Mar 06 2016 15:44
@billstackpole I'm not exactly sure which setup.py you are referring to. The python tools (such as openaps) all have a setup.py file for installing from source.
To get all the source on your RPi, the easiest way is to use the second script on this page
https://github.com/openaps/docs/blob/master/docs/getting-started/openaps.md
Kevin Wells
@wkcwells
Mar 06 2016 16:13
@jmatheson Did you get the networking sorted out? If not, do you have console access to capture /var/log/daemon.log while you bounce the network (either by taking down the hotspot &/or using ifdown/ifup)?
Bill Stackpole
@billstackpole
Mar 06 2016 16:39
@tghoward my questions were specific to the glucosetools plugin (don't think that is included in the default when forking the openaps github repo). Was looking at this page that had reference to running the setup.py for the plugin: https://github.com/loudnate/openaps-glucosetools#installing-from-source-for-development
Need to drop out for now but will drop back in when I get a few min...
Tim Howard
@tghoward
Mar 06 2016 17:01
@billstackpole ah, right, got it. In the RPi, with internet connectivity, cd into your src folder (if you have one) then
git clone https://github.com/loudnate/openaps-glucosetools.git
then cd into openaps-glucosetools and build it with sudo python setup.py develop
That was a good question and not something addressed in the docs. Have you made any corrections to the documentation and added a Pull Request (PR) to Dana and Scott yet? This could be a good addition.
Tim Howard
@tghoward
Mar 06 2016 17:06
Another option is to fork the repository, then clone your version of the repository.
I'll be offline most of the rest of the day, too, but will also try to drop back in if it doesn't go correctly.
Scott Leibrand
@scottleibrand
Mar 06 2016 18:30
@inform880 it's still in the dev branch. You can copy the updated versions of it and oref0-reset-git manually, or open an issue against oref0 to remind us that we need to get those released to master even though we're not ready to release the rest of dev. Or you could update to dev if you'd like to use meal-assist etc.
William Fallon
@inform880
Mar 06 2016 19:16
@scottleibrand Thank you for helping me figure it out.
Is the meal assist part of the dev branch now? I was under the assumption that hadn't happened yet.
Scott Leibrand
@scottleibrand
Mar 06 2016 19:40
basic meal-assist is in dev, yes. there is a second gen meal-assist implementation in the meal-assist branch. and then I'll probably end up replacing all of that with advanced-meal-assist.
there are some reports you have to set up as well to get full meal assist even with those branches, but without that you would get wtf-assist
we need to set it up so wtf-assist is off by default before we can merge it to master, so that no one gets the more aggressive behavior without asking for it.
Ben West
@bewest
Mar 06 2016 21:16
all the data from devices need various massaging of sorts
everything needs to be zoned
units have to be double checked
converted if incorrect
C-Ville
@C-Ville
Mar 06 2016 21:25
@danamlewis thanks for the graph showing the number of loopers over time. pretty impressive increase recently
Dana Lewis
@danamlewis
Mar 06 2016 21:26
Yup. Thanks to everyone for spreading the word, helping improve the docs, and helping people work through their setups!
C-Ville
@C-Ville
Mar 06 2016 21:34
@danamlewis thanks to you (for all the contributors) to allow people participating and bringing that to less computer savy people. currently I see two major obstacles. 1.) getting the setup right, 2.) following the calculations done in determine-basal to get a good unterstanding what is happening under the hood :-) but I keep reading
Ben West
@bewest
Mar 06 2016 21:47
openaps/openaps#81 may or may not help with git corruption
Nathan Morse
@morsen
Mar 06 2016 21:57
@JaysonEwer - re: the battery link, I couldn't find the TeckNet 9000 anymore. I ordered a Moko 9000 and, if it performs fine, I'll add a link to it as well. I've got a note for later reminding me to do so...
Scott Leibrand
@scottleibrand
Mar 06 2016 22:08
Any idea whether that one allows you to charge it without interrupting power to stuff plugged into it?
That was why we chose the TeckNet ones.
Ben West
@bewest
Mar 06 2016 22:15
version 0.0.22 decocare was just released, https://pypi.python.org/pypi/decocare
Ben West
@bewest
Mar 06 2016 22:25
sudo easy_install -ZU decocare to upgrade to 0.0.22 :-D
live4sw
@live4sw
Mar 06 2016 22:34
lol, was about to ask that!
thanks
Oskar Pearson
@oskarpearson
Mar 06 2016 22:37
Thanks for the release, @bewest
Ben West
@bewest
Mar 06 2016 23:10
thanks for your contribs!
think this release was almost all contribs
Matt Pressnall
@logichammer
Mar 06 2016 23:26
super basic question and if it is most likely "you set up your devices wrong" then, I'll just start from scratch but when I try to generate meal.json, it is coming back as an empty file even though my daughter had lunch and I just created a fake snack for her on the pump. Any reason simple reason this file would come back empty? Entering the carbs into the pump using the Bolus Wizard. The rest of my files have the data I would expect...meal.json is generated but empty. Thanks!
meal.in
Dana Lewis
@danamlewis
Mar 06 2016 23:27
Remind me which model pump you have @logichammer
Matt Pressnall
@logichammer
Mar 06 2016 23:27
[device "meal"]
fields = pumphistory profile clock
cmd = oref0
args = meal
the 522
Also, I am trying to shoehorn this in to an existing, working system so I may have missed something but looking at everything, it looks right. I'm about to build a new system so I can start from scratch and mess with it there if this isn't easy.
Ali Mazaheri
@amazaheri
Mar 06 2016 23:32
@scottleibrand good suggestion, we can easily get that from NS :) API is king!
Scott Leibrand
@scottleibrand
Mar 06 2016 23:38
@logichammer are you passing zoned pumphistory and clock?
Matt Pressnall
@logichammer
Mar 06 2016 23:39
in the fields to meal.ini? fields = pumphistory profile clock, yes I should be
Scott Leibrand
@scottleibrand
Mar 06 2016 23:39
the question is whether the json files you're passing for those arguments are the zoned or unzoned versions
Matt Pressnall
@logichammer
Mar 06 2016 23:40

[report "monitor/meal.json"]
profile = settings/profile.json
use = shell
reporter = text
clock = monitor/clock-zoned.json
json_default = True
pumphistory = monitor/pumphistory-zoned.json
device = meal
remainder = []
Should be, right?
Scott Leibrand
@scottleibrand
Mar 06 2016 23:40
cool
what happens when you run oref0-meal manually?
Matt Pressnall
@logichammer
Mar 06 2016 23:41
says no command
but if invoke the report, it runs
Scott Leibrand
@scottleibrand
Mar 06 2016 23:41
you need to re-run npm install and link then
Matt Pressnall
@logichammer
Mar 06 2016 23:41
gotcha
thanks, man!
Scott Leibrand
@scottleibrand
Mar 06 2016 23:41
you should get $ oref0-meal -h
usage: [ 'node', '/usr/local/bin/oref0-meal' ] <pumphistory.json> <profile.json> <clock.json> [carbhistory.json]
the whole enchilada is: cd && test -d src/oref0 && cd src/oref0 && npm install && sudo npm install -g && sudo npm link && sudo npm link oref0
dunno which of those are actually needed, so I do them all :)
Matt Pressnall
@logichammer
Mar 06 2016 23:42
I love you, scott!
I was just combing my notes for this
thanks!
where should I be for src to be a subdir?
NM
cd
home dir
Scott Leibrand
@scottleibrand
Mar 06 2016 23:44
that assumes your oref0 is in ~/src/
Matt Pressnall
@logichammer
Mar 06 2016 23:46
hmmm...I can't find where src is...I know where the compiled stuff is but not the src...any commmand to find that?
and the command isn't working in my home dir
silly me
Scott Leibrand
@scottleibrand
Mar 06 2016 23:52
if your openaps isn't installed from sources (if you're using the packages directly) you won't have meal-assist
Matt Pressnall
@logichammer
Mar 06 2016 23:53
AHHHHHHHHHHH! I just ran a find across the pi and there was no src dir
gotcha...I can do that for sure
thanks so much, you saved me a ton of time!
Last question and switching gears: for the ti stick and installing the new device the radio type for the pi is "mmcommander"? I am looking at @eyim post about it and it looks like that is correct. Did I get that right?
Scott Leibrand
@scottleibrand
Mar 06 2016 23:56
hmm, mmcommander is old
what directions are you following?
Matt Pressnall
@logichammer
Mar 06 2016 23:56
openaps device add pump mmeowlink <radio_type> <port> <serial_number_of_pump>
from here
Scott Leibrand
@scottleibrand
Mar 06 2016 23:56
openaps device add pump mmeowlink subg_rfspy $ttyport $serial
Matt Pressnall
@logichammer
Mar 06 2016 23:57
The parameter format is as follows:

openaps device add pump mmeowlink <radio_type> <port> <serial_number_of_pump>
For example, if you're on an Edison with the subg_rfspy firmware, with pump serial number 12345 your command would be:

openaps device add pump mmeowlink subg_rfspy /dev/ttyMFD1 12345
(See the section on udev rules, below, for an alternative to specifying "/dev/ttyMFD1".) Once run, this would appear in your openaps.ini file:
gotcha...even if I am on the pi, correct?
Scott Leibrand
@scottleibrand
Mar 06 2016 23:57
you should have subg_rfspy on your TI stick
Matt Pressnall
@logichammer
Mar 06 2016 23:57
ahhhh...there was my confusion
perfecto
Scott Leibrand
@scottleibrand
Mar 06 2016 23:57
the difference between Edison and Pi is the ttyport
Matt Pressnall
@logichammer
Mar 06 2016 23:57
and I see where to figure that out
Scott Leibrand
@scottleibrand
Mar 06 2016 23:58
the ttyport also depends on whether you're doing USB or direct-wired
Matt Pressnall
@logichammer
Mar 06 2016 23:58
USB for now
Scott Leibrand
@scottleibrand
Mar 06 2016 23:59
probably /dev/serial/by-id/usb-Nightscout_subg_rfspy_000002-if00 then