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

18th
May 2017
Lynne Butts
@flutelynne_twitter
May 18 2017 00:31
With @Kdisimone I got it going. I took your hint, Scott, and asked her if that was the right thing to do, and, of course, checked the followup steps. Up and running. Thank you!!
Dana Lewis
@danamlewis
May 18 2017 01:30
Thanks @flutelynne_twitter ! Sounds like @jbwittmer also running without any bugs so we may merge that to dev soon. No docs or writeup yet but will add that as we merge for broader testing.
Jason Wittmer
@jbwittmer
May 18 2017 01:36
Yep. So far so good.
David
@davidkeddydb
May 18 2017 01:39
Screenshot 2017-05-17 21.36.24.png
Ok, this is weird. Rig says on OpenAPS pill that rig is microbolusing, but no microbolus going to the pump? Here is some of the log file. Where else should I be looking to find the issue
Screenshot 2017-05-17 21.40.25.png
Lynne Butts
@flutelynne_twitter
May 18 2017 01:43
@danamlewis Great to hear! I so enjoy learning new things! Thank you for all of the inspiration and opensourcing to give us better lives.
Dana Lewis
@danamlewis
May 18 2017 02:59
@flutelynne_twitter <3 :sparkles: :fire: :smile:
katie disimone
@Kdisimone
May 18 2017 03:07
David- (stupid app won't bring up your name to tag you) your rig and pump time aren't within 60sec of each other. See the error after it checks for that?
kenkotch
@kenkotch
May 18 2017 03:13
@Kdisimone you are on fire finding time issues today. Strong work!
@davidkeddydb I was 1 MONTH off earlier today...
katie disimone
@Kdisimone
May 18 2017 03:18
🤣🤣
Sgoldberg89
@Sgoldberg89
May 18 2017 03:26
Just got the new features running on a few rigs. Had a v. low carb dinner to play it safe but excited to see how it responds. I entered some carbs but took almost no insulin.
Ok, fine. I ate a peanut butter cup from Theo too to give it something to do. Jeez, so judgy... :)
Dana Lewis
@danamlewis
May 18 2017 03:30
Your dedication to science is appreciated ;)
Sgoldberg89
@Sgoldberg89
May 18 2017 03:30
Oh also, I had a thought as I was watching the tail loop earlier... That it's the closest I'll get to understanding how Scott's brain works. You guys are some Grade A nerds.
But seriously, thank you for all you're doing to change the way we live.
Dana Lewis
@danamlewis
May 18 2017 03:31
Erm, that's the inside of my brain ;)
Welcome :smile: and thanks for giving it a test!
Sgoldberg89
@Sgoldberg89
May 18 2017 03:33
One thing... If you guys could invent a shelf stable glucagon next, that'd be super. Oh and can you just throw it in a fully functional bi-hormonal delivery system incorporating your algorithm while you're at it? K, Thanks!
Dana Lewis
@danamlewis
May 18 2017 03:34
Kthxbai? ;)
Sgoldberg89
@Sgoldberg89
May 18 2017 03:34
Haha yes!
Dana Lewis
@danamlewis
May 18 2017 03:34
No biggie. All that spare time ;) maybe not making shelf stable glucagon but you never know what we'll do with things available on the market... ;p
Sgoldberg89
@Sgoldberg89
May 18 2017 03:36
No telling indeed, but you can bet I'll be there trudging through a bunch of jargon I don't understand to try my best at becoming an early adopter.
Dana Lewis
@danamlewis
May 18 2017 03:37
Uphill in the code snow both ways ;) :+1:
Sgoldberg89
@Sgoldberg89
May 18 2017 03:37
Likely burning several bridges within the community as I lean heavily on others. At least we're beyond the point where Scott and you just send me a link to google.
dang, good one
Dana Lewis
@danamlewis
May 18 2017 03:42
:laughing:
sanderlong
@sanderlong
May 18 2017 03:54
I just accidentally pulled the oref0 dev branch after pulling the master. How do I get rid of it and go back to the master?
Dana Lewis
@danamlewis
May 18 2017 03:55
Git checkout master if all you did was checkout dev
Did you install dev or just checkout!
*?
sanderlong
@sanderlong
May 18 2017 03:56
I did this: mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull)
and this: cd ~/src/oref0 && npm run global-install
So installed right?
Do I need to delete directory and re-install the master?
Dana Lewis
@danamlewis
May 18 2017 03:57
Did you run oref0setup?
sanderlong
@sanderlong
May 18 2017 03:57
no
Oh, if I put in the master code it will switch back right?
Dana Lewis
@danamlewis
May 18 2017 03:59
There's only a couple minor changes on dev for the same type of setup (assuming you don't want oref1 and don't enable anything). So shouldn't hurt you to keep your same setup on dev. But if you want to go back to master, I think git checkout master and npm run global install again should do it
sanderlong
@sanderlong
May 18 2017 03:59
root@edisonhost:~# mkdir -p ~/src; cd ~/src && git clone git://github.com/openaps/oref0.git || (cd oref0 && git checkout master && git pull)
fatal: destination path 'oref0' already exists and is not an empty directory.
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
It's switched back to master
Dana Lewis
@danamlewis
May 18 2017 04:00
Git branch to confirm what branch you're on
sanderlong
@sanderlong
May 18 2017 04:01
I'm rerunning cd ~/src/oref0 && npm run global-install
Dana Lewis
@danamlewis
May 18 2017 04:01
:+1:
Dana Lewis
@danamlewis
May 18 2017 04:12
Delete that, and please go change your API secret
katie disimone
@Kdisimone
May 18 2017 04:13
@sanderlong you may see a couple reboot to fix messages. They will clear themselves after a few times.
sanderlong
@sanderlong
May 18 2017 04:32
I re-ran the set up with my new api secret (thanks @danamlewis ) and am receiving some errors: git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git add openaps.ini
stderr: 'fatal: Unable to write new index file'
Could not import alias.json
gregtcm
@gregtcm
May 18 2017 05:10

Has anyone been getting this error when running the latest dev with SMB turned on?
ValueError: byte must be in range(0, 256)
It is happening in the smb_enact_temp function on the openaps report invoke enact/smb-enacted.json call.
When running that on the command line I get the following output

root@ed1:~/myopenaps# openaps report invoke enact/smb-enacted.json
pump://JSON/set_temp_basal/enact/smb-enacted.json
enact/smb-enacted.json  raised  byte must be in range(0, 256)
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 432, in main
    results = self.upload_program(program)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 525, in upload_program
    return self.pump.model.set_temp_basal(**program)
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 222, in set_temp_basal
    result = self._set_temp_basal(**basals)
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 25, in __call__
    self.response = inst.session.query(self.msg, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/decocare/session.py", line 101, in query
    self.execute(command)
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 230, in execute
    return sender(command)
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 140, in __call__
    self.upload()
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 127, in upload
    self.send_params( )
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 28, in send_params
    payload = bytearray([len(params)]) + bytearray(params)
ValueError: byte must be in range(0, 256)

This error happens on both of my rigs and usually resolves itself anywhere between 30 min to 3 hrs.

Dana Lewis
@danamlewis
May 18 2017 05:11
What is your Max basal set to?
gregtcm
@gregtcm
May 18 2017 05:13
In case this might help, my enact/smb-suggested.json and other lines before the error are:
enact/smb-suggested.json: {"insulinReq":3.24,"bg":233,"reservoir":"38.3","temp":"absolute","snoozeBG":257,"rate":8.75,"predBGs":{"UAM":[233,227,218,206,191,178,168,159,153,150,148,145,143,141,140,138,136,135,134,133,133,132],"IOB":[233,231,230,230,230,231,232,233,235,238,239,239,237,235,233,232,230,229,228,227,226,226,225]},"minPredBG":179,"IOB":3.815,"duration":30,"reason":"COB: 0, Dev: 141, BGI: -23.09, ISF: 31, Target: 80, minPredBG 179, IOBpredBG 225, UAMpredBG 132; Eventual BG 257 >= 80, insulinReq 3.24. Microbolusing 1U. temp 6.275<8.75U/hr","COB":0,"eventualBG":257,"units":1,"tick":"+1","deliverAt":"2017-05-18T05:01:34.707Z"}
Temp refreshed: monitor/temp_basal.json: {"duration":28,"rate":6.275,"temp":"absolute"}
rm: cannot remove ‘enact/smb-enacted.json’: No such file or directory
ValueError: byte must be in range(0, 256)
I've been getting this error since updating to the most recent dev last week. Before that, I was running an earlier version of SMB and never saw this issue.
Dana Lewis
@danamlewis
May 18 2017 05:25
@gregtcm what is your max basal set to?
gregtcm
@gregtcm
May 18 2017 05:27
@danamlewis 35.00 u/h on my pump (a 722)
Dana Lewis
@danamlewis
May 18 2017 05:28
Set it to something like 6.1 temporarily and see if it clears up that error
I thought we fixed the thing where it couldn't handle >6.2 basals, but may have found an edge case or you may have some kind of hybrid setup somehow
Martin Haeberli
@mhaeberli
May 18 2017 05:30
trying to understand why high-temp basal:
Temp refreshed 
Temp duration 27m or more 
glucose.json newer than pumphistory: Refreshed pumphistory 
{"carbs":56,"boluses":11.2,"mealCOB":5} 
{"ratio":1.2} 
{"iob":1.291,"activity":0.0371,"bolussnooze":0,"basaliob":0.176,"netbasalinsulin":0.85,"hightempinsulin":0. 
85,"time":"2017-05-18T05:25:26.000Z"} 
{"delta":5,"glucose":99,"short_avgdelta":5,"long_avgdelta":4.28} 
{"duration":30,"rate":2.7,"temp":"absolute"} 
Adjusting basal from 1.15 to 1.4 
Adjusting target_bg from 110 to 102 
Adjusting sens from 35 to 29.2 
Carb Impact: 9.7 mg/dL per 5m; CI Duration: 0.5 hours 
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0.5 hours 
determine-basal://text/shell/enact/suggested.json 
reporting enact/suggested.json 
{"temp":"absolute","bg":99,"tick":"+5","eventualBG":119,"snoozeBG":119,"predBGs":{"IOB":[99,102,106,108,110 
,112,113,114,114,114,113,111,109,107,106,105,104,103,101,100,99,98,97,96,95,94,93,92,91,91,90,90,89,89,88,8 
8,88,88,87],"aCOB":[99,102,103,104,102,100,96,93,90,87,84,82,80,78,77,76,75,74,72,71,70,69,68,67,66,65,64,6 
3,62,62,61,60,60,60,59,59,59,59,58],"COB":[99,102,103,103,102,100,96,93,90,87,84,82,80,78,77,76,75,74,72,71 
,70,69,68,67,66,65,64,63,62,62,61,61,60,60,59,59,59,59,58]},"COB":5,"IOB":1.291,"reason":"COB: 5, Dev: 58,  
BGI: -5.42, ISF: 29, Target: 102; Eventual BG 119 >= 110, temp 2.7 >~ req 2.55U/hr"} 
{"bg":99,"temp":"absolute","snoozeBG":121,"recieved":true,"predBGs":{"COB":[99,102,104,105,105,104,102,99,9 
6,94,92,90,89,88,87,87,87,87,87,87,86],"aCOB":[99,102,104,105,105,104,102,99,96,94,91,90,88,87,87,87,86],"I 
OB":[99,102,106,108,110,112,114,114,115,115,115,114,112,111,111,110]},"rate":2.7,"reason":"COB: 6, Dev: 59, 
 BGI: -5.49, ISF: 29, Target: 102; Eventual BG 121 >= 110, no temp, setting 2.7U/hr","COB":6,"eventualBG":1 
21,"timestamp":"2017-05-17T22:27:32.681331","duration":30,"tick":"+5","IOB":1.275} 
Settings refreshed 
pumphistory-24h refreshError, retrying
gregtcm
@gregtcm
May 18 2017 05:31
@danamlewis Ok, I'll see how that works tonight and tomorrow (I'll be traveling). Last night I had a 4 hr stretch of no looping and this morning a 5 hr stretch. If that fixes it, I'll check back to see how I can help debug this further. Thanks for the tip!
Martin Haeberli
@mhaeberli
May 18 2017 05:32
forecast curves going out to about 90 or about 50
Dana Lewis
@danamlewis
May 18 2017 05:32
@mhaeberli eventual bg > target
Martin Haeberli
@mhaeberli
May 18 2017 05:33
k (not showing on nightscout curves - how is eventual computed?)
Dana Lewis
@danamlewis
May 18 2017 05:33
@gregtcm :+1: please do let us know either way - also check the logs to see if that was the problem for the full time stretch or if there were any other errors mixed in
Martin Haeberli
@mhaeberli
May 18 2017 05:34
maybe carbs from 2 hours ago ? even though bolused 4 them
k, i’ll just watch it for a while ...
Dana Lewis
@danamlewis
May 18 2017 05:35
Deviations have been positive; it's been expecting neg bgi
Martin Haeberli
@mhaeberli
May 18 2017 05:35
so the predicted bgs based on COB, aCOB, IOB are all much lower than eventual ...
gregtcm
@gregtcm
May 18 2017 05:38
@danamlewis I have the loop running constantly on a secondary monitor and that was the only error I saw during the morning stretch. I'll take a peek at the logs though, in case I missed something.
Kevin Marshall
@ruess
May 18 2017 08:58
Hey there, anyone know how to force an ip4 address on the openaps rig when tethering to an iPhone?
it’s defaulting to ip6
Scott Leibrand
@scottleibrand
May 18 2017 13:01
dhclient is responsible for getting an IPv4 address (in addition to the v6 one it gets via autoconfig). If DHCP isn't working, you might end up with v6-only, though I've never seen that while tethering. You can try killing and re-running dhclient the way oref0-online does.
fidoman
@efidoman
May 18 2017 13:14
SMB is still running great for me. See how well it handled a post-dinner milk shake (70g) last night which had some delayed absorption which is normal for me in the evenings. Today, I'm going somewhat low carb and will attempt to not do a manual bolus at all. Breakfast already worked perfectly. This SMB feature is absolutely amazing and quite innovative!
image.png
Scott Leibrand
@scottleibrand
May 18 2017 13:28
Are you still planning to enter carbs? At mealtime, or before?
KS615
@KS615
May 18 2017 13:49
Hi All, I have lost communication with the pump. It went off last night (I thought it was a power issue), but now its plugged in and still not working. Suggestions?
ay 18 09:47:02 edison1 network.log:  At Thu May 18 09:47:02 EDT 2017 my local IP is: 192.168.43.164
May 18 09:47:03 edison1 network.log:  At Thu May 18 09:47:02 EDT 2017, my wifi network name is KPhone, and my public IP is: 174.205.0.64
May 18 09:47:03 edison1 autosens-loop.log:  Thu May 18 09:47:03 EDT 2017
May 18 09:47:03 edison1 network.log:  Finished oref0-online.
May 18 09:47:03 edison1 autosens-loop.log:  settings/autosens.json
May 18 09:47:04 edison1 pump-loop.log:  Old pumphistory: Refresh
May 18 09:47:04 edison1 pump-loop.log:  Error, retrying
May 18 09:47:09 edison1 pump-loop.log:  Starting pump-loop at Thu May 18 09:47:09 EDT 2017:
May 18 09:47:20 edison1 ns-loop.log:  Uploaded
I've turned rig off and on and toggled wifi hotspot, battery is full
cameronrenwick
@cameronrenwick
May 18 2017 13:52
if you haven't already, enter killall -g and then cd to your openaps dir and enter openaps first-upload. don't be surprised if it takes a few min to start sending data and showing up in NS.
KS615
@KS615
May 18 2017 13:56
ok, will try that, thanks
KS615
@KS615
May 18 2017 14:03
@cameronrenwick I think i missed up the last command, what is it? "openaps first-upload"?
wait, at first it said no such directory, but now its doing something, maybe I didn't wait long enough
root@edison1:~/kopenaps# openaps first-upload
cat: nightscout/glucose.json: No such file or directory
ns://JSON/shell/nightscout/uploaded-entries.json
No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51                                                                                        , in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line                                                                                         52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line                                                                                         48, in main
    reporters.Reporter(report, device, task)(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init_                                                                                        _.py", line 33, in __call__
    self.blob = self.serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init_                                                                                        _.py", line 31, in serialize
    return self.method.serialize(render(data), self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/process.py", line                                                                                         56, in prerender_json
    return json.loads(data)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
root@edison1:~/kopenaps#
This is what I got, Not sure how to interpret this
fidoman
@efidoman
May 18 2017 14:12
@scottleibrand - Yes, entering carbs only via nightscout at meal-time, not before.
tynbendad
@tynbendad
May 18 2017 14:14
@ericfeibelman is that when low carb, or also normal meals? looks like you prebolused above?
@KS615 just wondering, does this command fail also?: cd ~/kopenaps; openaps alias show pump-loop
KS615
@KS615
May 18 2017 14:17
nope!
cameronrenwick
@cameronrenwick
May 18 2017 14:17
@KS615 you you need to be in your openaps dir (whatever you named it: possibly myopenaps as suggested in the docs) and then enter killall -g, then openaps first-upload.
KS615
@KS615
May 18 2017 14:17
root@edison1:~/kopenaps# : cd ~/kopenaps; openaps alias show pump-loop
pump-loop ! bash -c "sleep $[ ( $RANDOM / 2048 ) ]s; until(echo Starting pump-loop at $(date): && openaps wait-for-silence && openaps refresh-old-pumphistory && openaps refresh-old-pumphistory-24h && openaps refresh-old-profile && openaps refresh-temp-and-enact && openaps refresh-pumphistory-and-enact && openaps refresh-profile && openaps refresh-pumphistory-24h && echo Completed pump-loop at $(date) && echo); do echo Error, retrying && [[ $RANDOM > 25000 ]] && openaps wait-for-long-silence && openaps mmtune; sleep 5; done"
root@edison1:~/kopenaps#
tynbendad
@tynbendad
May 18 2017 14:18
@KS615 ok, you're better off than i was a few days ago ;). follow @cameronrenwick
KS615
@KS615
May 18 2017 14:18
oh ok, I think that's what I did, I reversed it and did the kill command before getting into my directory
KS615
@KS615
May 18 2017 14:20
still got the same response when I made sure i was in my directory. Thank you, @tynbendad , I was just searching for that!
kenkotch
@kenkotch
May 18 2017 14:31
@KS615 are all of your clocks synced?
cameronrenwick
@cameronrenwick
May 18 2017 14:38
@kenkotch funnily enough I had the same situation 2 days ago. The suggestions made (killall /first-upload) didn't work either. I ended up doing a cold start (press black button on explorer board for ~10 sec till leds go off, then push again for ~2 sec till the light again) and the cold start got things back to looping. If you haven't tried that, give it a shot
KS615
@KS615
May 18 2017 14:40
I'll try that again (did it earlier)
kenkotch
@kenkotch
May 18 2017 14:42
@cameronrenwick my pump was a month off yesterday. All sorts of havoc!
@KS615 ints not entirely clear from the chat, did you killall -g openaps before running first upload?
What does your pump-loop look like?
cameronrenwick
@cameronrenwick
May 18 2017 14:44
I did a cold start, killall -g (redundant admittedly), cd'd to the openaps dir, then openaps first-upload and had success
@kenkotch yes!! simple things like date, time (am/pm) even setting the time when 1 minute switches over to the next and you're off by 60+ seconds can be a factor
KS615
@KS615
May 18 2017 14:48
@kenkotch , yes all clocks should be synced
Scott Leibrand
@scottleibrand
May 18 2017 14:50
Anyone who's having time sync issues: feel free to test the pushover branch: it should be able to set the pump clock correctly for you.
Once we get a :+1: or two on that, and finish fixing the oref0-online stuff, we'll be ready to merge it to dev.
kenkotch
@kenkotch
May 18 2017 15:04
i cant seem to figure it out
nevermind. blood glucose impact
I was just thinking about making a glossary- clearly someone has already thought of that
KS615
@KS615
May 18 2017 15:08
well, somehow you all fixed it, no idea which step fixed it, but its back! thank you!
cameronrenwick
@cameronrenwick
May 18 2017 15:08
well done!
kenkotch
@kenkotch
May 18 2017 15:08
glad to hear
peterfulvi
@peterfulvi
May 18 2017 15:09
@scottleibrand When will the oref1 algorithm be available? Is there a test script( i have an extra rig). I'm very eager to try it, i have been reading sugar surfing and am aware of micro boluses and riding the waves of your CGM, and beig very interactive in your diabetes management. Another question is will this pave the way to using other model pumps seeing now we can manipulate boluses now rather than just basal rates.
tynbendad
@tynbendad
May 18 2017 15:11
oref0-online?
No, SMB is not suitable for use in pumps that we can't set temp basals on.
tynbendad
@tynbendad
May 18 2017 15:15
essentially oref1 is 'turbo oref0' ;)
Dana Lewis
@danamlewis
May 18 2017 15:25
@peterfulvi no, this does not pave the way for other pump usage. Setting temp basals is still a crucial requirement with oref1 for safety
Also, repeating: oref1 is in dev for testing. No planned timeline for release.
Lynne Butts
@flutelynne_twitter
May 18 2017 15:45
pushover version has been working well on my edison rig. I will try putting it on a RPi2 that I have, but previously I have had trouble getting it to do the npm global install.
Dana Lewis
@danamlewis
May 18 2017 15:47
:+1:
tynbendad
@tynbendad
May 18 2017 15:47
what is in the pushover branch? something to do with the pushover.net service?
Dana Lewis
@danamlewis
May 18 2017 15:48
Yes. No documentation at all ready yet so I'd recommend waiting for it to go into dev to get more details
Also has some other bug fixes that'll be helpful for dev related setups that we have been working on
tynbendad
@tynbendad
May 18 2017 15:49
ah, cool
:+1:
Lynne Butts
@flutelynne_twitter
May 18 2017 15:50
This is what I get when I try to do the global-install: Failed at the oref0@0.5.0-dev global-install script. npm ERR! This is most likely a problem with the oref0 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm install && sudo npm install -g && sudo npm link && sudo npm link oref0 npm ERR! You can get their info via: npm ERR! npm owner ls oref0
Dana Lewis
@danamlewis
May 18 2017 15:51
This is the Pi error?
Lynne Butts
@flutelynne_twitter
May 18 2017 15:51
Yes.
Dana Lewis
@danamlewis
May 18 2017 15:51
K
Lynne Butts
@flutelynne_twitter
May 18 2017 15:52

Here is the rest of that: ```
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.19-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /home/pi/src/oref0
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

```

This is a suggestion, when I scroll up firther, but I am not sure how to implement it. Please try running this command again as root/Administrator.
Would I cd root/Administrator?
katie disimone
@Kdisimone
May 18 2017 15:58
@flutelynne_twitter you’re in the wrong directory, i’d guess. You have to be in the oref0 directory
cd ~/src/oref0 && npm run global-install
Lynne Butts
@flutelynne_twitter
May 18 2017 15:59
I am in that directory already, but I will enter the above again. (?)
I get the same errors.
katie disimone
@Kdisimone
May 18 2017 16:00
hmmm…sorry :worried:
Lynne Butts
@flutelynne_twitter
May 18 2017 16:00
NP
Would I sudo npm run global-install?
Tim Street
@tim2000s
May 18 2017 16:01
Was about to suggest that
Lynne Butts
@flutelynne_twitter
May 18 2017 16:01
Thank. I will try.
Googling things
So far so good.
katie disimone
@Kdisimone
May 18 2017 16:04
yup :+1:
Lynne Butts
@flutelynne_twitter
May 18 2017 16:29
The only thing that I am noticing is that it says “starting pump-loop” instead of the “starting supermicrobolus…” But it is giving me temp basals, and UAM is listed in the openaps pill of NS, and the logs.
katie disimone
@Kdisimone
May 18 2017 16:35
I have one older rig doing the same thing @flutelynne_twitter not sure why. Three of four rigs show the smb-pump-loop…one shows the old pump-loop but still microboluses
Lynne Butts
@flutelynne_twitter
May 18 2017 16:36
@Kdisimone Thanks. I won’t worry about it then. I shut it down for now, and will test again in a bit. Maybe it will SMB later today.
I did have to add my pump separately, as I always have, with the RPi2/TI stick setup. Even though I run the script, etc. Not a problem, just have to keep my wits about me and remember.
katie disimone
@Kdisimone
May 18 2017 16:43
@scottleibrand Or others? ISF above 255 won’t loop unless a fix is done? Anyone know how to fix that and can point me in a direction? I’ll write up the steps and add a PR to help others. But, i am unsure how to fix currently
Dana Lewis
@danamlewis
May 18 2017 16:44
Hm I thought that was folded in now
katie disimone
@Kdisimone
May 18 2017 16:54
the person is getting a -1 as the value in profile.json which from everything I read is a problem with a value in the pump settings…something out of bounds basically. I’ve looked at her pump settings and the only thing that looked like it could be causing a problem was the ISF. Carb ratios are set. basals are set
there’s an un-merged PR for decocare that I think may be needed?
Dana Lewis
@danamlewis
May 18 2017 16:55
Ah.
Try setting isf lower to test if that fixes
katie disimone
@Kdisimone
May 18 2017 16:55
I’d hand edit…but I don’t know where in the rig that could be applied basically...
:+1:
Dana Lewis
@danamlewis
May 18 2017 16:55
If it does, then That's it
katie disimone
@Kdisimone
May 18 2017 16:56
Someone back on march 11th or so got some help with getting her’s fixed, but for the life of me i couldn’t find it when i scrolled back. I only know the date based on FB messages around the same time with another person.
But, I am correct in my direction, correct? That -1 is returned in profile.json for those sorts of problems?
Dana Lewis
@danamlewis
May 18 2017 16:58
Sounds reasonable
katie disimone
@Kdisimone
May 18 2017 17:06
openaps/decocare#23 specifically this is the unmerged PR
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 17:35
@Kdisimone I can finally click on the needed sections to update my night scout site could you please help me in completing the process???
katie disimone
@Kdisimone
May 18 2017 17:36
@diabetic_dude_twitter sure, but you'll have to bring me up to speed on where you are in the process
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 17:37
@Kdisimone you have confirmed my that github repo looks good then you wanted me to click deploy then do something else
@Kdisimone maybe Search for a repository to connect to???
@Kdisimone got it working I think
katie disimone
@Kdisimone
May 18 2017 17:42
👍🏻
cameronrenwick
@cameronrenwick
May 18 2017 17:48
IFTTT question... just finished (I think) 4 buttons. I'd like to try them to make sure all's good. If so, can I "undo" the action in NS?
Dana Lewis
@danamlewis
May 18 2017 17:52
Yes. You can cancel (also create a cancel button) temp targets or delete the carbs you entered
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 17:52
@Kdisimone Is there a good place for me to document how I was able to fix the issue I was having? (so no one else has to go through the same problems I had?) It is more a NS issue than an APS issue
fidoman
@efidoman
May 18 2017 17:53
@tynbendad - I will bolus for meals with higher (more than 30 carbs) but I am trying to bolus about 20% less than recommended by the pump bolus wizard so I can let SMB take care of the rest. For lower carb meals when I properly use "Eating Soon" mode, I am finding that I don't need to bolus at all and my BG levels are not going out of range.
Almost went out of range for lunch but still good so far today without a single manual bolus ...
fidoman
@efidoman
May 18 2017 17:58
image.png
Dana Lewis
@danamlewis
May 18 2017 17:58
Nice. Thanks for the ongoing feedback @ericfeibelman
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 18:09
ls
Dana Lewis
@danamlewis
May 18 2017 18:28
FYI if anyone’s IFTTT widgets for iphone start acting funky (mine were greyed out for two days, nothing else would get them to come back. it’s an ios thing, not an IFTTT problem). https://twitter.com/danamlewis/status/865265163275874307
katie disimone
@Kdisimone
May 18 2017 18:54
That is a random fix
Dana Lewis
@danamlewis
May 18 2017 18:57
Mmhmm. Thanks google for that gem
hilarykoch
@hilarykoch
May 18 2017 18:57
Trying out new oref1. Seeing a low temp after bolusing at breakfast worked well, but after lunch today seems to possibly contributed to a high? Will post a few pics and tagging guru @scottleibrand
Screen Shot 2017-05-18 at 2.56.52 PM.png
Screen Shot 2017-05-18 at 2.55.38 PM.png
Dana Lewis
@danamlewis
May 18 2017 19:04
Predictions show end result of low so those zero temps are doing their job of warding off lows from the boluses with the carbs
RedCyclist1
@RedCyclist1
May 18 2017 19:05
@hilarykoch I have been seeing the same behavior. I hit eating soon & then bolus for the meal in the appropriate times. I eat and everything looks fine and then 30 -60 minutes later my bg just shoots straight up to over 250. It usually takes an hour or longer to get it under control. Has happened 3 days in a row. I'm not sure what I need to adjust.
hilarykoch
@hilarykoch
May 18 2017 19:05
@danamlewis Ok, so carb ratio adjustment for lunchtime needed?
Dana Lewis
@danamlewis
May 18 2017 19:06
What was netiob around time of carbs?
hilarykoch
@hilarykoch
May 18 2017 19:08
Not sure. How can I go back in time and see?
Dana Lewis
@danamlewis
May 18 2017 19:08
Scroll back on the bottom of NS to that time frame and check the pill then; or may be easier to zoom in to that time frame on paper trail if you're using that
hilarykoch
@hilarykoch
May 18 2017 19:09
Got it.
tynbendad
@tynbendad
May 18 2017 19:09
@ericfeibelman thanks for the detail - it looks like you did eating soon mode (just a temp. low target?) at about 9:30 to 10:30AM but ate at around 11:30AM - is that an "improper" use of it?
fidoman
@efidoman
May 18 2017 19:10
Is there documentation out there for how to build a test harness with openaps? I have a backup pump and a test rig I want to test out.
Dana Lewis
@danamlewis
May 18 2017 19:12
@ericfeibelman build rig and give your rig the test pump serial. That's all :smile:
fidoman
@efidoman
May 18 2017 19:13
@tynbendad - yes, I use eating soon mode for more than just pre-meal since I can create that lower (75 to 85) temporary target range with ifttt buttons on my apple watch. I sometimes use eating soon mode to set a lower temp target if I feel my between meal glucose level is higher than I want it. Sometimes, it will allow a couple of small SMB's to kick in if they are needed.
hilarykoch
@hilarykoch
May 18 2017 19:14
@danamlewis This was just a few minutes before the first bolus...
Screen Shot 2017-05-18 at 3.11.21 PM.png
fidoman
@efidoman
May 18 2017 19:14
@danamlewis - Thanks - I have the extra test rig built. Is there some way I can feed it with glucose values or fake ones?
Dana Lewis
@danamlewis
May 18 2017 19:15
@ericfeibelman same way you give it bgs now - NS ?
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 19:16
so I got my NS site updated and re ran the bash ~/myopenaps/oref0-runagain.sh because I was already on the dev version. I edited the preferences.json and enabled UAM and SMB and set the other settings accordingly then checked my ns site and I openAPS does not seem to be communicating with it. ... when I watch the logs I am getting " Old pumphistiory: Error, retrying and a KeyError:'mmtune'
fidoman
@efidoman
May 18 2017 19:16
my bg numbers come from the enlite sensor that is connected to my pump so it can function in offline mode.
Dana Lewis
@danamlewis
May 18 2017 19:17
@hilarykoch k. Looks like lots of low predicted there too, so may be thinking he's more sensitive than he is right now. Autosens might help and catch up soon, you may also want to set some temp targets to help nudge things
@ericfeibelman k easiest way will be to tell it to use NS so it can pull your bgs to test rig after you upload from main rig to ns.
Not sure if the Medtronic sensor can pair to two pumps for full offline use on both rigs
fidoman
@efidoman
May 18 2017 19:19
I am wondering if there is a way to setup a test harness with the backup pump that isn't connected to me, just dripping out maybe water filled resevoir and an old infusion set. Then all I need is some fake (or real) bg numbers to feed it.
hilarykoch
@hilarykoch
May 18 2017 19:20
@danamlewis We run autosens all the time. (Love it!) And it looks it is aiming at 80 on its own. (Also love that!) I do think carb ratios needed an adjustment recently, but kept things as is due to our little “adventure.” Was interested to see how SMB might kick in if needed, but it won’t if it thinks he’ll go low.
Dana Lewis
@danamlewis
May 18 2017 19:21
@ericfeibelman doesn't even need a reservoir. Pinky tip when priming so the motor senses the pressure.
Matt Walker
@walker0
May 18 2017 19:21
@ericfeibelman yep that is totally doable. You don't even need the reservoir for basic testing as long as you apply a little pressure to the pump plunger initially
Dana Lewis
@danamlewis
May 18 2017 19:22
@hilarykoch yep, since it keeps predicting those lows it'll just keep rolling w the low temps and not adding smbs.
hilarykoch
@hilarykoch
May 18 2017 19:22
:+1:
Lynne Butts
@flutelynne_twitter
May 18 2017 19:23
@diabetic_dude_twitter It took a few minutes before it got things rolling.
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 19:24
@flutelynne_twitter it has been an hour with no comms with OpenAPS that is normal?
Lynne Butts
@flutelynne_twitter
May 18 2017 19:24
How does the time compare from your rig to your pump?
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 19:25
2 minutes off
more like 1.5
Lynne Butts
@flutelynne_twitter
May 18 2017 19:25
It needs to be reset. It can be no more than 60 seconds off.
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 19:25
cool thanks
adjusted the time will wait another hour
Lynne Butts
@flutelynne_twitter
May 18 2017 19:27
Hopefully less than that...
Dana Lewis
@danamlewis
May 18 2017 19:27
@diabetic_dude_twitter did you also use the enable flag as part of your runagain?
RedCyclist1
@RedCyclist1
May 18 2017 19:30
After running oref-1, do I need to enable UAM and SMB? If so, where are the instructions to do that?
Dana Lewis
@danamlewis
May 18 2017 19:31
Only if you want to, and you're aware that it's still in testing stage. It's not a "need to".
fidoman
@efidoman
May 18 2017 19:31
@walker0 - Thanks I will do that. Any idea how to feed it with glucose data to test features like SMB offline? I'm fairly certain the enlite transmitter can only connect to one pump at a time. Also, I don't want the test pump sending data up to my NS page either.
Lynne Butts
@flutelynne_twitter
May 18 2017 19:34
Well, testing out another RPi2 rig that I have with pushover, SMB. I am only getting high temping so far, no microboluses. I entered carbs without bolusing, and an eating soon mode.
FullSizeRender.jpg
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 19:36
@danamlewis i did not
I just ran bash ~/myopenaps/oref0-runagain.sh
Dana Lewis
@danamlewis
May 18 2017 19:37
@diabetic_dude_twitter then you skipped a step so that's probably what's messing it up if you toggled preferences on but didn't do that. https://github.com/openaps/docs/blob/1dfa8fa32ab16fcd5f168510c8492fa6ade8416d/docs/docs/walkthrough/phase-4/oref1-features.md
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 19:44
thank you
Dana Lewis
@danamlewis
May 18 2017 19:45
@flutelynne_twitter did you run w the enable flag and toggle the preferences for that one?
Lynne Butts
@flutelynne_twitter
May 18 2017 19:46
Yes. I just double-checked the preferences.json and the oref0-runagain.sh part of the flag. They are there. Should I shutdown and restart this RPi2?
Dana Lewis
@danamlewis
May 18 2017 19:49
Yea, try a reboot and see if that does anything?
Lynne Butts
@flutelynne_twitter
May 18 2017 19:49
Ok. Thanks.
RedCyclist1
@RedCyclist1
May 18 2017 19:58
@danamlewis So, I ran mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull) & global-install. How do I run oref0-setup with a "microbolus" enable flag ?
Also, my nightscout is on master so I need to update. Should I run the test build or Scott's build #2564?
cameronrenwick
@cameronrenwick
May 18 2017 20:01
IFTTT problem: keep getting applet failed, action skipped when you look at activity. I've confirmed the hashed api secret, the maker_key, the hashed password for enable... everything is correct as per the IFTTT docs. I'm using an android phone... anyone have any suggestions?
Matthias
@ceben80
May 18 2017 20:01
@danamlewis see above posted by Dana, the link, regarding enabling :wink:
Upps sorry wrong tag @danamlewis
Want write to @RedCyclist1
RedCyclist1
@RedCyclist1
May 18 2017 20:04
@ceben80 So when I run run oref0-setup with a "microbolus" enable it will be obvious how to do it or do I need to edit something?
Matthias
@ceben80
May 18 2017 20:06
Please read the link or jump into oref0-setup.sh
RedCyclist1
@RedCyclist1
May 18 2017 20:06
@ceben80 ok thanks!
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 20:54
I thought there was a patch to update my time if it is showing incorrectly in the script Is that correct.. I am watching the logs and can see my time is WAY off but I do not see it correcting
cameronrenwick
@cameronrenwick
May 18 2017 21:02
ok so note to all... when you add your hashed api secret for IFTTT... make sure you close the whole recipe with the " } " or the whole thing is effed up... (ask me how I know) computers... soo picky ; )
Tim Street
@tim2000s
May 18 2017 21:04
@diabetic_dude_twitter that's not in dev yet.
Diabetic_Dude
@diabetic_dude_twitter
May 18 2017 21:04
ACK
ok good to know, I will wait until I get home and it will auto fix
then I will edit my wireless config to fix the problem until that fix reaches dev
Lynne Butts
@flutelynne_twitter
May 18 2017 21:08
Weird case of events with this older RPi2. I installed same as my othe RPi2 (that is fine). But after restarted this rig, BGs no longer appear in NS, but they are in my Loop NS fine. I plugged in my G5 cgm to this older RPi2, and I am still get log info that my BG data is too old. Is there something special to do? It was working with wifi beforehand. I reloaded the scripts, etc., but still no luck.
Now that I think about it, it did not ask me to restart any cron.
Lynne Butts
@flutelynne_twitter
May 18 2017 21:15
I restarted dynos, cleared mongo via adm in NS. Later I redeployed the repository, and still nothing. Not urgent. I will check back later tonight. I have to make dinner.
tynbendad
@tynbendad
May 18 2017 23:27
fyi, followup on a question i asked - best price on edison was jet.com with their 15% off SPRING15 code (not sure how long it lasts)
question on SMB: one of the safety factors is the amount is limited to "30 minutes of the current regular basal rate" - is there also a limit on how often an SMB can happen?
or i guess maybe that doesn't matter, as long as each SMB is preceded by "OpenAPS must verify, via multiple redundant methods, that it knows about all insulin that has been delivered by the pump"