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

24th
Jul 2016
rafaelmatuk
@rafaelmatuk
Jul 24 2016 00:06
Thanks @tazitoo. I will give it a try
rafaelmatuk
@rafaelmatuk
Jul 24 2016 00:17
and...where is opensharexble?
never mind - found it
savelik
@savelik
Jul 24 2016 00:35
@johners97 > @savelik what devices are you using? :)
Sorry, I did not see the message - Raspberry Pi 3 + dexcom + minimed 722. The setup is almost done ;)
John Dodds
@johners97
Jul 24 2016 00:41
@savelik Sounds great:) I'm just confused to as why something doesn't work! I think I may need to skype or facetime somebody lol
In a state of confusion at the documents for setting this system up...
Might just delete everything and restart
John Dodds
@johners97
Jul 24 2016 00:49
openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
json: error: could not read "model.json": Error: ENOENT, no such file or directory 'model.json'
Could not parse pumphistory:  { [Error: Cannot find module '/home/pi/my_openaps/monitor/pump-history.json'] code: 'MODULE_NOT_FOUND' }
No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
  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-use", line 63, 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-use", line 58, in run
    reporter(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/__init__.py", line 33, in __call__
    self.blob = self.serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/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-0.1.5-py2.7.egg/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
Why is this? What is causing this and how can I solve this to carry on to next stage
I am at this stage!
blob
blob
Martin Haeberli
@mhaeberli
Jul 24 2016 01:02
@johners97 have you tried openaps use pump mmtune
And openaps use pump model ?
IF both of those work, try getting and setting the clock
John Dodds
@johners97
Jul 24 2016 01:05
what is mmtune?
It isn't in my -h list
:)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:06
Sorry are you using care link?
John Dodds
@johners97
Jul 24 2016 01:06
yes :)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:06
If so just try openaps use pump model
John Dodds
@johners97
Jul 24 2016 01:07
That works got 754 back
Martin Haeberli
@mhaeberli
Jul 24 2016 01:07
Mmtune is magic that can help w a TI stick for example
Good so try getting the clock
John Dodds
@johners97
Jul 24 2016 01:07
Getting the clock?
:)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:08
I forget the command but -h will help
Getting the pump s current time
Start with openaps use pump -h
Julie
@julieraines
Jul 24 2016 01:08
Read_clock I think
Martin Haeberli
@mhaeberli
Jul 24 2016 01:08
Sounds right
Then try setting it to "now"
John Dodds
@johners97
Jul 24 2016 01:09
Doing it now :)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:09
openaps use pump <setclockcommand> --to now
Or something like that; I forget the command
Julie
@julieraines
Jul 24 2016 01:10
Set_clock
I think
John Dodds
@johners97
Jul 24 2016 01:11
my pump clock has been set 1 hour behind...
:)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:11
If that looks like it works: try setting the pumps time with the buttons. Forward say 1 1/2 hours. Get the time with openaps. Then set it to now again.
Point being if that all works then you probably have a pump that can temp basal
AND you know you're talking to the pump
John Dodds
@johners97
Jul 24 2016 01:14
Wait, do you mean I have to set my pump 2 hours ahead so that when I set_clock it goes to the time I want??
Why 1.5 hours ahead? :)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:15
Just random
Something different from "now"
That you can see on the pump screen
And that you can read w openaps
Julie
@julieraines
Jul 24 2016 01:16
So you can test whether you can control the pump from your commands rather than changing it directly on the pump -to test if it's working
Martin Haeberli
@mhaeberli
Jul 24 2016 01:16
@julieraines :+1:
Julie
@julieraines
Jul 24 2016 01:17
I love testing it - makes me feel like at least I can do THAT - lol
rafaelmatuk
@rafaelmatuk
Jul 24 2016 01:17
ok I seem to be having some problems setting up my Edison to talk to the Dexcom G4 via bluetooth...I followed the instructions on the manual to install the BLE helpers - but when I try to retrieve glucose readings I get a series of errors that end on "No module named dbus"
Martin Haeberli
@mhaeberli
Jul 24 2016 01:18
@rafaelmatuk just to confirm do you have Dexcom G4 or G4 platinum?
John Dodds
@johners97
Jul 24 2016 01:23
It works but it keeps setting it 1 hour behind reality
So what now?
:)
rafaelmatuk
@rafaelmatuk
Jul 24 2016 01:25
Dexcom G4 with Share
Platinum
Dexcom G4 Platinum with Share
Martin Haeberli
@mhaeberli
Jul 24 2016 01:27
@johners97 a try typing "date" at the command line; I suspect your rpi/ Edison clock is an hour off
John Dodds
@johners97
Jul 24 2016 01:27
you're right! :)
Martin Haeberli
@mhaeberli
Jul 24 2016 01:28
There are some openaps instructions floating around on how to set the time and time zone
But I'm away from my good web browser
So you'll want to fix that anyway
Martin Haeberli
@mhaeberli
Jul 24 2016 01:30
@rafaelmatuk so yes G4 platinum w share should work but I haven't had direct practice w openxdripshare
John Dodds
@johners97
Jul 24 2016 01:40
yay it worked :)
What now
:))
For some reason my timezone was in berlin... maybe thats where the pi was shipped from
@mhaeberli you're a star
and @rafaelmatuk :) thanks
John Dodds
@johners97
Jul 24 2016 01:46

```~/my_openaps $ openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
json: error: could not read "model.json": Error: ENOENT, no such file or directory 'model.json'
Could not parse pumphistory: { [Error: Cannot find module '/home/pi/my_openaps/monitor/pump-history.json'] code: 'MODULE_NOT_FOUND' }
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkgresources/_init.py", line 719, in run_script
File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkgresources/_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-use", line 63, 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-use", line 58, in run
reporter(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/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-0.1.5-py2.7.egg/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

```

How do I fix this?

~/my_openaps $ openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
json: error: could not read "model.json": Error: ENOENT, no such file or directory 'model.json'
Could not parse pumphistory:  { [Error: Cannot find module '/home/pi/my_openaps/monitor/pump-history.json'] code: 'MODULE_NOT_FOUND' }
No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_resources/__init__.py", line 719, in run_script
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.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-use", line 63, 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-use", line 58, in run
    reporter(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/__init__.py", line 33, in __call__
    self.blob = self.serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/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-0.1.5-py2.7.egg/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
^^^^^^^^^^^
John Males
@johnmales
Jul 24 2016 01:47
Speaking of timezones hi @bewest - I think in your “new style walkthrough” openaps/docs#132 you need to add in a line to add in tz and units devices unless I’m mistaken openaps device add tz timezones and openaps device add units units
John Dodds
@johners97
Jul 24 2016 01:48
:)
epbray712
@epbray712
Jul 24 2016 01:49
Hi, all. Very basic question here before I start OpenAPS build - if I do not have internet connection will OpenAPS still run?
Scott Leibrand
@scottleibrand
Jul 24 2016 01:49
@johnmales if you'd like to incorporate that walkthrough into the docs, along with an additional lines necessary, please go ahead and submit a pull request.
Dana Lewis
@danamlewis
Jul 24 2016 01:50
@epbray712 yes, you can design it so it works offline (i.e. plug cgm receiver into Pi so it pulls BGs from there)
epbray712
@epbray712
Jul 24 2016 01:50
I am using enlite and nightscout
Dana Lewis
@danamlewis
Jul 24 2016 01:50
or it pulls BGs direct from pump
:)
epbray712
@epbray712
Jul 24 2016 01:50
Thank goodness! I've got a pump - got online to order RPi tonight and started to panic!
One of these days I'll have it finished before ADA approved theirs....
John Males
@johnmales
Jul 24 2016 02:05
Hi @epbray712 with enlite you can pull all data including CGM data off the pump, so the loop can work without an internet connection. Nightscout however is very useful for visualization to understand what the loop is doing
Dana Lewis
@danamlewis
Jul 24 2016 02:10
:+1:
John Males
@johnmales
Jul 24 2016 02:10
oops sorry @danamlewis I just saw your comment which I then repeated :)
Dana Lewis
@danamlewis
Jul 24 2016 02:11
all good, and you also added one of my favorite things re: encouraging visualization :) @johnmales
Martin Haeberli
@mhaeberli
Jul 24 2016 02:15
@johners97 I'm offline for a while... But thx 4 kudos and good luck!
John Dodds
@johners97
Jul 24 2016 02:21
blob
(what report needs to be defined and invoked in order to have monitor/pump-history.json defined?) What?
:)
Maybe thats why it isn't working?
Dana Lewis
@danamlewis
Jul 24 2016 02:21
Just heard from someone on Fbk with a 522 v2.3A that wants to sell it because she’s not going to use it for OpenAPS. she paid $375 and is hoping to recoup that cost. PM me if you’re interested and I can point you to her.
John Dodds
@johners97
Jul 24 2016 02:23
@danamlewis Any idea? :)
Scott Leibrand
@scottleibrand
Jul 24 2016 02:26
@johners97 it would simply be called the monitor/pump-history.json report, but you're probably looking for one of these (from openaps use pump -h):
    iter_pump           Read latest 100 pump records
    iter_pump_hours     Read latest n hours of pump records
sarahspins
@sarahspins
Jul 24 2016 02:26
@danamlewis sent you a PM :+1:
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:28
@scottleibrand do you have any experience setting up openxdripshare to gather glucose readings using BLE?
Scott Leibrand
@scottleibrand
Jul 24 2016 02:28
openxshareble you mean?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:28
yes
fast fingers
Jason Wittmer
@jbwittmer
Jul 24 2016 02:28
OK Still having trouble with AMA setup. When using the oref0 determine-basal I'm getting an error regarding the date field and mealCOB: null. I'll post a copy afterwards. I've reworked my loop to make sure using zoned pumphistory, clock and pumphistory-24h. Didn't fix. Ideas please?
determine-basal://text/shell/enact/suggested.json
Error: date field not found: cannot calculate avgdelta
{"carbs":40,"boluses":3.6,"mealCOB":null}
Scott Leibrand
@scottleibrand
Jul 24 2016 02:29
@rafaelmatuk did you follow a version of this yet?
John Dodds
@johners97
Jul 24 2016 02:29
so openaps report add monitor/pump-history ?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:29
yes
I did
John Dodds
@johners97
Jul 24 2016 02:29
how does the full line go so I can enter it :)
the more questions i ask now, the less later...:D
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:30
I am setting up an alternate rig on an Edison with the T1 stick and would prefer not to pull glucose readings from NS
Scott Leibrand
@scottleibrand
Jul 24 2016 02:30
@johners97 that is left as a question for the reader in http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/using-openaps-tools.html?highlight=pump-history#unifying-pump-treatments-in-nightscout to see if you understand what came right before it
John Dodds
@johners97
Jul 24 2016 02:31
oooooh
Scott Leibrand
@scottleibrand
Jul 24 2016 02:32
@rafaelmatuk what does ps aux | grep bluetoothd show?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:33
root 1965 0.0 0.1 5024 1860 ? S 20:29 0:00 /usr/local/bin/bluetoothd --experimental
edison 3102 0.0 0.0 4320 892 pts/0 S+ 21:33 0:00 grep bluetoothd
seems to be running
Scott Leibrand
@scottleibrand
Jul 24 2016 02:33
yep, and with --experimental, so that part is good
and you did the ./configure --enable-experimental before sudo make install?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:35
mmmm
Scott Leibrand
@scottleibrand
Jul 24 2016 02:35
how about ls -la /usr/local/bin/bluetoothd?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:35
-rwxr-xr-x 1 root root 2608604 Jul 23 20:06 /usr/local/bin/bluetoothd
Scott Leibrand
@scottleibrand
Jul 24 2016 02:36
@jbwittmer sounds like your date field is still mismatched to what oref0 expects. can you paste one stanza from your glucose.json please?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:36
not sure about the ./configure --enable-experimental part
Scott Leibrand
@scottleibrand
Jul 24 2016 02:36
mine is 3242300 bytes
might want to re-do that part of the setup docs
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:36
@scottleibrand actually I did run that line
Scott Leibrand
@scottleibrand
Jul 24 2016 02:39
if you run bluetoothctl in another window you can watch what it does when you try to use the openxshareble device
Aaron Michelson
@Aaybob
Jul 24 2016 02:41
Hi, I had read that some had trouble with extension cables. Now my rig which is about six months old is having trouble with extension cables. It's not completing a read off the pump sometimes when on twelve foot extension chord to carelink. Maybe time to update to TI. Is that update still experimental?
Jason Wittmer
@jbwittmer
Jul 24 2016 02:41
@scottleibrand {
"trend_arrow": "FLAT",
"system_time": "2016-07-24T04:20:29",
"display_time": "2016-07-23T21:20:29",
"glucose": 134
},
Scott Leibrand
@scottleibrand
Jul 24 2016 02:42
@Aaybob not really experimental: lots of us are using TI as our main rig. it's a bit more work to set up is all.
Aaron Michelson
@Aaybob
Jul 24 2016 02:42
Does the "more power to usb" help with carelink communication as well as wifi?
Scott Leibrand
@scottleibrand
Jul 24 2016 02:42
@jbwittmer so it's just complaining that you have no date field in there
Aaron Michelson
@Aaybob
Jul 24 2016 02:43
Oh, yeah, I remember one has to get a hold of programming hardware.
Scott Leibrand
@scottleibrand
Jul 24 2016 02:43
yeah, that's an extra $50, but really easy to use if you have Windows.
Martin Haeberli
@mhaeberli
Jul 24 2016 02:44
You can also share md5sum digests of bluetoothd to compare
Jason Wittmer
@jbwittmer
Jul 24 2016 02:44
@scottleibrand OK I'm not sure how I should get that. I'm just pulling straight from the dexcom g4 using openaps use cgm iter_glucose_hours 25.0
Scott Leibrand
@scottleibrand
Jul 24 2016 02:44
@mhaeberli that just says "it's different", which we established. not actually sure it should be an exact match, but my assumption is that the one with experimental stuff disabled might be smaller
Aaron Michelson
@Aaybob
Jul 24 2016 02:45
Maybe I'll get a job. I'm retiring next month but just had an interview at Seaworld to be an electrician that went really well. Of course I wasted 100 dollars on pokeman go
Scott Leibrand
@scottleibrand
Jul 24 2016 02:45
@jbwittmer try oref0_glucose maybe?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:45
@scottleibrand I got this error when I tried to use openaps use cgm iter_glucose 2 "No module name dbus". Nothing on the alternate window
Martin Haeberli
@mhaeberli
Jul 24 2016 02:45
@scottleibrand I agree .. 'Twas just an idea
Scott Leibrand
@scottleibrand
Jul 24 2016 02:45
@Aaybob you only need it one time, too, so you could borrow the debugger from someone local
@rafaelmatuk maybe dbus isn't installed right then
there's a line in the setup docs: sudo apt-get -y install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
@jbwittmer oref0_glucose is another use similar to iter_glucose that gives you more data fields
This message was deleted
Jason Wittmer
@jbwittmer
Jul 24 2016 02:47
@scottleibrand OK I'll try that. Thanks.
Matt Pressnall
@logichammer
Jul 24 2016 02:48
@mhaeberli , definitely seems to be doing the trick! Tested it all last night without internet and worked like a dream...will probably add a test if I can hit google, don't run the script...but if not, go ahead and run it...love that it was sitting there waiting for me to use it!
Dana Lewis
@danamlewis
Jul 24 2016 02:48
:+1:
Scott Leibrand
@scottleibrand
Jul 24 2016 02:48
@jbwittmer with oref0_glucose you'll get something like:
  {
    "trend_arrow": "FLAT",
    "display_time": "2016-07-23T19:43:31-07:00",
    "direction": "Flat",
    "system_time": "2016-07-24T03:44:30",
    "sgv": 131,
    "dateString": "2016-07-23T19:43:31-07:00",
    "device": "openaps://cgm",
    "unfiltered": 149376,
    "rssi": 180,
    "date": 1469328211000.0,
    "filtered": 151456,
    "type": "sgv",
    "glucose": 131
  }
Aaron Michelson
@Aaybob
Jul 24 2016 02:48
carelink is the weakest link in the chain unless it's all packed into a fanny pack. then the weakest link is the cords.
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:49
@scottleibrand - just tried installing and they are all installed: sudo apt-get -y install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
[sudo] password for edison:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdbus-1-dev is already the newest version.
libglib2.0-dev is already the newest version.
libical-dev is already the newest version.
libusb-dev is already the newest version.
libreadline-dev is already the newest version.
libudev-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libclass-isa-perl libelf1 libffi5 libical0 libswitch-perl
module-init-tools
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.
Scott Leibrand
@scottleibrand
Jul 24 2016 02:49
bluetoothd --version?
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:50
5.33
Scott Leibrand
@scottleibrand
Jul 24 2016 02:50
and did you do the sudo python setup.py install of Adafruit_Python_BluefruitLE?
I'm running out of ideas
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:51
I think so - let me double check my logs
Scott Leibrand
@scottleibrand
Jul 24 2016 02:51
or just do it again: could've been from the wrong dir
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:51
which dir should be?
I think I was inside my openaps dir
Scott Leibrand
@scottleibrand
Jul 24 2016 02:52
the Adafruit_Python_BluefruitLE source dir
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:52
ah - ok
Aaron Michelson
@Aaybob
Jul 24 2016 02:52
this is amazing that you folks have been here so hard at work for so long
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:52
the sudo python setup.py install line is not there. I guess I will do it again just in case
Scott Leibrand
@scottleibrand
Jul 24 2016 02:55
@rafaelmatuk if that turns out to be the issue, you could PR a clarification to the README.md ("Once the requirements above have been met the library can be installed by running the following command inside its root directory:")
rafaelmatuk
@rafaelmatuk
Jul 24 2016 02:56
makes sense...let me work on this tonight.
rafaelmatuk
@rafaelmatuk
Jul 24 2016 03:04
cannot seem to be able to find that line "sudo python setup.py install"
rafaelmatuk
@rafaelmatuk
Jul 24 2016 03:05
oh - i thought that was for a Mac
Scott Leibrand
@scottleibrand
Jul 24 2016 03:06
ah, then that should be clarified. :)
John Dodds
@johners97
Jul 24 2016 03:07
I still can't do it :(
Jason Wittmer
@jbwittmer
Jul 24 2016 03:07
@scottleibrand That fixed my problem. For anyone else who is getting Error: date field not found: cannot calculate avgdelta when setting up AMA and pulling CGM directly from Dexcom G4, change your command to oref0_glucose from iter_glucose or iter_glucose_hours
@scottleibrand Thanks so much. Glad to have that up and working now.
Scott Leibrand
@scottleibrand
Jul 24 2016 03:08
:+1: yay! :)
Dana Lewis
@danamlewis
Jul 24 2016 03:08
:confetti_ball:
Scott Leibrand
@scottleibrand
Jul 24 2016 03:08
can you figure out where in the docs that should be clarified, and PR it in?
Dana Lewis
@danamlewis
Jul 24 2016 03:08
There's probably some other parts of AMA docs that need love too :)
rafaelmatuk
@rafaelmatuk
Jul 24 2016 03:09
yes - let met confirm I have the right sequence...somehow my rig keep saying cannot find that file
Jason Wittmer
@jbwittmer
Jul 24 2016 03:09
Yes, That should be an easy thing for me to try to work on and fix. I'll do that sometime in the next several days. Unfortunately back to full time work after 2 weeks off so I'm really glad I got this hammered out tonight. But yes, I'll do that (or at least attempt it)
Scott Leibrand
@scottleibrand
Jul 24 2016 03:10
could be as simple as pasting in that note you just wrote into the appropriate place
John Dodds
@johners97
Jul 24 2016 03:12
```
openaps report add monitor/pump-history.json JSON insulin_pump iter_pump
openaps report add monitor/pump-history.json JSON insulin_pump iter_pump
Tried this with no success
tried alternatives and failed
Jason Wittmer
@jbwittmer
Jul 24 2016 03:15
@johners97 Try specifying the number of records you want i.e. openaps report add monitor/pump-history.json JSON insulin_pump iter_pump 100 if you want 100 records
John Dodds
@johners97
Jul 24 2016 03:16
THANKS!!! :D
Jason Wittmer
@jbwittmer
Jul 24 2016 03:17
no problem - hope it worked
John Dodds
@johners97
Jul 24 2016 03:17
The relief.......Why don't I ever think simply
I assumed because iter_pump 100 = iter_pump ....
Jason Wittmer
@jbwittmer
Jul 24 2016 03:18
Don't even get me started. I've made so many simple things so unnecessarily hard during this process - keep at it. I never thought I'd get it working when I started and now I'm running some dev features. You'll get it
John Dodds
@johners97
Jul 24 2016 03:26
openaps report add monitor/glucose.json JSON insulin_pump iter_glucose 100
openaps use ns shell format-recent-type tz entries monitor/glucose.json | json -a dateString | wc -l

Add it as a report

I need to add the wc -1' line as a report
to upload values to nightscout
blob
@jbwittmer how do you suggest I add this as a report?...I usually need to get "in the rhythm" before I can catch on to things like this.
Jason Wittmer
@jbwittmer
Jul 24 2016 04:12
Sorry I don't know.
rafaelmatuk
@rafaelmatuk
Jul 24 2016 04:37
@scottleibrand so the BLE Library is finally installed - the complete instructions are on the Adafruit web page. Now working on talking to the CGM
we will have to update the documentation to make it very explicit to go there
John Dodds
@johners97
Jul 24 2016 04:44
I'll be back next week once I get my CGM sensors, will spend a while collecting CGM data while using nightscout then continue with OpenAPS. Need a break already haha
Martin Haeberli
@mhaeberli
Jul 24 2016 05:05
@rafaelmatuk :+1:
@johners97 :+1:
Scott Leibrand
@scottleibrand
Jul 24 2016 05:26
@rafaelmatuk what did you have to do that wasn't in that README? I have never visited their site afaik.
Jason Wittmer
@jbwittmer
Jul 24 2016 05:46
@scottleibrand Just an FYI since we were chatting about it earlier, spent the last 2 hours trying to figure out why my AMA was working so long as there were no COB but when I entered a meal the mealCOB went back to null. Traced it back to the fact that I hadn't updated my oref0 get-profile to include carb_ratios which are apparently now required (weren't for prior Meal Assist). Now that I have done that it seems to be working better, although my son is asleep and until I'm able to have him eat again in the morning and test the response I won't know for sure. I'll try to update here just in case others are wondering also, and I'll also try to cite when I update some of the AMA documentations
Scott Leibrand
@scottleibrand
Jul 24 2016 06:12
K. Thx.
live4sw
@live4sw
Jul 24 2016 11:17

Hi all - had a quick question. I'm working on my fifth rig now (another Pi3 with TI stick) and have all the hardware together. In the past I've set up from the same git repo and then set up the system manually, which takes a few hours.

Could I instead just clone the RPi SD card? Seems like it would be much quicker. I mean, I'd have to change the hostname, but otherwise it seems like it would turn a 2-3 hour job into a 15 minute one.

John Males
@johnmales
Jul 24 2016 11:35
Hi Andrew, Yes I have done exactly that. The hostname does need to be changed of course.
This message was deleted
This message was deleted
Others are using something like https://resin.io to manage multiple rigs
rafaelmatuk
@rafaelmatuk
Jul 24 2016 15:07
@scottleibrand Yes, I had to go to the site for the instructions to install the actual library, then go to the library source code directory (where that setup.py file is) and install the python library from there. The examples now work, and I see Bluetooth activity when I try the python examples, still yet to figure out the dexcomm piece...
@scottleibrand this is the piece missing from the readme. I made a note and will update it once I confirm this works well...here's one final step to prepare to use the library on a Linux machine or Raspberry Pi. You'll need to install the python-dbus library to ensure its available for the library to use. For a Raspberry Pi or Debian/Ubuntu machine run this command:
Copy Code
sudo apt-get install python-dbus
Library Installation
To install the library you'll need to clone it from its home on GitHub and then run its setup.py as below. Assuming you have git installed you can run the following in a terminal to clone the library and install it:
Copy Code
git clone https://github.com/adafruit/Adafruit_Python_BluefruitLE.git
cd Adafruit_Python_BluefruitLE
sudo python setup.py install
That's it, the library should be installed globally and ready to use with any Python script on your system.
live4sw
@live4sw
Jul 24 2016 15:34
Thanks @johnmales just set up rig #5 and it's working great - 30 minutes rather than 3 hours!
Gina
@gclyon
Jul 24 2016 16:20
Hello group. I'm uber excited I found out about this project, and am attempting to get things started. I'm getting stuck trying to communicate with my pump (723). I've loaded openaps to Pi3 and using Carelink stick. I've added my pump, but can't issue any use commands to it. The carelink is showing when i look at the dmesg log. It says serial no: is '0' ...I'm glad to dig for the answers if someone can point me in the right direction. (I've read all the openaps documentation, and everything else I could possibly find.)
John Dodds
@johners97
Jul 24 2016 16:26
This message was deleted

There is a file called <pump name>.ini that should say
[device "<pump name>"]
serial = <serial number of pump>

The <> signs should not be present and the serial number is 6 digits ?

Check that ini file to see if the serial number matches
Gina
@gclyon
Jul 24 2016 16:29
yes, i do have the pump serial there. i just wasn't sure if the carelink was supposed to have it's own serial?
Jarred Yaw
@jyaw
Jul 24 2016 16:30
Any reason why the latest versions of openaps and openaps cobtrib would give an error when i use the tz device with the --timezone "CDT" option? I'm getting localtz and NoneObj attribute errors for various rezone reports. I have /etc/localtime setup.
The errors I'm referencing come when I'm adding the reports
Gina
@gclyon
Jul 24 2016 16:30
or am i supposed to assign the pump serial to the usb carelink??
Gina
@gclyon
Jul 24 2016 16:31
oh wait, i put the letters in the serial... let me remove those and try
Jarred Yaw
@jyaw
Jul 24 2016 16:32
@gclyon did you put just the numeric portion of the serial in the ini file?
John Dodds
@johners97
Jul 24 2016 16:32
I'm not much further ahead than you @gclyon ! :) Having some difficulty with uploading openaps to ns
Gina
@gclyon
Jul 24 2016 16:39
Yep, had more than just the numeric portion in there. It is now communicating. Thanks. @johners97, that was another thing I was unsure about. Never used Nightscout, and am not sure if this is essential (for me, using Medtronic CGM)
Jarred Yaw
@jyaw
Jul 24 2016 16:43
@gclyon I can't really speak to medtronic setups. But NS visualization was really helpful in tuning the loop for me. I think most would tell you the same.
John Dodds
@johners97
Jul 24 2016 16:48
@gclyon Same, I use medtronic CGM as well. I believe nightscout is (optional?) but is essentially important to visualize what the openaps is doing...there is not enough information on how to set this up with medtronic cgm so i'm having difficulty!
I do have dexcom cgm but it's not my preferred option as the transmitters constantly need renewed and it's a bit bulky for me...Plus the accuracy is fine, have no issues with it. I believe the insulin pump is where the cgm data and pump data comes from, that goes into the pi via carelink usb.
I have set up nightscout as well...but it's confusing all the report adds and invoking etc
linked in with everything else
some errors have appeared and have no idea why
But this is normal...everyone doing this gets these problems and they do get solved. Been persevering
Gina
@gclyon
Jul 24 2016 17:05
I would like to use Nightscout, but am finding that documentation is scant for medtronic only setups as well
John Dodds
@johners97
Jul 24 2016 17:10
Don't worry we'll get it done ;)
[device "pump"]
vendor = openaps.vendors.medtronic
extra = pump.ini

[device "cgm"]
vendor = openaps.vendors.dexcom
extra = cgm.ini
Should [device "cgm"] be present when using medtronic cgm? If it is, should
Should vendor = openaps.vendors.medtronic to satisfy that fact
instead of openaps.vendors.dexcom (as I dont use dexcom
John Dodds
@johners97
Jul 24 2016 17:39
I have just fixed my biggest problem ;) I'm starting to love this. Each solved problem gives you a buzz that provides the capacity to do even more!
This is amazin'
Jason Calabrese
@jasoncalabrese
Jul 24 2016 17:43
if you're using medtronic cgm, you don't need the cgm device, everything is pulled from the pump
John Dodds
@johners97
Jul 24 2016 17:44
I realized that Jason! It's all starting to fall into place now
Jason Calabrese
@jasoncalabrese
Jul 24 2016 17:46
@jyaw you shouldn't need to specify a timezone, as it should be using the timezone on the pi/edison that would be in your local timezone
dabear
@dabear
Jul 24 2016 18:08
Hi. Does anyone know if the source code for pebble watch faces are available?
I.e. I wanna modify this watch face but cannot find source for it: https://apps.getpebble.com/en_US/application/5788797769ee715dd7000262?section=watchfaces
Darin Krauss
@darinkrauss
Jul 24 2016 18:12
Anyone know how to disable the 3 beeps from the Medtronic pump that happen on the hour when a temp basal is active?
Dana Lewis
@danamlewis
Jul 24 2016 18:18
@dabear no, but you might want to check out @mddub's Urchin
Jarred Yaw
@jyaw
Jul 24 2016 18:18
@jasoncalabrese gotcha, I removed the "--timezone" and it seemed to work fine, added the "-HH:SS" to the time, but I felt like I've seen it mentioned here before and it should be included. Thanks for confirmin g!
Jason Calabrese
@jasoncalabrese
Jul 24 2016 18:19
@dabear that's https://github.com/hackingtype1/cgm-simple-spark, but Urchin is better sutied for OpenAPS
@darinkrauss I don't think there is a way other than turning the pump to silent mode
David Cintron
@loudestnoise
Jul 24 2016 18:22
Anyone have some Edison rigs they’ve posted photos online that they wouldn’t mind me sharing (with credit of course) besides @danamlewis :wink: ?
Dana Lewis
@danamlewis
Jul 24 2016 18:39
Oh hai ;) so @kcwells has the pretty shrink wrapped one I bet he'd give perms to use
Jason Calabrese
@jasoncalabrese
Jul 24 2016 18:42
there are a few in my twitter feed
use whatever you want
Darin Krauss
@darinkrauss
Jul 24 2016 19:45
@jasoncalabrese Arrgg, that's what I though, thanks!
Eric Jensen
@elnjensen
Jul 24 2016 21:03
Setting up my raspberry pi now. Any reason that Raspbian Jessie Lite wouldn't work, as long as I'm doing a headless install? It seems like the main differences of the full image vs. the lite one have to do with GUI things. https://www.raspberrypi.org/forums/viewtopic.php?t=127060
Tim Mecklem
@tmecklem
Jul 24 2016 21:09
I went with Lite, no problem.
Eric Jensen
@elnjensen
Jul 24 2016 21:09
@tmecklem Thanks! Looked like it should work. Much faster to download and image the card.
Tim Mecklem
@tmecklem
Jul 24 2016 21:10
You can always add the gui in later, but I don’t think there’s any reason to.
Eric Jensen
@elnjensen
Jul 24 2016 21:11
Cool - I agree that it doesn't seem necessary. Happy with SSH. :-)
Eric Jensen
@elnjensen
Jul 24 2016 22:36
In Phase 1 of the docs (initial setup of devices in openaps) it has a command openaps use tz rezone --date dateString --date display_time raw-cgm/glucose-raw.json under the instructions "Ensure that the data is zoned correctly." Running that gives an error - says it can't find raw-cgm/glucose-raw.json which of course is correct, since I haven't created any data yet. Is this command something to be run later? Seems to be right in the flow of initial setup, in the context of the instructions.
sarahspins
@sarahspins
Jul 24 2016 23:00
@elnjensen the walkthrough also mentions invoking every report as you create it.. if you were following along in order, you shouldn't run into any trouble.
Eric Jensen
@elnjensen
Jul 24 2016 23:50
Thanks, @sarahspins. I don't think I skipped anything. There's a section later on creating and invoking reports (which I haven't got to yet), but this comes in the section on defining devices, before you even connect any devices for testing.