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

3rd
Sep 2016
Russell Gardner
@RussGG
Sep 03 2016 00:29
Hello, I am moving along and and am at the "new simpler method for Nightscout upload". I ran nano bewest-aliases.json and reading through it I am missing 2 reports needed for the aliases...... oref0-monitor/profile.json & oref0-monitor/iob.json. what device are they using? I'm thinking I would add with $openaps report add oref0-monitor/profile.json JSON <device> oref0-monitor/profile. Am I close?
David
@davidkeddydb
Sep 03 2016 01:56
i am trying to invoke to nightscout and getting an error: openaps report invoke nightscout/openaps-status.jon
ns://JSON/shell/nightscout/openaps-status.json
No JSON object could be decoded
Unknown request: monitor/clock.json
is the problem that monitor is set up as a separate directory within my openaps directory file with clock within it, or is that correct?
Brandon Faloona
@bfaloona
Sep 03 2016 02:07
Multiple openaps instances in different directories is supported
David
@davidkeddydb
Sep 03 2016 02:09
@bfaloona $ ls
backup-loop.json get-profile.ini openaps.ini setuptools-26.0.0.zip
calculate-iob.ini glucose.json oref0.ini tutorial-hello
cgm.ini model.json pump-history.json tz.ini
cgm-remote-monitor monitor pump.ini
determine-basal.ini nightscout pump-session.json
dkeopenaps ns.ini raw-pump
I have monitor as a directory with clock within it. What have I screwed up? I can do everything but invoke to ns
this is what I wrote to get pumphistory set up: $ openaps report add monitor/pumphistory.json JSON pump iter_pump_hours 4
Eric Jensen
@elnjensen
Sep 03 2016 02:20
David, do you have a report set up to save clock? What does openaps report show monitor/clock.json give you?
And if it's set up, is it invoked before you try to upload?
David
@davidkeddydb
Sep 03 2016 02:22
when i just report it gives me: pump://JSON/read_clock/monitor/clock.json
Eric Jensen
@elnjensen
Sep 03 2016 02:31
Can you invoke it and get a report file out?
I.e. Is there a clock.json file in monitor/ directory?
David
@davidkeddydb
Sep 03 2016 02:34
yes there is a clock.json file in monitor/directory
ok, now I am trying to test uploading to night scout. Error I get is: openaps report-nightscout
ns://JSON/shell/nightscout/recent-treatments.json
Could not parse pumphistory: { [Error: Cannot find module '/home/pi/dkeopenaps/monitor/pump-history.json'] code: 'MODULE_NOT_FOUND' }
David
@davidkeddydb
Sep 03 2016 02:55
Tired. Tapping out until tomorrow.
garykidd
@garykidd
Sep 03 2016 04:25
can anyone get pi@raspberrypi:~ $ pip install -U git+git://github.com/openaps/openaps.git@dev to work without errors?
diabeticgonewild
@diabeticgonewild
Sep 03 2016 05:42
I'm working on an "how to install Ubilinux" video, just FYI
@garykidd First off, what errors are you getting?
diabeticgonewild
@diabeticgonewild
Sep 03 2016 06:40

FML, I ****ing hate neuropathic pain. I even feel shocking sensations in my eyelid. And mine isn't even caused by diabetes. It makes me feel jaded. And it's never going to go away and it's never going to get better for me. Thanks rare diseases. And waiting for Lyrica to kick in, which kind of works, but kind of doesn't.

Smoking a joint would do a better job of relieving neuropathic pain. But, I don't have any MJ on me so FML.

Or vape, whatever...
Oh yeah, I have hockey practice tomorrow too, so could ask some friends about getting some MJ...so yay...
andyhandy
@andyhandy
Sep 03 2016 06:46
hi all - can anyone please confirm whether Nightscout version 0.9.0-beta3 is the correct one?
for adding openaps
?
thanks
diabeticgonewild
@diabeticgonewild
Sep 03 2016 06:48
No, should be the dev version

Nightscout Setup

OpenAPS requires the latest (currently dev) version of Nightscout, which can be found here. If you are already using Nightscout you might have to update your repository. To update your version, go to the Beta Test tool, look for the “I’m ready” button, and create a PR to your dev branch. Once you have completed these steps, log on to Azure or Heroku and disconnect the deployment source. Thereafter choose your cgm-remote-monitor github repository as source again. You should take the dev branch of this repository. The dev branch will also allow you to use the advanced-meal-assist feature.

http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/visualization.html

openaps/docs#129

andyhandy
@andyhandy
Sep 03 2016 06:52
thanks - will try again. must be doing something wrong
diabeticgonewild
@diabeticgonewild
Sep 03 2016 06:54
YW
Matt Pazoles
@Pazoles
Sep 03 2016 13:33
@japrobo - Glad you figured that out! We actually also tried the combo bolus separately and found out that it was blocking any basal commands, too.
andyhandy
@andyhandy
Sep 03 2016 14:29
anyone had this issue and can recommend how to troubleshoot? thanks:

openaps report invoke nightscout/uploaded-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
No JSON object could be decoded

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 743, in run_script
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1531, 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 48, in main
reporters.Reporter(report, device, task)(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

David
@davidkeddydb
Sep 03 2016 17:50
version 8.5 is the developement version, correct? Bottom of NS says version 0.8.5 head
Tim Street
@tim2000s
Sep 03 2016 17:57
@andyhandy have you checked that the inputs to the uploaded-entries report exist? No JSON object usually means the file it's trying to use doesn't exist or is empty.
Terri Lyman
@tatigger
Sep 03 2016 18:22
Hi guys, I know I saw somewhere in the OpenAPS documentation a discussion of max iob and how to manipulate it, when and why. Do any of you know where this is?
Scott Leibrand
@scottleibrand
Sep 03 2016 19:11
It's part of preferences.json now.
Terri Lyman
@tatigger
Sep 03 2016 19:14
I added, I just didn't see that long explanation. Maybe it is ahead of where I am. I have a slight confusion....I added reports and aliases and invoked them, but how do I view their results. For example, "calculate-iob"
Terri Lyman
@tatigger
Sep 03 2016 19:31
pi@raspberrypi:~/faith $ openaps use calculate-iob
usage: openaps-use calculate-iob [-h] USAGE ...
openaps-use calculate-iob: error: too few arguments
pi@raspberrypi:~/faith $ openaps use detect-sensitivity
usage: openaps-use detect-sensitivity [-h] USAGE ...
openaps-use detect-sensitivity: error: too few arguments
pi@raspberrypi:~/faith $ openaps use determine-basal
usage: openaps-use determine-basal [-h] USAGE ...
openaps-use determine-basal: error: too few arguments
pi@raspberrypi:~/faith $
That is what I get when I try to use them, like I tried to use pump settings
openaps use pump settings
{
"low_reservoir_warn_point": 20,
"keypad_lock_status": 0,
"maxBasal": 6.0,
"temp_basal": {
"percent": 100,
"type": "Units/hour"
},
"low_reservoir_warn_type": 0,
"insulinConcentration": 100,
"audio_bolus_enable": true,
"variable_bolus_enable": true,
"alarm": {
"volume": 1,
"mode": 2
},
"rf_enable": false,
"auto_off_duration_hrs": 0,
"block_enable": false,
"timeformat": 0,
"insulin_action_curve": 3,
"audio_bolus_size": 0.5,
"selected_pattern": 2,
"patterns_enabled": true,
"maxBolus": 8.0,
"paradigm_enabled": 0
What am I missing?
Russell Gardner
@RussGG
Sep 03 2016 19:37
@tatigger I am probably the last one that should be chiming in hear..... after I invoke a report I enter cat <report name.json> to view the report.
cassknox
@cassknox
Sep 03 2016 19:37
Hi, so I'm very new to all of this and please forgive me if I am asking a super elementary and dumb question.. I am having an issue with the Carelink USB stick and getting my computer to recognize and read it (I have a MacBook Pro with El Capitan 10.11.6 and an older MacBook running Mac OS X 10.6.8) the newer Pro does not recognize the USB when it asks for it and the older computer will not allow me to use the site due to older systems running that it's not compatible with. I'm not sure how to solve this issue and if I can find a way, is it a one time setup or will I need to be able to upload my carelink periodically ongoing? Again, I apologize if I'm asking a stupid question or if I'm not even making sesse but I would greatly appreciate any help! Thanks
My mistake, the El Capitan is 11.10.6 *
garykidd
@garykidd
Sep 03 2016 20:02
Getting closer not sure how exactly to troubleshoot the issue here......appreciate any feedback/thoughts////

pi@raspberrypi:~/APS301 $ openaps gather-clean-data

cgm://JSON/iter_glucose_hours/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
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-report", line 82, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/home/pi/src/openaps/openaps/reports/invoke.py", line 23, in main
    device = app.devices[report.fields['device']]
KeyError: 'units'

pi@raspberrypi:~/APS301 $

Eric Luhrs
@eluhrs
Sep 03 2016 20:21
@garykidd Here are the wiring instructions I used to connect TI to the Edison: https://github.com/oskarpearson/mmeowlink/wiki/TI-USB-Stick-over-Serial
Note that while the picture shows the TI with debug pins removed for soldering, you could also leave the pins and connect using a standard 2x5 ribbon cable.
Eric Luhrs
@eluhrs
Sep 03 2016 20:43
Or you could use three of these, and just push the connectors on the the TI pins. This would give you some additional flexibility since ribbon cables are a bit stiff. https://www.amazon.com/uxcell%C2%AE-JST-XH-Connector-Adaptor-Cable/dp/B00X747KL8/
garykidd
@garykidd
Sep 03 2016 21:03
@eluhrs thanks bud!
BY any chance any idea what I should check on my post above>?
Brandon Faloona
@bfaloona
Sep 03 2016 21:11
@tatigger if you run openaps use calculate-iob -h you should get some help information. Each of those devices needs additional parameters (commands and/or local filenames) in order to formulate a response.
garykidd
@garykidd
Sep 03 2016 21:27
@diabeticgonewild
pi@raspberrypi:~/APS301 $ pip install -U git+git://github.com/openaps/openaps.git@dev
Downloading/unpacking git+git://github.com/openaps/openaps.git@dev
  Cloning git://github.com/openaps/openaps.git (to dev) to /tmp/pip-WQ1Fvc-build
  Running setup.py (path:/tmp/pip-WQ1Fvc-build/setup.py) egg_info for package from git+git://github.com/openaps/openaps.git@dev
    /usr/local/lib/python2.7/dist-packages/setuptools-26.1.1-py2.7.egg/setuptools/dist.py:364: UserWarning: Normalizing '0.1.6-dev' to '0.1.6.dev0'

Downloading/unpacking pyserial from https://pypi.python.org/packages/49/db/5704dfc92d9a35f43d10744b0e661eeb1cbddc3bf8bd704592d653d23d86/pyserial-3.1.1-py2.py3-none-any.whl#md5=4b710443b1fd7d4685d301aa07f20539 (from openaps==0.1.6.dev0)
  Downloading pyserial-3.1.1-py2.py3-none-any.whl (200kB): 200kB downloaded
Requirement already up-to-date: python-dateutil in /usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg (from openaps==0.1.6.dev0)
Requirement already up-to-date: argcomplete in /usr/local/lib/python2.7/dist-packages/argcomplete-1.4.1-py2.7.egg (from openaps==0.1.6.dev0)
Requirement already up-to-date: gitpython in /usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg (from openaps==0.1.6.dev0)
Requirement already up-to-date: mock in /usr/local/lib/python2.7/dist-packages/mock-2.0.0-py2.7.egg (from openaps==0.1.6.dev0)
Requirement already up-to-date: nose in /usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg (from openaps==0.1.6.dev0)
Requirement already up-to-date: decocare>0.0.26 in /home/pi/src/decocare (from openaps==0.1.6.dev0)
Requirement already up-to-date: dexcom_reader>=0.1.8 in /home/pi/src/dexcom_reader (from openaps==0.1.6.dev0)
Requirement already up-to-date: six>=1.5 in /usr/local/lib/python2.7/dist-packages/six-1.10.0-py2.7.egg (from python-dateutil->openaps==0.1.6.dev0)
Requirement already up-to-date: gitdb>=0.6.4 in /usr/local/lib/python2.7/dist-packages/gitdb-0.6.4-py2.7-linux-armv7l.egg (from gitpython->openaps==0.1.6.dev0)
Requirement already up-to-date: funcsigs>=1 in /usr/local/lib/python2.7/dist-packages/funcsigs-1.0.2-py2.7.egg (from mock->openaps==0.1.6.dev0)
Requirement already up-to-date: pbr>=0.11 in /usr/local/lib/python2.7/dist-packages/pbr-1.10.0-py2.7.egg (from mock->openaps==0.1.6.dev0)
Requirement already up-to-date: smmap>=0.8.5 in /usr/local/lib/python2.7/dist-packages/smmap-0.9.0-py2.7.egg (from gitdb>=0.6.4->gitpython->openaps==0.1.6.dev0)
Installing collected packages: pyserial, openaps
  Found existing installation: pyserial 2.6
    Not uninstalling pyserial at /usr/lib/python2.7/dist-packages, owned by OS
  Can't roll back pyserial; was not uninstalled
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 295, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 214, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 204, in clobber
    os.makedirs(destdir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/serial'

Storing debug log for failure in /home/pi/.pip/pip.log
@eluhrs looks like the connectors I got from amazon will just fit. Looks like they fit only because there's unused pins between connectors (mostly)
Eric Luhrs
@eluhrs
Sep 03 2016 21:34
Yes, the fit will be tight, but possible.
garykidd
@garykidd
Sep 03 2016 21:45
blob
@eluhrs I guess on the edison side I can just solder to breakout board directly.
Eric Luhrs
@eluhrs
Sep 03 2016 21:54
Oh, you can trim the white plastic connectors to get a better fit. I cut off the flared bits where the wires enter and also the the small ridge on the opposite site pictures on your right-most connector. And yes, you would then just solder those wires to the Edison breakout board. I like to cut each wire to the exact length to eliminate extra bulk.
garykidd
@garykidd
Sep 03 2016 21:57
@eluhrs thanks for tips--I think they are good ideas...although I did get them to fit with a little persuasion. I guess I could just solder both sides really---doesn't look to difficult.
Tim Street
@tim2000s
Sep 03 2016 22:01
@garykidd have you created a 'units' device? If you use the templates, you still need to create it.
Eric Luhrs
@eluhrs
Sep 03 2016 22:02
I solder on the side of the breakout board that is against the underside of the cpu, not the back of the breakout.
Eric
@ecc1
Sep 03 2016 22:02
photo.jpg
First few hours looping with my Edison + SPI radio rig
Eric Luhrs
@eluhrs
Sep 03 2016 22:03
I usually insert the wire then tape them in a way that they are going straight there out the hole, not at an angle. Might have a photo.
David
@davidkeddydb
Sep 03 2016 22:14
@andyhandy 9.3 beta from what I have been told by Amy Cowen is the development ns version
garykidd
@garykidd
Sep 03 2016 22:21
@tim2000s can you give me a little more direction on creating the units device..I cant seem to find it.
lmaguire
@lmaguire
Sep 03 2016 22:29
Hi again! Would anybody be able to help me understand how to invoke monitor/pump-history.json?
garykidd
@garykidd
Sep 03 2016 22:30
@tim2000s I tried oref0 template mint reports medtronic-pump | openaps import and
oref0 template mint reports oref0-inputs | openaps import
to no avail, unfortunately.
diabeticgonewild
@diabeticgonewild
Sep 03 2016 23:06
@garykidd you have to manually uninstall pyserial because PIP is unable to uninstall it.
I can't give directions now.
garykidd
@garykidd
Sep 03 2016 23:07
@diabeticgonewild thanks...maybe later.
Any ideas on my other post---do you think this error w/ pyserial could be contributing to my other problem?
garykidd
@garykidd
Sep 03 2016 23:13
Also, how do you fix the OpenAPS Unknown in NS?
Tim Street
@tim2000s
Sep 03 2016 23:16
@garykidd I'm not at a PC right now, but from what I recall of the walkthrough, in the section after the templates, it has the old way of setting up the conversion. The instructions for setting up the units device are in there.
garykidd
@garykidd
Sep 03 2016 23:30
@tim2000s HS.....after openaps device add units units
pi@raspberrypi:~/APS301 $ openaps gather-clean-data
cgm://JSON/iter_glucose_hours/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
Eric Luhrs
@eluhrs
Sep 03 2016 23:45
@garykidd Here's an image of how I secure wires to the edison before soldering.
unnamed.jpg
diabeticgonewild
@diabeticgonewild
Sep 03 2016 23:55
@garykidd Take a look at this post and apply it to pyserial http://stackoverflow.com/questions/13136060/why-cant-pip-uninstall-pysqlite
Anyway, I got what I "needed" for my chronic nausea and vomiting from a "friend" from hockey practice, so I'm relieved. Hahaha