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

22nd
Mar 2016
Pete Schwamb
@ps2
Mar 22 2016 00:58
What version of pump do you have, @colinlennon?
I think I’ve seen this bug in decocare, but I wasn’t sure what pump verisons it affected.
dougtakeuti
@dougtakeuti
Mar 22 2016 01:02
@bewest I've followed your suggestion but I don't think the outcome makes sense as it says that the port is not open. Therefore I haven't saved an issue yet. Where would the output file be saved?
mm-send-comm.py --init --serial XXXXXX tweak ReadHistoryData --save --page 0
## do stuff with an insulin pump over RF
using ` Namespace(autoinit=False, begin=None, bytesPerRecord=None, command='tweak', descr=None, dryrun=False, effectTime=None, end=None, init=True, maxRecords=None, name=None, no_postlude=False, no_prelude=False, no_rf_prelude=False, other='ReadHistoryData', page=0, params=None, port='', postfix=None, prefix=None, prefix_path='', save=True, saveall=False, serial='524074', session_life=10, verbose=None) `
```
Traceback (most recent call last):
  File "/usr/local/bin/mm-send-comm.py", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/decoding-carelink/bin/mm-send-comm.py", line 8, in <module>
    app.run(None)
  File "/home/pi/src/decoding-carelink/decocare/helpers/cli.py", line 113, in run
    self.prelude(args)
  File "/home/pi/src/decoding-carelink/decocare/helpers/cli.py", line 130, in prelude
    uart.open( )
  File "/home/pi/src/decoding-carelink/decocare/stick.py", line 874, in open
    log.info('%s' % self.product_info( ))
  File "/home/pi/src/decoding-carelink/decocare/stick.py", line 515, in product_info
    return self.query(ProductInfo)
  File "/home/pi/src/decoding-carelink/decocare/stick.py", line 509, in query
    return self.process( )
  File "/home/pi/src/decoding-carelink/decocare/stick.py", line 490, in process
    raw = self.send_force_read( )
  File "/home/pi/src/decoding-carelink/decocare/stick.py", line 606, in send_force_read
    self.link.write(reader.format( ))
  File "/home/pi/src/decoding-carelink/decocare/link.py", line 47, in write
    r = self.serial.write( string )
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 466, in write
    if not self._isOpen: raise portNotOpenError
ValueError: Attempting to use a port that is not open
I'm using the TI stick
amoskane
@amoskane
Mar 22 2016 01:17

Hi all, I’m at the last 2 steps, writing my enact file and my cron job. I’m ruminating hard on “Enacting the suggested action”, but I just can’t get the dots to connect.

What I’m tripping on is — i can’t think of how to write a report that “takes” a variable. It seems like I’d need a device in order to “take" the suggested.json.rate input and do something with it. I’d also need to be able to parse into the suggested.json and get that value out.

Am I even on the right track or am I totally overcomplicating??
Scott Leibrand
@scottleibrand
Mar 22 2016 01:30
overcomplicating. :)
look through the pump use commands for the one that does what you want to do first
that takes a json file as an argument, so you can pass suggested.json to it and it will enact it for you (set the requested temp)
dougtakeuti
@dougtakeuti
Mar 22 2016 02:12
@bewest , I went back to my carelink setup and the problem is gone. I guess my TI stick is faulty.
Scott Leibrand
@scottleibrand
Mar 22 2016 02:14
not necessarily
port not open can be a config error
dougtakeuti
@dougtakeuti
Mar 22 2016 02:16
@scottleibrand interesting, why would it start out of the blue? I did not touch anything... something getting corrupted?
Scott Leibrand
@scottleibrand
Mar 22 2016 02:16
oh, is this only with mm-send-comm.py? or with normal mmeowlink tools?
dougtakeuti
@dougtakeuti
Mar 22 2016 02:18
not sure yet. The other reports seemed to be invoked ok, but I didn't really check in much detail
garykidd
@garykidd
Mar 22 2016 02:19
hey all. very slowly learning here. is there any indication on nightscout once openaps is enabled and pump is enabled...if nothing else is implemented yet for openaps...do any pill boxes show up if no data feeding NS?
Scott Leibrand
@scottleibrand
Mar 22 2016 02:21
you have to be running the dev version of NS and set an enable var for openaps, then you can select the openaps and pump pills in settings and they should show up
@dougtakeuti not sure if mm-send-comm.py supports mmeowlink unmodified. that'd be a question for @bewest
dougtakeuti
@dougtakeuti
Mar 22 2016 02:26
That's what I suspected @scottleibrand but @oskarpearson had suggested something similar for the glucose data:
export SERIAL=pump_serial_number_over_here_digits_only   
mm-send-comm.py tweak ReadCurGlucosePageNumber
and he knew I was running mmoewlink.
Colin Lennon
@colinlennon
Mar 22 2016 02:35
Hi @ps2 it's a 722 with firnware 2.4A.
Ben West
@bewest
Mar 22 2016 02:49
oh mmoewlink
mmeowlink-send.py == mm-send-comm.py
@dougtakeuti oskarpearson/mmeowlink#15 mmeowlink-send.py --subg_rfspy tweak ReadCurGlucosePageNumber
dougtakeuti
@dougtakeuti
Mar 22 2016 02:59
@bewest mmeowlink-send.py: error: unrecognized arguments: --subg_rfspy
dougtakeuti
@dougtakeuti
Mar 22 2016 03:07
@bewest Isn't the syntax mmeowlink-send.py --radio_type subg_rfspy tweak ReadCurGlucosePageNumber?
That would also give a port error
mmeowlink-send.py  --radio_type subg_rfspy tweak ReadCurGlucosePageNumber
Traceback (most recent call last):
  File "/usr/local/bin/mmeowlink-send.py", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/mmeowlink-source/bin/mmeowlink-send.py", line 7, in <module>
    app.run(None)
  File "/home/pi/src/decoding-carelink/decocare/helpers/cli.py", line 113, in run
    self.prelude(args)
  File "/home/pi/mmeowlink-source/mmeowlink/cli/messages.py", line 15, in prelude
    self.link = link = LinkBuilder().build(args.radio_type, args.port)
  File "/home/pi/mmeowlink-source/mmeowlink/link_builder.py", line 11, in build
    return SubgRfspyLink(port)
  File "/home/pi/mmeowlink-source/mmeowlink/vendors/subg_rfspy_link.py", line 55, in __init__
    self.open()
  File "/home/pi/mmeowlink-source/mmeowlink/vendors/serial_interface.py", line 25, in open
    self.serial = serial.Serial( self.device, self.speed )
  File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 261, in __init__
    self.open()
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 278, in open
    raise SerialException("could not open port %s: %s" % (self._port, msg))
serial.serialutil.SerialException: could not open port : [Errno 2] No such file or directory: ''
JaysonEwer
@JaysonEwer
Mar 22 2016 03:44
@bewest did you ever figure out why you were having high blood sugars? Was that you that said you were having problems keeping your BG's in target? You even swapped your vial of insulin, right? I seem to have a similar problem, just wondering if you found anything to help explain what may have been happening?
Britta
@Surferin
Mar 22 2016 03:55
@JaysonEwer I just read your comment. I wonder if you might have used more insulin overall for at least 3 days or more than before?
amoskane
@amoskane
Mar 22 2016 05:12
I did it! Almost! Only hitch is I keep getting “received: false” from the temp-basal enactment:
{
"requested": {
"duration": 30,
"rate": 2,
"temp": "absolute"
},
"bg": 202,
"temp": "percent",
"snoozeBG": 204,
"timestamp": "2016-03-21T22:10:29.857194",
"rate": 130,
"reason": "max_iob 2, adj. req. rate:4.9 to maxSafeBasal:2.0, no temp, setting 2U/hr",
"eventualBG": 204,
"recieved": false,
"duration": 0,
"tick": "+0"
}
what would cause that?
Scott Leibrand
@scottleibrand
Mar 22 2016 05:31
"temp": "percent",
that means you need to change your temp basal type on your pump to be "absolute"
amoskane
@amoskane
Mar 22 2016 05:34
BAHAHAHAHAHAH BAHAHAHAHA I JUST LOOPED!!!!!!!! BAHAHAHAHAHAH
Thank you, Scott!!
Dana Lewis
@danamlewis
Mar 22 2016 05:36
Woot @amoskane ! Take a pic and remember this moment! :)
Scott Leibrand
@scottleibrand
Mar 22 2016 05:37
:-D
Jim Matheson
@jmatheson
Mar 22 2016 05:42
:+1:
(((I got EVERYONE pancreas stickers for the SF meetup on Weds! :) )))
Scott Leibrand
@scottleibrand
Mar 22 2016 05:54
lol :-)
Dana Lewis
@danamlewis
Mar 22 2016 05:54
Nice :)
Oskar Pearson
@oskarpearson
Mar 22 2016 07:18
Oh awesome :)
Congratulations @amoskane :)
Colin Lennon
@colinlennon
Mar 22 2016 08:38
Nice work @amoskane!
Matthias
@ceben80
Mar 22 2016 10:11

@/all
The next days I'm gonna get a flashed TI stick to be replaced my Carelink (using with pi).

Would be happy if anyone could advice me what to do on openaps side in terms of TI implementation :+1:

live4sw
@live4sw
Mar 22 2016 10:27
This message was deleted
Hi all, getting slightly frustrated, my loop stops running after about 3 hours - first this happens:
Mar 22 02:17:13 raspberrypi openaps: PREFLIGHT OK
Mar 22 02:17:18 raspberrypi FAILED TO DOWNLOAD ANYTHING, after 0  expected:64
Mar 22 02:17:19 raspberrypi ACK is zero bytes!
Then a bunch of tracebacks, then it throws off the "No CGM data", which I know is just a catch-all error. Then each time it tries to run the loop, it immediately throws off:
Mar 22 02:18:05 raspberrypi openaps: Traceback (most recent call last):
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
Mar 22 02:18:05 raspberrypi openaps:     "__main__", fname, loader, pkg_name)
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
Mar 22 02:18:05 raspberrypi openaps:     exec code in run_globals
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/stick.py", line 912, in <module>
Mar 22 02:18:05 raspberrypi openaps:     stick.open( )
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/stick.py", line 874, in open
Mar 22 02:18:05 raspberrypi openaps:     log.info('%s' % self.product_info( ))
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/stick.py", line 515, in product_info
Mar 22 02:18:05 raspberrypi openaps:     return self.query(ProductInfo)
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/stick.py", line 509, in query
Mar 22 02:18:05 raspberrypi openaps:     return self.process( )
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/stick.py", line 496, in process
Mar 22 02:18:05 raspberrypi openaps:     ack, response = self.command.respond(raw)
Mar 22 02:18:05 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/stick.py", line 71, in respond
Mar 22 02:18:05 raspberrypi openaps:     raise AckError("ACK is 0 bytes:\n%s" % lib.hexdump(raw))
Mar 22 02:18:05 raspberrypi openaps: decocare.errors.AckError: ACK is 0 bytes:
live4sw
@live4sw
Mar 22 2016 10:34
Replugging the stick seems to fix it, but since this isn't happening during preflight, it doesn't reset USB. So I'm thinking the best solution is just a few hourly reboots during the night. Any of you guys do that?
live4sw
@live4sw
Mar 22 2016 11:08
Hm, even a sudo oref0-reset-usb fixes it. Reasonable to just run that every hour, or even every 30 minutes? I know it can occasionally cause the ssh to disconnect, but that's not a big deal if all i need to do is reconnect (only an issue during the day anyway). Alternatively, I could just have it reset usb along with No CGM data in the loop alias, since it always throws off that message the first time it stops working, before it then goes into a pattern of giving me those errors every time it tries to run.
JaysonEwer
@JaysonEwer
Mar 22 2016 14:58
@Surferin , I'll have to check on the using more insulin over three days, but I would guess the answer is yes. Is that a sign I need to the
Britta
@Surferin
Mar 22 2016 15:09
It could be a sign you need more insulin overall @JaysonEwer, around the clock for basal and for the bolus as well. Unfortunately I didn't found information about it in english on the internet
JaysonEwer
@JaysonEwer
Mar 22 2016 15:13
@Surferin ok, thanks for the comment. I just switched back to Apidra today to see if there was something wrong with the Novolog I was using.
Britta
@Surferin
Mar 22 2016 15:14
@JaysonEwer you are welcome. If you have anymore questions, feel free to ask me
Scott Leibrand
@scottleibrand
Mar 22 2016 17:18
@live4sw I suspect your preflight alias is broken. It should be failing if the stick is borked like that.
Does it ever fail when the pump is out of range?
Eric Luhrs
@eluhrs
Mar 22 2016 19:57
I have a few questions about auto-sensitivity in the meal-assist branch. I've added all of the devices and reports listed here: https://github.com/openaps/docs/blob/dev/docs/Build-manual-system/Configure%20Automatic%20Sensitivity%20Mode.md
1) I couldn't find a way to determine current basal rate, so I point to the json file will all basal rates. Is that okay? 2) When I run the settings/auto-sens.json report, the command completes but the resulting file has no content. Is that normal? and 3) Once I'm satisfied that everything is working, what's the best way to integrate the new reports and commands into my main loop?
Scott Leibrand
@scottleibrand
Mar 22 2016 20:01
I'd run it manually first
Britta
@Surferin
Mar 22 2016 20:01
hey, a short question in between:
Scott Leibrand
@scottleibrand
Mar 22 2016 20:02
something like ~/src/oref0/bin/oref0-detect-sensitivity.js monitor/glucose.json settings/pumphistory-24h-zoned.json settings/insulin_sensitivities.json settings/basal_profile.json settings/profile.json
Britta
@Surferin
Mar 22 2016 20:02
how much do you pay for a G4/G5 sensor?
How much does a G4 transmitter cost?
How much does a G5 sensor cost?
Eric Luhrs
@eluhrs
Mar 22 2016 20:03
I just got a used G4 transmitter from craigslist for $150. It was almost brand new. No sensor though. I'm going to try to replace the batteries in my old one.
live4sw
@live4sw
Mar 22 2016 20:05
@scottleibrand This is my preflight preflight = ! bash -c "rm -f monitor/clock.json && openaps report invoke monitor/clock.json 2>/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || (mm-stick warmup || sudo oref0-reset-usb; echo PREFLIGHT FAIL; sleep 120; exit 1)"
But yes, it doesn't seem to PREFLIGHT FAIL when I'm out of range, maybe because it's already stopped its routine. Should the entire alias up until the "||" be in parentheses?
Britta
@Surferin
Mar 22 2016 20:07
In Germany, Austria and Switzerland you have to buy the G5 Transmitter always together with the sensors. You can't buy a transmitter alone and the sensors alone. But you can buy the G4 transmitter alone and the sensors alone. For me it would be interesting to know the costs for the G5 System in the States
Scott Leibrand
@scottleibrand
Mar 22 2016 20:08
@live4sw that is almost identical to what I used to use when using carelink. you shouldn't need parentheses before the || ...
ls -la monitor/clock.json to make sure that's not old...
live4sw
@live4sw
Mar 22 2016 20:10
it's current
Scott Leibrand
@scottleibrand
Mar 22 2016 20:10
what does it do when it's out of range?
does it say PREFLIGHT OK?
Eric Luhrs
@eluhrs
Mar 22 2016 20:12
Hmm. Well, this could be the problem. I don't seem to have ~/src/oref0/bin/oref0-detect-sensitivity.js. Only oref0-detect-basal.js. Here's my openaps version info:pi@raspberrypi:~/wopr $ openaps --version
openaps 0.0.11-dev
Do I need to upgrade oref0 separately?
@surferin I suspect the answer will be different for most people you ask, depending on the specifics of each person's insurance coverage.
Scott Leibrand
@scottleibrand
Mar 22 2016 20:14
what branch of oref0 are you on?
Eric Luhrs
@eluhrs
Mar 22 2016 20:15
I'm not sure how to tell. It is the same version I installed initially. I did not install a different version when I installed the dev version of openaps.
live4sw
@live4sw
Mar 22 2016 20:15
sorry @scottleibrand, it does say PREFLIGHT FAIL when I'm out of range. But I did notice that mm-stick warmup doesn't seem to error when I am having the original problem during the night
Britta
@Surferin
Mar 22 2016 20:15
I pay for myself the CGM system and the most other diabetics do it like I do. Most of the insurance healthcare providers in Germany don't pay for the CGMS
Scott Leibrand
@scottleibrand
Mar 22 2016 20:17
@live4sw what I had to do when troubleshooting my setup originally was wait for the issue to recur, and then resist the urge to just fix it with a reseat, and instead do the exact same thing manually that the preflight alias did to see exactly what happened
Eric Luhrs
@eluhrs
Mar 22 2016 20:19
There are some "retail" prices listed here. Not sure how accurate they are though.
Scott Leibrand
@scottleibrand
Mar 22 2016 20:19
those look correct to me
Eric Luhrs
@eluhrs
Mar 22 2016 20:21
@scottleibrand is there a way to query oref0 for version info?
Scott Leibrand
@scottleibrand
Mar 22 2016 20:22
you can look at your src/oref0 repo and see what commit it's on
when you switch branches and do a git pull with an updated package.json, you'll also need to do a fresh npm install. I usually do the whole shebang: cd && test -d src/oref0 && cd src/oref0 && npm install && sudo npm install -g && sudo npm link && sudo npm link oref0
live4sw
@live4sw
Mar 22 2016 20:25
@scottleibrand It actually just started doing it again. What's happening is that it's actually getting through PREFLIGHT OK, but then breaks down during one of the loop reports because it gets a bunch of stick transmit errors. So it just returns No CGM Data
Eric Luhrs
@eluhrs
Mar 22 2016 20:26
hmm. package.json shows oref0 version 0.1.3. And I have a release-master.sh file.... With git checkout and pull commands for the master branch. I take it that's the problem?
live4sw
@live4sw
Mar 22 2016 20:26
I am wondering if the problem isn't really with the preflight, but instead with the loop alias, since it seems like after a certain amount of use, the stick may work well enough to get through preflight, but not well enough to make it through the full loop
Scott Leibrand
@scottleibrand
Mar 22 2016 20:27
@eluhrs to use anything other than the master branch, you need to install it with quick-src.sh instead of quick-packages.sh
@live4sw could be, but I've never seen that before
@eluhrs and just to make it easy, I'll go ahead and merge meal-assist branch to dev for you. ;-)
live4sw
@live4sw
Mar 22 2016 20:28
This is the recurring error:
Mar 22 16:27:07 raspberrypi openaps: pump://JSON/iter_pump_hours/monitor/pumphistory.json
Mar 22 16:27:07 raspberrypi openaps: Traceback (most recent call last):
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/bin/openaps-report", line 4, in <module>
Mar 22 16:27:07 raspberrypi openaps:     __import__('pkg_resources').run_script('openaps==0.0.10', 'openaps-report')
Mar 22 16:27:07 raspberrypi openaps:   File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 724, in run_script
Mar 22 16:27:07 raspberrypi openaps:   File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1650, in run_script
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
Mar 22 16:27:07 raspberrypi openaps:     app( )
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/cli/__init__.py", line 44, in __call__
Mar 22 16:27:07 raspberrypi openaps:     self.run(self.args)
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
Mar 22 16:27:07 raspberrypi openaps:     output = app(args, self)
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
Mar 22 16:27:07 raspberrypi openaps:     return self.method.main(args, app)
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/reports/invoke.py", line 40, in main
Mar 22 16:27:07 raspberrypi openaps:     output = task.method(args, app)
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/uses/use.py", line 45, in __call__
Mar 22 16:27:07 raspberrypi openaps:     output = self.main(args, app)
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/vendors/medtronic.py", line 455, in main
Mar 22 16:27:07 raspberrypi openaps:     for rec in self.range( ):
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/models/__init__.py", line 67, in __call__
Mar 22 16:27:07 raspberrypi openaps:     for record in page:
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/models/__init__.py", line 46, in download_page
Mar 22 16:27:07 raspberrypi openaps:     for record in self.find_records(page):
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/models/__init__.py", line 140, in find_records
Mar 22 16:27:07 raspberrypi openaps:     decoder = history.HistoryPage(response.data, self.inst)
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/history.py", line 773, in __init__
Mar 22 16:27:07 raspberrypi openaps:     if lib.BangInt(crc) != computed:
Mar 22 16:27:07 raspberrypi openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.22-py2.7.egg/decocare/lib.py", line 235, in BangInt
Mar 22 16:27:07 raspberrypi openaps:     ( x, y ) = ints
Mar 22 16:27:07 raspberrypi openaps: ValueError: need more than 0 values to unpack
Mar 22 16:27:07 raspberrypi openaps: No CGM data.
Happening during the loop itself
Scott Leibrand
@scottleibrand
Mar 22 2016 20:28
@live4sw are you getting CGM data from Medtronic or Dexcom?
live4sw
@live4sw
Mar 22 2016 20:29
Dexcom
Eric Luhrs
@eluhrs
Mar 22 2016 20:29
Thanks, @scottleibrand. :clap:
Scott Leibrand
@scottleibrand
Mar 22 2016 20:29
that's odd. why would decocare care about cgm data?
what is the command that gives that error?
openaps/oref0#75 merged
so now quick-src.sh will get you the latest meal assist
Toby Canning
@TC2013
Mar 22 2016 20:31
@scottleibrand Is Autosens also on that dev branch?
Scott Leibrand
@scottleibrand
Mar 22 2016 20:31
yes
still need to configure the reports for it
but all the code is now in dev
Toby Canning
@TC2013
Mar 22 2016 20:32
:thumbsup:
Does anyone have tips on how to free up space on the edison
Eric Luhrs
@eluhrs
Mar 22 2016 20:33
Just to make sure I understand, is this close to right? when I installed the prod version of openaps I got the prod version of oref0 with it. Then when I switched to the meal-assist branch of openaps, I was stuck with the older version of oref0 because I used quick-packages.sh instead of quick-src.sh? Is that about right?
Toby Canning
@TC2013
Mar 22 2016 20:33
I've used sudo apt-get clean but still need some more space
Scott Leibrand
@scottleibrand
Mar 22 2016 20:35
@eluhrs how did you "switch to the meal-assist branch"?
Toby Canning
@TC2013
Mar 22 2016 20:35
Thanks @scottleibrand and @danalewis for all your work on the meal assist! We will start using it and I'll let you know how it works for us.
Scott Leibrand
@scottleibrand
Mar 22 2016 20:35
more accurately, when you installed openaps you did so using quick-packages.sh, which installed the release versions of both openaps and oref0
in order to upgrade from the packaged version of oref0 to a branch, you have to do the appropriate npm install after you check out the branch you want. quick-src.sh does that for you.
Eric Luhrs
@eluhrs
Mar 22 2016 20:37
I can't recall the exact command. I think that's it though. I ran the quick-packages script the first time, then failed to also update oref0...
after I switched to the dev version of openaps.
scottleibrand @scottleibrand nods
Dana Lewis
@danamlewis
Mar 22 2016 20:38
thanks @TC2013 :) always good to have more tests and feedback so we can iterate!
Eric Luhrs
@eluhrs
Mar 22 2016 20:39
One of my major weaknesses is that I'm pretty bad with git. I just to be a linux admin, but it was before git existed....
Scott Leibrand
@scottleibrand
Mar 22 2016 20:40
and be sure to read the mouseover text. :)
Eric Luhrs
@eluhrs
Mar 22 2016 20:41
Yea, that's about the extent of it.
So at the risk or re-enacting XKCD, what's the best way to checkout the latest dev branch? I take it I don't want to update my meal-assist branch now.
Dana Lewis
@danamlewis
Mar 22 2016 20:44
heh
Scott Leibrand
@scottleibrand
Mar 22 2016 20:45
just git checkout dev and git pull should do it
Eric Luhrs
@eluhrs
Mar 22 2016 20:46
Do I need to be in my openaps dir?
Scott Leibrand
@scottleibrand
Mar 22 2016 20:46
~/src/oref0 is where quick-src.sh puts it
Eric Luhrs
@eluhrs
Mar 22 2016 20:47
Right, I need to run the quick-src.sh script from ~src/oref0, but does it matter where I am on the fs when I do the git checkout and pull?
Scott Leibrand
@scottleibrand
Mar 22 2016 20:47
no, other way around
doesn't really matter where you run quick-src.sh. it creates ~/src/oref0, and then you cd there to checkout different branches and pull updates
I think re-running quick-src.sh will checkout dev and do a pull, fwiw
Eric Luhrs
@eluhrs
Mar 22 2016 20:50
strange. I don't see quick-src.sh in ~/src/oref0
git pull worked though....
Scott Leibrand
@scottleibrand
Mar 22 2016 20:53
live4sw
@live4sw
Mar 22 2016 20:57
@scottleibrand Decocare is erroring at the pumphistory.json report, that's part of my monitor-pump alias (used within gather, which is in turn in my loop alias)
Scott Leibrand
@scottleibrand
Mar 22 2016 21:00
what generates the "No CGM data" warning then?
and do you get the same error running openaps report invoke monitor/pumphistory.json?
Hard to keep up with ya'll ;)
live4sw
@live4sw
Mar 22 2016 21:06
Yep, I get the same error running the pumphistory report, along with any other report from the pump.
Britta
@Surferin
Mar 22 2016 21:06
:+1:
live4sw
@live4sw
Mar 22 2016 21:06
But rebooting, reseating, or resetting USB appears to get things working again.
Scott Leibrand
@scottleibrand
Mar 22 2016 21:06
what about openaps report invoke monitor/clock.json?
(before resetting)
live4sw
@live4sw
Mar 22 2016 21:07
yep, same thing
i tried clock next
Scott Leibrand
@scottleibrand
Mar 22 2016 21:07
then preflight should be failing
run the components of preflight one at a time
live4sw
@live4sw
Mar 22 2016 21:08
yep, returning the error on clock.json
Scott Leibrand
@scottleibrand
Mar 22 2016 21:09
ok. you need to play the computer and figure out why that's failing but it's not doing reset-usb
Eric Luhrs
@eluhrs
Mar 22 2016 21:10
@danamlewis :clap:
Scott Leibrand
@scottleibrand
Mar 22 2016 21:10
build up commands one by one until you are doing the same thing as the preflight alias
Eric Luhrs
@eluhrs
Mar 22 2016 21:13
@scottleibrand Okay, making progress here! I updated dev and now I can manually run ore0-detect-sensitivities.
Do I just create an alias for that and add it to my loop? I wasn't quite clear on this line from the docs:
"Your loop should run without auto-sens.json report but if you don't pass that as an input you will see the following message while executing oref0-determine-basal.js:"
Should that be "with" instead of "without?"
Stephan
@MosiGitHub
Mar 22 2016 21:21
@danamlewis 👏😀
Scott Leibrand
@scottleibrand
Mar 22 2016 21:23
@eluhrs that's just saying determine-basal will work fine without auto-sens (not having it set up won't break anything)
Eric Luhrs
@eluhrs
Mar 22 2016 21:24
@scottleibrand Oh, I get it. Planning to do a PR for this page when I'm done.
Scott Leibrand
@scottleibrand
Mar 22 2016 21:24
yes please. I haven't tried to follow it, but it looks like it could use some updates. :)
Dana Lewis
@danamlewis
Mar 22 2016 21:25
@eluhrs yay for PRs :)
Eric Luhrs
@eluhrs
Mar 22 2016 21:27
@scottleibrand So I'll work on adding this to my loop later tonight.
@scottleibrand Thanks so much for all of your help. Do you have an amazon list? :smile:
Scott Leibrand
@scottleibrand
Mar 22 2016 21:45
;-)
Eric Luhrs
@eluhrs
Mar 22 2016 21:53
Well, you should. I sometimes wonder how you get anything else done. So thank you again. I really do appreciate. Once I get my head around a few more of the internals, I'll do my best to help wherever I can.
Toby Canning
@TC2013
Mar 22 2016 21:54
@scottleibrand I had autosens working on a different branch with meal-assist, but now switching to dev though meal-assist works the autosens doesn't display in the log... Does that have anything to do with the reports?
I did update oref0 dev and all the other branches I'm running with OpenAPS
Scott Leibrand
@scottleibrand
Mar 22 2016 21:56
@TC2013 dunno how your stuff is set up. I'd start running the reports manually.
Toby Canning
@TC2013
Mar 22 2016 21:56
ahh, of course, thank you
scottleibrand @scottleibrand feels like a broken record. "My X isn't working." "Have you tried running the components manually?"
Scott Leibrand
@scottleibrand
Mar 22 2016 21:57
maybe someone should add that to the troubleshooting page
Toby Canning
@TC2013
Mar 22 2016 21:57
:)
Dana Lewis
@danamlewis
Mar 22 2016 21:57
;) May I suggest a PR ;) #alsoabrokenrecord
Scott Leibrand
@scottleibrand
Mar 22 2016 21:57
I like suggesting other people write PRs for me. ;-)
Toby Canning
@TC2013
Mar 22 2016 22:01
Most of this is like some advanced courses in math I took in graduate school. A lot of memorization with no real understanding of the mechanics
Scott Leibrand
@scottleibrand
Mar 22 2016 22:02
yeah, we need to fix that
Dana Lewis
@danamlewis
Mar 22 2016 22:02
the mechanics of treating diabetes is the same, though
high = more, low = less (insulin)
Toby Canning
@TC2013
Mar 22 2016 22:02
Yeah, not those mechanics... rather linux and programming and other unknown computer stuff
Dana Lewis
@danamlewis
Mar 22 2016 22:03
heh.
Toby Canning
@TC2013
Mar 22 2016 22:12
Messaging like this also creates some barriers in understanding... For example, my request of Scott above about autosens not showing up in the logs came entirely from Scott saying something to the effect of, "I don't have the reports updated yet (maybe he was talking to someone else for all I know)." I don't know what that means, so when the autosens messages didn't show up in the logs (as they did previously), I wondered if that is what he meant. So, before I spent an hour trying to track it down, I thought I'd ask...
Dana Lewis
@danamlewis
Mar 22 2016 22:14
:+1:
live4sw
@live4sw
Mar 22 2016 22:29
@scottleibrand I believe I have found the culprit. The problem is that we're not even getting to preflight because we're stuck in retry-loop, which is until( ! mm-stick warmup || openaps loop); do sleep 5; done
The very lengthy error is thrown off by mm-stick warmup and it never even gets to anything after it
Scott Leibrand
@scottleibrand
Mar 22 2016 22:31
that until() loop is supposed to break out and stop repeating openap loop if mm-stick warmup fails
@TC2013 nothing wrong with what you asked. just commenting that it might be useful telling people how to troubleshoot more effectively by breaking down the problem and investigating, rather than the "I saw this error, what does that mean" approach
because most of the time our errors are not enough, by themselves, to know what's going on
live4sw
@live4sw
Mar 22 2016 22:34
right, so it breaks out immediately, reports that error, and then it gets no farther
scottleibrand @scottleibrand pulls up my retry-loop definion
live4sw
@live4sw
Mar 22 2016 22:35
it would seem to me that a solution here might be that if it breaks out, it may want to reset usb as well
Scott Leibrand
@scottleibrand
Mar 22 2016 22:35
openaps alias add retry-loop '! bash -c "openaps wait-loop || until( ! mm-stick warmup 2>&1 | egrep -v \"^ \" || ! openaps preflight || openaps loop); do sleep 10; done"'
openaps alias add wait-loop '! bash -c "openaps preflight && openaps gather && openaps enact && openaps report invoke monitor/temp_basal.json 2>/dev/null >/dev/null && openaps upload && openaps get-settings 2>/dev/null >/dev/null && openaps wait-for-bg && openaps enact && openaps upload-ns-status >/dev/null"'
openaps alias add loop '! bash -c "openaps preflight && openaps gather && openaps get-settings 2>/dev/null >/dev/null && openaps enact; openaps upload"'
so you have to have something that calls the preflight before the until() loop
if you don't want to do the wait-for-bg stuff, you could just do openaps preflight && until(...
live4sw
@live4sw
Mar 22 2016 22:38
Yeah, yours uses a bunch of other aliases, but conceptually my issue appears to just be that there should be a preflight done before anything else.
Scott Leibrand
@scottleibrand
Mar 22 2016 22:39
yep. so just add openaps preflight && before the until
This message was deleted
This message was deleted
fixed
live4sw
@live4sw
Mar 22 2016 22:41
Thanks so much, really appreciate it.
Scott Leibrand
@scottleibrand
Mar 22 2016 22:41
this is the kind of stuff we shouldn't be making everyone do for themselves
we have some ideas bouncing around for how to improve that...
but in the mean time, is there somewhere in the docs that you got your retry-loop from that needs updating?
Dana Lewis
@danamlewis
Mar 22 2016 22:52
This sticker I think we might all need: https://www.instagram.com/p/BDRcuC9wtii/
live4sw
@live4sw
Mar 22 2016 22:53
@scottleibrand i hear you. i'll make sure this fixes it and then do a PR noting the issue
garykidd
@garykidd
Mar 22 2016 23:36
dana, what version of openaps are you running?
Scott Leibrand
@scottleibrand
Mar 22 2016 23:41
@danamlewis and I are using openaps 0.0.11-dev and just switched to the advanced-meal-assist branch of oref0
garykidd
@garykidd
Mar 22 2016 23:42
are those versions you are using available publicly?
Scott Leibrand
@scottleibrand
Mar 22 2016 23:43
yes
we generally suggest that people get set up on the packaged versions (which come from the master branch) to start with, then once they are up and looping and ready to start testing new features, use quick-src.sh to switch over to the dev version
but if you have a non-connected test pump or are involved in development, you can certainly use the latest work-in-progress branches like advanced-meal-assist as well.
garykidd
@garykidd
Mar 22 2016 23:45
I was simply trying to install the dev version of NS so I could see some of the latest tools---didnt get far...think I have the right branch but not sure how to implement--can you direct me a bit
garykidd
@garykidd
Mar 22 2016 23:53
that for the pi setup right? I was just trying to update nightscout today. I did just get a box from amaxon ...new rpi3 but wint hve energy tonight
Tim Howard
@tghoward
Mar 22 2016 23:55
@garykidd are you using Azure? Heroku?