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

2nd
Jun 2016
Lynne Butts
@flutelynne_twitter
Jun 02 2016 00:11 UTC
@bewest ok. I went back after I went under my directory "abouttime" as before. I entered the curl part. I did the Maxim config --G5 part, and the Header part. This is what I have:
curl -s https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/a0fb7f4ae2fbeb9cbe35b5fa29beb1c10c0d245d/cgm-export-reports-template.json | json -e "this[this.name].device = 'Maxim'" | openaps import
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
Maxim://JSON/GetFirmwareHeader/cgm-vendor.json
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
Maxim://JSON/oref0_glucose/raw-cgm/entries.json
Maxim://JSON/iter_calibrations/raw-cgm/calibrations.json
Maxim://JSON/rezone/monitor/glucose.json
pi@raspberrypi:~/abouttime $ openaps gather-clean-data
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 23, in main
device = app.devices[report.fields['device']]
KeyError: 'Maxim'
pi@raspberrypi:~/abouttime $ openaps use Maxim config --G5
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
[--version]
device ...
openaps-use: error: argument device: invalid choice: 'Maxim' (choose from )
pi@raspberrypi:~/abouttime $ openaps use Maxim GetFirmwareHeader
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
[--version]
device ...
openaps-use: error: argument device: invalid choice: 'Maxim' (choose from )
pi@raspberrypi:~/abouttime $
I went back and added the cgm as a device.
Then did the --g5 stuff and the Header stuff
Lynne Butts
@flutelynne_twitter
Jun 02 2016 00:16 UTC
openaps device add Maxim dexcom
added dexcom://Maxim
pi@raspberrypi:~/abouttime $ openaps use Maxim config --G5
{
"model": "G5"
}pi@raspberrypi:~/abouttime $ openaps use Maxim GetFirmwareHeader
{
"DexBootVersion": "3",
"BLESoftwareVersion": "1.0.0.76/1.0.1",
"RFVersion": "1",
"ApiVersion": "3.0.0.0",
"ProductName": "Dexcom G5 Mobile Receiver",
"SoftwareNumber": "SW10617",
"TestApiVersion": "2.10.0.0",
"BLEHardwareVersion": "HW004A",
"SchemaVersion": "1",
"ProductId": "G5MobileReceiver",
"PortVersion": "4.6.4.62",
"FirmwareVersion": "4.0.1.030",
"BLEDeviceAddress": "C2444E7C73C1"
openaps gather-clean-data
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
reporting monitor/glucose-raw.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 24, in main
task = app.actions.commands['add'].usages.commands[device.name].method.commands[report.fields['use']]
KeyError: 'rezone'
Sarah Hodson Grady
@shgrady
Jun 02 2016 00:28 UTC
@flutelynne_twitter you are already off to a better start than I am, I cannot get the Pi to connect to WiFi
Lynne Butts
@flutelynne_twitter
Jun 02 2016 00:30 UTC
@shgrady are you using the hdmi cable, usb keyboard route?
Sarah Hodson Grady
@shgrady
Jun 02 2016 00:31 UTC
That was the plan, however the SSH fails
Lynne Butts
@flutelynne_twitter
Jun 02 2016 00:32 UTC
@shgrady I had to use the actual number of my wifi. ssh pi@###.###.#.##
Paul Martin
@Spazholio
Jun 02 2016 00:33 UTC
@bewest Now that I have a new rig I’m setting up, doesyour oref0 template scaffold the whole thing?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 00:35 UTC
@shgrady In the Pi's terminal, type "hostname -I" without the quotes. Thi gives your Pi's IP address.
Sarah Hodson Grady
@shgrady
Jun 02 2016 00:35 UTC
no even there yet, I realized the Pi does not see the network, the directions gloss over this, but I did not buy the Canakit
Lynne Butts
@flutelynne_twitter
Jun 02 2016 00:35 UTC
ok
lmoynihan73
@lmoynihan73
Jun 02 2016 00:40 UTC
Can someone write out the command (in plain English!) to pull BG levels from Nightscout? I am stuck where the directions say to "create a device to talk to Nightscout" using this info: [device "curl"]
fields =
cmd = bash
vendor = openaps.vendors.process
args = -c "curl -s https://yourwebsite.azurewebsites.net/api/v1/entries.json | json -e 'this.glucose = this.sgv'"
Paul Martin
@Spazholio
Jun 02 2016 00:49 UTC
/usr/bin/env: node: No such file or directory Well that’s interesting, seeing as how I have it installed. Any thoughts?
Ahhh, I might have nodejs installed instead. Odd. Where are the most current directions for provisioning an Edison?
But even after sudo aptitude install node I still don’t have it. Grr.
David Cintron
@loudestnoise
Jun 02 2016 01:06 UTC
Thanks @flutelynne_twitter for running out of space and for @bewest for helping her remove those packages. I did the same thing on my Pi and now I’m rocking 4.6GB free on /dev/root
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:09 UTC
But @loudestnoise now the only device I have listed is my dexcom, after I went back and added it as a device. I added the pump as a device, too, and can communicate with both. But no nightscout. I cannot remember how I added it as a device before doing the template autoconfig-crud part.
David Cintron
@loudestnoise
Jun 02 2016 01:09 UTC
Hmm, so are you trying to do USB to your receiver or bridge still?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:09 UTC
The only reports I have listed are for the dexcom.
David Cintron
@loudestnoise
Jun 02 2016 01:10 UTC
hmm, that’s no bueno
what you did removing those packages shouldn’t have done anything to your openaps...
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:10 UTC
I have the USB going. I use the bridge for the G5 with Nightscout (2 yrs of NS). Seems like I lost everything...
David Cintron
@loudestnoise
Jun 02 2016 01:11 UTC
Has G5 been around that long? Dang, doesn’t seem like it
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:11 UTC
No, but with Dexcom Share, I ran the bridge, before that I used the wired rig version.
David Cintron
@loudestnoise
Jun 02 2016 01:11 UTC
ah ok
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:12 UTC
ls
abouttime nightscout-glucose.json
API_SECRET=6bece84baaea76ce3e1d4a5be6855b2f6f347cfa nightscout-status.ini
calculate-iob.ini ns
Clark.ini ns.ini
Clark-session.json ns-status.ini
detect-sensitivity.ini ns-upload-entries
determine-basal.ini openaps.ini
enact oref0-enacted
get-profile.ini oref0.ini
howdy.ini oref0-monitor
last_four_pump_hours.json oref0-predict
Maxim.ini profile
May29B pump.ini
May30 raw-cgm
mkdir raw-pump
mm-format-ns-glucose settings
mm-format-ns-pump-history settins
mm-stick tz.ini
model.json unit
monitor units.ini
nightscout
openaps report show
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
Maxim://JSON/GetFirmwareHeader/cgm-vendor.json
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
Maxim://JSON/oref0_glucose/raw-cgm/entries.json
Maxim://JSON/iter_calibrations/raw-cgm/calibrations.json
Maxim://JSON/rezone/monitor/glucose.json
David Cintron
@loudestnoise
Jun 02 2016 01:13 UTC
:worried:
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:14 UTC
How did you add your ns as a device?
David Cintron
@loudestnoise
Jun 02 2016 01:14 UTC
nightscout autoconfigure-device-crud https://my.nightscout.host averylongplainsecret
replace the site with yours and your API secret
that’s if you wanna pull from Nightscout though
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:15 UTC
so...."openaps add device nightscout...what you wrote"? I had that before.
I don't know how I should do it now.
David Cintron
@loudestnoise
Jun 02 2016 01:16 UTC
so to set it up with the autoconfigure-device-crud you don’t do add device
it creates it for you
$ nightscout autoconfigure-device-crud https://my.nightscout.host averylongplainsecret
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
process://ns/nightscout/ns https://my.nightscout.host e6fc892e8e88235a476d197de3dfbef3f2db53d0
it should say that
I’m pulling this from this page openaps/docs#129
but I wouldn’t take my advice as gospel, I’m still very much “figuring things out"
Dan Piessens
@dpiessens
Jun 02 2016 01:19 UTC
@Spazholio I bet the host board is bad
Paul Martin
@Spazholio
Jun 02 2016 01:19 UTC
Curse it all.
Dan Piessens
@dpiessens
Jun 02 2016 01:20 UTC
You might want to consider using this as a host board, I really like mine and it's cheaper to switch out: https://www.sparkfun.com/products/13045
Paul Martin
@Spazholio
Jun 02 2016 01:20 UTC
That’s what I’m using.
Dan Piessens
@dpiessens
Jun 02 2016 01:21 UTC
ah then you might be able to just replace that shield
Paul Martin
@Spazholio
Jun 02 2016 01:21 UTC
Shield?
Dan Piessens
@dpiessens
Jun 02 2016 01:22 UTC
that "level" of the board not the host edison chip. I have 3 shields: base, GPIO and battery
Paul Martin
@Spazholio
Jun 02 2016 01:23 UTC
Ah, I see. Well, I could throw it on my BO board and see if there are still issues. Do you think it’s the communication between the Edison and the console that’s messed up (due to a faulty Sparkfun) and not the data itself?
Dan Piessens
@dpiessens
Jun 02 2016 01:24 UTC
yeah I bet that's it, there's a chip on that board that does the serial communication
actually, have you tried SSH over wifi?
Paul Martin
@Spazholio
Jun 02 2016 01:25 UTC
Can’t. I was testing at work, and we use PEAP, not just standard WPA2, so it’s a nightmare to get it connected. And I can’t get it working at home right now due to the current issue. =)
Gonna swap the board out and see what happens...
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:27 UTC
That's where I was looking, too, but maybe at the #132 one. Thanks
Well, I did that. The process part was not in the #132 one, but is in #129. It still does not show as a device.
Paul Martin
@Spazholio
Jun 02 2016 01:29 UTC
Negative. Still have the garbage output on the Intel BO board. =/
[  OK  ] Started Login Service.
         Starting Hostname Service...
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting Load/Save RF Kill Switch Status of rfkill3...
[  OK  ] Reached target Bluetooth.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyMFD2...
[  OK  ] Started Serial Getty on ttyMFD2.
[  OK  ] Reached target Login Prompts.
�����̞�̞f?�̘�f���f����?`?�<�f<��fÆ�~3���fÆ����f�`fØ�����0`3f0�f0��怘�~x�~~x�~
Happens at the exact same spot. Sometimes I can switch over to using 9600 baud instead of 115200 and I can get some level of interactivity, but not always.
Dan Piessens
@dpiessens
Jun 02 2016 01:36 UTC
yeah that's really weird, unfortunately I'm out of hints
Paul Martin
@Spazholio
Jun 02 2016 01:37 UTC
That’s not very common, is it? Data just up and corrupting itself? I mean, there’s no power switch, so being able to turn the device off “hard” shouldn’t be such an issue.
(not that it matters - I was meticulous about powering it off properly today to eliminate variables)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:50 UTC
How do you get out of something when there is only > after you hit the enter key?
GeoffWyche
@GeoffWyche
Jun 02 2016 01:51 UTC
Try control-c
That can happen when you have an unmatched quotation mark on the command line
Lynne Butts
@flutelynne_twitter
Jun 02 2016 01:51 UTC
@GeoffWyche That worked!
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:00 UTC
I can't get the nightscout added as device to work again. Do I add the -crud part at the end of the autoconfig part?
David Cintron
@loudestnoise
Jun 02 2016 02:06 UTC
Yes, it’s one command all together nightscout autoconfigure-device-crud
followed by your Nightscout site address
and API secret
so all together $ nightscout autoconfigure-device-crud https://my.nightscout.host averylongplainsecret
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:08 UTC
I've been doing that. Then I put in openaps device show, and it isn't there. I will try again and post
David Cintron
@loudestnoise
Jun 02 2016 02:09 UTC
so it should show up as process://ns/nightscout/ns https://my.nightscout.host averylongplainsecret
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:10 UTC
openaps device show
dexcom://Maxim
medtronic://Clark
medtronic://pump
process://oref0/oref0/
process://detect-sensitivity/oref0/detect-sensitivity
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
Is it because I have the usb for the receiver plugged in?
David Cintron
@loudestnoise
Jun 02 2016 02:11 UTC
no, you can have both
Ben West
@bewest
Jun 02 2016 02:11 UTC
I think when your disk ran out of space, it lost some of the devices/reports and we've been adding them
need two more openaps device add units units
openaps vendor add openapscontrib.timezones
and openaps device add tz timezones
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:12 UTC
openaps use ns shell get entries.json 'count=10'
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
[--version]
device ...
openaps-use: error: argument device: invalid choice: 'ns' (choose from u'Clark', u'Maxim', u'calculate-iob', u'detect-sensitivity', u'determine-basal', u'get-profile', u'oref0', u'pump')
Paul Martin
@Spazholio
Jun 02 2016 02:15 UTC
@bewest When you get @flutelynne_twitter squared away, I don’t seem to be able to get node installed on my Edison. I’m having many, many issues with the Edison honestly, but that’s the latest of them. I’ve followed Oskar’s docs, and I don’t think I missed anything, but...
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:15 UTC
openaps device show
dexcom://Maxim
medtronic://Clark
medtronic://pump
process://oref0/oref0/
process://detect-sensitivity/oref0/detect-sensitivity
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
This was after also putting in the nightscout autoconfig part, too.
@Spazholio I'm sorry, Paul.
Paul Martin
@Spazholio
Jun 02 2016 02:16 UTC
@flutelynne_twitter For what?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:16 UTC
@Spazholio for taking up your ben time. My stuff is such a mess...
Paul Martin
@Spazholio
Jun 02 2016 02:17 UTC
Don’t be! We’ve all been there. I completely empathize. Feel sorry for @bewest - that poor man’s in far too high of a demand. =)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:18 UTC
Me, too. He has such a great brain. And he must have tons of patience.
Ben West
@bewest
Jun 02 2016 02:19 UTC
@flutelynne_twitter I hate to say this, but I think we get to do oref0 nightscout autoconfigure-device-crud again.. I know we did it before, but I think it was before the last bad thing that happened
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:19 UTC
so add what you just posted, then MY $nightscout autoconfig part?
Ben West
@bewest
Jun 02 2016 02:20 UTC
right, add oref0 autoconfigure-device-crud https://my.azurewebsite.net myverylongsecret
at will add a a process://ns/nightscout ns.... blargh device
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:27 UTC
I've tried all different ways. oref0 autoconfig, etc.
Ben West
@bewest
Jun 02 2016 02:29 UTC
you had it working before
so we can do it again :-)
openaps use ns shell preflight
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:30 UTC
so $oref0 nightscout autoconfig-crud etc. At the end it is thelong number, right?
Ben West
@bewest
Jun 02 2016 02:30 UTC
should just say true
yeah
openaps use ns shell preflight should say true if it can talk to your NS
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:31 UTC
openaps use ns shell preflight
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
[--version]
device ...
openaps-use: error: argument device: invalid choice: 'ns' (choose from u'Clark', u'Maxim', u'calculate-iob', u'detect-sensitivity', u'determine-basal', u'get-profile', u'oref0', u'pump', u'tz', u'units')
Ben West
@bewest
Jun 02 2016 02:31 UTC
hmm
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:31 UTC
I still have my usb plugged in. unplug it?
Ben West
@bewest
Jun 02 2016 02:31 UTC
we might need it later
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:32 UTC
the receiver i mean
Ben West
@bewest
Jun 02 2016 02:32 UTC
for some reason it did not create ns device?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:32 UTC
ok
No device listed. I had it before. I printed a list of my devices
Ben West
@bewest
Jun 02 2016 02:33 UTC
hmmm
hmm
openaps device remove ns
that should remove it
weird, yeah I know you had it before
but it's not there now
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:34 UTC
openaps device remove ns
usage: openaps-device remove [-h]
{Clark,Maxim,calculate-iob,detect-sensitivity,determine-basal,get-profile,oref0,pump,tz,units}
openaps-device remove: error: argument name: invalid choice: 'ns' (choose from u'Clark', u'Maxim', u'calculate-iob', u'detect-sensitivity', u'determine-basal', u'get-profile', u'oref0', u'pump', u'tz', u'units')
was there something in the nano ~/.profile or something? Looking at my notes from a couple of days ago
No. That gave me my hashed version
Ben West
@bewest
Jun 02 2016 02:36 UTC
hmm
let's try one more time before a different approach
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:36 UTC
ok
Ben West
@bewest
Jun 02 2016 02:36 UTC
actually
do you have ls ns.ini?
maybe we do rm ns.ini in meantime
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:37 UTC
rm ns.ini
pi@raspberrypi:~/abouttime $ ls ns.ini
ls: cannot access ns.ini: No such file or directory
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 02:37 UTC
after that, let's try again: nightscout autoconfigure-device-crud https://my.azurewebsites.net myverylongplainsecret
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:39 UTC
openaps device show
dexcom://Maxim
medtronic://Clark
medtronic://pump
process://oref0/oref0/
process://detect-sensitivity/oref0/detect-sensitivity
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
Ben West
@bewest
Jun 02 2016 02:39 UTC
oh bother
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:39 UTC
I have heroku, but that shouldn't matter
Ben West
@bewest
Jun 02 2016 02:40 UTC
2 steps forward one step back, all the time
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:40 UTC
I'm in the mud. Sorry
Ben West
@bewest
Jun 02 2016 02:41 UTC
don't worry, no apologies needed
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:41 UTC
You're too kind
Ben West
@bewest
Jun 02 2016 02:41 UTC
it didn't say anything about importing stuff?
usually it says stuff abut device added
when I do it an it already exists:
$ nightscout autoconfigure-device-crud foo bar
Traceback (most recent call last):
  File "/usr/local/bin/openaps-device", line 10, in <module>
    execfile(__file__)
  File "/home/bewest/src/openaps/openaps/bin/openaps-device", line 35, in <module>
    app( )
  File "/home/bewest/src/openaps/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/bewest/src/openaps/openaps/bin/openaps-device", line 29, in run
    self.commands[args.command](args, self)
  File "/home/bewest/src/openaps/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/home/bewest/src/openaps/openaps/openaps/devices/add.py", line 23, in main
    app.config.add_device(device)
  File "/home/bewest/src/openaps/openaps/openaps/config.py", line 43, in add_device
    self.add_section(section)
  File "/usr/lib/python2.7/ConfigParser.py", line 264, in add_section
    raise DuplicateSectionError(section)
ConfigParser.DuplicateSectionError: Section 'device "ns"' already exists
process://ns/nightscout/ns AAA aa6878b1c31a9420245df1daffb7b223338737a3
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:42 UTC
in that nano profile part it does.
Ben West
@bewest
Jun 02 2016 02:43 UTC
$ openaps device remove ns
removed process://ns/nightscout/ns AAA aa6878b1c31a9420245df1daffb7b223338737a3
bewest@bewest-MacBookPro:~/Documents/loop-new-style$ nightscout autoconfigure-device-crud foo bar
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
process://ns/nightscout/ns foo 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
so if my secret pass is bar, I literally type bar, it creates the long number and says it was added
feel free to use foo and bar literally
just as an experiment
you had it earlier and it got wiped out
think a few things got wiped out when disk filled
@Spazholio for installing node on edison, I played around with this: https://github.com/tj/n#installation
Paul Martin
@Spazholio
Jun 02 2016 02:47 UTC
Oh. It’s not a straightforward install?
Ben West
@bewest
Jun 02 2016 02:47 UTC
looks like whatever comes with apt-get install nodejs nodejs-legacy is good enough for oref0
I tried installing cgm-remote-monitor and needed a newer version to host NS locally
Paul Martin
@Spazholio
Jun 02 2016 02:48 UTC
I didn’t do nodejs-legacy. Let me try that one...
Ben West
@bewest
Jun 02 2016 02:48 UTC
the history there is there's an old program to work with radios called node that predates javascript
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:48 UTC
I'll try it again.
I don't get the processed part.
Ben West
@bewest
Jun 02 2016 02:49 UTC
maybe error instead?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:50 UTC
I copied it right from the config page. I will try again
Paul Martin
@Spazholio
Jun 02 2016 02:50 UTC
Should I remove the node I have now, and replace it with node-legacy?
Ben West
@bewest
Jun 02 2016 02:50 UTC
well, there's a package called nodejs that installs a program called nodejs which interprets our js stuff
installing nodejs-legacy on top of nodejs links the program to /usr/bin/node , which is what we like
Paul Martin
@Spazholio
Jun 02 2016 02:52 UTC
Yeah, I have nodejs installed. Figured that would be sufficient. I’ll try the node-legacy as well.
Ben West
@bewest
Jun 02 2016 02:52 UTC
nodejs-legacy
Paul Martin
@Spazholio
Jun 02 2016 02:52 UTC
Right, my bad.
Paul Martin
@Spazholio
Jun 02 2016 02:57 UTC
Looks like I can run oref0 commands now. Thanks.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 02:58 UTC
I put my hash on my API Secret in my heroku settings along with my plain secret. Wasn't that right?
Paul Martin
@Spazholio
Jun 02 2016 02:59 UTC
I’ll experiement with the oref0 template stuffs tomorrow. Figure I’ll give all these whiz-bang new features a whirl with the brand new rig. =)
Ben West
@bewest
Jun 02 2016 03:03 UTC
no
the plain secret
@flutelynne_twitter it's literally the plain text secret, not the hashed version
this tool is supposed to be easy to use, so it calculates the hash for you
so as an experiment, if my plain text secret is bar
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:04 UTC
ok That's what I did before. I will try again.
Ben West
@bewest
Jun 02 2016 03:04 UTC
that's too short to be real
it's fake, but we can try it together
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:05 UTC
so take the hashed part out of my heroku settings first?
Ben West
@bewest
Jun 02 2016 03:05 UTC
leave heroku
heroku needs the plain text version
and here it needs to be copy/paste
so whatever was typed into heroku needs to match here
so I type in bar for API_SECRET on heroku
and then here I type:
$ nightscout autoconfigure-device-crud foo bar
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
process://ns/nightscout/ns foo 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
bewest@bewest-MacBookPro:~/Documents/loop-new-style$ openaps device remove ns
removed process://ns/nightscout/ns foo 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
bewest@bewest-MacBookPro:~/Documents/loop-new-style$ nightscout autoconfigure-device-crud https://my.site.com bar
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
process://ns/nightscout/ns https://my.site.com 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
so if I type in bar on heroku, it needs to match bar here as an example
when I type in bar this thing automatically generates the hash
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:07 UTC
ok removed the hash from heroku i will return!
Ben West
@bewest
Jun 02 2016 03:07 UTC
bar is fake, but it woud be copy/paste in heroku
it needs to be at least 12 characters long
so something like thisismy4speciallongsecretha
and copy paste it into heroku API_SECRET and here as well
instead of bar
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:09 UTC
The same long api secret since the rest api secret, right?
Ben West
@bewest
Jun 02 2016 03:10 UTC
they should match, yeah
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:10 UTC
I'm doing that. I can't find the error
So, I thought I would see if I could authenticate on my NS site I've had over 2 years. It said wrong api. I restarted all dynos. waited. still says wrong api. So, should I change my api secret, enter it everywhere again?
Ben West
@bewest
Jun 02 2016 03:36 UTC
or change api secret back to what it was when it was working
if you type this exactly, it should look like mine exactly
don't replace anything
nightscout autoconfigure-device-crud https://my.site.com bar
paste everything it says back
would definitely change api-secret on heroku back to what it was saying
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:40 UTC
I changed and authenticated on my heroku settings and ns website. should I change it back?
pi@raspberrypi:~/abouttime $ source /etc/profile
pi@raspberrypi:~/abouttime$ ^C
pi@raspberrypi:~/abouttime$ ^C
pi@raspberrypi:~/abouttime$
this happened when i was trying to go back...
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:47 UTC
I was trying the nano profile thing, wasn't sure how i did it before...
Ben West
@bewest
Jun 02 2016 03:48 UTC
the new way we shouldn't need profile stuff
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:48 UTC
ok but i can't get out of the one section here.
Ben West
@bewest
Jun 02 2016 03:48 UTC
oh, er
openaps alias show
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:50 UTC
Thanks. Nw to do your suggestion above.
nightscout autoconfigure-device-crud https://my.site.com bar
Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 35, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-device", line 29, in run
self.commandsargs.command
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/add.py", line 23, in main
app.config.add_device(device)
File "/usr/local/lib/python2.7/dist-packages/openaps/config.py", line 43, in add_device
self.add_section(section)
File "/usr/lib/python2.7/ConfigParser.py", line 264, in add_section
raise DuplicateSectionError(section)
ConfigParser.DuplicateSectionError: Section 'device "ns"' already exists
process://ns/nightscout/ns foo 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
pi@raspberrypi:~/abouttime$
Ben West
@bewest
Jun 02 2016 03:52 UTC
I noticed something where now your prompt says ~/abouttime, and before it just said ~/
yeah
so this is where we were supposed to be earlier
that's why it looked like it was gone earlier
it wasn't it was over here in ~/abouttime
ok
well
openaps use ns shell preflight
should say true
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:53 UTC
it's weird. there is no color difference now between the pi and my
Ben West
@bewest
Jun 02 2016 03:53 UTC
has to do with the source stuff earlier I believe
now if I recall, in abouttime area we were adding something when we got interrupted by disk running full and then red-herring with everything disappering
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:54 UTC
i@raspberrypi:~/abouttime$ nightscout autoconfigure-device-crud https://my.site.com bar
Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 35, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-device", line 29, in run
self.commandsargs.command
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/add.py", line 23, in main
app.config.add_device(device)
File "/usr/local/lib/python2.7/dist-packages/openaps/config.py", line 43, in add_device
self.add_section(section)
File "/usr/lib/python2.7/ConfigParser.py", line 264, in add_section
raise DuplicateSectionError(section)
ConfigParser.DuplicateSectionError: Section 'device "ns"' already exists
process://ns/nightscout/ns foo 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
pi@raspberrypi:~/abouttime$ openaps use ns shell preflight
json: error: input is not JSON: Unexpected '<' at line 1, column 1:
<html>
^
json: error: input is not JSON: Unexpected '<' at line 1, column 1:
<html>
^
falsepi@raspberrypi:~/abouttime$
Ben West
@bewest
Jun 02 2016 03:54 UTC
it's ok, try this: openaps use ns shell preflight
ryanchen26
@ryanchen26
Jun 02 2016 03:55 UTC
Does it make sense to clear the settings, monitor, and enact folders every loop? Not necessary? My iob numbers on Nightscout are way off, and I'm not sure why...
Ben West
@bewest
Jun 02 2016 03:55 UTC
no, it's not needed
ryanchen26
@ryanchen26
Jun 02 2016 03:55 UTC
ok
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:56 UTC
falsepi@raspberrypi:~/abouttime$ openaps use ns shell preflight
json: error: input is not JSON: Unexpected '<' at line 1, column 1:
<html>
^
json: error: input is not JSON: Unexpected '<' at line 1, column 1:
<html>
^
falsepi@raspberrypi:~/abouttime$
Falsepi?
Ben West
@bewest
Jun 02 2016 03:56 UTC
hmmm
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:56 UTC
I didn't do that auto-config part you sent a few comments back yet.
Ben West
@bewest
Jun 02 2016 03:56 UTC
you already have it here
we got confused earlier because we were looking in two different spots
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:57 UTC
Should I exit, close the terminal, or shutdown?
Ben West
@bewest
Jun 02 2016 03:57 UTC
no, it's fine
you have an ns device here, that's the important thing
I think you are trying to set up ns-status
and then we discovered you didn't have any glucose going into the system
several things happened along the way, but we mostly have reports and stuff to get glucose now
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:58 UTC
ok
Ben West
@bewest
Jun 02 2016 03:58 UTC
I see... oy
ok
openaps device remove ns
this will say removed device
Lynne Butts
@flutelynne_twitter
Jun 02 2016 03:59 UTC
falsepi@raspberrypi:~/abouttime$ openaps device remove ns
removed process://ns/nightscout/ns foo 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
pi@raspberrypi:~/abouttime$
Ben West
@bewest
Jun 02 2016 03:59 UTC
ok
yup
that matches what my foo bar looked like
now we do it once more with your actual values
so in stead of foo bar
make foo match your heroku site, and bar match your api-secret, copy-pasted from heroku so they match exactly
Lynne Butts
@flutelynne_twitter
Jun 02 2016 04:01 UTC
so do the part you suggested a few comments ago first?
ryanchen26
@ryanchen26
Jun 02 2016 04:01 UTC
So I just punched in a 3.0u normal bolus into the pump(with water on my desk). In the near future I should see 3.00u in the IOB pill on NS, right?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 04:02 UTC
nightscout autoconfigure-device-crud https://my.site.com bar do this first?
Paul Martin
@Spazholio
Jun 02 2016 04:02 UTC
@ryanchen26 Eiher the next time your loop runs, or the one after that, yes.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 04:06 UTC
I still am not getting the precessed part
processed
ryanchen26
@ryanchen26
Jun 02 2016 04:16 UTC
I can see the type "bolus" and "amount" of 3.0 in pumphistory.json, iob.json shows iob = 0....weird.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 04:18 UTC
When I paste the last part, it just goes to the next section.
Should we try a different way to get it there?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 04:26 UTC
You know, I don't get any numbers after anything either. I did a new echo -n. Do I enter that hash somewhere else? it didn't show up on the config part, either
Lynne Butts
@flutelynne_twitter
Jun 02 2016 04:36 UTC
@bewest Thank you for your time tonight. I will try this again tomorrow. Have a good night.
Nathan Morse
@morsen
Jun 02 2016 05:38 UTC

Hmm, a Gitter search turned up nothing. I’m seeing this:

$ ns-upload $NIGHTSCOUT_HOST $API_SECRET treatments.json upload/latest-treatments.json
Cannot POST /api/v1/treatments.json

Has anyone run into this? My NIGHTSCOUT_HOST and API_SECRET values look correct, as well as does the contents of the file upload/latest-treatments.json. I’m on Nightscout 0.9.0-dev. Thanks!

Ben West
@bewest
Jun 02 2016 06:47 UTC
are you using heroku or azure to host nightscout?
@flutelynne_twitter yes, we will try again later :-) apologies I wandered off to dinner without warning
Nathan Morse
@morsen
Jun 02 2016 06:51 UTC
Haha, @bewest, spelunking did just now finally pay off: “ohhhhhh
oh
ok
you need to ENABLE=careportal"
that’s a quote from you a while back. thanks!
and… it works! :-D
Ben West
@bewest
Jun 02 2016 06:51 UTC
:-)
Jason Calabrese
@jasoncalabrese
Jun 02 2016 06:58 UTC
nice, got share ble working on my rebuilt edison
EXCOM <openxshareble.ble.readdata.Device object at 0xb5c6d12c>
[
  {
    "slope": 922.5677145770323,
    "system_time": "2016-06-02T04:49:03",
    "scale": 1.0,
    "decay": 1.0416702073468844,
    "display_time": "2016-06-01T22:51:39",
    "subrecords": [
      {
        "applied": "2016-06-02T04:49:02",
        "entered": "2016-06-02T04:41:47",
        "sensor": 199488,
        "meter": 180
      },
      {
        "applied": "2016-06-02T04:49:02",
        "entered": "2016-06-02T04:42:04",
        "sensor": 199488,
        "meter": 178
      }
    ],
    "numsub": 2,
    "raw": "3fb3f30d7b5ff30d88aef0ad8ad48c40ea58dd33e7c4e040000000000000f03f030609c85b1c61aeaaf03f028bb1f30db4000000400b03003eb3f30d009cb1f30db2000000400b03003eb3f30d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000333333333333d33f555555555555e53fe1a7",
    "intercept": 34343.225081132565
  }
]
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:10 UTC
and oref0_glucose is nice
Ben West
@bewest
Jun 02 2016 07:16 UTC
need to get mbgs next
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:16 UTC
we have them
Ben West
@bewest
Jun 02 2016 07:16 UTC
from dexcom_reader/uses?
I mean so that it can go into NS
think it needs some reformatting
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:17 UTC
yeah, just some conversion
Ben West
@bewest
Jun 02 2016 07:17 UTC
would be a good firstuse PR
er firsttimer
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:17 UTC
the time for oref0_glucose is fixed
no params?
Ben West
@bewest
Jun 02 2016 07:18 UTC
--hours
thinking about a generic suite of params across all iter_* uses
thinking about --hours --count, ...
need something that works with --oldest gaps.json
or --gaps gaps.json except that would be a lie
another suite for units/timezones maybe
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:19 UTC
it's not fast, but feels reliable now
Ben West
@bewest
Jun 02 2016 07:19 UTC
yeah
yeah, I've had great success this way
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:19 UTC
using 5.37 on Ubi
Ben West
@bewest
Jun 02 2016 07:19 UTC
I can walk away, come back and it just does right thing
yeah I think 5.33 at least is needed
what kernel?
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:19 UTC
did you figure out what happened in SD?
Ben West
@bewest
Jun 02 2016 07:20 UTC
sdcard?
or san diego?
I think it was just all the 2.4G usage
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:20 UTC
$ uname -a
Linux indy-e1 3.10.17-yocto-standard-r2 #7 SMP PREEMPT Thu Feb 26 09:57:06 UTC 2015 i686 GNU/Linux
Ben West
@bewest
Jun 02 2016 07:20 UTC
I've heard similar reports with G5 in crowded areas and things
it clogs up and signal/data gets dropped
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:20 UTC
thought it wasn't working after that
Ben West
@bewest
Jun 02 2016 07:20 UTC
in my case I was unable to reconnect, I've heard similar stories of just general BLE weirdness
some of it is attributed to apple bugs
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:21 UTC
had my original Pi with old SD card die tonight
Ben West
@bewest
Jun 02 2016 07:21 UTC
some of it is attributed to dexcom bugs (thought not many, to be fair)
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:21 UTC
really didn't want a pi to be the offline setup
Ben West
@bewest
Jun 02 2016 07:21 UTC
bluez seems to be same state as openssl
everyone depends on it, but no one knows what's going on and no one is funding it
same as NS/openaps ;-)
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:22 UTC
was just thinking that
ha
Ben West
@bewest
Jun 02 2016 07:23 UTC
lots of old/incorrect stuff
but the new stuff is hard to use
need to upload mbgs next to get full stuff working
need mbgs to get raw working
and thinking about using select somehow to use pump calbgs for boluses as calibrations for oref0 raw when dexcom is not producing data
and it looks reasonable
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:25 UTC
I remember doing some optimization for the uploader with Kevin, not requesting a Cal if there isn't a new MBG, etc
Ben West
@bewest
Jun 02 2016 07:26 UTC
so, yeah, also recording calibrations
and introducing --gaps or some other selector logic across all of them
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:26 UTC
there must be a command to feed them back
to the dex
Ben West
@bewest
Jun 02 2016 07:26 UTC
yeah... there must be...
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:26 UTC
for auto calibrate
Ben West
@bewest
Jun 02 2016 07:26 UTC
just for proving it works...
I will say, medtronic did a beautiful thing there
everything the pump does, there's a command to make it do that thing
symmetry, wise, it's elegant
in terms of auditing "what does this do" and "does it do this every time?"
it's very nice, there must be a way...
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:28 UTC
I thought the old dexcoms got BG from a meter
deleting calibrations would be nice too
Ben West
@bewest
Jun 02 2016 07:32 UTC
yeah
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:32 UTC
how do you create a report with the --params
Ben West
@bewest
Jun 02 2016 07:32 UTC
xdrip, g5 all require daemons
that are tracking state on their own
--params? in python?
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:33 UTC
for --hours
Ben West
@bewest
Jun 02 2016 07:33 UTC
same as use
just give report add foo.json replaces use
everything after use is identical
the switches all just get copied in
kitchen sink:
openaps report show --cli raw-cgm/entries.json
openaps use cgm oref0_glucose --hours "1.0" --threshold "100" --no-raw --glucose "raw-cgm/glucose-raw.json" --sensor "sensor_raw.json"
therefore,
openaps report add raw-cgm/entries.json JSON cgm oref0_glucose --hours "1.0" --threshold "100" --no-raw --glucose "raw-cgm/glucose-raw.json" --sensor "sensor_raw.json" should get exact same thing
thinking also about adding an -a, --apend flag to report
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:36 UTC
ah, was missing JSON
Ben West
@bewest
Jun 02 2016 07:37 UTC
yeah.. that's a wart, sorry
if I could go back a year, I'd do that part slightly differently
was following zen of python, be explicit, not implicit
but would have been much better to keep use's --format flag instead of as positional
switches can have a reasonable default, but positionals have to be given
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:39 UTC
so in the ini it becomes hours = 6.0
Ben West
@bewest
Jun 02 2016 07:39 UTC
yeah, thanks to the get_param, to_ini, and from_ini
for that one, get_params is enough
lot of bugs there
should have done yaml
INI has no list or boolean/int support
so much harder :-(
json is too strict and has same problem as INI re discarding comments
thanks to same bug, it works as feature for process/sub-shell types
Ben West
@bewest
Jun 02 2016 07:46 UTC
so openaps use determine-foo shell --foobar, would get saved as either args = oref0 determine-basal, remainder = --foobar or similar
remainder gets special treatment getting shlex'd
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:51 UTC
Think I'm done for tonight, but looks like I'll have a good offline rig for his dentist appointment on Friday, for some reason there's no cell service in that building
Ben West
@bewest
Jun 02 2016 07:51 UTC
nice
yeah, hope you enjoy oref0_glucose
hoping to do similar support for medtronic
and add lots of common switches to work with lsgaps and select
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:52 UTC
Seems fast too
I was expecting it to be slower
Ben West
@bewest
Jun 02 2016 07:53 UTC
I find it nearly intolerable
but it's not bad... ~20 seconds or so
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:53 UTC
Before it was slow and unreliable
Now it's just a little slow
Ben West
@bewest
Jun 02 2016 07:54 UTC
oh maybe 5.37 offers some reliability I'm sure
their release log notes ble improvements in particular
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:54 UTC
I think so, at least with the minimal testing I did tonight
With the right timing that won't matter
Ben West
@bewest
Jun 02 2016 07:55 UTC
yeah...
oacids offers triggers to wait until events emit
so we'll want a daemon listening to dexcom's hearbeat
or maybe medtronic's even for enlite
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:56 UTC
Right now it's just as slow, but I have it going through xdrip and getting uploaded and downloaded
Ben West
@bewest
Jun 02 2016 07:57 UTC
yeah, thanks for testing/feedback
xdrip also seems to require a daemon
Jason Calabrese
@jasoncalabrese
Jun 02 2016 07:58 UTC
For this an extra loop with a wait would work, not as clean as a oacids
Then the main loop just expects the data to be current
Paul Martin
@Spazholio
Jun 02 2016 12:49 UTC
Wake up with the Dexcom saying I’m at 75, but I can’t quite see properly, so I check and the fingerstick says 46. So I put that into the Dexcom to calibrate it, and now my Dexcom won’t shut up with the alarms, telling me I’m low. You think, Dexcom? facepalm
David Cintron
@loudestnoise
Jun 02 2016 13:00 UTC
That's my favorite. I calibrate Dex and it takes the reading below my alarm threshold and 5 mins later it says HEY DID U KNOW UR LOW BRO?!!
Yes Dex, I just calibrated you. I know.
Jason Calabrese
@jasoncalabrese
Jun 02 2016 13:56 UTC
dexcom calibrations are so frustrating
David Cintron
@loudestnoise
Jun 02 2016 14:05 UTC
I hear G6 will be a once per day calibration
Paul Martin
@Spazholio
Jun 02 2016 14:36 UTC
I don't trust that AT ALL. What I want is for it to not "get confused" when I calibrate more than twice a day. I fingerstick more than twice a day, but according to everyone I can find, if I DARE put those values in, the Dexcom is all of the sudden going to lose its mind and not be able to calculate accurately. It makes zero sense to me.
David Cintron
@loudestnoise
Jun 02 2016 14:36 UTC
Yeah, that does seem odd that that’s the case
I do often calibrate in the morning before it prompts me to though. I like to do it when I first wake up, before eating while my BG is relatively stable
well I did something to my Pi and now I can’t run my loop :cry:
pump://JSON/iter_pump_hours/monitor/pumphistory.json
monitor/pumphistory.json  raised  need more than 0 values to unpack
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  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-report", line 82, 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-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-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.1.5-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.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 639, in main
    for rec in self.range( ):
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/models/__init__.py", line 67, in __call__
    for record in page:
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/models/__init__.py", line 46, in download_page
    for record in self.find_records(page):
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/models/__init__.py", line 157, in find_records
    decoder = history.HistoryPage(response.data, self.inst)
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/history.py", line 777, in __init__
    if lib.BangInt(crc) != computed:
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/lib.py", line 235, in BangInt
    ( x, y ) = ints
ValueError: need more than 0 values to unpack
No CGM data.
Paul Martin
@Spazholio
Jun 02 2016 14:38 UTC
I don't eat in the mornings, and I tend to suffer from an odd dawn phenomenon - if I wake up low-ish, I'll keep getting lower. If I wake up slightly high-ish, I'll just go higher. So I wait a bit to calibrate, just in case.
@loudestnoise I get that ALL the time.
The fix? Just wait a bit. For me, it's saying that it can't read the values because there was some issue with comms. Usually, I just move around if it happens more than a few times. Hold the pump up closer, readjust how I'm sitting, etc.
If every other part of the loop works, I'd venture a guess that this is a temporary thing.
David Cintron
@loudestnoise
Jun 02 2016 14:51 UTC
Hmm, can’t move the pump much closer than it is. It’s basically touching the CareLink
IMG_1270.JPG
Paul Martin
@Spazholio
Jun 02 2016 14:51 UTC
I wonder if it's different for the Carelink? I know that the orientation of the Carelink can affect things as well.
I use a TI stick or a Slice of Radio.
David Cintron
@loudestnoise
Jun 02 2016 14:52 UTC
It seems like it can talk to the pump because it passes preflight
and most of the reports run
Paul Martin
@Spazholio
Jun 02 2016 14:53 UTC
Maybe it's the sustained comms? pumphistory.json and the 24h variant are some of the largest ones I have.
Bill Stackpole
@billstackpole
Jun 02 2016 14:53 UTC
@Spazholio Have you found the slice of radio range to be better or worse than TI stick? (I just got and flashed some SoR devices - going to try to configure later this week)
Paul Martin
@Spazholio
Jun 02 2016 14:54 UTC
I haven't measured, but from what I've been told, it's going to be less than a TI. Using a TI, I can cover my entire house. Then again, I keep the rig within ~5 feet of me pretty much at all times.
Bill Stackpole
@billstackpole
Jun 02 2016 14:54 UTC
any tricks I should know before trying to configure? (already flashed with help from a friend <smile>)
Paul Martin
@Spazholio
Jun 02 2016 14:55 UTC
Using a Pi3?
Bill Stackpole
@billstackpole
Jun 02 2016 14:55 UTC
yup
Paul Martin
@Spazholio
Jun 02 2016 14:55 UTC
You're going to have to disable BT in a very specific way.
BT apparently works on pins 15/16 on the GPIO, which are needed for serial comms.
Bill Stackpole
@billstackpole
Jun 02 2016 14:56 UTC
will BT still be available for use or completely disabled when using SoR?
(one thing I wanted to do was to use a BT PAN rather than wifi)
Paul Martin
@Spazholio
Jun 02 2016 14:56 UTC
As of now, the onboard is completely disabled.
You can get a low-profile USB dongle though.
Bill Stackpole
@billstackpole
Jun 02 2016 14:56 UTC
kind of defeats the purpose of the Pi3, eh? <smile>)
Paul Martin
@Spazholio
Jun 02 2016 14:56 UTC
I don't know if they can fix this sort of thing with a firmware update though.
No kidding! Oh, and my snazzy case doesn't quite fit anymore. The SoR is too high profile.
I still don't want to go back to my TI on this rig though. The size savings are worth it (to me).
Bill Stackpole
@billstackpole
Jun 02 2016 14:58 UTC
I'll try it out and offer my feedback once successful (or will cry about it when I bork anohter pi)
Paul Martin
@Spazholio
Jun 02 2016 14:58 UTC
You are going to have to WORK to bork the Pi doing this. I wouldn't worry about it. =)
I will see if I can find the links I had that showed how to diable the BT on there to get the SoR working. Problem is, I had 8-9 tabs open, trying different things until it worked. I don't know if the last thing I did made it work, or if that was in combination with other things I did earlier.
David Cintron
@loudestnoise
Jun 02 2016 14:59 UTC
Yep @Spazholio you were right. I just waited and now I ran the loop again and it didn’t have a problem
Paul Martin
@Spazholio
Jun 02 2016 15:01 UTC
Good! I so wish that the pump comms were more reliable, but I'm pretty sure that with Medtronic's shenanigans, they're about as reliable as they're gonna get. =)
Bill Stackpole
@billstackpole
Jun 02 2016 15:02 UTC
Anyone planning on sitting in on the FDA presentation today?
Sarah Hodson Grady
@shgrady
Jun 02 2016 15:03 UTC
@billstackpole yes
David Cintron
@loudestnoise
Jun 02 2016 15:03 UTC
I plan on listening in for sure
so today I’m going to try and tackle the ‘ol cron. Anyone have some examples they can share?
David Cintron
@loudestnoise
Jun 02 2016 15:08 UTC
*/5 * * * * (cd ~/openaps && openaps loop) 2>&1 | logger -t openaps-loop
is what I have in there now
David Cintron
@loudestnoise
Jun 02 2016 15:11 UTC
@baughaw Yeah, I’ve looked at that. It looked like that was for retrying the loop, not the initial run
David Cintron
@loudestnoise
Jun 02 2016 15:22 UTC
and my cron seems to be running my openaps loop but it is complaining about a entries.json file not existing
Jun  2 10:21:16 raspberrypi openaps-loop: }ns-status://JSON/shell/monitor/upload-status.json
Jun  2 10:21:16 raspberrypi openaps-loop: reporting monitor/upload-status.json
Jun  2 10:21:16 raspberrypi openaps-loop: Input file entries.json does not exist.
Jun  2 10:21:16 raspberrypi openaps-loop: No CGM data.
but when I run the loop manually I don’t have that issue
ryanchen26
@ryanchen26
Jun 02 2016 15:29 UTC
@loudestnoise Did you add the Nightscout url and API_Secret to your crontab? I had the same issue previously and @bewest answered it with 2 options.
David Cintron
@loudestnoise
Jun 02 2016 15:30 UTC
Suuuuurrrre didn’t!
lemme give that a whirl
ryanchen26
@ryanchen26
Jun 02 2016 15:30 UTC
search above to review what he instructed.
David Cintron
@loudestnoise
Jun 02 2016 15:34 UTC
@ryanchen26 do you know aprox when it was he was talking about that? Gitter search leaves much to be desired
ryanchen26
@ryanchen26
Jun 02 2016 15:36 UTC
there are two ways to fix it: 1) (my preferred way) is to use nightscout autoconfigure-device-crud to create a new ns device and use that instead of ns-upload $NIGHTSCOUT_HOST $API_SECRET using openaps use ns shell upload
2.) add NIGHTSCOUT_HOST=aaaa.mysite.com and API_SECRET=mydemosecret in the crontab
Here copied and pasted for your convenience.
David Cintron
@loudestnoise
Jun 02 2016 15:37 UTC
Oh thanks. Ok, so maybe I should re-do that bit to use an ns device. I think I was just following the docs that reference ns-upload
JaysonEwer
@JaysonEwer
Jun 02 2016 16:34 UTC
@billstackpole @jaylagorio meet. :-)
Bill Stackpole
@billstackpole
Jun 02 2016 16:35 UTC
thank you!
@jaylagorio - I have a 522 donor pump. Tell me where to ship
JaysonEwer
@JaysonEwer
Jun 02 2016 16:35 UTC
@jaylagorio I am very sorry I haven't sent my 515 to you yet. Apparently @billstackpole has a 522 for you as well. I will do my best to get mine to you soon!
You're welcome. :-).
Sarah Hodson Grady
@shgrady
Jun 02 2016 16:40 UTC
I am trying to order a pump online, since I have an Omnipod, any recommendations on which is best, I have seen the list for OpenAPS.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 16:45 UTC
@ryanchen26 Speaking of that nightscout autoconfig part. I was so stuck yesterday, and couldnt get that going. I had it before. Does my autoconfig NOT contain the hash? so is the FIRST thing I enter the nightscout auto-configure...WITHOUT my autoconf? Then, when I enter my autoconfig part, do I also add the hyphen -device-crud OR just -crud?
@loudestnoise Congrats on getting so far!
Lynne Butts
@flutelynne_twitter
Jun 02 2016 16:54 UTC
Would I do openaps device add nightscout auto-config device crud first?
Maybe that was my mistake.
ryanchen26
@ryanchen26
Jun 02 2016 17:00 UTC
@flutelynne_twitter I've only been digging into this for about a week now. I'm still trying to get comfortable with all this and fix stuff in my setup ( like getting the Carbs to show up on the COB and the dialog box when clicking the openaps pill). I fixed my IOB issue last night, after realizing that this system calculates basal IOB in a way that is totally reasonable (given the throttling) but not something we've ever considered as just regular Animas OneTouch Ping users.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 17:02 UTC
@ryanchen26 I am coming from the Ping, also. I used my 515 back around 2005 or earlier, I believe. Hard to remember.
I don't have anything in my openaps pill or pump pill. Been stuck there. Now can't remember how to add ns as the device.
Reading the docs over and over, I am still unsure.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 17:08 UTC
openaps device process?
ryanchen26
@ryanchen26
Jun 02 2016 17:09 UTC
I found it helpful to use the "cat" command to look at contents of the reports, to look at the composition of the various .ini files to see dependencies, and then using the "nano" function to just directly edit the openaps.ini for troubleshooting. I'm probably going to draw out a nice flow chart at some point to explain to my wife what is going on.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 17:12 UTC
Wow. I'm on my own with this. My husband is not too interested.
ryanchen26
@ryanchen26
Jun 02 2016 17:14 UTC
I'm doing this for my son. It has my full attention.
Sarah Hodson Grady
@shgrady
Jun 02 2016 17:15 UTC
My husband anti-technology, but he is all for not being woken up all night everynight :)
Dana Lewis
@danamlewis
Jun 02 2016 17:16 UTC
@ryanchen26 flowchart might be a cool tool to share if you're open to it :)
Tom Boudreau
@tomasboudr
Jun 02 2016 17:16 UTC
Has anyone tried to use a minimed
Lynne Butts
@flutelynne_twitter
Jun 02 2016 17:16 UTC
Sure. I try to tell him that I won't have to stop few miles to fix my levels, even with nightscout/pebble
Tom Boudreau
@tomasboudr
Jun 02 2016 17:17 UTC
Connect with an older pump. Online it says it only works with the 530g
i'm going to order it anyways as it has a 30 day return policy. Cc to @JaysonEwer as it is only 99 bucks now
Also I would like to extend a HUGE thanks to @JaysonEwer and his wife for throwing a great DC area OpenAPS meetup last night.
Dana Lewis
@danamlewis
Jun 02 2016 17:23 UTC
+1 @tomasboudr re props to @JaysonEwer
Tom Boudreau
@tomasboudr
Jun 02 2016 17:23 UTC
Q for everyone. Is there a room dedicated to working on comparability with the 530g?
Brian Bonner
@itsn0tm3
Jun 02 2016 17:23 UTC
Went to the Endo today and found out I had a 6.0 HA1C, Excited!!
ryanchen26
@ryanchen26
Jun 02 2016 17:24 UTC
@danamlewis Yes I'm open to it. I'll work on it very soon (to check my own thinking as well). I should probably send it to you or @bewest for review before sharing it widely. I'll probably miss something on the first pass.
ericmtx
@ericmtx
Jun 02 2016 17:24 UTC
Congrats
Dana Lewis
@danamlewis
Jun 02 2016 17:24 UTC
:+1: :clap:
@ryanchen26 sure, sounds great
Tom Boudreau
@tomasboudr
Jun 02 2016 17:25 UTC
@danamlewis hope your Lobbying went well today!
It was a pleasure meeting you and @scottleibrand last night.
Dana Lewis
@danamlewis
Jun 02 2016 17:26 UTC
It's not lobbying, but in the workshop right now! :) https://twitter.com/danamlewis/status/738409261450039296
Ditto!
JaysonEwer
@JaysonEwer
Jun 02 2016 17:37 UTC
@tomasboudr @danamlewis @scottleibrand @audiefile @PazolesBrooke_twitter @Pazoles We thoroughly enjoyed having you all out last night. I know some of you traveled many many miles, Thanks! Special guests from Norway and Iceland, 😉 Baltimore, Springfield, Alexandria, Seattle.
Dana Lewis
@danamlewis
Jun 02 2016 17:38 UTC
:+1: :sparkles:
JaysonEwer
@JaysonEwer
Jun 02 2016 17:38 UTC
@tomasboudr As far as I know the MM connect is a "read-only" device. Until we send a few to @bewest and he works his magic. 😜
I'm not aware of a group working on that, @danamlewis , are you?
Dana Lewis
@danamlewis
Jun 02 2016 17:40 UTC
I think everyone jumped to looking into the 6-series
Tom Boudreau
@tomasboudr
Jun 02 2016 17:41 UTC
@JaysonEwer read only is fine. I just wanted to see if anyone can confirm it will read from a 722
Dana Lewis
@danamlewis
Jun 02 2016 17:41 UTC
I don't believe it will...?
JaysonEwer
@JaysonEwer
Jun 02 2016 17:42 UTC
I don think so.
I'd like to petition Medtronic to provide the details we need to enable the connect device to be the bridge between the 530G and OpenAPS.
Scott Leibrand
@scottleibrand
Jun 02 2016 17:43 UTC
Most of what the Minimed connect does relies on the MySentry broadcasts from the 523 and 530G, so that part won't work with 522 and older.
AFAIK the firmware on the 530G is locked down so it will never be usable for OpenAPS (without "investigational use only" firmware).
Sarah Hodson Grady
@shgrady
Jun 02 2016 17:45 UTC
Medtronic MiniMed 522/722 is on the list, can you clarify?
Dana Lewis
@danamlewis
Jun 02 2016 17:45 UTC
@shgrady the 522/722 will work with openaps. We are talking about something else (a read-only tool from Medtronic hat works with newer models)
Scott Leibrand
@scottleibrand
Jun 02 2016 17:45 UTC
There are good prospects for making a microbolus-based loop with the 640G, but not sure if that will ever be FDA approved. Might mean we can do something similar with 670G though.
Sarah Hodson Grady
@shgrady
Jun 02 2016 17:46 UTC
@shgrady the 522/722 will work with openaps. We are talking about something else (a read-only tool from Medtronic hat works with newer models) Sorry, Thanks, don't want to buy the wrong one.
Dana Lewis
@danamlewis
Jun 02 2016 17:46 UTC
:+1: no worries!
Tom Boudreau
@tomasboudr
Jun 02 2016 18:01 UTC
sadness about the MM connect. I was hoping just to use it to see CGM on my phone. Guess I'll have to use NS afterall @scottleibrand :p
Bill Stackpole
@billstackpole
Jun 02 2016 18:08 UTC
somehow I have turned on AMA on only one of my newly configured pi devices. Any easy way to turn that off? (My suggested.json indicates that it cant or wont suggest w/AMA on and Im not yet ready to learn how to manage all that <smile>)
do I simply delete the "device meal" in openaps.ini?
Scott Leibrand
@scottleibrand
Jun 02 2016 18:15 UTC
That's probably not AMA, just meal assist.
There is a new FAQ just added about fixing your remainder if that is triggering it.
Bill Stackpole
@billstackpole
Jun 02 2016 18:17 UTC
hmm. Getting a message on my Pi2 (putting Slice Of Radio on that and copied all my scripts to it) but can't get it to complete an enact. The suggested.json states
[{"msg":"Optional feature Meal Assist enabled, but could not read required meal data.","file":"[]","error":{"errno":34,"code":"ENOENT","path":"[]","syscall":"open"}}]
so is there simply a "meal assist" that I don't know about (as well as an ADVANCED meal assist?)
so much to learn about!
David Cintron
@loudestnoise
Jun 02 2016 18:17 UTC
“make sure it’s not the wild west"
FDA lady on AP devices
Screen Shot 2016-06-02 at 1.18.18 PM.png
Sarah Hodson Grady
@shgrady
Jun 02 2016 18:18 UTC
@loudestnoise The idea of a hobby, in time I used to worry about diabetes....ha I just want some uninterrupted sleep :)
Jarred Yaw
@jyaw
Jun 02 2016 18:36 UTC
This conversation... sheesh
David Cintron
@loudestnoise
Jun 02 2016 18:36 UTC
I know...
Jarred Yaw
@jyaw
Jun 02 2016 18:36 UTC
the one on the webinar that is
David Cintron
@loudestnoise
Jun 02 2016 18:36 UTC
Yep
“We’re not saying you can’t"
Jarred Yaw
@jyaw
Jun 02 2016 18:37 UTC
"what I hear you saying is..."
haha
Dana Lewis
@danamlewis
Jun 02 2016 18:37 UTC
Summary for those who are otherwise occupied?
Sarah Hodson Grady
@shgrady
Jun 02 2016 18:37 UTC
if you are part of a community, are you endangering people......
David Cintron
@loudestnoise
Jun 02 2016 18:38 UTC
they’re talking about DIY
Jarred Yaw
@jyaw
Jun 02 2016 18:38 UTC
your algorithm might not work for someone else
Dana Lewis
@danamlewis
Jun 02 2016 18:39 UTC
Sounds like what they've always said. https://twitter.com/diabetespac/status/738439340519526400
David Cintron
@loudestnoise
Jun 02 2016 18:39 UTC
They were talking about interoperability
C-Ville
@C-Ville
Jun 02 2016 18:39 UTC
so sad, that you have to dial in on a USA number. I would have been very interested
Jarred Yaw
@jyaw
Jun 02 2016 18:39 UTC
Coutney did mention that they wouldnt come after you since its not high on their priority list
David Cintron
@loudestnoise
Jun 02 2016 18:39 UTC
although she started talking about digital cameras and “plug n play"
I thought, what is this, Windows XP?
LOL
@C-Ville strange they didn’t offer just audio over the webex itself
C-Ville
@C-Ville
Jun 02 2016 18:41 UTC
@loudestnoise that is what I was counting on. I prefer having these web conferences with a headset
Dana Lewis
@danamlewis
Jun 02 2016 18:41 UTC
Hopefully it's recorded for play back
Sarah Hodson Grady
@shgrady
Jun 02 2016 18:41 UTC
supposed to be
David Cintron
@loudestnoise
Jun 02 2016 18:42 UTC
Says it’s recording in the webex window
C-Ville
@C-Ville
Jun 02 2016 18:42 UTC
on the initial site the say the will have a link later
Dana Lewis
@danamlewis
Jun 02 2016 18:42 UTC
:+1:
C-Ville
@C-Ville
Jun 02 2016 18:42 UTC
+y :-)
David Cintron
@loudestnoise
Jun 02 2016 18:44 UTC
Q&A time!
Sarah Hodson Grady
@shgrady
Jun 02 2016 18:47 UTC
great first question, I can see on my phone my child is dropping, why won't this moronic pump stop giving them insulin, isn't waiting a greater risk, when Europe already has auto-suspend?
David Cintron
@loudestnoise
Jun 02 2016 18:47 UTC
oh this guy is great
question guy
WHEN IS AP COMING?!
name dropped #WeAreNotWaiting hashtag!
Jarred Yaw
@jyaw
Jun 02 2016 18:54 UTC
wow, she just asked them to require it to be bigger (mandate 2 pump system)
David Cintron
@loudestnoise
Jun 02 2016 18:59 UTC
Transcript & Webinar Recording will be available at: http://www.fda.gov/training/cdrhlearn
is what slide says now
C-Ville
@C-Ville
Jun 02 2016 19:01 UTC
okay thanks, I guess I will have to wait until tomorrow
Jarred Yaw
@jyaw
Jun 02 2016 19:11 UTC
I'm not really sure there was anything new worth hearing in that webinar... If you missed it, you didnt miss much
Sarah Hodson Grady
@shgrady
Jun 02 2016 19:11 UTC
@jyaw I think she wanted you to have a pump and a back-up pump. I am ok with overnighted to keep costs down.
Jarred Yaw
@jyaw
Jun 02 2016 19:12 UTC
ah, I tuned out after I thought she was talking about separate pumps for a bi-hormonal system I guess, my mistake
Pete Schwamb
@ps2
Jun 02 2016 19:13 UTC
Anyone have a link to the church falls CWD video that was mentioned?
Sarah Hodson Grady
@shgrady
Jun 02 2016 19:13 UTC
I heard some desperation, that woman sounded like she was calling about her grandchild.
C-Ville
@C-Ville
Jun 02 2016 19:17 UTC
I only have it running for close to a months now and I do get desperate if I am off the loop :-)
Andrew Baugh
@baughaw
Jun 02 2016 19:55 UTC
@ps2 Not sure if this is it... http://www.childrenwithdiabetes.com/video/
Scott Leibrand
@scottleibrand
Jun 02 2016 19:55 UTC
@billstackpole yes, meal assist is in master now. looks like your remainder = [ ] is triggering it. change that to remainder = and it will stop trying
@billstackpole sorry, thought it was in the FAQ, but it's only at openaps/oref0#124
Ben West
@bewest
Jun 02 2016 19:58 UTC
I came up with a snippet that looks for that problem and fixes it
Scott Leibrand
@scottleibrand
Jun 02 2016 19:59 UTC
if you'd like to add it, a PR to https://github.com/openaps/docs/blob/master/docs/docs/Resources/troubleshooting.md detailing the error message and how to fix it (preferably with Ben's snippet) would be great
Ben West
@bewest
Jun 02 2016 19:59 UTC
openaps report show --json |json -g | json -c "this[this.name].remainder == '[]'" | json -e "delete this[this.name].remainder" | openaps import should remove all remainder = []
Andrew Baugh
@baughaw
Jun 02 2016 20:11 UTC
worked for me. stripped 3 out of my config
Paul Martin
@Spazholio
Jun 02 2016 20:16 UTC
Does anyone have any recommendations for specific USB cables that I can plug into both the battery and console (or OTG) ports on my Sparkfun setup?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:29 UTC
@bewest Good afternoon. Do you have time to help me get the nightscout config? Do I do openaps device add ns process etc? If you don't have time now, I can get back this evening. No problem
Ben West
@bewest
Jun 02 2016 20:30 UTC
sure
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:30 UTC
Thank you
Ben West
@bewest
Jun 02 2016 20:30 UTC
we're in abouttime area with all the openaps stuff configured I think
not sure we got everything actually, hard to remember
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:30 UTC
I hope
Ben West
@bewest
Jun 02 2016 20:30 UTC
think you have bunch of alias set up openaps alias show
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:33 UTC
:~/abouttime $ openaps alias show
rm-warmup ! bash -c "rm -f model.json monitor/clock.json > /dev/null"
warmup report invoke model.json raw-pump/clock-raw.json monitor/clock.json
fail-warmup ! bash -c "echo PREFLIGHT FAIL; exit 1"
preflight ! bash -c "(openaps rm-warmup; echo PREFLIGHT ) && openaps warmup 2>&1 >/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || openaps fail-warmup"
monitor-cgm report invoke monitor/glucose-raw.json monitor/glucose.json
monitor-pump-history report invoke monitor/pump-history-raw.json monitor/pump-history.json
get-basal-status report invoke monitor/temp-basal-status.json
get-pump-details report invoke monitor/reservoir.json monitor/status.json monitor/battery.json
get-settings report invoke settings/bg-targets-raw.json settings/bg-targets.json settings/insulin-sensitivities-raw.json settings/insulin-sensitivities.json settings/selected-basal-profile.json settings/settings.json
gather-pump-data ! bash -c "openaps get-basal-status; openaps get-pump-details; openaps monitor-pump-history; openaps get-settings"
gather-clean-data ! bash -c "openaps monitor-cgm && openaps gather-pump-data"
do-oref0 report invoke oref0-monitor/profile.json oref0-monitor/iob.json oref0-predict/oref0.json
enact-oref0 report invoke oref0-enacted/enacted-temp-basal.json
do-everything ! bash -c "openaps preflight && openaps gather-clean-data && openaps do-oref0 && openaps enact-oref0"
pi@raspberrypi:~/abouttime $
sorry had to sign in again. the receiver is charging now
Ben West
@bewest
Jun 02 2016 20:33 UTC
openaps use ns shell preflight
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:34 UTC
~/abouttime $ openaps use ns shell preflight
usage: openaps-use [-h] [--format {text,json,base,stdout}] [--output OUTPUT]
[--version]
device ...
openaps-use: error: argument device: invalid choice: 'ns' (choose from u'Clark', u'Maxim', u'calculate-iob', u'detect-sensitivity', u'determine-basal', u'get-profile', u'oref0', u'pump', u'tz', u'units')
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 20:34 UTC
ok
great
nightscout autoconfigure-device-crud https://my.herokuapp.com mylongplainapisecretfromheroku
with your website name and your plain api secret, you can copy/paste it from heroku, should match
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:36 UTC
ok. so substitute the above. do I do myautoconfig-device-crud or just myautoconfig-crud?
Ben West
@bewest
Jun 02 2016 20:37 UTC
it starts with nightscout autoconfigure-device-crud
then your website, then the same plain api secret that is in heroku
don't worry, we'll test it and do it again if it's not quite right
once we get this working we'll take some backups :-)
Paul Martin
@Spazholio
Jun 02 2016 20:39 UTC
/usr/local/bin/nightscout: line 197: json: command not found <— so…what package provides the json executable? =)
Ben West
@bewest
Jun 02 2016 20:39 UTC
hmm
sudo npm install -g json
Paul Martin
@Spazholio
Jun 02 2016 20:39 UTC
I think I need to do some work on the Edison prep docs.
Ahhh, wasn’t aware it was a NPM package.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:41 UTC
YAY! I thought that I was supposed to configure that, then paste in my auto-config part, then my website and api secret. Oh man!
Ben West
@bewest
Jun 02 2016 20:42 UTC
yeah, if you type in nightscout autoconfigure-device-crud, that's the tool name, it'll print a help message
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:43 UTC
ok but don't do that now, right? I'm writing this down
Ben West
@bewest
Jun 02 2016 20:43 UTC
nightscout autoconfigure-device-crud <NIGHTSCOUT_HOST> <API_SECRET>

sets up:
openaps use ns shell get entries.json 'count=10'
openaps use ns shell upload treatments.json recently/combined-treatments.json



## Nightscout Endpoints

* entries.json - Glucose values, mbgs, sensor data.
* treatments.json - Pump history, bolus, treatments, temp basals.
* devicestatus.json - Battery levels, reservoir.
* profile.json - Planned rates/settings/ratios/sensitivities.
* status.json  - Server status.

## Examples

[... continues for quite a bit]
mine looks like this when I type $ nightscout autoconfigure-device-crud
prints this message for help
so that part is literal, then the website, then the api secret
this is only done once at the beginning... we're doing it again because it got accidentally upset earlier
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:44 UTC
Got it. Ugh my brain is slow.

:~/abouttime $ nightscout autoconfigure-device-crud
nightscout autoconfigure-device-crud <NIGHTSCOUT_HOST> <API_SECRET>

sets up:
openaps use ns shell get entries.json 'count=10'
openaps use ns shell upload treatments.json recently/combined-treatments.json
pi@raspberrypi:~/abouttime $

Ben West
@bewest
Jun 02 2016 20:46 UTC
yeah, that was to demonstrate the tool exists and can be run
fjungman
@fjungman
Jun 02 2016 20:46 UTC
@loudnate does the openaps-monitor still work with the current version? I see it is ~6 months old, but I would like to setup a graph so I can see the results easier. Have been looping for three days now with real data on a dummy pump. Everything looks good, but viewing it from different angles is always a good idea...
Ben West
@bewest
Jun 02 2016 20:46 UTC
now you need to add your website hostname and api secret to the end of that
so it'll look something like nightscout autoconfigure-device-crud https://mine.herokuapp.com longpassphrase
but replace https://mine.herokuapp.com so it's your website
and longpassphrase with your api secret
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:47 UTC
Oh, yeah, I did that part already. didn't know if I should post it.
Ben West
@bewest
Jun 02 2016 20:47 UTC
we just do this once here
oh ok
openaps use ns shell preflight
we test it now :-)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:48 UTC
~/abouttime $ openaps use ns shell preflight
truepi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 20:48 UTC
wonderful
great
ok, just going to test a few more things
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:49 UTC
sure
Ben West
@bewest
Jun 02 2016 20:49 UTC
openaps report show monitor/glucose.json
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:49 UTC
~/abouttime $ openaps report show monitor/glucose.json
Maxim://JSON/rezone/monitor/glucose.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 20:50 UTC
hmmm
ok let's try to pull in some data
g5 is connected via usb?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:50 UTC
should i plug in the receiver?
Ben West
@bewest
Jun 02 2016 20:50 UTC
yeah
if possible
I know it was flaky yesterday
is receiver getting data?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:51 UTC
yes
Ben West
@bewest
Jun 02 2016 20:51 UTC
:-)
openaps use Maxim config
Paul Martin
@Spazholio
Jun 02 2016 20:51 UTC
Hey @bewest, I’d love to use some of the new scaffolding that you’ve created, but you’re so close with @flutelynne_twitter I don’t want to throw off your mojo. So if you have a page or PR or something where you’ve got some examples of how to implement it, I’ll go from there. =)
Ben West
@bewest
Jun 02 2016 20:51 UTC
should say something about "model": "G5"
@Spazholio I've been updating the issues
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:52 UTC
yes, it does
Ben West
@bewest
Jun 02 2016 20:52 UTC
the stuff I would put in a doc is basically what I have in the issues themselves
oh great
Paul Martin
@Spazholio
Jun 02 2016 20:52 UTC
For openaps/oref0?
Ben West
@bewest
Jun 02 2016 20:52 UTC
let's try to pull in bunch of data
openaps gather-clean-data
Paul Martin
@Spazholio
Jun 02 2016 20:52 UTC
I’ll comb through them. Thanks.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:53 UTC
~/abouttime $ openaps gather-clean-data
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
reporting monitor/glucose-raw.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 24, in main
task = app.actions.commands['add'].usages.commands[device.name].method.commands[report.fields['use']]
KeyError: 'rezone'
Ben West
@bewest
Jun 02 2016 20:53 UTC
@Spazholio yeah, https://github.com/openaps/docs/issues/132#issuecomment-215565256 has a quick run through from scratch
Paul Martin
@Spazholio
Jun 02 2016 20:53 UTC
I still haven’t gotten anything soldered, but since I FINALLY got WiFi working, I’mma get the rest of this at least run through. =)
Ben West
@bewest
Jun 02 2016 20:53 UTC
@flutelynne_twitter ok: openaps device show tz
@Spazholio I haven't done any soldering
@Spazholio I've used this technique to set up openaps from scratch in under thirty minutes
Paul Martin
@Spazholio
Jun 02 2016 20:54 UTC
Well, I want to try using the BO board as well as the Sparkfun.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:54 UTC
~/abouttime $ openaps device show tz
timezones://tz
Paul Martin
@Spazholio
Jun 02 2016 20:54 UTC
Using the Dexcom via USB?
Argh.
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:54 UTC
yes
Paul Martin
@Spazholio
Jun 02 2016 20:54 UTC
TI stick, I meant. =)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:54 UTC
ok @Spazholio
Ben West
@bewest
Jun 02 2016 20:55 UTC
@Spazholio I'm using g4 with share using openxshareble
Paul Martin
@Spazholio
Jun 02 2016 20:55 UTC
That’s an android thing, isn’t it?
Ben West
@bewest
Jun 02 2016 20:56 UTC
no, it's openaps
Paul Martin
@Spazholio
Jun 02 2016 20:56 UTC
Oh? Hmm. I shall dig in.
Ben West
@bewest
Jun 02 2016 20:56 UTC
it's in the doc I just linked :-)
Paul Martin
@Spazholio
Jun 02 2016 20:56 UTC
I see that. =)
Ben West
@bewest
Jun 02 2016 20:57 UTC
I would just try it out on a laptop or something just to see how it works
Paul Martin
@Spazholio
Jun 02 2016 20:57 UTC
Oh wait, was this the one that works via BT? So I couldn’t link it with my phone anymore or something?
Ben West
@bewest
Jun 02 2016 20:58 UTC
@flutelynne_twitter openaps report show
Lynne Butts
@flutelynne_twitter
Jun 02 2016 20:59 UTC
~/abouttime $ openaps report show
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
Maxim://JSON/GetFirmwareHeader/cgm-vendor.json
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
Maxim://JSON/oref0_glucose/raw-cgm/entries.json
Maxim://JSON/iter_calibrations/raw-cgm/calibrations.json
Maxim://JSON/rezone/monitor/glucose.json
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
pump://JSON/read_clock/raw-pump/clock-raw.json
tz://JSON/clock/monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
determine-basal://text/shell/oref0-predict/oref0.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
pump://JSON/model/model.json
pump://JSON/reservoir/monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
oref0://JSON/shell/settings/settings.json
pump://JSON/read_settings/raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
pump://JSON/read_temp_basal/raw-pump/temp-basal-status.json
pump://JSON/reservoir/raw-pump/reservoir.json
pump://JSON/read_status/raw-pump/status.json
pump://JSON/read_battery_status/raw-pump/battery.json
get-profile://text/shell/oref0-monitor/profile.json
calculate-iob://text/shell/oref0-monitor/iob.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:16 UTC
ah
ok
curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/a4c76368249f9bdc13dbe923acb3732c285d6d72/cgm-maxim-reports.json | openaps import
I messed up one of the reports earlier, this should fix it
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:19 UTC
~/abouttime $ curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/a4c76368249f9bdc13dbe923acb3732c285d6d72/cgm-maxim-reports.json | openaps import
cgm://JSON/iter_glucose/monitor/glucose-raw.json
Maxim://JSON/GetFirmwareHeader/cgm-vendor.json
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
Maxim://JSON/oref0_glucose/raw-cgm/entries.json
Maxim://JSON/iter_calibrations/raw-cgm/calibrations.json
tz://JSON/rezone/monitor/glucose.json
Ben West
@bewest
Jun 02 2016 21:19 UTC
nice
openaps gather-clean-data
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:20 UTC
~/abouttime $ openaps gather-clean-data
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 23, in main
device = app.devices[report.fields['device']]
KeyError: 'cgm'
Ben West
@bewest
Jun 02 2016 21:20 UTC
heh
ok
ok one more
I missed one :-)
curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/ed3b0846ed44069a35384716c26b14a9a6a88b49/cgm-maxim-reports.json | openaps import
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:22 UTC
understandable
~/abouttime $ curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/ed3b0846ed44069a35384716c26b14a9a6a88b49/cgm-maxim-reports.json | openaps import
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
Maxim://JSON/GetFirmwareHeader/cgm-vendor.json
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
Maxim://JSON/oref0_glucose/raw-cgm/entries.json
Maxim://JSON/iter_calibrations/raw-cgm/calibrations.json
tz://JSON/rezone/monitor/glucose.json
pi@raspberrypi:~/abouttime
~/abouttime $ openaps gather-clean-data
Maxim://JSON/iter_glucose/monitor/glucose-raw.json
reporting monitor/glucose-raw.json
tz://JSON/rezone/monitor/glucose.json
monitor/glucose.json raised can't open 'raw-cgm/glucose-raw.json': [Errno 2] No such file or directory: 'raw-cgm/glucose-raw.json'
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openapscontrib-0.0.9-py2.7.egg/openapscontrib/timezones/_init.py", line 85, in main
inputs = self.get_program(args)
File "/usr/local/lib/python2.7/dist-packages/openapscontrib-0.0.9-py2.7.egg/openapscontrib/timezones/_init.py", line 57, in get_program
program = json.load(argparse.FileType('r')(params.get('input')))
File "/usr/lib/python2.7/argparse.py", line 1142, in call
raise ArgumentTypeError(message % (string, e))
argparse.ArgumentTypeError: can't open 'raw-cgm/glucose-raw.json': [Errno 2] No such file or directory: 'raw-cgm/glucose-raw.json'
pi@raspberrypi:~/abouttime $
ran the gather clean data one again^^
Ben West
@bewest
Jun 02 2016 21:25 UTC
curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/181c5d6f29cd6489ecc9630786cf2c4937ddde79/bewest-aliases.json | openaps import
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:26 UTC
~/abouttime $ curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/181c5d6f29cd6489ecc9630786cf2c4937ddde79/bewest-aliases.json | openaps import
rm-warmup ! bash -c "rm -f model.json monitor/clock.json > /dev/null"
warmup report invoke model.json raw-pump/clock-raw.json monitor/clock.json
fail-warmup ! bash -c "echo PREFLIGHT FAIL; exit 1"
preflight ! bash -c "(echo PREFLIGHT ) && openaps warmup 2>&1 >/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || openaps fail-warmup"
monitor-cgm report invoke raw-cgm/glucose-raw.json monitor/glucose.json
monitor-pump-history report invoke raw-pump/pump-history-raw.json monitor/pump-history.json
get-basal-status report invoke monitor/temp-basal-status.json
get-pump-details report invoke monitor/reservoir.json monitor/status.json monitor/battery.json
get-settings report invoke raw-pump/bg-targets-raw.json settings/bg-targets.json raw-pump/insulin-sensitivities-raw.json settings/insulin-sensitivities.json raw-pump/selected-basal-profile.json raw-pump/settings.json settings/selected-basal-profile.json settings/settings.json
gather-pump-data ! bash -c "openaps get-basal-status; openaps get-pump-details; openaps monitor-pump-history; openaps get-settings"
gather-clean-data ! bash -c "openaps monitor-cgm && openaps gather-pump-data"
do-oref0 report invoke oref0-monitor/profile.json oref0-monitor/iob.json oref0-predict/oref0.json
enact-oref0 report invoke oref0-enacted/enacted-temp-basal.json
do-everything ! bash -c "(openaps preflight && openaps gather-clean-data && openaps do-oref0 && openaps enact-oref0); openaps report-nightscout"
ping ! bash -c "echo PONG! $*" --
pong ! echo PONG
hello ! echo hello
okbar ! bash -c "echo $1" --
report-nightscout report invoke nightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:26 UTC
ok :-)
openaps gather-clean-data
sans issues this time
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:27 UTC
~/abouttime $ openaps gather-clean-data
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
raw-cgm/glucose-raw.json raised Python int too large to convert to C long
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/dexcom.py", line 405, in main
for egv, raw in itertools.izip_longest(iter_glucose, iter_sensor):
File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/readdata.py", line 300, in iter_records
for x in reversed(xrange(start, end)):
OverflowError: Python int too large to convert to C long
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:27 UTC
ah
sigh...
ok
openaps report add raw-cgm/glucose-raw.json JSON oref0_glucose --hours "2.0" --threshold "100" --no-raw
I forgot, G5 has no "raw" data ;-)
that should hopefully redefine that report
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:30 UTC
I was going to say something, but I wasn't sure if I would be right.
~/abouttime $ openaps report add raw-cgm/glucose-raw.json JSON oref0_glucose --hours "2.0" --threshold "100" --no-raw
usage: openaps-report add [-h] report {base,text,stdout,JSON} device ...
openaps-report add: error: argument device: invalid choice: 'oref0_glucose' (choose from u'Clark', u'Maxim', u'calculate-iob', u'detect-sensitivity', u'determine-basal', u'get-profile', u'ns', u'oref0', u'pump', u'tz', u'units')
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:30 UTC
oh, right
missing something there
ok: openaps report add raw-cgm/glucose-raw.json JSON Maxim oref0_glucose --hours "2.0" --threshold "100" --no-raw
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:31 UTC
~/abouttime $ openaps report add raw-cgm/glucose-raw.json JSON Maxim oref0_glucose --hours "2.0" --threshold "100" --no-raw
added Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:31 UTC
:-)
openaps gather-clean-data
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:32 UTC
~/abouttime $ openaps gather-clean-data
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
reporting raw-cgm/glucose-raw.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
reporting monitor/temp-basal-status.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
reporting monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
reporting raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
reporting monitor/pump-history.json
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
reporting raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
reporting settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
reporting raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
reporting settings/insulin-sensitivities.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
reporting raw-pump/selected-basal-profile.json
pump://JSON/read_settings/raw-pump/settings.json
reporting raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
reporting settings/selected-basal-profile.json
oref0://JSON/shell/settings/settings.json
reporting settings/settings.json
pi@raspberrypi:~/abouttime $
wow
Ben West
@bewest
Jun 02 2016 21:35 UTC
ok
now we have data to work with :-)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:36 UTC
wonderful Thank you!
Ben West
@bewest
Jun 02 2016 21:39 UTC
curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/522155bae116983499bb1de30f10f52eb3c4b6b7/ns-reports.json | openaps import
this will set up nightscout reports based on this data
for treatments and entries
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:40 UTC
~/abouttime $ curl -sg https://gist.githubusercontent.com/bewest/d3db9ca1c144b845382c885138a8f66e/raw/522155bae116983499bb1de30f10f52eb3c4b6b7/ns-reports.json | openaps import
ns://JSON/shell/nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
ns://JSON/shell/nightscout/preflight.json
Ben West
@bewest
Jun 02 2016 21:41 UTC
openaps do-everything
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:43 UTC

~/abouttime $ openaps do-everything
PREFLIGHT
PREFLIGHT OK
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
reporting raw-cgm/glucose-raw.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
reporting monitor/temp-basal-status.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
reporting monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
reporting raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
reporting monitor/pump-history.json
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
reporting raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
reporting settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
reporting raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
reporting settings/insulin-sensitivities.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
reporting raw-pump/selected-basal-profile.json
pump://JSON/read_settings/raw-pump/settings.json
reporting raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
reporting settings/selected-basal-profile.json
oref0://JSON/shell/settings/settings.json
reporting settings/settings.json
get-profile://text/shell/oref0-monitor/profile.json

module.js:340
throw err;
^
Error: Cannot find module '/home/pi/abouttime/max-iob.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:60:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
reporting oref0-monitor/profile.json
calculate-iob://text/shell/oref0-monitor/iob.json

module.js:485
throw err;
^
SyntaxError: /home/pi/abouttime/oref0-monitor/profile.json: Unexpected end of input
at Object.parse (native)
at Object.Module._extensions..json (module.js:482:27)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js:43:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
reporting oref0-monitor/iob.json
determine-basal://text/shell/oref0-predict/oref0.json
Could not parse input data: [SyntaxError: /home/pi/abouttime/oref0-monitor/iob.json: Unexpected end of input]
reporting oref0-predict/oref0.json
pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
oref0-enacted/enacted-temp-basal.json raised No JSON object could be decoded
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 428, in main
program = self.get_program(

Ben West
@bewest
Jun 02 2016 21:44 UTC
wondeful
that's great
oref0-mint-max-iob 2 max-iob.json
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:45 UTC
~/abouttime $ oref0-mint-max-iob 2 max-iob.json
max_iob 2 saved in max-iob.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:45 UTC
openaps do-everything :-)
ericmtx
@ericmtx
Jun 02 2016 21:45 UTC
This is fun to watch. Cool to see it come alive
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:47 UTC
@ericmtx it's amazing. How could someone develop this? just great!
~/abouttime $ openaps do-everything
PREFLIGHT
PREFLIGHT OK
Maxim://JSON/oref0_glucose/raw-cgm/glucose-raw.json
reporting raw-cgm/glucose-raw.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
reporting monitor/temp-basal-status.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
reporting monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
reporting raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
reporting monitor/pump-history.json
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
reporting raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
reporting settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
reporting raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
reporting settings/insulin-sensitivities.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
reporting raw-pump/selected-basal-profile.json
pump://JSON/read_settings/raw-pump/settings.json
reporting raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
reporting settings/selected-basal-profile.json
oref0://JSON/shell/settings/settings.json
reporting settings/settings.json
get-profile://text/shell/oref0-monitor/profile.json
reporting oref0-monitor/profile.json
calculate-iob://text/shell/oref0-monitor/iob.json
reporting oref0-monitor/iob.json
determine-basal://text/shell/oref0-predict/oref0.json
{"delta":2,"glucose":112,"avgdelta":1.667}
{"duration":0,"rate":0.25,"temp":"absolute"}
{"iob":0,"activity":0,"bolussnooze":0,"basaliob":0,"netbasalinsulin":0,"hightempinsulin":0}
{"max_iob":2,"type":"current","dia":3,"skip_neutral_temps":false,"current_basal":0.5,"max_daily_basal":0.5,"max_basal":1.5,"min_bg":90,"max_bg":140,"sens":100}
Setting neutral temp basal of 0.5U/hr
reporting oref0-predict/oref0.json
pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
reporting oref0-enacted/enacted-temp-basal.json
ns://JSON/shell/nightscout/preflight.json
reporting nightscout/preflight.json
ns://JSON/shell/nightscout/recent-treatments.json
reporting nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
Nothing to upload.
reporting nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
reporting nightscout/recent-missing-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
reporting nightscout/uploaded-entries.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:47 UTC
yup, so that's what it looks like when it works
now....
we are finally just 2 steps from getting your openaps pill working
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:48 UTC
oh my gosh!
Ben West
@bewest
Jun 02 2016 21:48 UTC
notice anything happening?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:49 UTC
It's reading my BG, suggesting a temp basal of 0.25,...
also includes my pump settings
Ben West
@bewest
Jun 02 2016 21:50 UTC
hmm looks like 0.5U to my eye
did Nightscout update at all?
should have treatment circles/notes for lowbattery/reservoir changes
treatment circles are usually for bolus events
we can now work on the status pill
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:52 UTC
No
I have everything checked on the plugins
Ben West
@bewest
Jun 02 2016 21:54 UTC
it's probably fine, but we can see what it uploaded:
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:54 UTC
ok
Ben West
@bewest
Jun 02 2016 21:54 UTC
cat nightscout/uploaded.json
we can try working on the status also:
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:55 UTC
~/abouttime $ cat nightscout/uploaded.json
[]pi@raspberrypi:~/abouttime $
I did a bolus on the pump, using bolus wizard just now. running it dry, no reservoir
Ben West
@bewest
Jun 02 2016 21:57 UTC
now for status
oref0 device-helper ns-status 'ns-status $*' | openaps import
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:58 UTC
~/abouttime $ oref0 device-helper ns-status 'ns-status $' | opaps import
process://ns-status/bash/-c "ns-status $
" --
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:58 UTC
try this: openaps use ns-status shell monitor/clock.json oref0-monitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
Lynne Butts
@flutelynne_twitter
Jun 02 2016 21:59 UTC
~/abouttime $ openaps use ns-status shell monitor/clock.json oref0-monitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
{
"device": "openaps://raspberrypi",
"pump": {
"battery": {
"status": "normal",
"voltage": 1.35
},
"status": {
"status": "normal",
"timestamp": "2016-06-02T21:46:13.000Z",
"bolusing": false,
"suspended": false
},
"reservoir": 74.2,
"clock": "2016-06-02T16:45:34-05:00"
},
"openaps": {
"suggested": {
"bg": 112,
"temp": "absolute",
"snoozeBG": 117,
"timestamp": "2016-06-02T21:46:43.000Z",
"rate": 0.5,
"reason": "117-117 in range: no temp required; setting current basal of 0.5 as temp. Setting neutral temp basal of 0.5U/hr",
"eventualBG": 117,
"duration": 30,
"mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 100, Target: 115 Deviation: 5 BGI: 0",
"tick": "+2"
},
"iob": {
"netbasalinsulin": 0,
"timestamp": "2016-06-02T21:46:42.000Z",
"activity": 0,
"basaliob": 0,
"hightempinsulin": 0,
"bolussnooze": 0,
"iob": 0
},
"enacted": {
"bg": 112,
"temp": "absolute",
"snoozeBG": 117,
"recieved": true,
"reason": "117-117 in range: no temp required; setting current basal of 0.5 as temp. Setting neutral temp basal of 0.5U/hr",
"rate": 0.5,
"eventualBG": 117,
"timestamp": "2016-06-02T21:46:49.000Z",
"duration": 30,
"mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 100, Target: 115 Deviation: 5 BGI: 0",
"tick": "+2"
}
}
}pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 21:59 UTC
very nice
very very nice
ok now we save it as report:
openaps report add nightscout/openaps-status.json JSON ns-status shell monitor/clock.json oref0-monitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
I'm doing this with you in real time at this point
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:00 UTC
~/abouttime $ openaps report add nightscout/openaps-status.json SON ns-status shell monitor/clock.json oref0-monitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
added ns-status://JSON/shell/nightscout/openaps-status.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:00 UTC
so we're doing this together now
openaps report invoke nightscout/openaps-status.json now we invoke it once for fun to test generating that data
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:01 UTC
~/abouttime $ openaps report invoke nightscout/openaps-status.json
ns-status://JSON/shell/nightscout/openaps-status.json
reporting nightscout/openaps-status.json
pi@raspberrypi:~/abouttime $
Thank you. I understand that I have to know how this all works.
Ben West
@bewest
Jun 02 2016 22:02 UTC
now we test uploading it once: openaps use ns shell upload devicestatus.json nightscout/openaps-status.json
if that works, we'll save the report:
openaps report add nightscout/uploaded-recent-devicestatus.json JSON ns shell upload devicestatus.json nightscout/openaps-status.json added ns://JSON/shell/nightscout/uploaded-recent-devicestatus.json
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:03 UTC
~/abouttime $ openaps use ns shell upload devicestatus.json nightscout/openaps-status.json
[
{
"device": "openaps://raspberrypi",
"created_at": "2016-06-02T22:03:06.739Z",
"pump": {
"battery": {
"status": "normal",
"voltage": 1.35
},
"status": {
"status": "normal",
"timestamp": "2016-06-02T21:46:13.000Z",
"bolusing": false,
"suspended": false
},
"reservoir": 74.2,
"clock": "2016-06-02T16:45:34-05:00"
},
"_id": "5750ad1ad17a4c0b00c92cae",
"openaps": {
"suggested": {
"bg": 112,
"temp": "absolute",
"snoozeBG": 117,
"timestamp": "2016-06-02T21:46:43.000Z",
"reason": "117-117 in range: no temp required; setting current basal of 0.5 as temp. Setting neutral temp basal of 0.5U/hr",
"rate": 0.5,
"eventualBG": 117,
"duration": 30,
"mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 100, Target: 115 Deviation: 5 BGI: 0",
"tick": "+2"
},
"iob": {
"netbasalinsulin": 0,
"timestamp": "2016-06-02T21:46:42.000Z",
"activity": 0,
"basaliob": 0,
"hightempinsulin": 0,
"bolussnooze": 0,
"iob": 0
},
"enacted": {
"bg": 112,
"temp": "absolute",
"snoozeBG": 117,
"recieved": true,
"rate": 0.5,
"reason": "117-117 in range: no temp required; setting current basal of 0.5 as temp. Setting neutral temp basal of 0.5U/hr",
"eventualBG": 117,
"timestamp": "2016-06-02T21:46:49.000Z",
"duration": 30,
"mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 100, Target: 115 Deviation: 5 BGI: 0",
"tick": "+2"
}
}
}
]pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:03 UTC
fantastic
now we save the report with that last one
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:04 UTC
Info is there!
now it's not
I refresh the ns page, and it shows pump info and openaps, then it goes back to unknown, etc
Ben West
@bewest
Jun 02 2016 22:06 UTC
openaps alias add report-nightscout "report invoke nightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json nightscout/openaps-status.json nightscout/uploaded-recent-devicestatus.json"
this adjusts the alias to include the last thing we worked on
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:07 UTC
~/abouttime $ openaps alias add report-nightscout "report invokenightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json nightscout/openaps-status.json nightscout/uploaded-recent-devicestatus.json"
added report-nightscout report invoke nightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json nightscout/openaps-status.json nightscout/uploaded-recent-devicestatus.json
Ben West
@bewest
Jun 02 2016 22:07 UTC
great
you're all set
openaps do-everything does everything including upload to nightscout
to just test uploading to nightscout you can do openaps report-nightscout
with this set up, it will load everything, pump data, glucose, and openaps status pill to NS
Paul Martin
@Spazholio
Jun 02 2016 22:08 UTC
:clap: STANDING OVATION :clap:
Ben West
@bewest
Jun 02 2016 22:08 UTC
let's take a backup
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:08 UTC
So the cron part, etc. doesn't need to be here?
Ben West
@bewest
Jun 02 2016 22:08 UTC
oref0 export-loop | tee backup-loop.json
yeah, we need to do cron still
I have a another helper for that :-)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:09 UTC
I'm still doing-everything......then i will do the other two.
Ben West
@bewest
Jun 02 2016 22:09 UTC
well, all the openaps config stuff is done
you should take a backup with oref0 export-loop | tee backup-loop.json
and then to make it automatic, you still need to set up cron job
but I have another tool that makes it easy
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:10 UTC
~/abouttime $ openaps report-nightscout
usage: openaps-report invoke [-h]
{cgm-vendor.json,model.json,monitor/battery.json,monitor/clock.json,monitor/glucose-raw.json,monitor/glucose.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,nightscout/openaps-status.json,nightscout/preflight.json,nightscout/recent-missing-entries.json,nightscout/recent-treatments.json,nightscout/uploaded-entries.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.json,oref0-predict/oref0.json,raw-cgm/calibrations.json,raw-cgm/entries.json,raw-cgm/glucose-raw.json,raw-pump/battery.json,raw-pump/bg-targets-raw.json,raw-pump/clock-raw.json,raw-pump/insulin-sensitivities-raw.json,raw-pump/pump-history-raw.json,raw-pump/reservoir.json,raw-pump/selected-basal-profile.json,raw-pump/settings.json,raw-pump/status.json,raw-pump/temp-basal-status.json,settings/bg-targets.json,settings/insulin-sensitivities.json,settings/selected-basal-profile.json,settings/settings.json}
[{cgm-vendor.json,model.json,monitor/battery.json,monitor/clock.json,monitor/glucose-raw.json,monitor/glucose.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,nightscout/openaps-status.json,nightscout/preflight.json,nightscout/recent-missing-entries.json,nightscout/recent-treatments.json,nightscout/uploaded-entries.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.json,oref0-predict/oref0.json,raw-cgm/calibrations.json,raw-cgm/entries.json,raw-cgm/glucose-raw.json,raw-pump/battery.json,raw-pump/bg-targets-raw.json,raw-pump/clock-raw.json,raw-pump/insulin-sensitivities-raw.json,raw-pump/pump-history-raw.json,raw-pump/reservoir.json,raw-pump/selected-basal-profile.json,raw-pump/settings.json,raw-pump/status.json,raw-pump/temp-basal-status.json,settings/bg-targets.json,settings/insulin-sensitivities.json,settings/selected-basal-profile.json,settings/settings.json} ...]
openaps-report invoke: error: argument report: invalid choice: 'nightscout/uploaded-recent-devicestatus.json' (choose from u'cgm-vendor.json', u'model.json', u'monitor/battery.json', u'monitor/clock.json', u'monitor/glucose-raw.json', u'monitor/glucose.json', u'monitor/pump-history.json', u'monitor/reservoir.json', u'monitor/status.json', u'monitor/temp-basal-status.json', u'nightscout/openaps-status.json', u'nightscout/preflight.json', u'nightscout/recent-missing-entries.json', u'nightscout/recent-treatments.json', u'nightscout/uploaded-entries.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-monitor/iob.json', u'oref0-monitor/profile.json', u'oref0-predict/oref0.json', u'raw-cgm/calibrations.json', u'raw-cgm/entries.json', u'raw-cgm/glucose-raw.json', u'raw-pump/battery.json', u'raw-pump/bg-targets-raw.json', u'raw-pump/clock-raw.json', u'raw-pump/insulin-sensitivities-raw.json', u'raw-pump/pump-history-raw.json', u'raw-pump/reservoir.json', u'raw-pump/selected-basal-profile.json', u'raw-pump/settings.json', u'raw-pump/status.json', u'raw-pump/temp-basal-status.json', u'settings/bg-targets.json', u'settings/insulin-sensitivities.json', u'settings/selected-basal-profile.json', u'settings/settings.json')
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:10 UTC
oh
I ust have typoed
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:11 UTC
it looked different
Ben West
@bewest
Jun 02 2016 22:11 UTC
ah ok
openaps report add nightscout/uploaded-recent-devicestatus.json JSON ns shell upload devicestatus.json nightscout/openaps-status.json added ns://JSON/shell/nightscout/uploaded-recent-devicestatus.json
we do that to fix
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:12 UTC
~/abouttime $ openaps report add nightscout/uploaded-recent-devicestatus.json JSON ns shell upload devicestatus.json nightscout/openaps-status.json added ns://JSON/shell/nightscout/uploaded-recent-devicestatus.json
added ns://JSON/shell/nightscout/uploaded-recent-devicestatus.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:12 UTC
yeah, now openaps report-nightscout should work
let's get backup oref0 export-loop | tee backup-loop.json this saves a backup in in backup-loop.json file in case we need it later on
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:13 UTC
~/abouttime $ openaps report-nightscout
ns://JSON/shell/nightscout/preflight.json
reporting nightscout/preflight.json
ns://JSON/shell/nightscout/recent-treatments.json
reporting nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
reporting nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
reporting nightscout/recent-missing-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
reporting nightscout/uploaded-entries.json
ns-status://JSON/shell/nightscout/openaps-status.json
reporting nightscout/openaps-status.json
ns://JSON/shell/nightscout/uploaded-recent-devicestatus.json
reporting nightscout/uploaded-recent-devicestatus.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:13 UTC
:-D
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:14 UTC
did the tee back-up. do the backup-loop one, too?
Ben West
@bewest
Jun 02 2016 22:15 UTC
you don't need to paste the backup thing here
ah if you did it, it's fine
wc -l backup-loop.json to check it briefly
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:16 UTC
No, I didn't.
Ben West
@bewest
Jun 02 2016 22:16 UTC
yeah, go ahead and do oref0 export-loop | tee backup-loop.json if you haven't yet
with that done we'll work on cron job
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:17 UTC
~/abouttime $ wc -l backup-loop.json
699 backup-loop.json
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:17 UTC
nice
you have backup
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:17 UTC
I did the tee one before this. Great
Ben West
@bewest
Jun 02 2016 22:17 UTC
want to work on cron job or just explore on your own for a bit?
I have a tool that makes the cron stuff easy
oref0 cron-5-minute-helper curious what this does for you
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:18 UTC
We could work on cron.
$ oref0 cron-5-minute-helper
pi@raspberrypi:~/abouttime $
Ben West
@bewest
Jun 02 2016 22:19 UTC
ah ok
we can do a quick update to get the tool: sudo npm install -g git://github.com/openaps/oref0.git'#dev'
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:19 UTC
I looked at the doc for it, but wasn't even close. Following along here
Ben West
@bewest
Jun 02 2016 22:19 UTC
you were pretty recent, but I just added this on uh sunday I think
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:20 UTC
I had done the -U update, was afraid of the dev one
It's done. should i post?
Ben West
@bewest
Jun 02 2016 22:21 UTC
nah
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:21 UTC
ok
Ben West
@bewest
Jun 02 2016 22:21 UTC
try oref0 cron-5-minute-helper again :)
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:21 UTC

~/abouttime $ oref0 cron-5-minute-helper
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

/5 * (cd /home/pi/abouttime && time openaps do-everything ) 2>&1 | logger -t openaps-loop

pi@raspberrypi:~/abouttime $

Ben West
@bewest
Jun 02 2016 22:22 UTC
nice
oref0 cron-5-minute-helper | crontab -
this one saves and enables your crontab
so it'll work every 5 minutes
at top of every 5 minutes, so :00, :05, :10, etc...
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:23 UTC
That's how that works! I read it ran in the background.
Ben West
@bewest
Jun 02 2016 22:23 UTC
it won't print anything I think
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:23 UTC
it didn't
Ben West
@bewest
Jun 02 2016 22:23 UTC
you can check it with crontab -l this just prints whatever is in crontab now
it should look same as before, basically
if it does, it's saved and configured and should work every 5 minutes
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:24 UTC

~/abouttime $ crontab -l
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

/5 * (cd /home/pi/abouttime && time openaps do-everything ) 2>&1 | logger -t openaps-loop

Ben West
@bewest
Jun 02 2016 22:24 UTC
blob
I use this setup
I don't have the openaps pill plugin enabled yet
but with careportal and basal stuff enabled it looks something like this
you can do tail -f /var/log/syslog
it should be printing stuff about what it's doing
ctrl-c to quit the tail, the -f makes it follow until you quit
Paul Martin
@Spazholio
Jun 02 2016 22:25 UTC
Hey, @eluhrs - question for you. I just got my shipment from Adafruit. I got the Powerboost 1000C, plugged in the battery (same one you recommended) and then plugged in a 1A micro USB. I noticed that the bottom of the board got noticeably hot within roughly 10 seconds. Is that…normal?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:26 UTC
Wow! amazing!
Ben West
@bewest
Jun 02 2016 22:26 UTC
@flutelynne_twitter so as far as I can tell you are all set up
was so much easier with the templates
Scott Leibrand
@scottleibrand
Jun 02 2016 22:27 UTC
can you see it enacting temps on the pump and in nightscout?
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:27 UTC
@bewest Thank you for helping me so much! I would be all summer if you hadn't helped out. How can I re-pay you for all of your patience and help with me?
Those templates must save your hands a bit
Eric Luhrs
@eluhrs
Jun 02 2016 22:28 UTC
@Spazholio yes, it gets hot to the touch during the first part of the charge, getting gradually cooler towards the end. Once it's in the case (shipping tomorrow) you will barely even notice it.
Ben West
@bewest
Jun 02 2016 22:29 UTC
@flutelynne_twitter it'd be fun to take a look at the pump
@flutelynne_twitter look at the esc screen and see if it's doing a temp basal
I think when I saw it, was setting it to same as basal rate, which looked like 0.5
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:30 UTC
yes. temp basal, 30 min dur, and 27 min left
Ben West
@bewest
Jun 02 2016 22:31 UTC
:-)
Paul Martin
@Spazholio
Jun 02 2016 22:31 UTC
@eluhrs Oh good. I mean, it’s not good that it’s all hot, but at least that’s normal.
Ben West
@bewest
Jun 02 2016 22:31 UTC
takes 5 minutes to show up in NS
Paul Martin
@Spazholio
Jun 02 2016 22:31 UTC
Does anyone have any recommendations for skinny USB cables? On my Sparkfruit, I can’t plug in the battery and the console/OTG at the same time. All my cables are just too thick...
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:32 UTC
Which basal view is best? default, icicle?
Ben West
@bewest
Jun 02 2016 22:32 UTC
your preference
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:32 UTC
ok
Ben West
@bewest
Jun 02 2016 22:32 UTC
I do love icicle although I hated it at first
it grew on me after trying it
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:32 UTC
I have the reservoirs, just need to get the infusion sets. Those need a prescription.
Ben West
@bewest
Jun 02 2016 22:33 UTC
really?
I was able to buy them off medtronic's online store
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:34 UTC
I just got my ping supplies today for the month, through my insurance; they didn't have the medtronic sure-t. said they would lose money.
I will try that tomorrow! Can't wait! This is so amazing! I've been following everyone since I heard about this at least a year ago...
Thank you again. Everyone is holding dinner waiting for me. I guess I do have the support for this today. No more eye rolling since I've been holding my head at the computer for hours each day.
Ben West
@bewest
Jun 02 2016 22:37 UTC
:-)
well you're all set up
it should mostly work, there are few maintenance issues we know about
really proud of you for sticking with it and getting it set up
Lynne Butts
@flutelynne_twitter
Jun 02 2016 22:55 UTC
It has been tough. I was awake until 4 this morning thinking of what I wasn't understanding. Reading each day for weeks before starting, but hands on and going through this room has helped. Almost thought that I had to give up on it. Thank you for sticking it out with ME! I am sure that I have made a few people chuckle along the way. I am so thankful!
Jason Calabrese
@jasoncalabrese
Jun 02 2016 23:09 UTC
awesome @flutelynne_twitter, and so great to watch @bewest guide you through it all
Lynne Butts
@flutelynne_twitter
Jun 02 2016 23:36 UTC
@jasoncalabrese I would not have been able to do this without his help! My husband would say, "Are you still working on that? Maybe you'll have it done by the time the actual ones come out." Grandkids would stop and tell me where they are going, and just got used to seeing me hear for several (close to 7) hours each time trying to figure this out. They are teenagers, and didn't have a clue what I am trying to do, and am able to do, only because @bewest is such a patient person. I thought I was pretty smart NHS in school, music comes easily to me, etc., but was very humbled by my inability to grasp this just by reading through over and over. Give me a piece of music, and I can comprehend that. I am sorry that I took up all of his help to others during that time.
Ben West
@bewest
Jun 02 2016 23:58 UTC
this is same as music :-)
music is much harder
Sarah Hodson Grady
@shgrady
Jun 02 2016 23:58 UTC
@flutelynne_twitter and see, you are already paying it forward, I was able to SSH in thanks to you, ready to buy @bewest coffee