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

11th
Jan 2016
Scott Leibrand
@scottleibrand
Jan 11 2016 00:24
which file or directory is it complaining about?
if it's enacted.json, that's usually because you haven't yet enacted a temp.
Kevin Wells
@wkcwells
Jan 11 2016 00:45
I don’t think it reports which file. The exception is monitor/upload-status.json raised [Errno 2] No such file or directory
But it seems to report that for any file. I have enacted.json in the right place
Scott Leibrand
@scottleibrand
Jan 11 2016 00:51
did you mkdir all the directories where it's trying to store reports?
monitor, settings, and enact
@bewest still getting the same error with only one Dexcom in range: bewest/openxshareble#1
Kevin Wells
@wkcwells
Jan 11 2016 00:53
Yes. And all the report files exist and have the right data as far as I can tell.
Scott Leibrand
@scottleibrand
Jan 11 2016 00:54
k. next step is probably to paste the actual errors, with ``` (three backticks) on their own line before and after
so it looks like this
Kevin Wells
@wkcwells
Jan 11 2016 01:08
Here you go. Thanks!
$ openaps status-upload
ns-status://JSON/shell/monitor/upload-status.json
Exception raised executing: ['ns-status', 'monitor/clock.json', 'monitor/iob.json', 'enact/suggested.json', 'enact/enacted.json', 'monitor/battery.json', 'monitor/reservoir.json', 'monitor/status.json']
monitor/upload-status.json  raised  [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.0.8', 'openaps-report')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 745, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1670, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/openaps/cli/__init__.py", line 44, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-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.0.8-py2.7.egg/openaps/cli/subcommand.py", line 50, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-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.0.8-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.0.8-py2.7.egg/openaps/vendors/process.py", line 85, in main
    raise e
OSError: [Errno 2] No such file or directory
The Exception raised executing line is debugging I added to process.py. I should probably revert that and run again because it changes the backtrace slightly.
Kevin Wells
@wkcwells
Jan 11 2016 01:19
Error was the same after reversion. Stack trace is only different in that the last 2 frames are in subprocess.py in the python package.
eyim
@eyim
Jan 11 2016 01:32
@wkcwells you should replace that report with wherever you have put it. Some people have it in their upload folder or even call it a different name entirely.
Scott Leibrand
@scottleibrand
Jan 11 2016 01:34
What does ls monitor/* enact/* look like?
Kevin Wells
@wkcwells
Jan 11 2016 01:46
$ ls monitor/ enact/
enact/:
enacted.json  suggested.json

monitor/:
battery.json  clock.json  glucose-dex.json  glucose.json  glucose-ns.json  iob.json  pumphistory.json  reservoir.json  status.json  temp_basal.json
Thx
Scott Leibrand
@scottleibrand
Jan 11 2016 01:49
how about which ns-status?
Kevin Wells
@wkcwells
Jan 11 2016 01:57
Oooooh. That returns nothing. but I have a ns-status.ini file
Scott Leibrand
@scottleibrand
Jan 11 2016 01:58
so the most recent oref0 is not installed properly
re-running quick-packages.sh should get you the latest (or quick-src.sh if you're using source)
https://github.com/openaps/oref0/blob/master/package.json#L40 should add an ns-status command to your path
so you told openaps to use ns-status, and it dutifully created an ns-status.ini to track how to do that, but when it actually tries to do so, it's not in your path, so it bails
Kevin Wells
@wkcwells
Jan 11 2016 02:02
Yikes. Thanks! It’s reinstalling. (Using IPv6 addresses for some reason so it’s going slow, but working.]
scottleibrand @scottleibrand idly wonders why your ipv6 is slower than ipv4. it shouldn't be.
Kevin Wells
@wkcwells
Jan 11 2016 02:10
I agree. Maybe the PI/mirrors are just slow. Seems like it was very slow the first time too (don’t remember whether it used v6). But I don’t seem to be able ping6 from here. Troubleshooting for another place/time….
Ben West
@bewest
Jan 11 2016 02:45
@scottleibrand looks like it paired second time
Scott Leibrand
@scottleibrand
Jan 11 2016 02:46
the "second time" was actually first
so whatever it did it didn't help it get data from the dex
what can I try to troubleshoot further?
Ben West
@bewest
Jan 11 2016 02:50
not sure, try again
if you tried a bunch fair enoufh
Scott Leibrand
@scottleibrand
Jan 11 2016 02:50
yeah, it always does the exact same thing
Ben West
@bewest
Jan 11 2016 02:51
wonder if you're using my/latest sources
Scott Leibrand
@scottleibrand
Jan 11 2016 02:51
lemme check that
Ben West
@bewest
Jan 11 2016 02:51
33a714e8df3049e66af5b5f8526838dab75d74e5
Scott Leibrand
@scottleibrand
Jan 11 2016 02:51
for which package?
Ben West
@bewest
Jan 11 2016 02:51
on openxshareble
Scott Leibrand
@scottleibrand
Jan 11 2016 02:51
k
Ben West
@bewest
Jan 11 2016 02:52
3b15cad0245497d7d043e2b2ba7c447f177bd877 on the Adafruit thing
Scott Leibrand
@scottleibrand
Jan 11 2016 02:52
33a714e8df3049e66af5b5f8526838dab75d74e5 and 3b15cad0245497d7d043e2b2ba7c447f177bd877 ya
Ben West
@bewest
Jan 11 2016 02:52
hmmm
bummer, always lovely when that's the problem
interesting, it seems to work fairly well on the devices I tested
which version of bluez?
Scott Leibrand
@scottleibrand
Jan 11 2016 02:54
pi@rpi3 ~/src $ bluetoothctl -v
5.33
strange that the dex never thinks it's paired, but the Pi does
Ben West
@bewest
Jan 11 2016 02:55
did the BT icon go away?
Scott Leibrand
@scottleibrand
Jan 11 2016 02:56
still blinky blinky pairing mode
Ben West
@bewest
Jan 11 2016 02:56
oh
hmmm
Scott Leibrand
@scottleibrand
Jan 11 2016 02:56
eventually (after 15m or something) it times out and tells me pairing failed.
Ben West
@bewest
Jan 11 2016 02:56
weird, mine paired itself
Scott Leibrand
@scottleibrand
Jan 11 2016 02:56
had it ever been paired with an iPhone?
Ben West
@bewest
Jan 11 2016 02:56
no
but two laptops
Scott Leibrand
@scottleibrand
Jan 11 2016 02:57
I did "forget" it, so that shouldn't be an issue
what other diagnostics can I run to see the share from the Pi?
also, what does this mean?
finding service
SERVICE None
interesting. I left my phone discoverable and get:
None
paired? 0
pairing...
paired
[UUID('00001800-0000-1000-8000-00805f9b34fb'), UUID('00001801-0000-1000-8000-00805f9b34fb'), UUID('00001804-0000-1000-8000-00805f9b34fb'), UUID('0000180a-0000-1000-8000-00805f9b34fb'), UUID('f0aca0b1-ebfa-f96f-28da-076c35a521db')]
finding service
SERVICE None
Searching for UART devices...
[
  {
    "mac": "FF:F3:8F:02:29:46",
    "name": "DEXCOMRX",
    "advertised": [
      "00001800-0000-1000-8000-00805f9b34fb",
      "00001801-0000-1000-8000-00805f9b34fb",
      "00001804-0000-1000-8000-00805f9b34fb",
      "0000180a-0000-1000-8000-00805f9b34fb",
      "f0aca0b1-ebfa-f96f-28da-076c35a521db"
    ]
  },
  {
    "mac": "DC:2B:2A:45:02:C0",
    "name": "Leibrand",
    "advertised": [
      "00001200-0000-1000-8000-00805f9b34fb",
      "0000111f-0000-1000-8000-00805f9b34fb",
      "0000112f-0000-1000-8000-00805f9b34fb",
      "0000110a-0000-1000-8000-00805f9b34fb",
      "0000110c-0000-1000-8000-00805f9b34fb",
      "00001132-0000-1000-8000-00805f9b34fb",
      "00000000-deca-fade-deca-deafdecacafe",
      "2d8d2466-e14d-451c-88bc-7301abea291a"
    ]
  }
Ben West
@bewest
Jan 11 2016 03:00
interesting, I think it's looking for that f0aca... one though
is it currently tied to your phone?
maybe you have to forget device
Scott Leibrand
@scottleibrand
Jan 11 2016 03:01
I paired it after I couldn't get openxshareble to work, to try to get BT tethering
Ben West
@bewest
Jan 11 2016 03:01
I mean the dexcom
Scott Leibrand
@scottleibrand
Jan 11 2016 03:01
I can forget it, but it wasn't working before, so I don't think it's interfering
ah
Ben West
@bewest
Jan 11 2016 03:01
was an app using it before?
Scott Leibrand
@scottleibrand
Jan 11 2016 03:01
how do I forget the dexcom from the Pi side?
Ben West
@bewest
Jan 11 2016 03:01
my app disconnects every use
in dexcom, there's a forget button in the share menu
Scott Leibrand
@scottleibrand
Jan 11 2016 03:02
many moons ago I had the Dex paired to my phone
that was the first thing I did
Ben West
@bewest
Jan 11 2016 03:02
oh
hmm
forget was the first thing?
Scott Leibrand
@scottleibrand
Jan 11 2016 03:02
I had to forget the old phone to put it into pairing mode
Ben West
@bewest
Jan 11 2016 03:02
hmm
Scott Leibrand
@scottleibrand
Jan 11 2016 03:02
dunno if I did that today or months ago. but it was done.
Ben West
@bewest
Jan 11 2016 03:03
on mine, the forget thing is separate
might be worth seeing if the pi will pair to it properly if the receiver goes through the forget process
other than that I can't think of much
Scott Leibrand
@scottleibrand
Jan 11 2016 03:03
settings, share. if something is paired, you get options to turn BLE on/off or forget.
if nothing is paired, you get a Ready! screen, and OK starts pairing mode
there is no forget process if you don't have anything paired
Ben West
@bewest
Jan 11 2016 03:04
ah, even when I toggle on/off/on there's forget available
Scott Leibrand
@scottleibrand
Jan 11 2016 03:04
but if you forget, you can't forget again
Ben West
@bewest
Jan 11 2016 03:04
without running anything on my laptop
Scott Leibrand
@scottleibrand
Jan 11 2016 03:04
there's nothing remembered for it to forget
Ben West
@bewest
Jan 11 2016 03:04
so right now it's not paired to anything and there's no forget button when it's on?
interesting
Scott Leibrand
@scottleibrand
Jan 11 2016 03:05
right
Ben West
@bewest
Jan 11 2016 03:05
so list_dexcom can enumerate it
sort of
but then eg iter_glucose 2 does nothing?
Scott Leibrand
@scottleibrand
Jan 11 2016 03:05
$ openaps use share configure
{
"serial": "SM51118275"
}
Ben West
@bewest
Jan 11 2016 03:05
I think glucose gets all glucose, right?
that part looks ok
Scott Leibrand
@scottleibrand
Jan 11 2016 03:06
iter_glucose 2:
None
paired? 0
pairing...
paired
[UUID('00001800-0000-1000-8000-00805f9b34fb'), UUID('00001801-0000-1000-8000-00805f9b34fb'), UUID('00001804-0000-1000-8000-00805f9b34fb'), UUID('0000180a-0000-1000-8000-00805f9b34fb'), UUID('f0aca0b1-ebfa-f96f-28da-076c35a521db')]
finding service
SERVICE None
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.0.9', 'openaps-use')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 742, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1667, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/cli/__init__.py", line 44, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/home/pi/src/openxshareble/openxshareble/__init__.py", line 58, in __call__
    res = self.ble.run_mainloop_with(run, quit_with_loop=False)
  File "/home/pi/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 121, in _user_thread_main
    self._return_code = target()
  File "/home/pi/src/openxshareble/openxshareble/__init__.py", line 55, in run
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/vendors/dexcom.py", line 91, in main
    for item in self.dexcom.iter_records('EGV_DATA'):
AttributeError: 'NoneType' object has no attribute 'iter_records'
Ben West
@bewest
Jan 11 2016 03:06
hmm but your error isn't that
SERVICE None is bad
so mine did this
until it didn't
Scott Leibrand
@scottleibrand
Jan 11 2016 03:07
yeah, that's what I thought. can we add more debugging around finding service?
Ben West
@bewest
Jan 11 2016 03:08
well, that's why it's so verbose as is
haha
lines 40 and following .../ble/uart.py
hmm
Scott Leibrand
@scottleibrand
Jan 11 2016 03:29
[bluetooth]# pair FF:F3:8F:02:29:46
Attempting to pair with FF:F3:8F:02:29:46
[CHG] Device FF:F3:8F:02:29:46 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device FF:F3:8F:02:29:46 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device FF:F3:8F:02:29:46 UUIDs: 00001804-0000-1000-8000-00805f9b34fb
[CHG] Device FF:F3:8F:02:29:46 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device FF:F3:8F:02:29:46 UUIDs: f0aca0b1-ebfa-f96f-28da-076c35a521db
[CHG] Device FF:F3:8F:02:29:46 Paired: yes
Pairing successful
[DEXCOMRX]# connect FF:F3:8F:02:29:46
Attempting to connect to FF:F3:8F:02:29:46
Connection successful
[CHG] Device FF:F3:8F:02:29:46 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled
[CHG] Device FF:F3:8F:02:29:46 Connected: yes
[CHG] Device FF:F3:8F:02:29:46 Connected: no
[bluetooth]#
Failed to pair: org.bluez.Error.AuthenticationCanceled seems to be our problem
it thinks it pairs and connects, but then the pairing actually fails?
through all that the receiver just keeps blinking its pairing icon like nothing is happening
I did verify that is the correct MAC for this receiver: it goes away when I turn BT off on the receiver
what goes into authenticating for pairing purposes?
Ben West
@bewest
Jan 11 2016 07:19
you have to run the authentication routine after pairing
the code writes serial number plus six 0's I think
Thomas Emge
@ThomasEmge
Jan 11 2016 07:57
To use Nightscout as my visualization environment is dev still required or is master ok?
Milos Kozak
@MilosKozak
Jan 11 2016 07:58
dev
Thomas Emge
@ThomasEmge
Jan 11 2016 07:58
Thanks
Jason Calabrese
@jasoncalabrese
Jan 11 2016 07:59
anyone using openaps should probably plan to stay on NS dev
we may want something else between dev and master, but for now best is dev
Ben West
@bewest
Jan 11 2016 08:51
good question @ThomasEmge :-)
good questions all, actually :-)
Eric
@ecc1
Jan 11 2016 14:32
@bewest Where does that device.pair() method come from? I wanted to understand it for the Go code I'm trying to get working, but my Python-fu wasn't strong enough. Couldn't find any definitions in the Adafruit or pybluez code.
Kevin Wells
@wkcwells
Jan 11 2016 15:01
@scottleibrand After many attempts to rerun the install script, the upload is working now. Thank you!
Toby Canning
@TC2013
Jan 11 2016 15:37
Just as an FYI, I posted this in the dexdrip gitter channel: Several of the OpenAPS people have successfully been using the Edison as their platform (versus rPi), which has some great size advantages. The Intel Edison is a little larger than a wixel and 2.5 thicker. I have a cc1110 (rileylink) connected via UART and the whole setup runs off a 2000mah battery which lasts 20+hours. Because of the size advantage and improved radio comms range (15-20 feet), I believe this may become the platform of choice. I have 2 questions: how challenging would it be to connect a wixel over UART (there is a TX/RX only UART connection available) OR (alternatively) how difficult would it be to have xDrip app talk to the Edison over bluetooth to (1) send OpenAPS the current BG which would allow offline operations and (2) be used as the uploader for sending OpenAPS treatment data to NightScout which would allow for greater mobility (and allow better parental monitoring of OpenAPS while the kid is at school)?
Scott Leibrand
@scottleibrand
Jan 11 2016 16:56
@bewest yeah, saw that code. Problem seems to be prior to that though.
(Prior to the auth part)
specifically can't figure out why https://github.com/bewest/openxshareble/blob/master/openxshareble/ble/uart.py#L56 isn't finding the service
how would we dig into find_service more to figure out what's failing there?
alternately, how can we figure out how to debug the pairing process and get the receiver to accept the pairing on its side?
Rachel Sandlain
@audiefile
Jan 11 2016 17:14
So I don't remember any of the details and don't know if it will help, but have you tried using the gui to pair the pi and receiver? I couldn't get the pi and my phone to connect via command line. I could get it eventually via gui
Scott Leibrand
@scottleibrand
Jan 11 2016 17:23
Pi GUI? Haven't used that since we closed the loop. :-)
Paul Andrel
@stavlor
Jan 11 2016 17:23
@scottleibrand hmm i dont seem to have any issues pairing
Scott Leibrand
@scottleibrand
Jan 11 2016 17:23
i think I uninstalled it actually.
Paul Andrel
@stavlor
Jan 11 2016 17:24
[NEW] Device D2:E9:A6:E0:85:E4 DEXCOMRX
[bluetooth]# info D2:E9:A6:E0:85:E4
Device D2:E9:A6:E0:85:E4
    Name: DEXCOMRX
    Alias: DEXCOMRX
    Paired: no
    Trusted: no
    Blocked: no
    Connected: no
    LegacyPairing: no
    UUID: Vendor specific           (f0aca0b1-ebfa-f96f-28da-076c35a521db)
    RSSI: -53
[bluetooth]# pair D2:E9:A6:E0:85:E4
Attempting to pair with D2:E9:A6:E0:85:E4
[CHG] Device D2:E9:A6:E0:85:E4 Connected: yes
[CHG] Device D2:E9:A6:E0:85:E4 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device D2:E9:A6:E0:85:E4 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device D2:E9:A6:E0:85:E4 UUIDs: 00001804-0000-1000-8000-00805f9b34fb
[CHG] Device D2:E9:A6:E0:85:E4 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device D2:E9:A6:E0:85:E4 UUIDs: f0aca0b1-ebfa-f96f-28da-076c35a521db
[CHG] Device D2:E9:A6:E0:85:E4 Paired: yes
Pairing successful
[CHG] Device D2:E9:A6:E0:85:E4 Appearance: 0x1234
[CHG] Device D2:E9:A6:E0:85:E4 Connected: no
[CHG] Device D2:E9:A6:E0:85:E4 RSSI: -78
[CHG] Device D2:E9:A6:E0:85:E4 RSSI: -56
Scott Leibrand
@scottleibrand
Jan 11 2016 17:25
I tried a different BT adapter, and it failed the same way. Might need to get @danamlewis permission to disconnect her Share receiver and try that. Hoping I'll be able to pair both of them with her Dexcom app first. (Waiting on Dexcom to disassociate the receiver serial number from my account.)
Paul Andrel
@stavlor
Jan 11 2016 17:26
[bluetooth]# info D2:E9:A6:E0:85:E4
Device D2:E9:A6:E0:85:E4
    Name: DEXCOMRX
    Alias: DEXCOMRX
    Appearance: 0x1234
    Paired: yes
    Trusted: no
    Blocked: no
    Connected: no
    LegacyPairing: no
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: Tx Power                  (00001804-0000-1000-8000-00805f9b34fb)
    UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
    UUID: Vendor specific           (f0aca0b1-ebfa-f96f-28da-076c35a521db)
    RSSI: -50
seems like the share took it as well
Scott Leibrand
@scottleibrand
Jan 11 2016 17:26
@stavlor that also works for me, but it can't access any of those UUIDs.
And the receiver stays in blinky blinky pairing mode.
Paul Andrel
@stavlor
Jan 11 2016 17:28
ah intresting mine was blinky for the inital pairing but went solid when i did a connect
Dana Lewis
@danamlewis
Jan 11 2016 17:38
(By the way, OpenAPS = (n=1)*25)
Paul Andrel
@stavlor
Jan 11 2016 17:44
@danamlewis nice
Jason Calabrese
@jasoncalabrese
Jan 11 2016 17:51
My CC1111 is here
so I'll be able to setup and test most of the different mmeowlink options
Dana Lewis
@danamlewis
Jan 11 2016 17:54
nice
Jason Calabrese
@jasoncalabrese
Jan 11 2016 17:55
the ERFs are on the way too, but sounds like they might need some work for US pumps
Thomas Emge
@ThomasEmge
Jan 11 2016 18:47

ok this is driving me nuts (as I don't know where else to look). When I run openaps monitor-cgm I am getting a bunch of errors with the last lines being ```git.exc.GitCommandError: 'git commit -avm openaps-report invoke monitor/glucose.json

  TODO: better change descriptions
  /usr/local/bin/openaps-report invoke monitor/glucose.json
  ' returned with exit code 128

stderr: 'error: insufficient permission for adding an object to repository database .git/objects
error: monitor/clock.json: failed to insert into database
error: unable to index file monitor/clock.json
fatal: updating files failed'```

however sometimes it does work, what am I missing ?
Scott Leibrand
@scottleibrand
Jan 11 2016 18:51
sounds like some of your permissions may be incorrect from running sudo openaps at one point
if so, you'll want to chown -R everything to be owned by the pi user
before you do that you could use find -ls to see the current permissions on everything
Thomas Emge
@ThomasEmge
Jan 11 2016 18:53
by everything you mean the files and folders in myaps folder?
Scott Leibrand
@scottleibrand
Jan 11 2016 18:53
yeah, specifically the .git directory
find -ls | grep root might be easier to read
or find -ls | less and then use /root to search for root, and n to skip between instances
Thomas Emge
@ThomasEmge
Jan 11 2016 18:56
I do see a handful of files in .git that belong to root
Scott Leibrand
@scottleibrand
Jan 11 2016 18:57
that'll do it
fix that with chown and then find again to verify
Thomas Emge
@ThomasEmge
Jan 11 2016 19:01
Awesome, much happier now (myself and the code) :)
Scott Leibrand
@scottleibrand
Jan 11 2016 19:18
:-)
Ben West
@bewest
Jan 11 2016 20:07
@scottleibrand, looking again carefully, it looks like your pi's ble module is in peripheral mode or something
hmmm
also
I think you need to compile bluez with --enable-experimental
Ben West
@bewest
Jan 11 2016 20:13
and also run bluetoothd with the --experimental flag
this is compiled with --disable-systemd
I think on your rpi you might be using systemd, so not sure
Ben West
@bewest
Jan 11 2016 20:18
in mine I'm using -E instead of --experimental
Paul Andrel
@stavlor
Jan 11 2016 20:19
if it is a systemctl status bluetooth should tell you
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2016-01-08 12:24:04 EST; 3 days ago
     Docs: man:bluetoothd(8)
 Main PID: 965 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─965 /usr/libexec/bluetooth/bluetoothd
Scott Leibrand
@scottleibrand
Jan 11 2016 20:21
Ok, I'll check those tonight.
Ben West
@bewest
Jan 11 2016 20:21
ah, you're using systemd looks like
upstart is service bluetooth status
also note the fork line near the top
found that (absence) was needed to get it to not "hang"
btw, all the evidence on the roche accu-check is that it is straight up standard rfcomm
Ben West
@bewest
Jan 11 2016 20:26
apparently even uses the standard uuid
Paul Andrel
@stavlor
Jan 11 2016 20:26
nice
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 21:54
so we passed thru the first night with loop running
some first impressions... entered in the night with high bg (240) and loop was lowering it to sloow so I bolused
during the night it prevented a low
in the morning bg was about 120 which is prefect for us
but it started to grow after breakfast and raised to the heaven during kindergarden hours and I don't know if this is the result of having temp.basal of 0 before waking up or of wrong meal-bolus/wrong carbs calculation
we'll see in this night what will happen
Jason Calabrese
@jasoncalabrese
Jan 11 2016 21:57
yeah, carbs with negative iob is really bad
can make dinner look like breakfast
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 21:58
:)
Jason Calabrese
@jasoncalabrese
Jan 11 2016 21:59
been thinking about a negative iob alarm, a low can be prevented, but if you don't transition out the -IOB state carefully before carbs hit you're screwed
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 21:59
yes, for these cases I think i'll make something like programmed bolus or something imediately before alarmclock will ring if bg will permit it, but I still have to wait and see how loop will work during several nights
Jason Calabrese
@jasoncalabrese
Jan 11 2016 22:01
I want to have a way to change the target, to raise BG to some level such as 140 and then down to 80
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:01
also I have a problem of putting loop in cron, I didn't figured out why it doesn't work, instead going to true after reading bg and passing to read pump data it goes to false and ends the "circle"
so for now I am using a custom script with infinite while
@jasoncalabrese you can set it on pump, but only hourly-based of course :)
also replaced "big" aliases with bash from openaps to simple bash scripts, for me it is more comprehensive
inline comparisons and logical pipes are not very self-explanatory for the first-sight
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:07
also what is strange for me, why bolussnooze doesn't work as I expect, so I have
Warning: could not parse meal_input. Meal Assist disabled.
{"delta":-15,"glucose":170,"avgdelta":-10.667}
{"duration":21,"rate":0,"temp":"absolute"}
{"iob":0.556,"activity":-0.0135,"bolussnooze":0.297,"basaliob":-0.049}
{"max_iob":4,"type":"current","dia":2,"current_basal":0.25,"max_daily_basal":0.45,"max_basal":1.5,"min_bg":120,"max_bg":130,"sens":150}
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
Received suggestion of temp basal, aplying...
pump://JSON/set_temp_basal/enact/enacted.json
reporting enact/enacted.json
Temp basal enacted:
  "duration": 30,
  "rate": 0.0,
  "reason": "Eventual BG -38<120, setting -2.31U/hr",
and as I understand it should not make a decision of low-temp as soon as I have COB >0 (bolussnooze > 0)
Jason Calabrese
@jasoncalabrese
Jan 11 2016 22:08
do you have a meal.json?
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:09
nope
but in pump history there is bolus wizard records
as I understood from @danamlewis when I have bolussnooze, determine-basal doesn't make low-temp adjustments
or maybe I am wrong
Scott Leibrand
@scottleibrand
Jan 11 2016 22:11
bolussnooze is the amount of IOB that gets added back in to calculate snoozeBG from eventualBG
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:12
hm, so my understanding was wrong
Scott Leibrand
@scottleibrand
Jan 11 2016 22:13
so in this case, 0.556U IOB would bring eventualBG down to -38, but if you add back in 0.297U of that, snoozeBG would be something like 7 mg/dL
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:13
``
Fourth is the IOB and insulin activity summary. Insulin activity is used (when multiplied by ISF) to calculate BGI, which represents how much BG should be rising or falling every 5 minutes based solely on insulin activity. Basal IOB excludes the IOB effect of boluses, and Bolus Snooze is used in determining how long to avoid low-temping after a bolus while waiting for any carbs to kick in.
Scott Leibrand
@scottleibrand
Jan 11 2016 22:13
still way too low, so it temps to zero
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:13
ahaaaa, ok, thank you
now I understand
Scott Leibrand
@scottleibrand
Jan 11 2016 22:14
suggestions welcome for improving that language to make it more intuitive
maybe I need to walk through the actual bolussnooze calculation
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:15
from my first impressions, indeed, something is wrong for us for IOB and bolussnooze, but most probably there are wrong constants for dia/isf/cr
Scott Leibrand
@scottleibrand
Jan 11 2016 22:16
also, you probably want to report the entirety of the suggested/enacted json in your loop. it has more context useful for debugging in the "mealAssist" field
looks like you're only printing the reason
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:17
yes, but I don't use mealassist :)
I wanted to start it step-by step :) there will be more constants to manage with mealassist so at first I'd like to set only critical ones.
I just expected that during carbs/bolus action, pump wouldn't low-temp, but now I am thinking that it is a good thing that it still low-temping, just my settings are wrong
Scott Leibrand
@scottleibrand
Jan 11 2016 22:20
you don't have to use mealAssist for it to be useful to look at the mealAssist portion of the output. :)
that's where I output a bunch of intermediate stuff like deviation and BGI
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:22
aha, this is what you call mealAssist output :) yes, I am hiding a lot of suggested.json. I'll include it in log. Thank you.
Scott Leibrand
@scottleibrand
Jan 11 2016 22:38
actually looks like eventualBG and snoozeBG are their own top-level things in suggested.json. not sure why I made some top level and some part of mealAssist.
Alin Artiom Kenibasov
@ktomy
Jan 11 2016 22:47
after pretifiing suggested.json looks nice:
{
    "bg": 197,
    "duration": 30,
    "eventualBG": 99,
    "mealAssist": "Off: Carbs: undefined Boluses: undefined Target: 125 Deviation: -70 BGI: 14.03",
    "rate": 0,
    "reason": "Eventual BG 99<120, setting -0.257U/hr",
    "snoozeBG": 106,
    "temp": "absolute",
    "tick": -1
}
Scott Leibrand
@scottleibrand
Jan 11 2016 23:01
yep. json_pp is my friend. :)
Ben West
@bewest
Jan 11 2016 23:06
the json tool is used extensively in the oref0, ns- and mm- tools :-)
Toby Canning
@TC2013
Jan 11 2016 23:46
blob
There are some statistical challenges to saying this is representative of future results, but great results for the New Year results using OpenAPS!!!
Dana Lewis
@danamlewis
Jan 11 2016 23:49
congrats @TC2013 !
Toby Canning
@TC2013
Jan 11 2016 23:50
This is becoming as life changing as the Dexcom was for us! (Makes me teary)
Scott Leibrand
@scottleibrand
Jan 11 2016 23:52
:-)