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

25th
Aug 2016
garykidd
@garykidd
Aug 25 2016 00:07
pi@raspberrypi:~/APS0 $ openaps use cgm oref0_glucose --no-raw --hours 2.0
usage: openaps-use cgm [-h] USAGE ...
openaps-use cgm: error: argument USAGE: invalid choice: 'oref0_glucose' (choose from 'DescribeClocks', 'GetFirmwareHeader', 'ReadBatteryLevel', 'ReadBatteryState', 'ReadBlindedMode', 'ReadChargerCurrentSetting', 'ReadClockMode', 'ReadDeviceMode', 'ReadDisplayTime', 'ReadDisplayTimeOffset', 'ReadGlucoseUnit', 'ReadHardwareBoardId', 'ReadLanguage', 'ReadManufacturingData', 'ReadRTC', 'ReadSetupWizardState', 'ReadSystemTime', 'ReadSystemTimeOffset', 'ReadTransmitterId', 'UpdateTime', 'WriteChargerCurrentSetting', 'battery', 'calibrations', 'glucose', 'insertion_time', 'iter_calibrations', 'iter_calibrations_hours', 'iter_glucose', 'iter_glucose_hours', 'iter_insertion_time', 'iter_insertion_time_hours', 'iter_meter_data', 'iter_meter_data_hours', 'iter_sensor', 'iter_sensor_hours', 'iter_sensor_insertions', 'iter_sensor_insertions_hours', 'iter_user_event_data', 'iter_user_event_data_hours', 'meter_data', 'scan', 'sensor', 'sensor_insertions', 'user_event_data')
pi@raspberrypi:~/APS0 $ openaps device show
medtronic://GK715
dexcom://GKDEX
process://ns/nightscout/ns https://projectXXXXXXXXXX.azurewebsites.net XXXXXXXXXXXXXXXXXXXXXX
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
process://ns-status/ns-status/
timezones://tz
units://units
process://status/bash/-c "ns-status $*" --
dexcom://cgm
should I be concerned that ``openaps use cgm oref0_glucose --no-raw --hours 2.0```
```openaps use cgm oref0_glucose --no-raw --hours 2.0````
didn;t work?
``openaps use cgm oref0_glucose --no-raw --hours 2.0```
openaps use cgm oref0_glucose --no-raw --hours 2.0
f'in finally...
Neal
@tnharvey
Aug 25 2016 00:11
Hopefully quick question: The guide says I need to install nightscout as the dev branch, I'm currently running Master that has the patch for MongoDB issue. Is there a reason I should reinstall Nightscout using the dev branch, or will the master play nice with OpenAPS?
Not sure how recent the guide was written versus the current update on nightscout
Scott Leibrand
@scottleibrand
Aug 25 2016 00:13
you still need dev
is the mongodb issue not fixed in dev?
Neal
@tnharvey
Aug 25 2016 00:25
It looks like it is, #1852 for dev, Jul 10th. I'll update then, thanks
garykidd
@garykidd
Aug 25 2016 01:04
any ideas?^^
Scott Leibrand
@scottleibrand
Aug 25 2016 01:05
@garykidd looks like you're not using the latest version of the openaps toolkit
can't require if oref0_glucose requires dev or just latest release
Ben West
@bewest
Aug 25 2016 01:17
it's in latest release
sudo pip install -U openaps
garykidd
@garykidd
Aug 25 2016 01:24
but is it not also in latest dev?
thanks....I ran sudo pip install -U openaps
got a couple errors...thoughts?
````````

Could not find .egg-info directory in install record for decocare>0.0.26 (from openaps)
Found existing installation: dexcom-reader 0.0.7
Can't uninstall 'dexcom-reader'. No files were found to uninstall.
Running setup.py install for dexcom-reader

warning: no files found matching 'CHANGES.*'

Could not find .egg-info directory in install record for dexcom_reader>=0.1.8 (from openaps)
Successfully installed openaps pyserial decocare dexcom-reader
Cleaning up...

~~~~~Also....still getting this
~~~~~
pi@raspberrypi:~/APS0 $ openaps report add raw-cgm/glucose-raw.json JSON cgm oref0_glucose --no-raw --hours 2.0
usage: openaps-report add report {base,text,stdout,JSON} cgm [-h] USAGE ...
openaps-report add report {base,text,stdout,JSON} cgm: error: argument USAGE: invalid choice: ~~~~
garykidd
@garykidd
Aug 25 2016 01:37
still...
thoughts?
Eric Jensen
@elnjensen
Aug 25 2016 02:17

Hi all - trying to copy over an openaps instance to a new instance so I can work on getting my TI stick running, without messing up my existing repo. I created the new instance with openaps init and backed up the old one with oref0 export-loop to a file, but when I try to import that file, it gives this error:

Traceback (most recent call last):
  File "/usr/local/bin/openaps-import", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-import')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-import", line 89, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-import", line 81, in run
    incoming = self.Make(candidate)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-import", line 65, in Make
    inst = Configurable.FromImport(configurable, self.config)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/devices/device.py", line 66, in FromImport
    vendor = vendors.lookup_dotted(fields['vendor'], config)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/__init__.py", line 32, in lookup_dotted
    return dict(zip(names, vendors))[name]
KeyError: u'openapscontrib.timezones'

Any clues?

My import command is cat ../backup-loop.json | openaps import -
Ben West
@bewest
Aug 25 2016 02:20
that's ok
you can probably try it again
I think it's sloppy about the order in which it imports stuff
so you might do cat backup.json | json -c "this.type == 'vendor'" | openaps import
to ensure vendors happen first
Eric Jensen
@elnjensen
Aug 25 2016 02:22
OK - then re-do full import again after?
Yes, that seems to have done it - thanks!
David
@davidkeddydb
Aug 25 2016 02:47
hello, so complete rookie here! Can I attempt to connect the pump without priming and setting up by using the pencil method that some have suggested through the PI? I cant dedicate the time to get the open loop going until next week but want to see if I can get the communication going through the pump and the PI and the Dex and the PI. Thanks for any insight you all can provide. Hoping to get the open loop going the beginning of next week and start testing it out. Thanks in advance.--David
Dana Lewis
@danamlewis
Aug 25 2016 02:49
Yes. No pencil needed though - stick your pinky in and that should do the trick for it to "sense" pressure like a reservoir.
While you're at it, go ahead and check next that temp basals are u/hr rather than %, and program some of your ratios in and Max basal and others, it'll save you some heart ache later!
David
@davidkeddydb
Aug 25 2016 02:53
Thank you! I will see if I can get he communication going and will make that happen with the basals and ratios. I haven't used this pump in 10 years or something since being on the Omnipod.
Dana Lewis
@danamlewis
Aug 25 2016 02:53
:+1:
Eric Jensen
@elnjensen
Aug 25 2016 03:22
Excited to be looping with my new TI Stick tonight! Carelink has been pretty flaky, esp. at night, so I'm happy to set it aside. Next stop: Edison!
Dana Lewis
@danamlewis
Aug 25 2016 03:23
:+1:
garykidd
@garykidd
Aug 25 2016 03:28
appreciate any help/ideas to try. thanks for continued help.
sarahspins
@sarahspins
Aug 25 2016 05:09
@davidkeddydb I had my pump running that way for a few days before I put it on... I wanted to see what it was doing and really understand how it was deciding on the suggestions it was making before hooking it up for real :)
garykidd
@garykidd
Aug 25 2016 08:27
@bewest still can't get oref0_glucose working. Tried to update according to your direction from 21:17. Can you help? Thanks.
Tim Street
@tim2000s
Aug 25 2016 12:01
Hi guys, any advice on using the Bluetooth version of xDrip wireless bridge? I'm running Pi3 and trying to get these two communicating.
Tim Street
@tim2000s
Aug 25 2016 12:18
The wireless bridge is paired with the device using bluetoothctl. Guess I need to add something at start up to establish the connection. Does anyone have anything I can run within openaps to extract data from this route rather than nightscout?
Colin Lennon
@colinlennon
Aug 25 2016 12:37
Hi @tim2000s . A few people have connected a Wixel directly to an Edison and pull glucose data in that way. There's a repo that enables that somewhere, but in that case, you wouldn't be using the xdrip android app and need to ssh in and execute a command to add calibrations
I'm not aware of anyone doing this on a Pi
I'm currently working on a solution though, which I just mentioned this morning over on the oskarpearson/mmeowlink channel
Tim Street
@tim2000s
Aug 25 2016 12:37
Yes - I've seen the USB Wixel connection to do this - trying to void the wires!
okay will take alook
Colin Lennon
@colinlennon
Aug 25 2016 12:40
@tim2000s Great. The only issue is that you're using an RPi 3 rather than an Edison. You would need to set up a mongodb instance on the RPi, then the xdrip android app can upload glucose data into it. On the Edison, I've installed mongodb directly, but there's a pre-built Docker image you could use on the RPi 3. I should be able to help with that type of thing, I've set it up previously on a RPi 3.
Tim Street
@tim2000s
Aug 25 2016 12:40
Yes - just taken a look at the solution you have - that sounds like it should work.
Colin Lennon
@colinlennon
Aug 25 2016 12:41
:+1: I should have a Github repo established with some instructions and code in the next few days.
Tim Street
@tim2000s
Aug 25 2016 12:43
cool. thanks.
Gina
@gclyon
Aug 25 2016 15:40
having problems setting up nightscout... a few days ago, i entered in profile info into the ns site. i've changed versions along the way (apparently), and i can't get back the ability to edit the profile. the version says: 0.9.0-beta3
this is when i choose the dev version to deploy. is this correct for dev?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Aug 25 2016 16:00
Just got word from ashleymiranda906 at yahoo.com that she has a 523 2.4A available in case anyone is looking for one.
Gina
@gclyon
Aug 25 2016 16:09
i just rolled out a brand new ns site in azure and same issue. nowhere to enter profile info
Jason Calabrese
@jasoncalabrese
Aug 25 2016 16:47
@gclyon the label for NS dev still says beta3, I'll update that later to make it more clear
what happens when you try to edit the profile?
Gina
@gclyon
Aug 25 2016 16:51
i don't see anything labeled profile in the settings
Jason Calabrese
@jasoncalabrese
Aug 25 2016 16:55
if you open the settings draw in NS you should have a button to open the profile editor
Gina
@gclyon
Aug 25 2016 16:57
not that i see....
Jason Calabrese
@jasoncalabrese
Aug 25 2016 17:08
looks like it's not enabled, you'll need to add some plugins to your ENABLE setting, for openaps you might want ENABLE="openaps pump profile careportal iob basal", you could add cage sage iage bwp and more if you want
Gina
@gclyon
Aug 25 2016 17:10
ok thk u. didn't have "profile" in there!!
Peter Miller
@ochenmiller
Aug 25 2016 17:33
:point_up: August 24, 2016 1:30 PM @dramageek , I'm on ubi. I was close to giving up, but installing from source seemed to do the trick.
Also, there seems to be some issues with timing of the connection. About 1/3 of the time it returns some errors still. This isn't that big a deal for me, as I'm driving my loop from a wixel. The connection to G4/Share is more about making sure my calibrations are matching reality.
David
@david-t1
Aug 25 2016 17:45
hey all, got my loop executing but with a few errors one of which is: determine-basal://text/shell/enact/suggested.json
Error: date field not found: cannot calculate avgdelta

I added monitor/glucose-zoned.json to the enact/suggested.json report and I still get the same error:
"date field not found: cannot calculate avgdelta."

also get same error if I edit enact/suggested.json report to use monitor/glucose-zoned.json in place of monitor/glucose.json

my setup is rpi2 with dexcom receiver plugged in so I assume the chatter regarding time adjustments for medtronic CGM don't apply
Scott Leibrand
@scottleibrand
Aug 25 2016 18:13
what openaps command are you using to pull cgm data? what does one of your glucose.json stanzas look like?
David
@david-t1
Aug 25 2016 18:15
@david-t1 you know, let me re-check my oref0 devices. it looks like I have their required reports buried in directories in which case I am astonished my loop works at all!
[report "monitor/glucose.json"]
count = 6
use = iter_glucose
date = display_time
reporter = JSON
seconds =
hours =
report = monitor/glucose.json
gaps =
microseconds =
device = cgm
minutes =
John Sjolund
@sjolundjohn
Aug 25 2016 19:44

When I ssh into my Pi from a mac, I use

ssh LOGIN@DEVICE.local

However when I am trying to ssh from my Android phone, I always need to go via ip address. Since IP varies depending upon where I am, it isn't great.

Can I fix the IP, can I login via the 'name', how do you best overcome this?

Paul Martin
@Spazholio
Aug 25 2016 21:32
When you say “from your Android phone” do you mean when you’ve got it set up as a hotspot? If so, I had the same thing on my iPhone and I got around it by determining what IP it was using and then using ServerAuditor (SSH/VNC app for iPhone) I created a standard ‘ssh user@ipaddress` connection and it’s worked flawlessly. It pulls the same IP address each time.
Michael
@MichaelGuarin0
Aug 25 2016 22:29
hey guys does it matter if i work/put all my openaps files inside a directory not specified in the project that's unique to me...will it break anything ? Does the project use relative paths?
Scott Leibrand
@scottleibrand
Aug 25 2016 22:30
not sure which files / project you're referring to
Michael
@MichaelGuarin0
Aug 25 2016 22:32
Screen Shot 2016-08-25 at 6.30.48 PM.png
Scott Leibrand
@scottleibrand
Aug 25 2016 22:33
the openaps toolkit expects everything to be in a directory that is a git repo
usually that is something like ~/myopenaps/
Michael
@MichaelGuarin0
Aug 25 2016 22:34
Can i put everything in the sasha directory? That's where I want to store all the project files
oh great thank you