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

4th
Jun 2016
fjungman
@fjungman
Jun 04 2016 01:33
We are going to close the loop in the morning. Measuring absorption rate right now. How does OpenAPS handle compression lows? Is there any routine to sense and remove them?
Paul Martin
@Spazholio
Jun 04 2016 01:36
I don’t think the Dexcom/Enlite can differentiate between a regular low and a compression low, so I don’t know that OpenAPS can. Then again, I could be wrong...
Ben West
@bewest
Jun 04 2016 01:38
it would be interesting to find histogram of deltas over past year
real deltas can only have a max size, and even then you should likely see COB if you have the data
or IOB
fjungman
@fjungman
Jun 04 2016 01:45
Yeah, it seems like there is enough information to know if a sudden drop is real or not. Kind of like when they teach you to fly on instruments... There is always enough redundant data that you can completely lose one instrument and know everything about your airplane's status (heading, rate of climb, airspeed, attitude, etc.)
My question was more of "does it react badly to them, or does it know?" I've seen a few in our data, and it either ignored them, or if they were small, reacted by throttling back the TB.
Andrew Baugh
@baughaw
Jun 04 2016 01:48
Hey everyone, i used the bolus wizard and entered carbs. I then decided not to eat and cancelled out if the bolus wizard. The carbs showed up in my NS and then my loop stopped because it said my data was old. I had to fingerstick to get it going again.. maybe a bug?
Andrew Baugh
@baughaw
Jun 04 2016 02:09
I would assume that the carbs shouldnt be transferred to NS when you cancel
Jarred Yaw
@jyaw
Jun 04 2016 02:55
Hey how do you guys deal with carb corrections for lows in OpenAPS? APS seems to look at the Delta's and five me more insulin when it's just correcting, which ends up making me low again. Would putting the correction in as a meal be a better approach? (Master repo)
Lynne Butts
@flutelynne_twitter
Jun 04 2016 03:01
@baughaw Have you tried removing the carb entry via the treatments tab in Nightscout?
Paul Martin
@Spazholio
Jun 04 2016 03:08
I’m just getting into circuitry and breadboards and such, but is there a way/some sort of wire/device that will allow me to connect wires to the Edison BO board without soldering? I want to mock everything up with a breadboard to make sure I’ve got everything wired right before I actually solder it.
Scott Leibrand
@scottleibrand
Jun 04 2016 03:16
@fjungman OpenAPS doesn't do anything to tell compression lows apart from real ones. It will low-temp for any sort of low, and then when BG jumps back up it will high-temp to get IOB back up.
@baughaw you're using MDT CGM it sounds like? That sounds similar to something a lot of people see occasionally. We're not sure what about the pump data causes it to stop reading, but a calibration does seem to fix it.
@jyaw does your IOB actually end up positive when that happens? Or does it just end up neutralizing some of the negative IOB?
fjungman
@fjungman
Jun 04 2016 03:26
@scottleibrand :thumbsup:
Jarred Yaw
@jyaw
Jun 04 2016 03:34
@scottleibrand honestly it seems hard to say... my IOB was slightly positive the first round but that could be the tail of a previous bolus and then I saw a negative IOB after the next wave. Is the idea it's just playing catch-up with the planned basal then?
Scott Leibrand
@scottleibrand
Jun 04 2016 03:35
Yeah, most likely. You can also look at the logs and see what it reports as basaliob, if your version has that.
do you have autosens enabled?
You can often also just eyeball it from the NS basal rendering. Usually you'll see lots of low-temping, and then a bit of high-temping on the rebound, but not enough to fully counteract the previous low temps.
Jarred Yaw
@jyaw
Jun 04 2016 03:50
I don't have autosens enabled. Ill take a look at the logs later and come back if I still have questions then.
Scott Leibrand
@scottleibrand
Jun 04 2016 03:52
Ok. Autosens might help, if you were going low because of extra sensitivity.
Jarred Yaw
@jyaw
Jun 04 2016 03:53
I do see the low and high temping, it just seems like the high temps are correlated to the next BG drops. Maybe that points to some inappropriate ISF or DIA numbers
Ah, will look into that too, thanks
Andrew Baugh
@baughaw
Jun 04 2016 12:04
@scottleibrand Thanks Scott
@flutelynne_twitter I have to give that a try.
mm22dl
@mm22dl
Jun 04 2016 12:26
@jyaw Thanks for your feedback! Will look into that :)
Lynne Butts
@flutelynne_twitter
Jun 04 2016 15:11
Good morning. I am still testing the loop (not running it live yet). I plugged in my receiver and battery this morning, and the loop started immediately. Nightscout was showing the loop and that the pump had suspended because of an upcoming low. Then Nightscout stopped. It has been an hour. My pump is still showing that it is looping (the little circle for temp basals). I am using Pebble using my Dexcom Share acct info, so I am still seeing my BGs this way. What is the best remedy for this? Do I have a conflict running because I have the bridge enabled in my heroku settings and I have my G5 receiver plugged into the pi?
ddaniels1
@ddaniels1
Jun 04 2016 15:22
@scottleibrand or @bewest or anyone else question: I have to make a small change in determine-basal.js to fit the needs of a 1 year old diabetic (whose basal:bolus is more like 25:75). I edited the code, saved it and verified it is changed and ran sudo pip install -e . in the openaps directory. Changed didn't take. I'm sure I'm missing something simple, help?
Lynne Butts
@flutelynne_twitter
Jun 04 2016 15:33
Well, I am not sure what worked: I took the bridge part off of my heroku settings, restarted the dynos (which I had tried before removing the bridge). ssh'd the pi and did openaps do-everything. Now it is showing up! Would like to know which part I did right. Would the do-everything have done it without deleting my bridge?
Scott Leibrand
@scottleibrand
Jun 04 2016 15:37
@ddaniels1 you need to use quick-src's method to use your own source for oref0. A couple variants of npm install followed by npm link.
what edit did you make? usually if you have to edit the code it means we're doing something suboptimally, either in config or in global code.
So would love to understand what you're seeing and what you're trying to do to fix it.
ddaniels1
@ddaniels1
Jun 04 2016 16:06
@scottleibrand because Olivia's size, on the recommendation of her endocrinologist she needs significantly more bolus than basal. The reasoning is the relative amount of carbs she takes in/kg is a lot more than an adult so she needs larger amounts of insulin relative to basal to covers those. When I first started using openaps I starting sneaking the basals up to allow the system to have enough on the top end max basal rates to help prevent the spike. It is too much basal however and she was getting a lot of low temps while fasting, and if the edison not connecting would get low. So it is not a problem with the code for most people, just for her. The answer I believe is to run the lower basal, but increase the max basal to perhaps 6x instead of 4x. Was going to start at 5x and see how it goes.
I installed curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-src.sh | bash -
Edited determine-basal.js
  var maxSafeBasal = Math.min(profile.max_basal, 5 * profile.max_daily_basal, 5 * basal);
ddaniels1
@ddaniels1
Jun 04 2016 16:11
And basal-set-temp.js
 var maxSafeBasal = Math.min(profile.max_basal, 5 * profile.max_daily_basal, 5 * profile.current_basal);
Am I missing something?
Because her bolus requirements are so much higher relative to adults compared to basal I believe this is still safe as the lower maxes for adults. I may also want to shorten the temp basal to 15 minutes to be sure, not sure what other implications doing that has in the code.
Scott Leibrand
@scottleibrand
Jun 04 2016 16:16
Unfortunately 30m is the minimum temp basal duration Medtronic supports.
You're not the only one who wants more than 4x current basal (or 3x max daily basal). Perhaps we should raise that, or provide a config flag to override it.
ddaniels1
@ddaniels1
Jun 04 2016 16:17
How about the changes I made? loop is still allowing only 4x current or 3x max daily. What am I missing?
Also why does the code exist in both those files? which one, or is it both affect enact/suggested.json?
ddaniels1
@ddaniels1
Jun 04 2016 16:46
@scottleibrand if this is the only place in the code that maxSafeBasal exists why is it that the loop still uses the old values. Is it possible the loop is not utilizing the SRC directory for the code but the prior directory that was installed via packages?
Dragan Maksimovic
@dm61
Jun 04 2016 17:03
@ddaniels1, I did such small changes in my source code. The new source needs to be installed to take effect. You may take a look at Scott's script at https://gist.github.com/scottleibrand/63a8541397378bf9f4b8. The second line in that script shows how to install a new oref0 source. Is this correct @scottleibrand ?
ddaniels1
@ddaniels1
Jun 04 2016 17:14
@dm61 great that worked. thanks
Matt Pazoles
@Pazoles
Jun 04 2016 17:15
Hi all - having trouble getting the suggested basal enacted on the pump. Is there anything obvious from the json?
{
  "requested": {
    "duration": 30, 
    "rate": 0, 
    "temp": "absolute"
  }, 
  "bg": 71, 
  "temp": "absolute", 
  "snoozeBG": 86, 
  "timestamp": "2016-06-04T13:02:51.944927", 
  "rate": 0.0, 
  "reason": "Eventual BG 86<90, no temp, setting -0.142U/hr", 
  "eventualBG": 86, 
  "recieved": false, 
  "duration": 0, 
  "tick": "+1"
}
Screen Shot 2016-06-04 at 1.16.40 PM.png
Uploaded to nightscout okay - I saw there was a conversation back in april about the "x Not Enacted" being indicative of a bug in mmeowlink and that it actually did enact the suggestion, but this doesn't seem to be the case here.
Scott Leibrand
@scottleibrand
Jun 04 2016 17:26
What state is your pump in? Suspended, priming, or bolusing?
Matt Pazoles
@Pazoles
Jun 04 2016 17:34
Running openaps use pump status gives me:
{
  "status": "normal", 
  "bolusing": false, 
  "suspended": false
}
Bill Stackpole
@billstackpole
Jun 04 2016 17:49
anyone available to help debug my "301 - moved permanently" error when running my loop? My $NIGHTSCOUT_HOST variable has httpS://<blah blah> but continue to get the redirect message (although after the redirect in teh logs indicates "uploaded entries.json to treatments.json")
here's my syslog output:
Jun  4 13:46:32 billopenapse1 openaps-loop: reporting enact/suggested.json
Jun  4 13:46:37 billopenapse1 openaps-loop: pump://JSON/set_temp_basal/enact/enacted.json
Jun  4 13:46:37 billopenapse1 openaps-loop: subg_rfspy status: OK
Jun  4 13:46:37 billopenapse1 openaps-loop: Version: subg_rfspy 0.8
Jun  4 13:46:37 billopenapse1 openaps-loop: reporting enact/enacted.json
Jun  4 13:46:44 billopenapse1 openaps-loop: ns-status://JSON/shell/monitor/upload-status.json
Jun  4 13:46:44 billopenapse1 openaps-loop: reporting monitor/upload-status.json
Jun  4 13:46:44 billopenapse1 openaps-loop: cat: entries.json: No such file or directory
Jun  4 13:46:45 billopenapse1 openaps-loop: <html>#015
Jun  4 13:46:45 billopenapse1 openaps-loop: <head><title>301 Moved Permanently</title></head>#015
Jun  4 13:46:45 billopenapse1 openaps-loop: <body bgcolor="white">#015
Jun  4 13:46:45 billopenapse1 openaps-loop: <center><h1>301 Moved Permanently</h1></center>#015
Jun  4 13:46:45 billopenapse1 openaps-loop: <hr><center>nginx</center>#015
Jun  4 13:46:45 billopenapse1 openaps-loop: </body>#015
Jun  4 13:46:45 billopenapse1 openaps-loop: </html>#015
Jun  4 13:46:45 billopenapse1 edison: Uploaded entries.json to devicestatus.json
Jun  4 13:46:56 billopenapse1 openaps-loop: cat: entries.json: No such file or directory
Jun  4 13:46:56 billopenapse1 openaps-loop: <html>#015
Jun  4 13:46:56 billopenapse1 openaps-loop: <head><title>301 Moved Permanently</title></head>#015
Jun  4 13:46:56 billopenapse1 openaps-loop: <body bgcolor="white">#015
Jun  4 13:46:56 billopenapse1 openaps-loop: <center><h1>301 Moved Permanently</h1></center>#015
Jun  4 13:46:56 billopenapse1 openaps-loop: <hr><center>nginx</center>#015
Jun  4 13:46:56 billopenapse1 openaps-loop: </body>#015
Jun  4 13:46:56 billopenapse1 openaps-loop: </html>#015
Jun  4 13:46:56 billopenapse1 edison: Uploaded entries.json to treatments.json
Jun  4 13:46:56 billopenapse1 openaps-loop: woot!
Bill Stackpole
@billstackpole
Jun 04 2016 17:58
don't know of any other location where I might need to add the "s" to "http" other than there...
Matt Pazoles
@Pazoles
Jun 04 2016 18:00
@billstackpole - Can you reach nightscout at the https address through a browser?
Bill Stackpole
@billstackpole
Jun 04 2016 18:05
@Pazoles - yup. and from my IOS device using the same (https) url
only seems to be an error on my Edison - not my Pi3
weird
Brian Bonner
@itsn0tm3
Jun 04 2016 18:16
@billstackpole do you by any chance not have the slash at the end?
Bill Stackpole
@billstackpole
Jun 04 2016 18:17
you mean in my $NIGHTSCOUT_HOST string? lemme check...
yep that one
Bill Stackpole
@billstackpole
Jun 04 2016 18:17
nope - no such trailing slash. Lemme change that. <smile>
Brian Bonner
@itsn0tm3
Jun 04 2016 18:18
I'm hopeful that it's that
Bill Stackpole
@billstackpole
Jun 04 2016 18:18
which file did we put that into? I remember exporting it...
but its not in .bash_profile...
.login?
Brian Bonner
@itsn0tm3
Jun 04 2016 18:18
it should be in openaps.ini
its also in .profile
oh nevermind
I just checked my .profile and there's no trailing slash
hmm
Bill Stackpole
@billstackpole
Jun 04 2016 18:19
The reference to the variable is there... wait one... - oh.
boo hiss
Brian Bonner
@itsn0tm3
Jun 04 2016 18:20
and it's not in my openaps.ini either
hrmm
does it work when you manually run it in the shell?
I remember we could get it to work in the shell when we were testing it but it didn't work in the loop?
Bill Stackpole
@billstackpole
Jun 04 2016 18:22
so when I add the trailing slash, the command line doesn't function (borks like this:)
```
pi@billopenaps1:~/billopenaps $ openaps upload-recent-treatments 

undefined:2
if (this.eventType == 'Note') { this.notes = this._type + ' {

               ^^^
undefined:2
this.enteredBy = 'openaps://medtronic/{
                 ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (<anonymous>)
    at main (/usr/local/lib/node_modules/json/lib/json.js:1285:27)
    at Object.<anonymous> (/usr/local/lib/node_modules/json/lib/json.js:1679:5)
    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
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (<anonymous>)
    at main (/usr/local/lib/node_modules/json/lib/json.js:1285:27)
    at Object.<anonymous> (/usr/local/lib/node_modules/json/lib/json.js:1679:5)
    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
No recent treatments to upload
lemme remove and do it again...
(last line - no recent treatments - was telling <grin>)
trying my loop again (to add insult to injury I also just upgraded openaps from 0.1.0 to 0.1.5 - doh - one problem @ a time bill!
Brian Bonner
@itsn0tm3
Jun 04 2016 18:25
:)
Matt Pazoles
@Pazoles
Jun 04 2016 18:27
Does the min_bg value in profile.json come straight from the bg-targets.json file from the pump? Is there any other place where this value might be set?
or altered?
Brian Bonner
@itsn0tm3
Jun 04 2016 18:28
I think its from the pump yeah
Matt Pazoles
@Pazoles
Jun 04 2016 18:29
Trying to figure out why the value in profile.json differs from my bg-targets.json file:
root@pancreas:/home/pi/aps# cat settings/profile.json
{"max_iob":5,"type":"current","dia":3,"current_basal":0.3,"max_daily_basal":0.3,"max_basal":5,"min_bg":90,"max_bg":110,"sens":60}
root@pancreas:/home/pi/aps# cat settings/bg-targets.json
{
  "units": "mg/dL", 
  "raw": "0x01 0x00 0x50 0x6e 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00", 
  "targets": [
    {
      "high": 110, 
      "start": "00:00:00", 
      "low": 80, 
      "offset": 0, 
      "i": 0, 
      "x": 0
    }
  ], 
  "first": 1
}
settings/profile.json report:
[report "settings/profile.json"]
use = shell
bg_targets = settings/bg-targets.json
preferences = preferences.json
settings = settings/settings.json
basal_profile = settings/basal-profile.json
reporter = text
json_default = True
device = get-profile
remainder = 
insulin_sensitivities = settings/insulin-sensitivities.json
Dragan Maksimovic
@dm61
Jun 04 2016 18:32
@Pazoles, your pump low target of 80 is below the hard-coded minimum min_bg, which is 90 I believe
Brian Bonner
@itsn0tm3
Jun 04 2016 18:32
I thought it was changed though, which version of openaps are you using?
I vaguely remember it being changed to 80 but yea I think you might be right about the 90 hard limit
Matt Pazoles
@Pazoles
Jun 04 2016 18:32
Still on openaps 0.1.0
Dragan Maksimovic
@dm61
Jun 04 2016 18:32
a few months old, I have not updated recently
Brian Bonner
@itsn0tm3
Jun 04 2016 18:33
might want to do a search here in gitter about the hard limit, I think @dm61 might be right
Matt Pazoles
@Pazoles
Jun 04 2016 18:33
Thanks! Appreciated!
Brian Bonner
@itsn0tm3
Jun 04 2016 18:34
@billstackpole hows it going? were you able to figure it out?
Bill Stackpole
@billstackpole
Jun 04 2016 18:35
working on it.
right now was removing all references to "remainder = []"
snippet from @bewest didn't remove from openaps.ini so I did it with vim <smile>
need to understand how @scottleibrand is listening for traffic and what backoff algorithm he's implemented. I have three aps units all competing on the same 5 min cron schedule (and they don't like that). As I have heard, Scott has a number of units and each listens prior to trying to run their loop. Also, that Slice-Of-Radio is a piece of cake to install - just plug it in the right spot (already flashed) and change your target from /dev/(whatever you're using) to /dev/(recommended in the mmeowlink setup). then it runs (but the output in syslog is much less helpful. :-( )
so right now I have the Edison w/TI stick, a Pi3 w/TI stick, and a Pi2 with SoR.
yay!
Bill Stackpole
@billstackpole
Jun 04 2016 18:40
Still need to build / buy a case for Edison. Anyone tried to pot it in epoxy or something? I'm thinking of a case made of polyurethane like the bars of the 1970's - yellowish and transparent, with a cavity inside to hold the battery, radio, and cpu.
Also need to figure out whether I should hardwire (solder) my TI stick to the edison - and if so, via USB or Serial.
can't seem to find a good USB female to uUSB male at 180 degrees so I can put both boards back to back.
ideas welcome.
@itsn0tm3 - short answer is NO - not figured out.
Brian Bonner
@itsn0tm3
Jun 04 2016 18:44
nice!
there's actually a snippet in here about the wait for traffic
I think it's in the current mmeowlink code
scott's was some ruby code he made
I think scott said it was similar enough that me might move over to the mmeowlink code
s/me/he
are you erroring out in the shell or in the loop?
Bill Stackpole
@billstackpole
Jun 04 2016 18:46
Such a struggle to search (or to find actually) anything I'm looking for in gitter. I usually screenshot the discussion on my phone as soon as it happens so I can review later.
Brian Bonner
@itsn0tm3
Jun 04 2016 18:48
found a snippet by @scottleibrand: openaps alias add wait-for-silence '! bash -c "echo -n \"Listening: \"; for i in seq 1 40; do echo -n .; ~/src/mmeowlink/bin/mmeowlink-any-pump-comms.py --port '$ttyport' --wait-for 20 2>/dev/null | egrep -v subg | egrep No && break; done"'
he was talking about it in the mmeowlink room
@billstackpole Can you run the nightscout code one by one and figure out which specific portion is failing?
muffindad
@muffindad
Jun 04 2016 18:52
Hi guys, have a qq. I want to do a headless install on a Pi 2, instructions say to edit a file here - /path/to/sd/card/etc/wpa_supplicant/wpa_supplicant.conf
I've imaged my card with Jessie (5/27 version, latest) but the only file directory I have is "overlays"
Bill Stackpole
@billstackpole
Jun 04 2016 18:53
sure. running a loop now on Edison (turned off all other APS boxes).
@muffindad - type "pwd" and press enter
Brian Bonner
@itsn0tm3
Jun 04 2016 18:54
@billstackpole one way I cheat the wait code is that I have my APS's offset. My pi is every /5 and my edison is /5+2 so they don't really conflict with each other when in range
muffindad
@muffindad
Jun 04 2016 18:54
no trying to set it up on the card before I put into the Pi. I'll try the other method
ty
Dana Lewis
@danamlewis
Jun 04 2016 18:55
Searching gitter works better in the web browser version of gitter @billstackpole or whoever was trying to find something
Bill Stackpole
@billstackpole
Jun 04 2016 18:55
yeah - it was me. Doh.
am using a browser, just <grr>.
<smile>
Dana Lewis
@danamlewis
Jun 04 2016 18:57
This message was deleted
Bill Stackpole
@billstackpole
Jun 04 2016 18:57
partly is that when I search using the magnifying glass, the results don't come back chronologically - all dates are sprinkled about
Dana Lewis
@danamlewis
Jun 04 2016 18:58
Yea. Seems to grab way more results than using desktop or phone app, though
Brian Bonner
@itsn0tm3
Jun 04 2016 18:58
and then things get sprinkled around in the brain cells and sleep happens and you wake up in the morning going Eureka! Everything makes sense now!
Dana Lewis
@danamlewis
Jun 04 2016 18:59
Lol
Bill Stackpole
@billstackpole
Jun 04 2016 19:00
OK - so status-upload is erroring:
edison@billopenapse1:~/billopenaps$ openaps status-upload
ns-status://JSON/shell/monitor/upload-status.json
reporting monitor/upload-status.json
Input file entries.json does not exist.
edison@billopenapse1:~/billopenaps$
and upload-recent-treatments has no treatments to upload (even though I just calibrated and bolused.)
Input file entries.json does not exist.
edison@billopenapse1:~/billopenaps$ openaps upload-recent-treatments

undefined:2
if (this.eventType == 'Note') { this.notes = this._type + ' {
                                                          ^^^
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (<anonymous>)
    at main (/usr/local/lib/node_modules/json/lib/json.js:1285:27)
    at Object.<anonymous> (/usr/local/lib/node_modules/json/lib/json.js:1679:5)
    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

undefined:2
this.enteredBy = 'openaps://medtronic/{
                 ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (<anonymous>)
    at main (/usr/local/lib/node_modules/json/lib/json.js:1285:27)
    at Object.<anonymous> (/usr/local/lib/node_modules/json/lib/json.js:1679:5)
    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
No recent treatments to upload
edison@billopenapse1:~/billopenaps$
upload/latest-treatments.json has a size of zero.
Might have to wait a few iterations of my loop
or run the loop manually a few more times.
Brian Bonner
@itsn0tm3
Jun 04 2016 19:04
looks like entries.json doesn't exist?
Bill Stackpole
@billstackpole
Jun 04 2016 19:04
Bryan, so your edison crontab looks like this?
# m h  dom mon dow   command
*/5+2 * * * * (cd /home/edison/billopenaps/ && openaps loop 2>&1 | logger -t openaps-loop)
* * * * * (cd /home/edison/billopenaps/ && oref0-reset-git | logger -t oref0-reset-git)
edison@billopenapse1:~/billopenaps$
right - entries.json does not exist
edison@billopenapse1:~/billopenaps$ ls upload/
latest-treatments.json
edison@billopenapse1:~/billopenaps$
with timestamp:
-rw-r--r-- 1 edison users 0 Jun 4 15:01 latest-treatments.json
loop is running again now
Brian Bonner
@itsn0tm3
Jun 04 2016 19:06
my cron is a bit convoluted
This message was deleted
This message was deleted
3-59/5 * * * * cd /home/edison/itsaps2 && ( rm -f enact/enact.jso
let me find my entries.json
hmm I don't think I have that, the only entries.json I can find is the one that pulls from nightscout
Bill Stackpole
@billstackpole
Jun 04 2016 19:09
I think that Scott told me some time ago that entries.json might be the file written to the NS site
how does latest-treatments.json get built?
looks like from format-latest-nightscout-treatments
format-latest-nightscout-treatments = ! bash -c "nightscout cull-latest-openaps-treatments monitor/pumphistory-zoned.json settings/model.json $(openaps latest-ns-treatment-time) > upload/latest-treatments.json"
Brian Bonner
@itsn0tm3
Jun 04 2016 19:11
yes I think so
Bill Stackpole
@billstackpole
Jun 04 2016 19:13
so that's whats failing for me. Here is the output from the cmd line (minus the redirect to the file):
Matt Pazoles
@Pazoles
Jun 04 2016 19:13
@billstackpole - I went through some similar errors trying to work through uploading treatments last night, and found that I needed to run mm-format-ns-treatments to create latest-treatments.json
Bill Stackpole
@billstackpole
Jun 04 2016 19:13
edison@billopenapse1:~/billopenaps$ nightscout cull-latest-openaps-treatments monitor/pumphistory-zoned.json settings/model.json $(openaps latest-ns-treatment-time) 

undefined:2

if (this.eventType == 'Note') { this.notes = this._type + ' {
                                             undefined:2
             ^^^
this.enteredBy = 'openaps://medtronic/{
                 ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (<anonymous>)
    at main (/usr/local/lib/node_modules/json/lib/json.js:1285:27)
    at Object.<anonymous> (/usr/local/lib/node_modules/json/lib/json.js:1679:5)
    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
SyntaxError: Unexpected token ILLEGAL
    at Object.Function (<anonymous>)
    at main (/usr/local/lib/node_modules/json/lib/json.js:1285:27)
    at Object.<anonymous> (/usr/local/lib/node_modules/json/lib/json.js:1679:5)
    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
edison@billopenapse1:~/billopenaps$
pumphistory-zoned.json has content
Matt Pazoles
@Pazoles
Jun 04 2016 19:13
the command builds off of pumphistory-zoned.json and model.json, and then exports to a file
try
mm-format-ns-treatments monitor/pumphistory-zoned.json settings/model.json upload/latest-treatments.json
replacing the file paths where needed
Bill Stackpole
@billstackpole
Jun 04 2016 19:15
@Pazoles problem is that latest-treatments.json is zero size (no content)
cause the call to build it borks as pasted above.
Brian Bonner
@itsn0tm3
Jun 04 2016 19:15
even when doing it the way @Pazoles says to do it?
Bill Stackpole
@billstackpole
Jun 04 2016 19:15
not sure if model.json is correct - can you compare mine (to follow) to yours and advise?
edison@billopenapse1:~/billopenaps$ less settings/model.json 

{
  "units": "grams", 
  "first": 1, 
  "schedule": [
    {
      "q": 0, 
      "start": "00:00:00", 
      "r": 80, 
      "ratio": 8.0, 
      "offset": 0, 
      "i": 0, 
      "x": 0
    }
  ]
}
settings/model.json (END)
Brian Bonner
@itsn0tm3
Jun 04 2016 19:16
uh no that looks wrong
model.json should be just your pump model number
Matt Pazoles
@Pazoles
Jun 04 2016 19:16
That looks like it should be the output for carb-ratios.json
Bill Stackpole
@billstackpole
Jun 04 2016 19:16
that might be it!
Brian Bonner
@itsn0tm3
Jun 04 2016 19:17
pi@livingroomaps:~/itsaps/settings $ more model.json
"722"
pi@livingroomaps:~/itsaps/settings $
Bill Stackpole
@billstackpole
Jun 04 2016 19:20
so I manually changed model.json to contain only "723" and now I have the correct file.
hmmm
now I need to find the link in openaps.ini that creates model.json and figure out how that got borked.
Brian Bonner
@itsn0tm3
Jun 04 2016 19:22
yeah def need to do that
mine looks like
[report "settings/model.json"]
device = medpump
use = model
reporter = JSON
Bill Stackpole
@billstackpole
Jun 04 2016 19:24
edison@billopenapse1:~/billopenaps$ openaps report remove settings/model.json
removed pump://JSON/read_carb_ratios/settings/model.json
edison@billopenapse1:~/billopenaps$ openaps report add settings/model.json JSON pump model
added pump://JSON/model/settings/model.json
edison@billopenapse1:~/billopenaps$ rm settings/model.json 
edison@billopenapse1:~/billopenaps$ openaps report invoke settings/model.json
pump://JSON/model/settings/model.json
subg_rfspy status: OK
Version: subg_rfspy 0.8
reporting settings/model.json
edison@billopenapse1:~/billopenaps$ less settings/model.json 
edison@billopenapse1:~/billopenaps$ cat settings/model.json 
"723"edison@billopenapse1:~/billopenaps$ 
edison@billopenapse1:~/billopenaps$
whew
lets try again.
(I think I figured out what I did in my history)
was trying to add carb ratios and put them into the wrong file
overwriting my model.json
now mine looks like yours
Brian Bonner
@itsn0tm3
Jun 04 2016 19:29
:+1: \
Bill Stackpole
@billstackpole
Jun 04 2016 19:31
so now if I run openaps latest-ns-treatment-time I get nothing returned. What do you get when you run that?
Brian Bonner
@itsn0tm3
Jun 04 2016 19:32
pi@livingroomaps:~/itsaps $ openaps latest-ns-treatment-time
2016-06-04T15:20:14-04:00
pi@livingroomaps:~/itsaps $
Bill Stackpole
@billstackpole
Jun 04 2016 19:34
and my error on the carb ratios came from this link:
that shows an incorrect report add command
openaps report add settings/model.json JSON pump read_carb_ratios
which should be: openaps report add settings/carb-ratios.json JSON pump read_carb_ratios
Matt Pazoles
@Pazoles
Jun 04 2016 19:35
Just upgraded to 0.1.5, but still having an issue with enacting a temp basal
{
  "requested": {
    "duration": 30, 
    "rate": 0, 
    "temp": "absolute"
  }, 
  "bg": 82, 
  "temp": "absolute", 
  "snoozeBG": 87, 
  "timestamp": "2016-06-04T15:30:59.776722", 
  "rate": 0.0, 
  "reason": "Eventual BG 87<90, no temp, setting -0.133U/hr", 
  "eventualBG": 87, 
  "recieved": false, 
  "duration": 0, 
  "tick": "+1"
}
Bill Stackpole
@billstackpole
Jun 04 2016 19:35
doh.
Matt Pazoles
@Pazoles
Jun 04 2016 19:35
and does this have to do with "recieved" being a typo
Bill Stackpole
@billstackpole
Jun 04 2016 19:36
matt - no issue with the type
typo
all that is needed are three items: duration, rate, and temp
if you enact that json file, you should set yourself to a temp basal of zero for 30 min.
here's mine from only moments ago:
edison@billopenapse1:~/billopenaps$ cat enact/enacted.json 
{
  "bg": 198, 
  "temp": "absolute", 
  "snoozeBG": 194, 
  "timestamp": "2016-06-04T15:36:38.726782", 
  "missing": [
    "duration", 
    "rate"
  ], 
  "reason": "Eventual BG 156>=115, adj. req. rate:4.3 to maxSafeBasal:2.0, temp 2 >~ req 2.0U/hr", 
  "eventualBG": 156, 
  "error": "missing required input fields", 
  "input": {
    "reason": "Eventual BG 156>=115, adj. req. rate:4.3 to maxSafeBasal:2.0, temp 2 >~ req 2.0U/hr", 
    "bg": 198, 
    "eventualBG": 156, 
    "temp": "absolute", 
    "snoozeBG": 194, 
    "mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 30, Target: 105 Deviation: 18 BGI: -3.85", 
    "tick": "+2"
  }, 
  "mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 30, Target: 105 Deviation: 18 BGI: -3.85", 
  "tick": "+2"
}edison@billopenapse1:~/billopenaps$
You'll note that it states that it's missing duration and rate
also says that I need 4.3u/hr to correct. (I should bolus - gimme a min <smile>)
Lynne Butts
@flutelynne_twitter
Jun 04 2016 19:41
hmmm so same problem again as earlier. Pump is looping, doing temp basals, but Nighscout site has not shown info for 46 min. What should I be doing?
Bill Stackpole
@billstackpole
Jun 04 2016 19:52
@flutelynne_twitter I'm struggling with a similar problem
mine doesn't seem to be uploading - I'm working thru issues - some of whihc I caused myself <smile>
Ben West
@bewest
Jun 04 2016 19:56
@flutelynne_twitter what happens when you openaps do-everything?
Bill Stackpole
@billstackpole
Jun 04 2016 19:58
(guessing that you had her create an alias for that cause I just tried it <grin>)
Ben West
@bewest
Jun 04 2016 19:59
@billstackpole I think you had an error saying no entries.jso
Bill Stackpole
@billstackpole
Jun 04 2016 19:59
exactly my error
just tried again after fixing the file I broke...
edison@billopenapse1:~/billopenaps$ 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 ) 
Input file entries.json does not exist.
edison@billopenapse1:~/billopenaps$
Ben West
@bewest
Jun 04 2016 20:00
I see
Bill Stackpole
@billstackpole
Jun 04 2016 20:00
trying manually and that's my issue. No reference to entries.json in openaps.ini
Ben West
@bewest
Jun 04 2016 20:00
that part isn't working
try doing nightscout autoconfigure-device-crud https://my.site.com mylongsecret
Bill Stackpole
@billstackpole
Jun 04 2016 20:01
edison@billopenapse1:~/billopenaps$ cat openaps.ini | grep entries
edison@billopenapse1:~/billopenaps$
Ben West
@bewest
Jun 04 2016 20:01
replace with your site and secret api
what's happening is the environment variable is not set
so ns-upload is getting incorrect arguments
Bill Stackpole
@billstackpole
Jun 04 2016 20:02
hashed secret or plaintext?
Ben West
@bewest
Jun 04 2016 20:02
plaintext
it takes the plain version and saves the hashed version in ns.ini
Bill Stackpole
@billstackpole
Jun 04 2016 20:02
is there a way for me to run that without the entry staying in my history file?
Lynne Butts
@flutelynne_twitter
Jun 04 2016 20:02
@bewest I did that, 3 min. ago, and nothing yet. Then I did openaps report-nightscout. Still no change. I do see "nothing to upload", but I see the temp basals going, and did the esc key on the pump to verify that it was working.
Ben West
@bewest
Jun 04 2016 20:03
@billstackpole the message about entries.json is telling me that the arguments to ns-upload are incorrect, and it's using one of the defaults instead of the information you're passing in
so it's a red-herring, cosmetic thing
the actual error has nothing to do with entries
Bill Stackpole
@billstackpole
Jun 04 2016 20:04
error message is that device ns already exists. Should I delete the ns process and re-run?
Ben West
@bewest
Jun 04 2016 20:04
ah, no it's fine
so instead of ns-upload ...
use openaps use ns shell upload-non-empty-treatments upload/latest-treatments.json
make it report with openaps report add upload/uploaded-missing-treatments.json JSON ns shell upload-non-empty-treatments upload/latest-treatments.json
oops some errors there
Lynne Butts
@flutelynne_twitter
Jun 04 2016 20:07
It's really long. Should I NOT post? Help Bill first. I can wait.
Ben West
@bewest
Jun 04 2016 20:07
if it's long you can maybe post it here? https://gist.github.com/
Lynne Butts
@flutelynne_twitter
Jun 04 2016 20:08
ok
Bill Stackpole
@billstackpole
Jun 04 2016 20:08
tnx Lynn. @bewest - too few args?
need one more arg - oper remote input
have two need three?
Lynne Butts
@flutelynne_twitter
Jun 04 2016 20:10
@billstackpole YW
Bill Stackpole
@billstackpole
Jun 04 2016 20:11
normally I think I would: ns-upload <host> <key> <file to post> <localfile to send>
fjungman
@fjungman
Jun 04 2016 20:11
I just came to search for help on my missing entries.json file during upload. Now I'll just sit back and watch the debugging session in real-time!!!
Bill Stackpole
@billstackpole
Jun 04 2016 20:12
where <file to post> will be named treatments.json and <localfile to send> is the generated upload/latest-treatments.json
Ben West
@bewest
Jun 04 2016 20:12
@billstackpole no, ns-upload is not recommended directly
Bill Stackpole
@billstackpole
Jun 04 2016 20:12
oh.
(or "doh")
Ben West
@bewest
Jun 04 2016 20:12
@billstackpole I think you need to sudo npm install -g git://github.com/openaps/oref0.git'#dev'
Bill Stackpole
@billstackpole
Jun 04 2016 20:13
from within my git directory or the parent?
(openaps or home dir?)
Ben West
@bewest
Jun 04 2016 20:13
doesn't matter
there was an earlier version of that ns tool that required 3 arguments
now it only requires one
oper :)
basically it calls nightscout ns $NIGHTSCOUT_HOST $API_SECRET ... for you automatically
Bill Stackpole
@billstackpole
Jun 04 2016 20:14
its thinking
Ben West
@bewest
Jun 04 2016 20:14
the variables get saved in ns.ini
so you never need them again
Bill Stackpole
@billstackpole
Jun 04 2016 20:14
how can I tell which version of oref0 is currently in place?
(if I run oref0 there doesn't seem to be a version / branch reference)
Ben West
@bewest
Jun 04 2016 20:15
hmm, npm show oref0 version or maybe npm show oref0 gitHead
Bill Stackpole
@billstackpole
Jun 04 2016 20:17
0.2.0 (or the hash ending in 74ca)
got three "WARN engine" messages during the npm install but no failures.
however,
Ben West
@bewest
Jun 04 2016 20:18
ok
Bill Stackpole
@billstackpole
Jun 04 2016 20:18
edison@billopenapse1:~/billopenaps$ openaps use ns shell upload-non-empty-treatments upload/latest-treatments.json
usage: openaps-use ns shell [-h] [--not-json-default] oper remote input ...
openaps-use ns shell: error: too few arguments
edison@billopenapse1:~/billopenaps$
Ben West
@bewest
Jun 04 2016 20:18
openaps device remove ns
well
there's two ways
one is to remove and re-add
Bill Stackpole
@billstackpole
Jun 04 2016 20:19
removed.
Ben West
@bewest
Jun 04 2016 20:19
ok
Bill Stackpole
@billstackpole
Jun 04 2016 20:19
now to re-add:
Ben West
@bewest
Jun 04 2016 20:19
now we run the nightscout autoconfigure-device-crud ... again
Bill Stackpole
@billstackpole
Jun 04 2016 20:20
cool.
so the device is readded.
checking for ns.ini...
Ben West
@bewest
Jun 04 2016 20:20
ok try that use again
Bill Stackpole
@billstackpole
Jun 04 2016 20:22
looks like that worked.
let me see if I have grasped what we jsut did:
1 - my version of oref0 was not in the dev branch
Ben West
@bewest
Jun 04 2016 20:22
openaps device show ns --json | json -M | json -a value.fields



oper
it might have been
you were probably on slightly older version of dev
Bill Stackpole
@billstackpole
Jun 04 2016 20:23
so the npm install brought me back up to current
Ben West
@bewest
Jun 04 2016 20:23
yes
it used to say oper remote input I think
now it just says oper
so it only requires one arg now
Bill Stackpole
@billstackpole
Jun 04 2016 20:23
deleting the ns device allowed the crud script to re-add a NEW ns device that depends on ns.ini (rather than a .profile file-stored set of credentials available an enviornment vbls)
Ben West
@bewest
Jun 04 2016 20:24
ns device was already there
but required oper remote input as input fields
the updated one only requires oper
that as the cause of "not enough arguments"
Bill Stackpole
@billstackpole
Jun 04 2016 20:24
so back to the question at hand - I was missing entries.json
Ben West
@bewest
Jun 04 2016 20:24
no
were not missing entries.json
you were missing the apisecret and hostname
because the variables were empty in environment
Bill Stackpole
@billstackpole
Jun 04 2016 20:25
ah. so is entries.json the file that is uploaded to the website (NS)?
Ben West
@bewest
Jun 04 2016 20:25
the ns device makes that impossible
no
it's a default argument when the upload tool is run
it happened because it didn't get the hostname or secret
you were actually calling equivalent of: ns-upload treatments.json upload/file-to-upload.json
and calling it that way will cause it to say "entries.json" does not exist
Bill Stackpole
@billstackpole
Jun 04 2016 20:26
so I need to change my upload alias now?
Ben West
@bewest
Jun 04 2016 20:26
no
well yes
basically we don't want to use ns-upload ...
Bill Stackpole
@billstackpole
Jun 04 2016 20:27
current version (WRONG cause it's using ns-upload):
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\""
Ben West
@bewest
Jun 04 2016 20:27
if I were you
I would finish setting up reports
and then change that to simply invoke the reports
so same way everything else works
to finish making the reports:
I use two reports/uses like this:
openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
openaps use ns shell upload-non-empty-treatments nightscout/recent-treatments.json
sounds like some of your files might be different
so..
openaps report add nightscout/recent-treatments.json JSON ns shell format-recent-history-treatments monitor/pump-history.json model.json
that creates report for the first one called nightscout/recent-treatments.json
then creating second report:
openaps report add nightscout/uploaded-missing-treatments.json JSON ns shell upload-non-empty-treatments nightscout/recent-treatments.json
that creates second reprt called nightcout/uploaded-missing-treatments.json that will be the result from uploading to NS
so, to run them, an alias that does: report invoke nightscout/recent-treatments.json nightcout/uploaded-missing-treatments.json will prep the data for NS and then upload it to Nightscout
so something like: openaps alias add upload-recent-treatments "report invoke nightscout/recent-treatments.json nightcout/uploaded-missing-treatments.json"
Ben West
@bewest
Jun 04 2016 20:33
so I'd modify the alias last
Bill Stackpole
@billstackpole
Jun 04 2016 20:34
grokking
(just lost power - transferred network to my phone so we can finish this config / discussion)
Ben West
@bewest
Jun 04 2016 20:35
for the reports and uses, notice how I copy/paste everything after use and add it after JSON
adding a report takes the name of the new report, the format, usually JSON, and then the "use spec"
it's exact same as use, always
once it's a report, you can figure out the matching use with openaps report show --cli nightscout/recent-treatments.json, you should be able to run whatever it prints and get the same error
or same results, in any case
Bill Stackpole
@billstackpole
Jun 04 2016 20:39
Ben, as usual, you rock. Thank you!
Lynne Butts
@flutelynne_twitter
Jun 04 2016 20:40
@bewest wasn't sure how to send the link once I pasted it...
Dana Lewis
@danamlewis
Jun 04 2016 20:42
Props @Pazoles for the PR! Thank you
Lynne Butts
@flutelynne_twitter
Jun 04 2016 20:43
I will return tonight. Thank you. Yay Bill!
Bill Stackpole
@billstackpole
Jun 04 2016 20:44
<blush> tnx for the encouragement Lynn. Thank you so much for the help Ben!
@bewest - an additional question - does it matter whether I'm using pumphistory.json or pumphistory-zoned.json?
Ben West
@bewest
Jun 04 2016 20:46
yes
needs to be zoned
Bill Stackpole
@billstackpole
Jun 04 2016 20:46
K - will change the report to reflect that.
I am also adding the path to my model.json file
Scott Leibrand
@scottleibrand
Jun 04 2016 20:55
@Pazoles I don't think you want a min_bg of 80. It should be about the same as your max_bg, or maybe 10 points lower.
And yes, we do have a lower bound override on that, which changed from 90 to 80 at some point (perhaps in AMA branch).
Dana Lewis
@danamlewis
Jun 04 2016 20:57
*that would be good to note in the docs, too, I don't think anyone's added that in
Matt Pazoles
@Pazoles
Jun 04 2016 21:05
Thanks @danamlewis! And good call @scottleibrand - I was wondering how wide of a target range most folks are using. The docs have an example with a difference of 10, but wasn't sure if that was a strong suggestion or not.
Dana Lewis
@danamlewis
Jun 04 2016 21:08
Yea.
Feel free to reword :) to make more clear
Bill Stackpole
@billstackpole
Jun 04 2016 21:15
have an additional process-related question: Apparenlty when I set this up, I was performing two steps: 1 - status-upload. 2 - treatment upload. Looks like we have resolved the issuews wiht treatment upload, but apparently my loop is still calling the status-upload in the old format. Do I need to send a separate status update in order for the OpenAPS pill to update?
I found some excellent info by typing this:
openaps use ns -h
so I think I can
openaps use ns status
to get the current status of NS - but not sure if I should be uploading the output of that (via a report then alias) or doing something differnet to update that pill.
Ben West
@bewest
Jun 04 2016 21:17
just need to adjust the alias
Bill Stackpole
@billstackpole
Jun 04 2016 21:17
again, my current version (clearly wrong as it's calling bash -c) is as follows:
Ben West
@bewest
Jun 04 2016 21:18
something like: openaps alias add upload-recent-treatments "report invoke nightscout/recent-treatments.json nightcout/uploaded-missing-treatments.json"
then the alias will use the new reports
Bill Stackpole
@billstackpole
Jun 04 2016 21:18
status-upload = ! bash -c "openaps report invoke monitor/upload-status.json && ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json monitor/upload-status.json"
Ben West
@bewest
Jun 04 2016 21:18
ah, so that's another report:
Bill Stackpole
@billstackpole
Jun 04 2016 21:18
I think i want the alias to simply call reports - and NOT to shell out.
Ben West
@bewest
Jun 04 2016 21:19
openaps use ns shell upload devicestatus.json monitor/upload-status.json
Bill Stackpole
@billstackpole
Jun 04 2016 21:19
and I shold no longer need the $vars either.
Ben West
@bewest
Jun 04 2016 21:20
so for report: openaps report add nightscout/uploaded-status.json JSON ns shell upload devicestatus.json monitor/upload-status.json
then for the alias,:
openaps alias add status-upload "report invoke monitor/upload-status.json nightscout/uploaded-status.json"
Bill Stackpole
@billstackpole
Jun 04 2016 21:22
then one more review of my loop to be sure it's calling the correct status-upload. :smiley: :thumbsup:
YAY! PILLS!
(that sounds weird, but YAY!)
Frank Best
@efbest
Jun 04 2016 21:23

@johnmales how did you solve that problem (

Running into the issue again where downloaded CGM data from the pump is not current - from around 0230, whilst other reports are current, around 0630. CGM values on the pump are up to date.). I've got the same!

Bill Stackpole
@billstackpole
Jun 04 2016 21:23
so is there a reason that my openaps pill almost immediately transitions from the UPDATED version to the yellow yield sign and "unknown"?
Bill Stackpole
@billstackpole
Jun 04 2016 21:31
and if I'm reading you right Ben, ALL references to bash -c <blah blah> should be moved to a report invocation. One of my existing aliases (latest-ns-treatment-time) still references the $NIGHTSCOUT_HOST variable - does the new ns process obviate the use of that variable - and can I call that from the ns process? (looks like I can run "openaps use ns shell get latest-treatment-time") but throws errors when I run that cmd
Ben West
@bewest
Jun 04 2016 21:34
yeah, it's built into the prior report already
you can just take that away
Bill Stackpole
@billstackpole
Jun 04 2016 21:34
so no more need to specify an "update" as well as a "treatment"?
both are rolled into the "treatment" now?
just delete that alias?
Ben West
@bewest
Jun 04 2016 21:35
format-recent-history-treatments monitor/pump-history.json model.json checks NS and only selects recent/missing stuff
and it's specific to treatments
it does latest-ns-treatment-time inside, automatically
it's built in
yeah, you don't need it
Bill Stackpole
@billstackpole
Jun 04 2016 21:37
sweet. While removing instructions seems weird to me, its nice that the overall process is becoming more streamlined.
Dana Lewis
@danamlewis
Jun 04 2016 21:38
@bewest is awesome that way :)
Bill Stackpole
@billstackpole
Jun 04 2016 21:39
:thumbsup:
Props @bewest !
Brian Bonner
@itsn0tm3
Jun 04 2016 21:40
:confetti_ball: @bewest :confetti_ball:
Scott Leibrand
@scottleibrand
Jun 04 2016 21:51
@Pazoles we run with min_bg=max_bg, but 10 point range is more common. Important thing is not to have a really low min_bg, as you'll end up 30 points below it sometimes without glucagon.
Paul Martin
@Spazholio
Jun 04 2016 21:53
That might be what’s happening to me. I’ve been having overnight lows for no discernible reason.
Scott Leibrand
@scottleibrand
Jun 04 2016 21:54
What branch and features are you running?
Dana Lewis
@danamlewis
Jun 04 2016 21:55
@Spazholio possibly. I think you were really convinced when we had the target convo that you wanted them that low, if I remember correctly.
But regardless for just getting started for anyone, I recommend starting with higher loop targets than you might manually correct to; after you observe how often you end up below target then you can progressively bump loop targets down.
Paul Martin
@Spazholio
Jun 04 2016 21:58

@danamlewis Well yeah, not 60. =) But yes, I very much like to keep tight control. Any three digit number makes me wary. ~90 is the goal I strive for.

@scottleibrand I’m running AMA, auto-sens, and…I think that’s it? What other options? I might be missing something obvious.

Alin Artiom Kenibasov
@ktomy
Jun 04 2016 21:59
@bewest checked callibration parsing, on android-upload it uploads callibrations, in openaps dexcom plugin it gives crcError exception. I'll try to dig into details to see what exactly happens...
Dana Lewis
@danamlewis
Jun 04 2016 21:59
If you're running low overnight, set your overnight target to 99 then @Spazholio
No harm in having varying targets
Paul Martin
@Spazholio
Jun 04 2016 22:00
Very true. Silly question - set that target where, exactly? NS?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:01
On pump.
fjungman
@fjungman
Jun 04 2016 22:01
Thank you @bewest!, my loop is working well now, with pills showing!!! All I did was lurk and learn from @billstackpole as he went through exactly what I was trying to fix...
Bill Stackpole
@billstackpole
Jun 04 2016 22:01
@bewest rocks!
Dana Lewis
@danamlewis
Jun 04 2016 22:01
Pump. Can set varying targets for whatever hours you want - ie 90 day, 99 from midnight to 6am, etc
:) @fjungman @billstackpole that's why these channels are awesome!
Bill Stackpole
@billstackpole
Jun 04 2016 22:02
@danamlewis - with a 723, where to set various target settings by time? I know how to set my basal rates, but not varying targets...
(& I lurk a lot <lurk lurk>)
fjungman
@fjungman
Jun 04 2016 22:03
Simple operational question, that I probably could answer examining the code. With all of this information stored in the pump and on NS, where is the master data? Is what I set in NS going to over-ride the pump settings, or does NS get updated from the pump, or vica-versa?
Paul Martin
@Spazholio
Jun 04 2016 22:03
Huh. My pump is set to 100-100 for all hours. Don’t have differing ones for different hours of the day.
Dana Lewis
@danamlewis
Jun 04 2016 22:04
@Spazholio you can change that
fjungman
@fjungman
Jun 04 2016 22:04
@billstackpole in the Bolus Wizard Settings.
@Spazholio same as ^^^
Paul Martin
@Spazholio
Jun 04 2016 22:04
I understand that, but that thought of setting it to 99 has already been covered. Guess I’ll just have to bump it up a bit. Do you have any thoughts on why I might be going low? Thinking maybe increased sensitivity overnight or something?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:05
@Spazholio I just added automatic target adjustment to AMA based on autosens ratio, which might help.
Paul Martin
@Spazholio
Jun 04 2016 22:06
@scottleibrand So I should update oref0?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:06
Has it been detecting sensitivity (raising ISF) on nights when you end up low?
if so, yes, do a git pull.
Paul Martin
@Spazholio
Jun 04 2016 22:06
I
Argh.
I’m doing the NPM installation method. That should still pull it in, right?
Dana Lewis
@danamlewis
Jun 04 2016 22:07
Yea possibly differing sensitivities. Try bumping it a bit and/or enabling the new auto sens target adjustments, been doing good for me.
Paul Martin
@Spazholio
Jun 04 2016 22:07
sudo npm install -g git://github.com/openaps/oref0.git'#advanced-meal-assist' <— that’s the recommended method, right?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:07
If you already did npm link at some point just git pull. Only need to re-do npm when we add files.
Ah, yeah, that also works.
Bill Stackpole
@billstackpole
Jun 04 2016 22:07
@fjungman - tnx. Not an intuitive interface, but just noticed after entering the menu that there is a time of 00:00 tied to my setting of 95-115. Will poke around.
Scott Leibrand
@scottleibrand
Jun 04 2016 22:08
If you don't modify the source then that is better.
Paul Martin
@Spazholio
Jun 04 2016 22:08
And I’m not sure where it’s setting the ISF. Is that something I can pull from a NS report without having to scroll back and hover over the pill for each interval?
Dana Lewis
@danamlewis
Jun 04 2016 22:09
Isf baseline comes from your pump
Scott Leibrand
@scottleibrand
Jun 04 2016 22:09
I don't think we have any retrospective reporting, but a single spot check should be fine, as it won't change much over less than 8h.
Paul Martin
@Spazholio
Jun 04 2016 22:10
Actually, I don’t have a ~/src directory anymore, so npm it is! =)
@danamlewis True, but auto-sens doesn’t push back to the pump, right? Just takes the baseline from it and adjusts on the fly?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:10
The autosens ISF should be in the openaps reason field in the pill.
correct.
Paul Martin
@Spazholio
Jun 04 2016 22:11
Checking that now.
Dana Lewis
@danamlewis
Jun 04 2016 22:12
Correct. Will adjust basals (and new , now targets) on the fly as needed
Paul Martin
@Spazholio
Jun 04 2016 22:13
No, my usual ISF is 20, and when I had a low last night (around 6am) it was adjusted to ~21-22.
Then again, I’m seeing jumps in readings from one dot to the next. Like the Dexcom is reading inaccurately. Which is quite possible, since I’m on day 10.
Is occasional “???” what tends to tip people off that the sensor might be going bad or that it’s time to change out?
Dana Lewis
@danamlewis
Jun 04 2016 22:20
That, and or really jumpy and far off from calibration readings.
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:21
@bewest I could work out my ns prob any time, too. If later is better, please say so.
Dana Lewis
@danamlewis
Jun 04 2016 22:21
Esp. If beyond about a week and a half for me
Paul Martin
@Spazholio
Jun 04 2016 22:23
Yeah, I’m hitting that spot now. Woke up at “61” but was really at “91”. And I’m getting persistent “???” so it’s time to swap.
Dana Lewis
@danamlewis
Jun 04 2016 22:23
:+1:
Paul Martin
@Spazholio
Jun 04 2016 22:23
Do I need to do a 2-hour sensor thing if I just stuff another sensor in there and swap out the transmitter? Does that screw anything up?
Dana Lewis
@danamlewis
Jun 04 2016 22:24
G4 or G5?
Paul Martin
@Spazholio
Jun 04 2016 22:24
G4
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:24
General question to Paul, Dana, or Scott: If I have G5 receiver plugged into pi with usb, should I still have the bridge set up in nightscout?
Dana Lewis
@danamlewis
Jun 04 2016 22:25
If you do a new sensor, but don't hit restart, it'll go to ??? Or jourglass for a while..but around an hour or so, it might come back. When it does, it'll be off and need calibration. But that method you are only without data for an hour, if that's a big deal to you
If you have two receivers, you can restart one but not the other. That's what I often do. I then later (few hours later) restart the one that only had the hour gap, in order to bring it back on par.
The data is a bit weird if you do the one hour hope it works method, so I wouldn't do that right before you go to bed
Paul Martin
@Spazholio
Jun 04 2016 22:26
It’s the “might” that caught my eye. So it’s possible that it might just ka-flooey and require a 2-hour sensor change anyway?
Dana Lewis
@danamlewis
Jun 04 2016 22:26
But if you're doing it midday and have time to watch it and calibrate 1-2x before you go to bed )ie now and at bedtime) then it's an ok option
4/5 or so times it works. Occasionally it doesn't and I end up 3 hours sans data.
But if you have two receivers, worst case you are out 2 hours.
Scott Leibrand
@scottleibrand
Jun 04 2016 22:27
(You really want a second receiver if you can get one.)
allows you to stagger the 7d restarts
Dana Lewis
@danamlewis
Jun 04 2016 22:28
Also an old transmitter so you can "soak" a new sensor, that makes day 1 of live sensor once you restart a receiver a lot better
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:29
Hmmmf. I restarted dynos, and some things came back on. OpenAPS says "4 hours ago, though.
Paul Martin
@Spazholio
Jun 04 2016 22:30
Clarification: how do you mean “stagger the 7d restarts” and how does one go about getting a second receiver/transmitter? Call Dexcom and request seconds on each? I’m game for that method if it doesn’t break the bank.
Dana Lewis
@danamlewis
Jun 04 2016 22:30
Old transmitter, old receiver
Paul Martin
@Spazholio
Jun 04 2016 22:30
@flutelynne_twitter I have a G4, so I can’t answer your question. Sorry ‘bout that. I’d THINK you’d still want the Share bridge set up, but I don’t know for certain.
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:31
@Spazholio Ok. Thanks.
Dana Lewis
@danamlewis
Jun 04 2016 22:31
Yea. It's good backup @flutelynne_twitter
Ben West
@bewest
Jun 04 2016 22:31
@flutelynne_twitter the way we set up your openaps, it doesn't matter
if share goes offline, your openaps rig will upload glucose data to NS
Paul Martin
@Spazholio
Jun 04 2016 22:32
So every 6th day, I’d prep a new sensor by inserting it and attaching the “other” transmitter to it, let it “soak” and then when the existing sensor’s time is up, just switch to the other (1 day old) sensor?
Dana Lewis
@danamlewis
Jun 04 2016 22:32
Yup.
Or every 11rh day, or when you're suspecting your current sensor is on the way to being done
Even 12 hours soak helps, but 24 is my preferred
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:33
@bewest So if it says 4 hours ago, and I see that the loop is still running on the pump, don't worry about it? Just restart dynos when I am home to bring it back?
Paul Martin
@Spazholio
Jun 04 2016 22:33
Hmmm. The transmitters/receivers are sorta pricy, no? I haven’t researched, but seem to recall that each is several hundred bucks.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:33
@Spazholio, Dana and Scott taught me this trick recently and I did it for the first time a few days ago. It made a huge difference with day 1 accuracy. I only did 12 hours; I bet it will be even better with 24. Someone else also told me you can hold down the flap with a piece of tape or bandaid if you don't have an old transmitter to use.
Dana Lewis
@danamlewis
Jun 04 2016 22:34
@Spazholio sounds like Brooke tried it and observed same effects I do. (@pazoles, what is Brooke's handle here?)
Ah. Hi @PazolesBrooke_twitter ! :)
Paul Martin
@Spazholio
Jun 04 2016 22:34
hehe
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:34
Ha, hi @danamlewis . Perfec timing.
Dana Lewis
@danamlewis
Jun 04 2016 22:34
:)
Ben West
@bewest
Jun 04 2016 22:34
@flutelynne_twitter not sure what the issue with NS is
if you're using dexcom share app, are the numbers coming through there?
openaps doesn't interfere with the share bridge
Paul Martin
@Spazholio
Jun 04 2016 22:35
@PazolesBrooke_twitter So the flap on the sensor is somehow conneted to letting the transmitter know that it’s been “prepped”? I wasn’t aware of that. Meaning - why would I have to hold the flap down?
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:35
me either. It's back on now, no problem. reading pump data and openaps stuff.
It also filled in all of the gaps.
Dana Lewis
@danamlewis
Jun 04 2016 22:36
No @spazholio you are just protecting so it doesn't break off and leave the sensor filament in your arm ;)
Ben West
@bewest
Jun 04 2016 22:36
:-) yeah that's a feature of openaps stuff :-)
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:36
@Spazholio no - you only need to hold the flap down because it's fragile and if it comes out, the wire comes out of your body.
So you can use tape if you want to.
Ben West
@bewest
Jun 04 2016 22:36
@Spazholio the flap is attached to the sensor under the skin
Paul Martin
@Spazholio
Jun 04 2016 22:36
Oh!
Dana Lewis
@danamlewis
Jun 04 2016 22:36
The sensor doesn't know it's being prepped or anything
Paul Martin
@Spazholio
Jun 04 2016 22:36
Duh. =)
Ben West
@bewest
Jun 04 2016 22:36
if it flaps around a lot, it bends the wire enough to break it
kind of like bending paperclip
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:36
I wasn't sure if having the bridge AND the receiver going would mess it up. Evidently the bridge can be there.
Ben West
@bewest
Jun 04 2016 22:36
yeah, bridge can be there
Paul Martin
@Spazholio
Jun 04 2016 22:36
I didn’t think it could have, since there’s no electronics on the sensor itself, but I’m new to this so who knows? =)
Ben West
@bewest
Jun 04 2016 22:37
it is the electronics
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:37
@bewest Thanks, Ben!
Ben West
@bewest
Jun 04 2016 22:37
no worries, glad it's working
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:37
@Spazholio Have you ever done the one-time replacement of $199 for the receiver?
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:38
Does anyone currently looping use square and/or dual wave bolusing? Is that feature compatible with openAPS? I don't really eat carbs, so I have to dose for protein as it converts to glucose. My usual method is to dose for 40% of the protein as if it were carbs, about 30 minutes after eating it. This works pretty well for me usually, but I'm wondering if it would work better in general/with openAPS with a square wave bolus.
Dana Lewis
@danamlewis
Jun 04 2016 22:39
Good q. Openaps can't track the square/dual stuff.
Ben West
@bewest
Jun 04 2016 22:39
it should though :-) should be opened up as issue/bug
Dana Lewis
@danamlewis
Jun 04 2016 22:39
That being said - openaps should track the rise of the protein for any later rise
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:39
I was thrilled today when I took the pump and OpenAPS out of the house for a while, and used my phone as a hotspot. I didn't try ssh-ing away from home, yet, though. The loop kept going.
Dana Lewis
@danamlewis
Jun 04 2016 22:40
@bewest it's been noted as one for a long long time ;)
Ben West
@bewest
Jun 04 2016 22:40
there's an issue for it?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:40
Also worth noting that meal assist basically accomplishes the same thing as a square wave does.
Dana Lewis
@danamlewis
Jun 04 2016 22:41
@PazolesBrooke_twitter you'll have to play around similarly to see if the 40% bolus works and then the loop does enough after that, or if you need to tweak that % to get the desired curve or flat line you want
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:41
Right - that's what we're thinking too @danamlewis. We're experimenting with meals right now to see what works best. Last night I kinda OD'd on protein (I ate over 100 grams...don't judge me, haha) and the APS definitely did not cover the rise. I finally had to step in and dose a big correction bolus to get it down. But to be fair I should not be eating that much protein in one sitting......LOL
Dana Lewis
@danamlewis
Jun 04 2016 22:41
You may end up doing meal assist and telling it a few carbs to help in that kind of situation
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:41
We're just starting to figure out meal assist. Matt had the same thought about it.
Dana Lewis
@danamlewis
Jun 04 2016 22:41
:+1:
Ben West
@bewest
Jun 04 2016 22:41
there's bunch of things like that... suspend/resume also is not handled correctly
Scott Leibrand
@scottleibrand
Jun 04 2016 22:41
Entering the 40% as carbs might help there. Might also want to do advanced meal assist for this.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:42
This is too cool...
You guys are awesome!!
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:42
Along with these similar questions, if a person has to do a carb correction for a low, should that be entered through the pump or via the careportal on the Nightscout page?
Dana Lewis
@danamlewis
Jun 04 2016 22:42
@PazolesBrooke_twitter also have you tried eating soon mode yet?
@flutelynne_twitter you can set it up to read from either place
Matt Pazoles
@Pazoles
Jun 04 2016 22:42
Though still need to figure out why the pump isn't receiving the temp basal commands.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:42
@flutelynne_twitter we've been looking into this a lot -- our thought is that it should be entered through careportal
@danamlewis not yet
Dana Lewis
@danamlewis
Jun 04 2016 22:42
@pazoles the pump is not suspended, correct?
Ben West
@bewest
Jun 04 2016 22:43
I put it in the pump
Matt Pazoles
@Pazoles
Jun 04 2016 22:43
Correct
Ben West
@bewest
Jun 04 2016 22:43
check the temp basal type
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:43
It's not percentage
Dana Lewis
@danamlewis
Jun 04 2016 22:43
@PazolesBrooke_twitter that is the other thing I think will really help with meals. A little insulin activity makes a huge difference to how body reacts to food
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:43
it's units
Ben West
@bewest
Jun 04 2016 22:43
can it receive commands?
try openaps use pump test_oref0_compat_menu to see if it can receive commands
Lynne Butts
@flutelynne_twitter
Jun 04 2016 22:44
By entering it in the pump, I know it will definitely get there. Just been doing things on NS since careportal came out.
Ben West
@bewest
Jun 04 2016 22:44
it should turn light on and navigate menu to show the version
Matt Pazoles
@Pazoles
Jun 04 2016 22:44
enacted.json:
{
  "requested": {
    "duration": 30, 
    "rate": 0, 
    "temp": "absolute"
  }, 
  "bg": 102, 
  "temp": "absolute", 
  "snoozeBG": 89, 
  "timestamp": "2016-06-04T17:03:36.768703", 
  "rate": 0.0, 
  "reason": "Eventual BG 87<90, setting -0.433U/hr", 
  "eventualBG": 87, 
  "recieved": false, 
  "duration": 0, 
  "mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 60, Target: 100 Deviation: 0 BGI: -1.68", 
  "tick": -4
}
Dana Lewis
@danamlewis
Jun 04 2016 22:44
Yup. Totally your preference @flutelynne_twitter
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:44
@flutelynne_twitter I think we have to do it through care portal because there's no way to enter carbs with no bolus on the pump.
Scott Leibrand
@scottleibrand
Jun 04 2016 22:44
@PazolesBrooke_twitter AMA also supports temporary targets from NS, so you can set eating soon there
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:44
Are we missing something there?
Scott Leibrand
@scottleibrand
Jun 04 2016 22:44
you could just do a 0.1U bolus with it.
Dana Lewis
@danamlewis
Jun 04 2016 22:45
@PazolesBrooke_twitter which model pump do you have?
Ben West
@bewest
Jun 04 2016 22:45
@PazolesBrooke_twitter try openaps use pump test_oref0_compat_menu please
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:45
I'm very insulin sensitive - .1 would change my BG
Dana Lewis
@danamlewis
Jun 04 2016 22:45
Remember though that the loop would counteract that for you.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:45
oh true
good point
!
Matt Pazoles
@Pazoles
Jun 04 2016 22:46
Running the test now
Dana Lewis
@danamlewis
Jun 04 2016 22:46
So you can still do NS too if you like that, but .1 if you are offline is less of a big deal than it would be if you weren't looping
Ben West
@bewest
Jun 04 2016 22:46
anything happening on the pump?
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:46
That would be much easier than doing it on careportal. I have trouble with it on mobile.
Dana Lewis
@danamlewis
Jun 04 2016 22:46
Yep
Scott Leibrand
@scottleibrand
Jun 04 2016 22:46
I've never seen a meal that couldn't handle a 0.1U bolus. ;-)
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:46
I'm neurotic...
Matt Pazoles
@Pazoles
Jun 04 2016 22:46
No outputs from that command
Dana Lewis
@danamlewis
Jun 04 2016 22:46
@PazolesBrooke_twitter the other thing is - remind me of you have pebble?
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:46
Yep
Ben West
@bewest
Jun 04 2016 22:46
@Pazoles what happened on the pump?
nothing?
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:46
pebble original
nothing happened
Ben West
@bewest
Jun 04 2016 22:47
pump is not compatible with temp basal commands
Matt Pazoles
@Pazoles
Jun 04 2016 22:47
Just got it back

{
  "completed": false, 
  "results": [
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "ESC", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }, 
    {
      "received": false, 
      "key": "DOWN", 
      "raw": ""
    }
  ]
}
Ben West
@bewest
Jun 04 2016 22:47
when you do this, the pump should turn the light on
and the menus should change
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:47
I have another question. Can APS override the basal increments?
Ben West
@bewest
Jun 04 2016 22:47
if that didn't happen, you can't send temp basal commands
Matt Pazoles
@Pazoles
Jun 04 2016 22:48
Ah, got it, we have another pump we can try.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:48
time to try our other pump!
Scott Leibrand
@scottleibrand
Jun 04 2016 22:48
@PazolesBrooke_twitter basal increments?
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:48
Medtronic's increment maximums
it only goes to .25
Dana Lewis
@danamlewis
Jun 04 2016 22:48
2.4A or less is the version you need if it's x23 pumps
Ben West
@bewest
Jun 04 2016 22:48
no, but it can change every 5 minutes
Matt Pazoles
@Pazoles
Jun 04 2016 22:48
The other pump we have is a 522
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:48
but as we are testing APS is recommending basals like 2.8, for example
Scott Leibrand
@scottleibrand
Jun 04 2016 22:49
we request 2.8, but it rounds it to the nearest supported rate.
Matt Pazoles
@Pazoles
Jun 04 2016 22:49
yeah we have 2.5B on the 523
Dana Lewis
@danamlewis
Jun 04 2016 22:49
@Pazoles good for 522
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:49
got it!
Scott Leibrand
@scottleibrand
Jun 04 2016 22:49
Then we adjust when needed based on whatever it actually set.
Dana Lewis
@danamlewis
Jun 04 2016 22:49
That 522 should do it for you. 523 2.5 you can read but not write
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:50
that's that I figured Scott - thanks for confirming!
Ben West
@bewest
Jun 04 2016 22:50
my recommendation is try openaps use pump test_oref0_compat_menu
Dana Lewis
@danamlewis
Jun 04 2016 22:50
:+1:
Ben West
@bewest
Jun 04 2016 22:50
we don't know how the version string actually maps to features, nor how it plays out across the world
fjungman
@fjungman
Jun 04 2016 22:50
WOO HOO!!! We just switched to the closed loop pump, and my T1D-kid is looping! Two loops run and everything is green! Now, the watch and wait game...
Dana Lewis
@danamlewis
Jun 04 2016 22:51
Way to go @fjungman !! :) take a picture, remember the moment! :)
fjungman
@fjungman
Jun 04 2016 22:51
Big "THANK YOU" to all of your!!!
Ben West
@bewest
Jun 04 2016 22:51
:-)
fjungman
@fjungman
Jun 04 2016 22:51
*you
Dana Lewis
@danamlewis
Jun 04 2016 22:51
:confetti_ball: :sparkles:
Matt Pazoles
@Pazoles
Jun 04 2016 22:51
Nice!! Congrats @fjungman!
Paul Martin
@Spazholio
Jun 04 2016 22:51
@PazolesBrooke_twitter "Does anyone currently looping use square and/or dual wave bolusing? Is that feature compatible with openAPS? I don't really eat carbs, so I have to dose for protein as it converts to glucose. My usual method is to dose for 40% of the protein as if it were carbs, about 30 minutes after eating it.” <— oh my god, are you me? This is EXACTLY what I do, except I tend to dose for 70% of the protein over 3-ish hours. I’ve been finding that using AMA and setting a temp target to 80/80 (the defaults) for 180 minutes has been working WONDERS for mr.
fjungman
@fjungman
Jun 04 2016 22:51
Good idea, @danamlewis
Paul Martin
@Spazholio
Jun 04 2016 22:51
Congrats, @fjungman!
Scott Leibrand
@scottleibrand
Jun 04 2016 22:52
@bewest that is good for people who already have a rig, but AFAIK the presence of PC Connect is the best way to check a pump if you don't have openaps set up yet.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:52
Thanks @Spazholio !!
Dana Lewis
@danamlewis
Jun 04 2016 22:52
@Spazholio want to write that suggestion up and stick it in the usability docs page as a tip? :) ditto for @PazolesBrooke_twitter if you find a trick like this that works wrll
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:53
Gotta figure out how meal assist works - that's our work for tonight
Paul Martin
@Spazholio
Jun 04 2016 22:53
@danamlewis I’m happy to. I thought about it, but I was wondering if that doesn’t come dangerously close to giving medical advice? I know there’s a fine line there, and frankly, I have no idea where it is.
Scott Leibrand
@scottleibrand
Jun 04 2016 22:54
I would just be careful to word it as a "you might consider trying" type thing.
Dana Lewis
@danamlewis
Jun 04 2016 22:54
Yea, I hear you. I think it's good to say "here's what I do in lieu of square/dual when looping and eating low carb meals, you might use this for inspiration as you get started"
Paul Martin
@Spazholio
Jun 04 2016 22:54
(also, where in the docs should that go?)
Dana Lewis
@danamlewis
Jun 04 2016 22:54
I'll check the Pr for you and help edit if I think the wording needs to be made more safe
Usability considerations page
Phase 6 I think
Paul Martin
@Spazholio
Jun 04 2016 22:54
Heck, I was happy to give my name specifically to indicate that this is absolutely an N=1 situation. =)
Dana Lewis
@danamlewis
Jun 04 2016 22:55
Yea. Look at the page and you'll see what o did there
Paul Martin
@Spazholio
Jun 04 2016 22:55
And we’re PR/committing to master now, right?
Ben West
@bewest
Jun 04 2016 22:55
ok, I created issue for that openaps/oref0#129 suspend/resume + square-wave should be considered in iob
Scott Leibrand
@scottleibrand
Jun 04 2016 22:55
@PazolesBrooke_twitter the meal assist in the current release is totally different from advanced meal assist. You might want to skip straight to AMA.
Dana Lewis
@danamlewis
Jun 04 2016 22:55
Very clearly gave examples from Dana perspective
Yes master pr
@PazolesBrooke_twitter @pazoles yes set up meal assist en route to AMA :)
Scott Leibrand
@scottleibrand
Jun 04 2016 22:56
@bewest I think we need to have people use mmhistorytools for those.
Makes no sense to duplicate all of Nate's work there IMO.
Ben West
@bewest
Jun 04 2016 22:57
sure, that might be a good way to prep data for oref0
last time I tried it, it wasn't clear how to give oref0 that data
Scott Leibrand
@scottleibrand
Jun 04 2016 22:57
there is another issue where that is also the recommended fix.
Yeah, we'll have to do a bit of work to let oref0 parse his output.
Need a volunteer to help set that up. I'm unlikely to get to it soon.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 22:58
AMA....on it
Dana Lewis
@danamlewis
Jun 04 2016 22:58
:+1:
Paul Martin
@Spazholio
Jun 04 2016 23:00
@PazolesBrooke_twitter Feel free to hit me up when setting that up if you need assistance. I might have some old code in my openaps.ini (meaning @bewest has significantly improved things and I haven’t kept up with it yet) but I'll at least give whatever help I can.
Dana Lewis
@danamlewis
Jun 04 2016 23:00
Btw the docs for AMA need some love. They are scattered in various places and you'll see that/be asking Qs about that. PRs desired :), check out logic hammers separate docs branch on that for some work in progress you can build on :)
(Do I sound desperate/begging? That's one of the things that's bugging me in addition to the NS section, in case anyone wonders what keeps me up at night ;) :) )
Paul Martin
@Spazholio
Jun 04 2016 23:02
Once I get my new rig closer to functional (it’s just an Edison ATM) I plan on doing everything from scratch so hopefully I’ll be able to PR some stuff. I can almost guarantee that I’ll be bugging @bewest though - Gitter search is sorta lacking. =)
Dana Lewis
@danamlewis
Jun 04 2016 23:02
PR early and often ;) :) :D
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 23:03
anyone know what the "patterns" thing is on the pump? I don't remember using this when I used the pump before
Dana Lewis
@danamlewis
Jun 04 2016 23:03
(But I forgive you for waiting @Spazholio because you've been helping tons of people troubleshoot and that's also awesome!)
;)
Different basal schedules
Scott Leibrand
@scottleibrand
Jun 04 2016 23:03
Patterns are to allow you to rapidly select between different basal schedules.
Matt Pazoles
@Pazoles
Jun 04 2016 23:04
This looks much more promising, thanks @bewest!
@pancreas:/home/pi/aps# openaps use pump test_oref0_compat_menu
{
  "completed": true, 
  "results": [
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "ESC", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }, 
    {
      "received": true, 
      "key": "DOWN", 
      "raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }
  ]
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 23:04
Oops trying to keep up! Happy to help edit the AMA stuff as we learn it
Scott Leibrand
@scottleibrand
Jun 04 2016 23:04
:+1:
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 23:04
okay. So not really relevant or needed for APS @scottleibrand ?
Dana Lewis
@danamlewis
Jun 04 2016 23:04
@PazolesBrooke_twitter I have pattern A for super active days, pattern b for super sick days. Less needed now with auto sensitivity, but if you're traveling or off the loop it helps.
Yea. Don't bother if you don't use them already
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 23:05
Got it.
Dana Lewis
@danamlewis
Jun 04 2016 23:06
And before the Wizards fixed my time zone woes, I kept one pattern with my normal basal schedule shifted to central time )ie 2 hours over from pacific) so I could just change patterns without breaking my loop. Glad that's no longer the deal for traveling :$
Paul Martin
@Spazholio
Jun 04 2016 23:06
I still don’t quite know how to upload raw/calibration data into NS. Anyone have a doc I can look at that will help me get more dots into NS? =)
Dana Lewis
@danamlewis
Jun 04 2016 23:06
And @bewest been super thankful for your clock change tools this last trip too :)
Paul Martin
@Spazholio
Jun 04 2016 23:09
@danamlewis How does OpenAPS/NS recognize SW/DW boluses? Meaning, if I give myself a 10u SW or a 5u/5u DW, does the loop just see that as a 10u regular bolus?
Ben West
@bewest
Jun 04 2016 23:10
it does not
openaps/oref0#129 for that
Paul Martin
@Spazholio
Jun 04 2016 23:10
Is the insulin given just 100% ignored if it’s not a normal bolus then?
Scott Leibrand
@scottleibrand
Jun 04 2016 23:12
It doesn't ignore it.
When the bolus finally completes it sees it as a normal bolus at that time.
Ben West
@bewest
Jun 04 2016 23:12
yeah, they get handled differently in the pump memory, so it's a little odd
it ignores duration, that's true
Scott Leibrand
@scottleibrand
Jun 04 2016 23:13
While it's running OpenAPS can't set any temps.
Ben West
@bewest
Jun 04 2016 23:14
yeah, for duration of the square wave, it essentially disables temp basals from openaps
a dual wave is simply a normal bolus + square wave
square wave is similar to temp basal inside the pump, they made a design decision to disable temp basals while a bolus is happening
Lynne Butts
@flutelynne_twitter
Jun 04 2016 23:15
@Spazholio Did you put "rawbg" with your ENABLE section of your azure or heroku page? Then on the Nightscout website, hit the three dashes at the top, scroll down near the plugin section. RawBG should be there. Choose what you want and save.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 23:20
something I noticed - in NS, sometimes the basal changes seemed to be labeled (with the basal value) and sometimes they are blank. Mostly they are blank. Is this a setting somewhere?
Lynne Butts
@flutelynne_twitter
Jun 04 2016 23:22
@PazolesBrooke_twitter The top three dashes, Profile Editor. Set your basal rates, etc, same as the pump. Save at the bottom. Authenticate to make changes.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 04 2016 23:22
Oh. I think it's just because when it's zoomed out the values are hidden because they don't fit. Haha. Should have realized that
Scott Leibrand
@scottleibrand
Jun 04 2016 23:24
Yeah, and since oref0 loves to set new temps all the time, most of them won't be labeled even when zoomed in. :-)
Paul Martin
@Spazholio
Jun 04 2016 23:25
@flutelynne_twitter I think I have EVERYTHING enabled on NS.
…it kinda helps to start the sensor after stopping it, doesn’t it? headdesk
@bewest @scottleibrand Thanks for clearing up the SW/DW confusion.
Lynne Butts
@flutelynne_twitter
Jun 04 2016 23:31
@Spazholio funny
Frank Best
@efbest
Jun 04 2016 23:33
I'm getting an outdated 'glucose.json' out of a sudden since this afternoon! Any ideas how to stop it?
BG data is too old, or clock set incorrectly Sat Jun 04 2016 15:29:00 GMT+0200 (CEST) vs Sun Jun 05 2016 01:13:09 GMT+0200 (CEST)
reporting enact/suggested.json
MMT754://JSON/set_temp_basal/enact/enacted.json
enact/enacted.json  raised  type object argument after ** must be a mapping, not list
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.0', 'openaps-report')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/vendors/medtronic.py", line 317, in main
    results = self.upload_program(program)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/vendors/medtronic.py", line 409, in upload_program
    return dict(error="missing required input fields", missing=missing, input=dict(**program))
TypeError: type object argument after ** must be a mapping, not list
No CGM data.
C-Ville
@C-Ville
Jun 04 2016 23:39
@efbest could it be that the current time on the pi os wrong?
is
Frank Best
@efbest
Jun 04 2016 23:41
no
Paul Martin
@Spazholio
Jun 04 2016 23:42
If you get a consistent answer to this, I’d love to know. This has happened to me every once in a while, and it never seems to be the CGM itself - it’s some other aspect of the loop that’s gone wrong but it somehow results in the CGM data being viewed incorrectly. Unfortunately, I can’t recall what it’s been for me in the past (it’s happened 2-3 times total).
Scott Leibrand
@scottleibrand
Jun 04 2016 23:43
Check the actual glucose.json against date
if glucose.json's most recent BG is old, see if you can figure out what is preventing it from refreshing.
Paul Martin
@Spazholio
Jun 04 2016 23:45
Also, how is your glucose.json generated? Mine was originally doing some moving of files based on if I had my CGM connected or not but @bewest helped me refactor that bit. Also, it looks like your version of oref0 is slightly old. I doubt that’s the issue, but might help out?
Frank Best
@efbest
Jun 04 2016 23:46
@scottleibrand it stopped at 1523 - I cannot renew it
the content of the monitor-folder is cleared every cycle, but the data remain!
Bill Stackpole
@billstackpole
Jun 04 2016 23:48
@efbest - I am having a similar issue on my Pi. (Did all my work today on my Edison - trying to rep;licate on the Pi now and since I turned back on am having similar issues). My "suggested.json" is indicating that meal assist is turned on but no meal data is availble. Not sure how to turn off meal assist. @scottleibrand suggested that the "remainder = []" lines needed to be removed from openaps.ini (which I did this am) so that doesn't see to be the problem at this point. Have you found any resolution for yours yet?
Frank Best
@efbest
Jun 04 2016 23:49
nope
Bill Stackpole
@billstackpole
Jun 04 2016 23:50
most of my difficulties at this point come from updating one of my devices and then having some issue with making the others match the updates on the first. Doh.
Frank Best
@efbest
Jun 04 2016 23:54
It seems I cannot read any glucose data from the pump while other data without a problem
openaps use MMT754 iter_glucose 4
[
  {
    "packet_size": 4, 
    "name": "SensorTimestamp", 
    "raw": "4f-97-24-10", 
    "date": "2016-06-04T15:23:00", 
    "date_type": "minSpecific", 
    "_tell": 1, 
    "op": "0x08"
  }, 
  {
    "name": "GlucoseSensorData", 
    "date_type": "prevTimestamp", 
    "_tell": 6, 
    "sgv": 96, 
    "date": "2016-06-04T15:29:00", 
    "packet_size": 0, 
    "op": 48
  }, 
  {
    "name": "GlucoseSensorData", 
    "date_type": "prevTimestamp", 
    "_tell": 7, 
    "sgv": 88, 
    "date": "2016-06-04T15:24:00", 
    "packet_size": 0, 
    "op": 44
  }, 
  {
    "name": "GlucoseSensorData", 
    "date_type": "prevTimestamp", 
    "_tell": 8, 
    "sgv": 86, 
    "date": "2016-06-04T15:19:00", 
    "packet_size": 0, 
    "op": 43
  }, 
  {
    "name": "GlucoseSensorData", 
    "date_type": "prevTimestamp", 
    "_tell": 9, 
    "sgv": 86, 
    "date": "2016-06-04T15:14:00", 
    "packet_size": 0, 
    "op": 43
  }
Scott Leibrand
@scottleibrand
Jun 04 2016 23:57
@efbest have you tried calibrating the pump?
@billstackpole time to paste your determine-basal device and report configs?
Frank Best
@efbest
Jun 04 2016 23:59
I will :smile:
Bill Stackpole
@billstackpole
Jun 04 2016 23:59
Also, I just applied the change that you ( @scottleibrand ) suggested 2-Jun at 1555 (re the remainder) and mine is working again (so my most recent issue was again with the meal-assist remainder). Do you want me to paste them here?
happy to do so