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

9th
Oct 2016
Terri Lyman
@tatigger
Oct 09 2016 00:06
The same happens when I try to invoke the reports in oref0 template mint reports medtronic-pump | openaps import. For example, openaps report invoke bg-targets-raw.json
usage: openaps-report invoke [-h] and then the whole lot of other stuff, that I could paste but only if you need it. I think I added the report format with that template, but if I did, I should be able to invoke it and/or cat it, and I can't do either.
Terri Lyman
@tatigger
Oct 09 2016 00:13
Isn't there anyone in Arizona who is working on this? That I could just, I don't know, peer over their shoulder while they do this? I think I really need some basic help. Too basic for here.
I could periodically go for coffee.....
Matt Pressnall
@logichammer
Oct 09 2016 00:24
@scottleibrand, can you think of reasons why my current_basal_safety_multiplier and other values in profile.json are getting overridden with what look to be default values? I'm trying to up current_basal_safety_multiplier but something is overwriting the file. I've stopped all openaps processes, made my changes, confirmed they are written into the file, and then start my loop and they get overwritten.
Tim Street
@tim2000s
Oct 09 2016 00:24
@tatigger Have you installed using the set-up script?
@logichammer What about your preferences.json file?
Matt Pressnall
@logichammer
Oct 09 2016 00:26
I don't have one...saw mention of preferences.json in some documentation but I don't have any mention in openaps.ini...is there where I can override profile.json?
If so, that makes sense then!
Tim Street
@tim2000s
Oct 09 2016 00:27
preferences.json should be in your openers directory
openaps
Matt Pressnall
@logichammer
Oct 09 2016 00:28
Got it...and it looks like I need to add it here:
````
[report "predict/profile.json"]
use = shell
device = get-profile
reporter = JSON
basals = monitor/active-basal-profile.json
settings = monitor/settings.json
bg-targets = monitor/bg-targets.json
isf = monitor/insulin-sensitivities.json
prefs = prefs.json
carb-ratios = monitor/carb-ratios.json
temptargets = nightscout/temp-targets.json
model = --model monitor/model.json
json_default = True
remainder = --model monitor/model.json
````
Well, that didn't format...been awhile since I have been in here...thanks, Tim!
Terri Lyman
@tatigger
Oct 09 2016 00:29
@tim2000s I am not sure what the setup script is. I used the templates in https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/Using-oref0-tools.html
Is there another way to do it now?
Tim Street
@tim2000s
Oct 09 2016 00:32
@logichammer ``` instead of ````
Terri Lyman
@tatigger
Oct 09 2016 00:34
Thanks @tim2000s
Matt Pressnall
@logichammer
Oct 09 2016 00:38
Thanks, Tim! Do you know if you need to do anything else to get preferences.json to be used? This is what my settings/profile.json looks like:
I mean my openaps.ini
[report "settings/profile.json"]
use = shell
bg_targets = settings/bg_targets.json
settings = settings/settings.json
basal_profile = settings/basal_profile.json
reporter = text
json_default = True
prefs = preferences.json
carb_ratios = settings/carb_ratios.json
max_iob = max_iob.json
device = get-profile
remainder = settings/temptargets.json
isf = settings/insulin_sensitivities.json
Matt Pressnall
@logichammer
Oct 09 2016 00:46
is prefs the right value to pass preferences.json into?
Dana Lewis
@danamlewis
Oct 09 2016 00:47
@tatigger nothing is too basic here
Matt Pressnall
@logichammer
Oct 09 2016 00:51
Yup! Worked! Thanks for the help!
Dana Lewis
@danamlewis
Oct 09 2016 00:52
@tim2000s set up script is now in dev version of docs. @tatigger check out dev docs.
Matt Pressnall
@logichammer
Oct 09 2016 01:08
Shoot...I actually didn't get it to work...my profile.json is still getting overwritten...anyone have any ideas of how to get preferences.json's values to be used?
Terri Lyman
@tatigger
Oct 09 2016 01:19
I ran that setup, and the last step I did was run the setup script. It did a lot, then finished with this: libtool: install: /usr/bin/install -c tools/hid2hci /lib/udev/hid2hci
Not an openaps environment, run: openaps init
Couldn't add openxshareble vendor
Is this something I need to do something with?
Matt Pressnall
@logichammer
Oct 09 2016 01:20
Looks like you need to run: openaps init
what directory are you in?
Terri Lyman
@tatigger
Oct 09 2016 01:21
Ah, It shows me in the main Pi directory, not the openaps instance. Do I need to cd and then re-run the setup tool? I thought the setup tool set up the instance
Tim Street
@tim2000s
Oct 09 2016 01:21
It should.
Matt Pressnall
@logichammer
Oct 09 2016 01:23
@tim2000s , would you mind sharing your [report "settings/profile.json"] and get-profile.ini?
I now have it set to preferences = preferences.json and still no joy
Terri Lyman
@tatigger
Oct 09 2016 01:42
So, I ran the setup tool. The new directory with the tool-created openaps instance is there. I cd to that directory and started to run through testing the aliases. The first one I tried was :
pi@raspberrypi:~/open2aps $ openaps get-profile
[Errno 2] No such file or directory
openaps: 'get-profile' is not an openaps command. See 'openaps --help'.
The second one I tried was:
pi@raspberrypi:~/open2aps $ openaps monitor-pump
pump://JSON/read_clock/monitor/clock.json
monitor/clock.json raised 'Pump' object has no attribute 'model'
Matt Pressnall
@logichammer
Oct 09 2016 01:43
what does your openaps.ini look like?
Terri Lyman
@tatigger
Oct 09 2016 01:43
Like: cat openaps.ini to get that?
Matt Pressnall
@logichammer
Oct 09 2016 01:44
exactly!
Terri Lyman
@tatigger
Oct 09 2016 01:45
It's long.

pi@raspberrypi:~/open2aps $ cat openaps.ini
[device "ns"]
vendor = openaps.vendors.process
extra = ns.ini

[vendor "openapscontrib.timezones"]
path = .
module = openapscontrib.timezones

[vendor "mmeowlink.vendors.mmeowlink"]
path = .
module = mmeowlink.vendors.mmeowlink

[device "cgm"]
vendor = openaps.vendors.dexcom
extra = cgm.ini

[device "ns-glucose"]
vendor = openaps.vendors.process
extra = ns-glucose.ini

[device "oref0"]
vendor = openaps.vendors.process
extra = oref0.ini

[device "iob"]
vendor = openaps.vendors.process
extra = iob.ini

[device "meal"]
vendor = openaps.vendors.process
extra = meal.ini

[device "get-profile"]
vendor = openaps.vendors.process
extra = get-profile.ini

[device "detect-sensitivity"]
vendor = openaps.vendors.process
extra = detect-sensitivity.ini

[device "determine-basal"]
vendor = openaps.vendors.process
extra = determine-basal.ini

[device "pebble"]
vendor = openaps.vendors.process
extra = pebble.ini

[device "tz"]
vendor = openapscontrib.timezones
extra = tz.ini

[device "pump"]
vendor = openaps.vendors.medtronic
extra = pump.ini

[device "units"]
vendor = openaps.vendors.units
extra = units.ini

[report "monitor/cgm-glucose.json"]
hours = 25.0
device = cgm
use = iter_glucose_hours
reporter = JSON

[report "raw-cgm/raw-entries.json"]
count =
use = oref0_glucose
reporter = JSON
seconds =
minutes =
hours = 24
device = cgm
gaps =
threshold = 100
microseconds =
date = display_time
sensor =
glucose =

[report "cgm/ns-glucose.json"]
oper = oref0_glucose_since
use = shell
reporter = JSON
device = ns
remainder = -24hours
json_default = True

[report "monitor/mmtune.json"]
device = pump
use = mmtune
reporter = JSON

[report "settings/model.json"]
device = pump
use = model
reporter = JSON

[report "monitor/clock.json"]
device = pump
use = read_clock
reporter = JSON

[report "cgm/cgm-glucose.json"]
use = rezone
reporter = JSON
astimezone = False
date = display_time dateString
adjust = missing
timezone =
device = tz
input = raw-cgm/raw-entries.json

[report "monitor/clock-zoned.json"]
use = clock
reporter = JSON
astimezone = False
date = None
adjust = missing
timezone =
device = tz
input = monitor/clock.json

[report "monitor/temp_basal.json"]
device = pump
use = read_temp_basal
reporter = JSON

[report "monitor/reservoir.json"]
device = pump
use = reservoir
reporter = JSON

[report "monitor/battery.json"]
device = pump
use = read_battery_status
reporter = JSON

[report "monitor/status.json"]
device = pump
use = status
reporter = JSON

[report "monitor/pumphistory.json"]
hours = 5.0
device = pump
use = iter_pump_hours
reporter = JSON

[report "settings/pumphistory-24h.json"]
hours = 27.0
device = pump
use = iter_pump_hours
reporter = JSON

[report "monitor/pumphistory-zoned.json"]
use = rezone
reporter = JSON
astimezone = False
date = timestamp dateString start_at end_at created_at
adjust = missing
timezone =
device = tz
input = monitor/pumphistory.json

[report "settings/pumphistory-24h-zoned.json"]
use = rezone
reporter = JSON
astimezone = False
date = timestamp dateString start_at end_at created_at
adjust = missing
timezone =
device = tz
input = settings/pumphistory-24h.json

[report "monitor/iob.json"]
profile = settings/profile.json
use = shell
clock = monitor/clock-zoned.json
reporter = text
json_default = True
pumphistory = monitor/pumphistory-zoned.json
device = iob
remainder =

[report "monitor/meal.json"]
profile = settings/profile.json
carbs = monitor/carbhistory.json
clock = monitor/clock-zoned.json
reporter = text
json_default = True
use = shell
pumphistory = monitor/pumphistory-zoned.json
basal = settings/basal_profile.json
device = meal
remainder =
glucose = monitor/glucose.json

[report "settings/autosens.json"]
profile = settings/profile.json
use = shell
reporter = text
basal_profile = settings/basal_profile.json
json_default = True
pumphistory = settings/pumphistory-24h-zoned.json
device = detect-sensitivity
remainder =
isf = settings/insulin_sensitivities.json
glucose = monitor/glucose.json

[report "settings/bgtargets.json"]
device = units
to = mg/dL
use = bg

Matt Pressnall
@logichammer
Oct 09 2016 01:46
If that is it, then your openaps install failed before it added all the aliases
get-settings is not in there
You might want to start over...
with the setup script that is
Terri Lyman
@tatigger
Oct 09 2016 01:49
Wait, it didn't copy everything, lets try again.

i@raspberrypi:~/open2aps $ cat openaps.ini
[device "ns"]
vendor = openaps.vendors.process
extra = ns.ini

[vendor "openapscontrib.timezones"]
path = .
module = openapscontrib.timezones

[vendor "mmeowlink.vendors.mmeowlink"]
path = .
module = mmeowlink.vendors.mmeowlink

[device "cgm"]
vendor = openaps.vendors.dexcom
extra = cgm.ini

[device "ns-glucose"]
vendor = openaps.vendors.process
extra = ns-glucose.ini

[device "oref0"]
vendor = openaps.vendors.process
extra = oref0.ini

[device "iob"]
vendor = openaps.vendors.process
extra = iob.ini

[device "meal"]
vendor = openaps.vendors.process
extra = meal.ini

[device "get-profile"]
vendor = openaps.vendors.process
extra = get-profile.ini

[device "detect-sensitivity"]
vendor = openaps.vendors.process
extra = detect-sensitivity.ini

[device "determine-basal"]
vendor = openaps.vendors.process
extra = determine-basal.ini

[device "pebble"]
vendor = openaps.vendors.process
extra = pebble.ini

[device "tz"]
vendor = openapscontrib.timezones
extra = tz.ini

[device "pump"]
vendor = openaps.vendors.medtronic
extra = pump.ini

[device "units"]
vendor = openaps.vendors.units
extra = units.ini

[report "monitor/cgm-glucose.json"]
hours = 25.0
device = cgm
use = iter_glucose_hours
reporter = JSON

[report "raw-cgm/raw-entries.json"]
count =
use = oref0_glucose
reporter = JSON
seconds =
minutes =
hours = 24
device = cgm
gaps =
threshold = 100
microseconds =
date = display_time
sensor =
glucose =

[report "cgm/ns-glucose.json"]
oper = oref0_glucose_since
use = shell
reporter = JSON
device = ns
remainder = -24hours
json_default = True

[report "monitor/mmtune.json"]
device = pump
use = mmtune
reporter = JSON

[report "settings/model.json"]
device = pump
use = model
reporter = JSON

[report "monitor/clock.json"]
device = pump
use = read_clock
reporter = JSON

[report "cgm/cgm-glucose.json"]
use = rezone
reporter = JSON
astimezone = False
date = display_time dateString
adjust = missing
timezone =
device = tz
input = raw-cgm/raw-entries.json

[report "monitor/clock-zoned.json"]
use = clock
reporter = JSON
astimezone = False
date = None
adjust = missing
timezone =
device = tz
input = monitor/clock.json

[report "monitor/temp_basal.json"]
device = pump
use = read_temp_basal
reporter = JSON

[report "monitor/reservoir.json"]
device = pump
use = reservoir
reporter = JSON

[report "monitor/battery.json"]
device = pump
use = read_battery_status
reporter = JSON

[report "monitor/status.json"]
device = pump
use = status
reporter = JSON

[report "monitor/pumphistory.json"]
hours = 5.0
device = pump
use = iter_pump_hours
reporter = JSON

[report "settings/pumphistory-24h.json"]
hours = 27.0
device = pump
use = iter_pump_hours
reporter = JSON

[report "monitor/pumphistory-zoned.json"]
use = rezone
reporter = JSON
astimezone = False
date = timestamp dateString start_at end_at created_at
adjust = missing
timezone =
device = tz
input = monitor/pumphistory.json

[report "settings/pumphistory-24h-zoned.json"]
use = rezone
reporter = JSON
astimezone = False
date = timestamp dateString start_at end_at created_at
adjust = missing
timezone =
device = tz
input = settings/pumphistory-24h.json

[report "monitor/iob.json"]
profile = settings/profile.json
use = shell
clock = monitor/clock-zoned.json
reporter = text
json_default = True
pumphistory = monitor/pumphistory-zoned.json
device = iob
remainder =

[report "monitor/meal.json"]
profile = settings/profile.json
carbs = monitor/carbhistory.json
clock = monitor/clock-zoned.json
reporter = text
json_default = True
use = shell
pumphistory = monitor/pumphistory-zoned.json
basal = settings/basal_profile.json
device = meal
remainder =
glucose = monitor/glucose.json

[report "settings/autosens.json"]
profile = settings/profile.json
use = shell
reporter = text
basal_profile = settings/basal_profile.json
json_default = True
pumphistory = settings/pumphistory-24h-zoned.json
device = detect-sensitivity
remainder =
isf = settings/insulin_sensitivities.json
glucose = monitor/glucose.json

[alias]
invoke = report invoke
mmtune = ! bash -c "reset_spi_serial.py 2>/dev/null; echo {} > monitor/mmtune.json; echo -n \"mmtune: \" && openaps report invoke monitor/mmtune.json 2>/dev/null >/dev/null; grep -v setFreq monitor/mmtune.json | grep -A2 $(json -a setFreq -f monitor/mmtune.json) | while read line; do echo -n \"$line \"; done"
wait-for-silence = report invoke monitor/temp_basal.json
wait-for-long-silence = report invoke monitor/temp_basal.json
monitor-cgm = report invoke raw-cgm/raw-entries.json cgm/cgm-glucose.json
get-ns-glucose = report invoke cgm/ns-glucose.json
monitor-pump = report invoke monitor/clock.json monitor/temp_basal.json monitor/pumphistory.json monitor/pumphistory-zoned.json monitor/clock-zoned.json monitor/iob.json monitor/meal.json monitor/reservoir.json monitor/battery.json monitor/status.json
ns-temptargets = ! bash -c "curl -m 30 -s \"$NIGHTSCOUT_HOST/api/v1/treatments.json?find[created_at][\$gte]=$(date -d \"6 hours ago\" -Iminutes)&find[eventType][\$regex]=Target\" > settings/temptargets.json; openaps report invoke settings/profile.json 2>/dev/null >/dev/null; exit 0 "
ns-meal-carbs = ! bash -c "curl -m 30 -s \"$NIGHTSCOUT_HOST/api/v1/treatments.json?find[carbs][\$exists]=true\" > monitor/carbhistory.json; oref0-meal monitor/pumphistory-zoned.json settings/profile.json monitor/clock-zoned.json monitor/carbhistory.json monitor/glucose.json settings/basal_profile.json > monitor/meal.json.new; grep -q COB monitor/meal.json.new && mv monitor/meal.json.new monitor/meal.json; exit 0"
get-settings = report invoke settings/model.json settings/bg_targets_raw.json settings/bg_targets.json settings/insulin_sensitivities_raw.json settings/insulin_sensitivities.json settings/basal_profile.json settings/settings.json settings/carb_ratios.json settings/profile.json
bg-fresh-check = ! bash -c "cat cgm/glucose.json | json -c \"minAgo=(new Date()-new Date(this.dateString))/60/1000; return minAgo < 6 && minAgo > 0 && this.glucose > 30\" | grep -q glucose"
get-bg = ! bash -c "openaps monitor-cgm 2>/dev/null | tail -1 && grep -q glucose cgm/cgm-glucose.json && cp -pu cgm/cgm-glucose.json cgm/glucose.json; cp -pu cgm/glucose.json monitor/glucose.json"
get-ns-bg = ! bash -c "openaps get-ns-glucose && cat cgm/ns-glucose.json | json -c \"minAgo=(new Date()-new Date(this.dateString))/60/1000; return minAgo < 10 && minAgo > -5 && this.glucose > 30\" | grep -q glucose && cp -pu cgm/ns-glucose.json cgm/glucose.json; cp -pu cgm/glucose.json monitor/glucose.json"
gather = ! bash -c "openaps report invoke monitor/status.json 2>/dev/null >/dev/null && echo -n Ref && test $(cat monitor/status.json | json bolusing) == false && echo -n resh && ( openaps monitor-pump || openaps monitor-pump ) 2>/dev/null >/dev/null && echo ed pumphistory || (echo; exit 1) 2>/dev/null"
autosens = ! bash -c "date; (find settings/ -newer settings/autosens.json | grep -q pumphistory-24h-zoned.json || find settings/ -size -5c | grep -q autosens.json || ! find settings/ | grep -q autosens || ! find settings/autosens.json) && openaps invoke settings/autosens.json"
refresh-old-pumphistory = ! bash -c "find monitor/ -mmin -15 -size +100c | grep -q pumphistory-zoned || ( echo -n \"Old pumphistory: \" && openaps gather && openaps enact ) "
refresh-old-pumphistory-24h = ! bash -c "find settings/ -mmin -120 -size +100c | grep -q pumphistory-24h-zoned || (echo -n Old pumphistory-24h refresh && openaps report invoke settings/pumphistory-24h.json settings/pumphistory-24h-zoned.json 2>/dev/null >/dev/null && echo ed)"
refresh-temp-and-enact = ! bash -c "if( (find monitor/ -newer monitor/temp_basal.json | grep -q glucose.json && echo glucose.json newer than temp_basal.json ) || (! find monitor/ -mmin -5 -size +5c | grep -q temp_basal && echo temp_basal.json more than 5m old)); then (echo -n Temp refresh && openaps report invoke monitor/temp_basal.json monitor/clock.json monitor/clock-zoned.json monitor/iob.json 2>/dev/null >/dev/null && echo ed && if(cat monitor/temp_basal.json | json -c \"this.duration < 27\" | grep -q duration); then openap
Matt Pressnall
@logichammer
Oct 09 2016 01:53
and if you run: openaps get-settings it says the alias doesn't exist?
what about: openaps use pump model
David
@davidkeddydb
Oct 09 2016 01:55
@danamlewis Is this roughly the same adafruit battery you use for your explorer board set up? https://www.amazon.com/Battery-Packs-Lithium-Polymer-2500mAh/dp/B0137IEKGG
Terri Lyman
@tatigger
Oct 09 2016 01:55
Nothing , just ""
Matt Pressnall
@logichammer
Oct 09 2016 01:56
do you have your serial number in pump.ini?
cat pump.ini
you don't need to post that here
just do yo have values
Terri Lyman
@tatigger
Oct 09 2016 01:57
Nope, it saved the standard 12345 instead of my input. I can go back to adding a pump device and just do it manually, can't I?
Matt Pressnall
@logichammer
Oct 09 2016 01:58
yes / you can edit the file directly if you can use an editor to do it...otherwise, use openaps to remove the pump and re-add it
Terri Lyman
@tatigger
Oct 09 2016 01:59
Cool...trying that now. Now I am glad I have spent months trying to understand everything. Your words mean something, LOL
grhulz
@grhulz
Oct 09 2016 02:00
@scottleibrand @Hardwick1973 I replaced my preflight alias with the one from the code that you referenced. I removed the openaps get-bg; because I don't have that alias and I looked at the command and I don't think I need it (please let me know if you disagree). So far it looks to be successfully resetting the carelink usb stick. I will monitor it tonight and let you know how it turns out in the morning.
Matt Pressnall
@logichammer
Oct 09 2016 02:01
@tatigger...go for it!
Terri Lyman
@tatigger
Oct 09 2016 02:04
Yes, @logichammer, it returned my pump model! Back to testing aliases.
Matt Pressnall
@logichammer
Oct 09 2016 02:04
Good start!
Figured out my issue...max_iob and preferences.json don't play nicely
Dana Lewis
@danamlewis
Oct 09 2016 02:07
@davidkeddydb yea, I think mine is 2200mah but that should work
Terri Lyman
@tatigger
Oct 09 2016 02:15
Ok, so I seem to have the same issue with the Dexcom as I did with the pump above. I tried removing the device and re-adding it. I am using a USB cable instead of trying the BLE, the openexshareble thingy errored when I used the setup tool, and didn't work when I tried it with manual installation with my first instance of OpenAPS, so went back to cable. but I still don't seem to be getting any data from the cgm.
openaps use cgm oref0_glucose --hours 2.0
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
etc, etc
Any ideas for how to trouble shoot that piece?
Tim Mecklem
@tmecklem
Oct 09 2016 02:16
My wife’s dex receiver keeps getting the error HWBBT. She resets it and moves on, but is there a way to avoid it? It keeps happening in the middle of the night.
Terri Lyman
@tatigger
Oct 09 2016 02:17
How do you reset a dexcom?
Tim Mecklem
@tmecklem
Oct 09 2016 02:17
The old "paperclip in the hole in the back of the receiver” trick, she tells me.
Terri Lyman
@tatigger
Oct 09 2016 02:18
Oh!!! Yeah, I see.
I haven't needed to do that for a while. I have a share capable G4, but have never really used Share. It seems to go down often and disconnects from the iPhone a lot, and really sucks battery life. Even more than my pebble does. So I skip Share.
Let's try a different cable.
ok, different usb port
Terri Lyman
@tatigger
Oct 09 2016 02:26
Nope, still doesn't seem to be getting cgm data.
Terri Lyman
@tatigger
Oct 09 2016 02:37
Will play with it more tomorrow. Good night all
Matt Pressnall
@logichammer
Oct 09 2016 04:40
@tatigger , if you are going to use USB (which I would do to start), you need to make sure your pump.ini is configured to use USB ...should look like: port = /dev/serial/by-id/usb-Nightscout_subg_rfspy_000002-if00
Matt Pressnall
@logichammer
Oct 09 2016 05:01
This message was deleted
Scott Leibrand
@scottleibrand
Oct 09 2016 05:56
@logichammer preferences.json is max_iob.json, just with more stuff added to it.
Sandra Keßler
@SandraK82
Oct 09 2016 06:28
Thx @scottleibrand and @danamlewis for the link. I currently used it totally wrong. No temp target and no kh entry.. however, it just works (for me)
Scott Leibrand
@scottleibrand
Oct 09 2016 06:29
The most important thing is, please document what you did and how it turned out. If you can follow the guidelines in the doc for which information to collect, that would be awesome.
The other thing is, we want to gradually ramp up and see how large of a meal can be dealt with by meal assist this way without any meal announcement.
Sandra Keßler
@SandraK82
Oct 09 2016 06:31
:+1: i will document it today, all data is available in ns
Scott Leibrand
@scottleibrand
Oct 09 2016 06:31
Thx. Glad to see someone actually running these kinds of tests.
Also, keep in mind that this is just a draft protocol. If you want to do things a little bit differently that would work better for you, please go ahead. In fact, you may find things that simply aren't a good idea to test the way I have outlined. So please don't feel like the way I wrote it up is the only right way to do it.
Sandra Keßler
@SandraK82
Oct 09 2016 06:36
As I pointed out, I will try to test every aspect of OpenAPS as deeply as possible to gain a better understanding of the system and to derive my own system, suiting my needs
Scott Leibrand
@scottleibrand
Oct 09 2016 06:38
:+1: I hope you also find some areas where your improvements can be rolled back into oref0 for everyone.
Sandra Keßler
@SandraK82
Oct 09 2016 06:38
From the data so far, it seems I will be able to built a mostly autonomous system for myself soon
I hope too
Mike
@libxmike
Oct 09 2016 06:41
I get following errors, this was my first installation
Starting pump-loop at Sun Oct 9 08:40:32 CEST 2016:
monitor/temp_basal.json raised Non-hexadecimal digit found
pump://JSON/read_temp_basal/monitor/temp_basal.json
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-armv6l/egg/pkg_resources/init.py", line 744, in run_script
File "build/bdist.linux-armv6l/egg/pkg_resources/init.py", line 1499, 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 44, in call
self.before_main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 63, in before_main
self.check_session(app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 140, in check_session
self.session = self.get_session_info( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 103, in get_session_info
fields = self.create_session( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 128, in create_session
self.pump.power_control(minutes=minutes)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/session.py", line 72, in power_control
response = self.query(commands.PowerControl, minutes=minutes)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/session.py", line 101, in query
self.execute(command)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/session.py", line 98, in execute
return super(type(self), self).execute(command)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/session.py", line 35, in execute
self.transfer( )
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/session.py", line 61, in transfer
return self.stick.transmit_packet(self.command)
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/stick.py", line 861, in transmit_packet
result = self.process( )
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/stick.py", line 490, in process
raw = self.send_force_read( )
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/stick.py", line 606, in send_force_read
self.link.write(reader.format( ))
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/stick.py", line 376, in format
serial = list(bytearray(self.serial.decode('hex')))
File "/usr/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode
output = binascii.a2b_hex(input)
TypeError: Non-hexadecimal digit found
Error, retrying
Starting pump-loop at Sun Oct 9 08:41:14 CEST 2016:
its on a Rpi Zero
Hardwick1973
@Hardwick1973
Oct 09 2016 06:42
@grhulz - did something similar and looped overnight with no issues
Scott Leibrand
@scottleibrand
Oct 09 2016 06:43
@libxmike did you consistently get the same error on every run? Or just a one-time thing?
Mike
@libxmike
Oct 09 2016 06:43
consistently
with tail
gettig every minute
Matthias
@ceben80
Oct 09 2016 06:47
Generell Q @libxmike did you set your basal setting to U/hr ?
....and morning :smile:
Mike
@libxmike
Oct 09 2016 06:47
I did not set it yet, morning
Mike
@libxmike
Oct 09 2016 06:54
if you mean Basal in NS then yes
Matthias
@ceben80
Oct 09 2016 06:55
Setting in the pump
You can set to % or U/hr
Mike
@libxmike
Oct 09 2016 06:57
I dont even know if openaps communicate with the pump
Sandra Keßler
@SandraK82
Oct 09 2016 07:21
hm current test fails :/ what is the meaning of this:
rm: cannot remove ‘enact/enacted.json’: No such file or directory enact/enacted.json raised byte must be in range(0, 256) pump://JSON/set_temp_basal/enact/enacted.json Traceback (most recent call last): ValueError: byte must be in range(0, 256) grep: enact/enacted.json: No such file or directory enact/enacted.json raised byte must be in range(0, 256) pump://JSON/set_temp_basal/enact/enacted.json Traceback (most recent call last): ValueError: byte must be in range(0, 256) cat: enact/enacted.json: No such file or directory
it shows each minute in pump-loop.log and no temp basal is set
Sandra Keßler
@SandraK82
Oct 09 2016 07:52
hm... reboot did not help, but unklug/replug ti stick helped...
Jason Calabrese
@jasoncalabrese
Oct 09 2016 08:03
sometimes the ti stick can get into a bad state, you can restart usb too
Sandra Keßler
@SandraK82
Oct 09 2016 08:04
it is stränge that the error above gives no Indikation (at least for me currently) whats gone wrong
Jason Calabrese
@jasoncalabrese
Oct 09 2016 08:11
some of the aliases can hide the real error
running a report directly can help spot the real cause
Mike
@libxmike
Oct 09 2016 09:30
In which file is the pump serial stored?
What format of the serial should I use, one that is on the back of the pump or just the in the firmware?
Mike
@libxmike
Oct 09 2016 10:48
ok, found it, serial schuld be just numbers
live4sw
@live4sw
Oct 09 2016 13:48
Hi all - just got set up with xDrip 2.0.6_1 update 1, had never used xDrip before (was previously wired). Seems better than using the uploader. Are most of you guys using xDrip with Share now?
And is it fine if you have multiple phones set up with xDrip and the same receiver? Figure it might be good to have that for redundancy.
David
@davidkeddydb
Oct 09 2016 14:26
Hello, for those using edison, can an adafruit baterry just plug into a sparkfun board or is soldering required? Is the connector behind the otg usb where you plug it in? Thanks for any insight.
Jason Calabrese
@jasoncalabrese
Oct 09 2016 14:49
@live4sw your using the current dev branch, (I updated the version yesterday) you can have multiple uploaders going at the same time, and the deltas will still be reasonable
C-Ville
@C-Ville
Oct 09 2016 15:40
@davidkeddydb my sparkfun board does not have a battery plug, so soldering would be required
Sandra Keßler
@SandraK82
Oct 09 2016 15:56
please help me:
Starting pump-loop at Sun 9 Oct 17:54:11 CEST 2016:
Radio ok, Listening: .No comms detected
Profile less than 60m old
glucose.json newer than temp_basal.json
Temp refreshed
{"carbs":66,"boluses":5,"mealCOB":47}
{"ratio":1.26}
{"iob":6.561,"activity":0.0243,"bolussnooze":4.451,"basaliob":1.715,"netbasalinsulin":2.7,"hightempinsulin":3.5,"time":"2016-10-09T15:54:03.000Z"}
{"delta":6,"glucose":237,"short_avgdelta":6.94,"long_avgdelta":8.43}
{"duration":0,"rate":4.2,"temp":"absolute"}
Adjusting basal from 1.4 to 1.75
Adjusting target_bg from 100 to 92
Adjusting sens from 30 to 23.8
Carb Impact: 8.9 mg/dL per 5m; CI Duration: 7 hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 6.2 hours
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":237,"tick":"+6","eventualBG":362,"snoozeBG":293,"predBGs":{"IOB":[237,242,247,250,252,253,253,252,250,247,243,238,232,226,219,212,206,199,193,186,180,175,169,163,158,153,148,143,138,134,130,125,121,118,114,110,107,104,101,99,96,94,92,90,88],"aCOB":[237,244,251,257,262,268,273,277,281,285,288,290,293,294,296,297,298,300,301,302,303,305,306,307,309,310,312,313,315,317,318,320,322,323,325,327,329,331,333,335,338,340,342,344,347,351,355,358,362,365,368,372,375,378,380],"COB":[237,243,248,254,258,263,267,270,273,276,278,280,282,283,284,284,285,285,286,286,287,288,289,290,291,292,293,294,296,297,298,300,301,303,304,306,308,310,312,314,316,319,321,324,326,330,334,338,342,345,349,353,356,359,362]},"COB":47,"IOB":6.561,"reason":"COB: 47, Dev: 53, BGI: -2.89, ISF: 24, Target: 92; Eventual BG 362 >= 100, adj. req. rate: 18.7 to maxSafeBasal: 8.399999999999999, no temp, setting 8.4U/hr","duration":30,"rate":8.4}
rm: cannot remove ‘enact/enacted.json’: No such file or directory
enact/enacted.json raised byte must be in range(0, 256)
pump://JSON/set_temp_basal/enact/enacted.json
Traceback (most recent call last):
ValueError: byte must be in range(0, 256)
grep: enact/enacted.json: No such file or directory
enact/enacted.json raised byte must be in range(0, 256)
pump://JSON/set_temp_basal/enact/enacted.json
Traceback (most recent call last):
ValueError: byte must be in range(0, 256)
cat: enact/enacted.json: No such file or directory
glucose.json newer than pumphistory: Refreshed pumphistory
{"carbs":66,"boluses":5,"mealCOB":47}
{"ratio":1.26}
{"iob":6.549,"activity":0.0246,"bolussnooze":4.431,"basaliob":1.709,"netbasalinsulin":2.7,"hightempinsulin":3.5,"time":"2016-10-09T15:54:31.000Z"}
{"delta":3,"glucose":240,"short_avgdelta":4.28,"long_avgdelta":7.22}
{"duration":0,"rate":4.2,"temp":"absolute"}
Adjusting basal from 1.4 to 1.75
Adjusting target_bg from 100 to 92
Adjusting sens from 30 to 23.8
Carb Impact: 5.9 mg/dL per 5m; CI Duration: 10.5 hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 6.2 hours
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":240,"tick":"+3","eventualBG":292,"snoozeBG":278,"predBGs":{"IOB":[240,242,244,245,245,245,243,241,238,234,230,224,218,212,205,199,192,185,179,173,167,161,155,150,144,139,134,129,125,120,116,112,108,104,100,97,94,91,88,85,83,81,79,77,75],"aCOB":[240,247,253,260,265,271,276,280,284,287,290,293,295,297,299,300,301,302,303,305,306,307,309,310,312,313,315,316,318,320,321,323,325,326,328,330,332,334,336,338,341,343,345,348,350,354,358,361,365,368,372,375,378,381,383],"COB":[240,243,246,248,250,251,253,254,254,254,254,254,253,252,250,249,247,246,245,243,242,242,241,240,240,239,239,239,239,239,239,239,240,240,241,242,243,244,245,247,248,250,252,254,256,260,264,267,271,274,278,282,285,288,292]},"COB":47,"IOB":6.549,"reason":"COB: 47, Dev: 36, BGI: -2.93, ISF: 24, Target: 92; Eventual BG 292 >= 100, adj. req. rate: 17.4 to maxSafeBasal: 8.399999999999999, no temp, setting 8.4U/hr","duration":30,"rate":8.4}
rm: cannot remove ‘enact/enacted.json’: No such file or directory
enact/enacted.json raised byte must be in range(0, 256)
pump://JSON/set_temp_basal/enact/enacted.json
Traceback (most recent call last):
ValueError: byte must be in range(0, 256)
today i had already one time this error, what is causing it
or where should i start debugging
live4sw
@live4sw
Oct 09 2016 16:07
@jasoncalabrese Awesome, thank you. I am updating my NS site to the most current dev now.
David
@davidkeddydb
Oct 09 2016 16:20
@C-Ville can you pm me a picture of your rig? Maybe I will give it a shot.
Matt Pressnall
@logichammer
Oct 09 2016 17:37
Thanks, @scottleibrand ! I got there eventually...love being able to override those defaults now...better control!
Scott Leibrand
@scottleibrand
Oct 09 2016 17:39
@SandraK82 I would start by running openaps enact manually.
Also look at the contents of suggested.json.
Oh, wait. You're trying to set a temp higher than 6.4U/hr.
Sandra Keßler
@SandraK82
Oct 09 2016 17:40
next time I will try @scottleibrand Lost my temper this time and reinstalled everything
yes, my max is set to 9U/h
Scott Leibrand
@scottleibrand
Oct 09 2016 17:41
bewest/decoding-carelink#116
Decocare doesn't support past 6.4 yet, but that issue details how it should, if you want to fix it.
Needs fixed both for reading pumphistory and then for enacting and reading temp basals.
Sandra Keßler
@SandraK82
Oct 09 2016 17:43
ah nice, i will try to fix it and test it
Scott Leibrand
@scottleibrand
Oct 09 2016 17:44
In the mean time, just set your max basal to 6.4
(And do a correction bolus if needed when it's trying to do higher but max'd out at 6.4 for too long)
Mike
@libxmike
Oct 09 2016 18:18
@scottleibrand what do I put in "What kind of CGM are you using? (i.e. G4, shareble, G5, MDT) " if I use NS/mongodb for BG?
also get following error on the end running oref0-setup.sh
Traceback (most recent call last):
  File "/usr/local/bin/openaps-import", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-import", line 89, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 52, in __call__
    self.epilog( )
  File "/home/pi/src/openaps/bin/openaps-import", line 50, in epilog
    super(ImportToolApp, self).epilog( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 75, in epilog
    self.create_git_commit( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 89, in create_git_commit
    self.repo.git.add([diff.b_path], write_extension_data=False)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 466, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 934, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 718, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git add enact/suggested.json' returned with exit code 128
stderr: 'fatal: pathspec 'enact/suggested.json' did not match any files'
Could not import alias.json
Mike
@libxmike
Oct 09 2016 18:25
I use Rpi Zero and Carelink
Scott Leibrand
@scottleibrand
Oct 09 2016 18:37
@libxmike if you ever plug in a CGM receiver, which would it be?
@libxmike do you get the same error if you run it again?
Mike
@libxmike
Oct 09 2016 18:47
@scottleibrand I don't have CGM receiver, I use Libre with xDrip so BG is stored in Mongo
Scott Leibrand
@scottleibrand
Oct 09 2016 18:48
Ok, then it doesn't matter: just hit enter
Mike
@libxmike
Oct 09 2016 18:51
I'm running the scrip again right now
Mike
@libxmike
Oct 09 2016 18:57
@scottleibrand no error after 2nd run
is there a quick way to check if carelink comm works?
also do I need to set something on the pump, 522, to enable communication?
Scott Leibrand
@scottleibrand
Oct 09 2016 19:02
Make sure temp basal type is U/he
u/hr
Tail the pump-log per the docs to see if it's communicating yet.
Mike
@libxmike
Oct 09 2016 19:03
U/H is set
in pump-log get just Listening: ........
Scott Leibrand
@scottleibrand
Oct 09 2016 19:04
Listening should only appear for mmeowlink setups not Carelink.
Mike
@libxmike
Oct 09 2016 19:05
sorry, there is more in pump-log
  File "/home/pi/src/mmeowlink/mmeowlink/vendors/serial_interface.py", line 30, in open
    self.serial = serial.Serial( self.device, self.speed )
  File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 182, in __init__
    self.open()
  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 247, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB.Carelink0: [Errno 2] No such file or directory: '/dev/ttyUSB.Carelink0'
mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
 Listening: .................................................
Scott Leibrand
@scottleibrand
Oct 09 2016 19:05
You entered the try port wrong in oref0-setup
Mike
@libxmike
Oct 09 2016 19:06
what should I enter?
Scott Leibrand
@scottleibrand
Oct 09 2016 19:08
Probably need to just hit Enter. Don't recall what it says exactly.
Mike
@libxmike
Oct 09 2016 19:08
Are you using mmeowlink? If not, press enter. If so, what TTY port (i.e. /dev/ttySOMETHING)?
Scott Leibrand
@scottleibrand
Oct 09 2016 19:10
"If not, press enter."
Mike
@libxmike
Oct 09 2016 19:10
do I need to run the script again or can I change it in a file?
Scott Leibrand
@scottleibrand
Oct 09 2016 19:11
Feel free to suggest clearer language in a PR.
That one would be easiest to just re-run
Mike
@libxmike
Oct 09 2016 19:12
yeah, I have some suggestions for the doc language, I'm in IT/Linux/Solaris for 20 year but have sometimes problem to understand :)
Terri Lyman
@tatigger
Oct 09 2016 19:12
I also got errors on my first installation using the setup. It did not take my pump serial number, which I fixed by manually adding it, then it is not reading the cgm. It tried to install the BLE portion, which didn't work when I installed my first instance, so I just connected with a USB cable. That didn't work either, @logichammer suggested something above which I am going to try in a minute. Maybe I should just reinstall with the setup tool a second time?
Scott Leibrand
@scottleibrand
Oct 09 2016 19:14
@tatigger yeah, best to figure out what you're entering wrong into oref0-setup vs. hacking ini files.
Terri Lyman
@tatigger
Oct 09 2016 19:14
Ok, will do. Thanks @scottleibrand
Scott Leibrand
@scottleibrand
Oct 09 2016 19:14
Or identify any remaining bugs in oref0-setup of course.
Terri Lyman
@tatigger
Oct 09 2016 19:14
LOL
Terri Lyman
@tatigger
Oct 09 2016 19:22

Using /usr/local/lib/python2.7/dist-packages/parsedatetime-2.1-py2.7.egg
Finished processing dependencies for openaps-contrib==0.0.15
fatal: destination path 'oref0' already exists and is not an empty directory.
Already up-to-date.
npm WARN package.json mocha@2.5.3 No README data
npm ERR! Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/clockset.sh'
npm ERR! { [Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/clockset.sh']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: '/home/pi/src/oref0/node_modules/oref0/bin/clockset.sh' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.4.13-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/src/oref0
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /home/pi/src/oref0/node_modules/oref0/bin/clockset.sh
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/clockset.sh'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/src/oref0/npm-debug.log
npm ERR! not ok code 0
installed /etc/udev/rules.d/80-medtronic-carelink.rules
installed /etc/udev/rules.d/80-dexcom.rules
Installing bash completion script /etc/bash_completion.d/python-argcomplete.sh
openaps 0.1.6-dev
pi@raspberrypi:~ $

I assume all the capital letters and fancy colors means a problem?
Mike
@libxmike
Oct 09 2016 19:24
this may be the problem? fatal: destination path 'oref0' already exists and is not an empty directory.
Terri Lyman
@tatigger
Oct 09 2016 19:24
Yes, but the directions say to run this if you are not sure if you set it up correctly before, right, so it should overwrite it, yes?
Dana Lewis
@danamlewis
Oct 09 2016 19:25
No. You already did that. Just rerun the oref0 setup one to retry
Terri Lyman
@tatigger
Oct 09 2016 19:25
Oh. Ok. :)
LOL - I've already done LOTS of things!
Mike
@libxmike
Oct 09 2016 19:26
I did rerun the oref0 script but now on the end I get this error:
Attempting to communicate with pump:
pump://JSON/read_temp_basal/monitor/temp_basal.json
monitor/temp_basal.json  raised  /dev/serial/by-id/usb-0a21_8001-if00-port0 already in use
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 40, in main
    output = task.method(args, app)
  File "/home/pi/src/openaps/openaps/uses/use.py", line 44, in __call__
    self.before_main(args, app)
  File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 61, in before_main
    self.setup_medtronic( )
  File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 159, in setup_medtronic
    self.uart = stick.Stick(link.Link(self.scanner( )))
  File "/home/pi/src/decocare/decocare/link.py", line 23, in __init__
    raise AlreadyInUseException("{port} already in use".format(port=port))
decocare.link.AlreadyInUseException: /dev/serial/by-id/usb-0a21_8001-if00-port0 already in use

Schedule openaps in cron? y/[N] y
pump log says:
pi@raspberrypi:~ $ tail -F /var/log/openaps/pump-loop.log
mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
 Listening: .........Starting pump-loop at Sun Oct 9 21:20:21 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old pumphistory: Refreshed pumphistory
Could not parse input data:  { [Error: Cannot find module '/home/pi/myopenaps/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
Old pumphistory-24h refreshed
Old settings refreshError, retrying
Starting pump-loop at Sun Oct 9 21:26:10 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refresh
Scott Leibrand
@scottleibrand
Oct 09 2016 19:29
Progress. :-)
Mike
@libxmike
Oct 09 2016 19:32
where I do go from here @scottleibrand ?
I'm lost again in this Blood Magic :)
Dana Lewis
@danamlewis
Oct 09 2016 19:33
@libxmike give it a few more cycles to get all the data it needs to recommend a temp
Terri Lyman
@tatigger
Oct 09 2016 19:33
LOL! Ok, so did it try to setup CRON this time? So I don't have to? Or did it just attempt to talk to a CRON that I have theoretically already setup(not)?
Mike
@libxmike
Oct 09 2016 19:34
@danamlewis you mean that what cycles in pump-log?
Dana Lewis
@danamlewis
Oct 09 2016 19:35
@tatigger if you tell it to setup cron, it will ;) :)
Terri Lyman
@tatigger
Oct 09 2016 19:35
Woot!
Dana Lewis
@danamlewis
Oct 09 2016 19:35
This won't mess with any of your existing setups, it's a new one
Mike
@libxmike
Oct 09 2016 19:35
Old settings refreshError, retrying
Starting pump-loop at Sun Oct 9 21:26:10 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
Starting pump-loop at Sun Oct 9 21:27:58 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun Oct 9 21:30:40 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun Oct 9 21:32:55 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
Dana Lewis
@danamlewis
Oct 09 2016 19:35
So if you get successfully through, you'll want to comment out any cron that you don't want running
@libxmike yes. Patience ;) see how it says retrying?
Mike
@libxmike
Oct 09 2016 19:36
yup
Terri Lyman
@tatigger
Oct 09 2016 19:36
@danamlewis I didn't have anything setup yet. I am just happy not to have to try it all by myself this time. I am a slow adult learner, LOL
Mike
@libxmike
Oct 09 2016 19:37
just dont know if its trying because of error or not
Dana Lewis
@danamlewis
Oct 09 2016 19:37
@tatigger learning a lot :) doesn't matter what pace!
Terri Lyman
@tatigger
Oct 09 2016 19:43
Ok, @danamlewis This is where I was stuck when I started. If I am reading this correctly, it seems to not be reading the CGM.

pi@raspberrypi:~/open2aps $ openaps get-profile
[Errno 2] No such file or directory
openaps: 'get-profile' is not an openaps command. See 'openaps --help'.

pi@raspberrypi:~/open2aps $ openaps monitor-pump
pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
tz://JSON/rezone/monitor/pumphistory-zoned.json
reporting monitor/pumphistory-zoned.json
tz://JSON/clock/monitor/clock-zoned.json
reporting monitor/clock-zoned.json
iob://text/shell/monitor/iob.json
reporting monitor/iob.json
meal://text/shell/monitor/meal.json
Warning: could not parse monitor/glucose.json
Warning: could not parse monitor/carbhistory.json

/usr/local/lib/node_modules/oref0/bin/oref0-meal.js:85
if (glucose_data.length < 36) {
^
TypeError: Cannot read property 'length' of undefined
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-meal.js:85:21)
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)
at startup (node.js:119:16)
at node.js:906:3
reporting monitor/meal.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pump://JSON/status/monitor/status.json
reporting monitor/status.json
pi@raspberrypi:~/open2aps $

Mike
@libxmike
Oct 09 2016 19:44
@danamlewis what I dont understand what is happening in this cycle, also can I ignore the error I got
Old pumphistory: Refreshed pumphistory
Could not parse input data:  { [Error: Cannot find module '/home/pi/myopenaps/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
determine-basal://text/shell/enact/suggested.json
Dana Lewis
@danamlewis
Oct 09 2016 19:45
@tatigger why are you running those manual commands? Did you successfully complete the setup script?
Terri Lyman
@tatigger
Oct 09 2016 19:46
Yes, but that is where I left off in the directions, so I was just keeping on. Where should I work through next, then?
Scott Leibrand
@scottleibrand
Oct 09 2016 19:50
You haven't done step 3 yet (the one @libxmike is on)
@libxmike that glucose.json is normal on the first run, until the ns-loop successfully downloads it.
Terri Lyman
@tatigger
Oct 09 2016 19:52
Oh! Ok : )
Scott Leibrand
@scottleibrand
Oct 09 2016 19:52
And Carelink sticks suck for range and reliability, so comms errors and retries are normal.
Terri Lyman
@tatigger
Oct 09 2016 19:54
They are just hanging out in a bag together, it's not attached to me yet. I want to run it in tandem with my Tandem pump to make sure the decisions are rational before I add any insulin.
Mike
@libxmike
Oct 09 2016 19:54
@scottleibrand carelink is 20cm away from pump but in pump-log is cycling for over 30min
Scott Leibrand
@scottleibrand
Oct 09 2016 19:54
The output you pasted earlier showed some of them worked. Which ones always fail?
Terri Lyman
@tatigger
Oct 09 2016 19:55
Mine all worked. No errors. Should I see something in my NS setup. It still says OpenAPS unknown
Scott Leibrand
@scottleibrand
Oct 09 2016 19:55
@tatigger good plan. :-)
Mike
@libxmike
Oct 09 2016 19:56
this is what I get pump-log right now:
....
Old pumphistory: Refreshed pumphistory
Could not parse input data:  { [Error: Cannot find module '/home/pi/myopenaps/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
Old settings refreshError, retrying
Starting pump-loop at Sun Oct 9 21:43:05 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
Starting pump-loop at Sun Oct 9 21:44:58 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun Oct 9 21:47:23 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun Oct 9 21:50:19 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun Oct 9 21:52:21 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refreshError, retrying
Starting pump-loop at Sun Oct 9 21:54:12 CEST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Old settings refresh
Scott Leibrand
@scottleibrand
Oct 09 2016 19:57
@libxmike take a look at monitor/pumphistory.json and monitor/temp_basal.json and make sure they have valid data
Mike
@libxmike
Oct 09 2016 19:59
pi@raspberrypi:~ $ cat /home/pi/myopenaps/monitor/pumphistory.json 
[
  {
    "_type": "ChangeTempBasalType", 
    "temp": "absolute", 
    "_description": "ChangeTempBasalType 2016-10-09T20:58:09 head[2], body[0] op[0x62]", 
    "timestamp": "2016-10-09T20:58:09", 
    "_body": "", 
    "_head": "6200", 
    "_date": "89ba140910"
  }, 
  {
    "_type": "EnableDisableRemote", 
    "_description": "EnableDisableRemote 2016-10-09T20:54:45 head[2], body[14] op[0x26]", 
    "timestamp": "2016-10-09T20:54:45", 
    "_body": "2700000000000028000000000000", 
    "_head": "2600", 
    "_date": "adb6140910"
  }, 
  {
    "_type": "EnableDisableRemote", 
    "_description": "EnableDisableRemote 2016-10-09T20:54:38 head[2], body[14] op[0x26]", 
    "timestamp": "2016-10-09T20:54:38", 
    "_body": "2700000000000028000000000000", 
    "_head": "2601", 
    "_date": "a6b6140910"
  }
and
]pi@raspberrypi:~ $ cat /home/pi/myopenaps/monitor/temp_basal.json 
{
  "duration": 0, 
  "rate": 0.0, 
  "temp": "absolute"
cant say if they are valid
Scott Leibrand
@scottleibrand
Oct 09 2016 20:02
Has this pump done any dosing since you changed its settings?
You might set a temp basal and see if it gets picked up on the next refresh.
Mike
@libxmike
Oct 09 2016 20:03
just did
I set some bolus and temp basal
temp_basal.json picked up the change, no change in pumphistory.json
Terri Lyman
@tatigger
Oct 09 2016 20:10
Starting pump-loop at Sun Oct 9 13:08:14 MST 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Profile less than 60m old
temp_basal.json less than 5m old
Pumphistory less than 5m old
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Sun Oct 9 13:08:36 MST 2016
Which part of this is my cgm data?
I do have the correct information in the temp basal history, just tested that.
Scott Leibrand
@scottleibrand
Oct 09 2016 20:11
This is the pump-loop. CGM data is pulled by cgm-loop or ns-loop.
Terri Lyman
@tatigger
Oct 09 2016 20:11
Ah. How do I see that?
Let me think a minute.
Scott Leibrand
@scottleibrand
Oct 09 2016 20:12
Ctrl-C to cancel this tail, and run another one for the file you want.
Or just look at the contents of monitor/glucose.json
@libxmike it won't try to refresh pumphistory until it refreshes settings or the last one gets an hour old.
Mike
@libxmike
Oct 09 2016 20:13
ok
Scott Leibrand
@scottleibrand
Oct 09 2016 20:14
If you want you can comment out pump-loop in cron and start running things manually to see what's failing.
Mike
@libxmike
Oct 09 2016 20:16
I have entries in cgm-loop.log but I use NS
cgm://JSON/oref0_glucose/raw-cgm/raw-entries.json
Sun Oct  9 22:15:03 CEST 2016
ns-loop.log
ns://JSON/shell/cgm/ns-glucose.json
No JSON object could be decoded

Refreshed temptargets and meal-carbs
Uploaded
Starting ns-loop at Sun Oct 9 22:11:12 CEST 2016:
ns://JSON/shell/cgm/ns-glucose.json
No JSON object could be decoded
Scott Leibrand
@scottleibrand
Oct 09 2016 20:17
You may not have configured NS correctly then.
Mike
@libxmike
Oct 09 2016 20:18
well, then I'm not sure what I'm doing :)
Terri Lyman
@tatigger
Oct 09 2016 20:19
Ok, @scottleibrand this is what I got

tail -F /var/log/openaps/ns-loop.log
Starting ns-loop at Sun Oct 9 13:12:02 MST 2016:
ns://JSON/shell/cgm/ns-glucose.json
No JSON object could be decoded

Starting ns-loop at Sun Oct 9 13:17:02 MST 2016:
ns://JSON/shell/cgm/ns-glucose.json
No JSON object could be decoded

Refreshed temptargets and meal-carbs
Uploaded

: ) I have done the same thing, LOL
Let me check cgm and make sure that is working ok.
@libxmike is your cgm loop working ok?
Mike
@libxmike
Oct 09 2016 20:22
what you mean with working?
not at all, I dont use CGM , I store BG from Libre/xDrip in NS/mongodb
Scott Leibrand
@scottleibrand
Oct 09 2016 20:23
@libxmike's cgm-loop will never do anything useful without a CGM. :-)
Terri Lyman
@tatigger
Oct 09 2016 20:23
Oh, yes, @libxmike I remember you said that earlier. Sorry
LOL, since I have one, I thought i would check that piece before I tackle NS
Scott Leibrand
@scottleibrand
Oct 09 2016 20:24
:+1:
Mike
@libxmike
Oct 09 2016 20:24
@scottleibrand so how to I use loop with NS/mongodb data?
Scott Leibrand
@scottleibrand
Oct 09 2016 20:24
You should both check your NS URL and API_SECRET in ns.ini and crontab.
Make sure the URL has no trailing / and the secret is right. (If you entered the hashed secret instead of the plain text in the script, it'll be hashed twice and wrong.)
Mike
@libxmike
Oct 09 2016 20:26
I got the trailing / and hashed secret , not plain text pass
Scott Leibrand
@scottleibrand
Oct 09 2016 20:27
There is also an openaps use ns preflight or similar that might help check that stuff.
Try removing trailing /
Mike
@libxmike
Oct 09 2016 20:29
is removed, pass is plain text now, do need to restart something after ns.ini is saved ?
Scott Leibrand
@scottleibrand
Oct 09 2016 20:29
@libxmike if that turns out to be your issue, openaps/oref0#242 might be something you could help tackle.
@libxmike no, the secret should be hashed (once) in those config files.
You just have to enter it plain text in oref0-setup.
Terri Lyman
@tatigger
Oct 09 2016 20:30
how do I go in and remove that trailing /?
Mike
@libxmike
Oct 09 2016 20:30
do it with vi
Scott Leibrand
@scottleibrand
Oct 09 2016 20:30
Edit the file with nano probably.
Vi is much harder to use. :-)
(I use it, but it takes some getting used to.)
Mike
@libxmike
Oct 09 2016 20:31
I only know vi :)
Scott Leibrand
@scottleibrand
Oct 09 2016 20:31
:+1:
Mike
@libxmike
Oct 09 2016 20:32
is there any other editor in *nix ? :)
Scott Leibrand
@scottleibrand
Oct 09 2016 20:32
Is emacs an editor? Or an OS? ;-)
@tatigger or you can just re-run oref0-setup.
Mike
@libxmike
Oct 09 2016 20:33
never liked emacs, VI FOR LIFE!! :)
hehe
Scott Leibrand
@scottleibrand
Oct 09 2016 20:34
vim really.
Terri Lyman
@tatigger
Oct 09 2016 20:36
I will re-run the setup I guess. But I didn't put a trailing/ in the setup, so the setup added it for me. How do I keep it from doing that?
I think I will have to use Nano
Mike
@libxmike
Oct 09 2016 20:36
yes, trailing / is added by the script
Scott Leibrand
@scottleibrand
Oct 09 2016 20:37
Ah, that must be done for ns.ini only.
Does your crontab show the trailing / ?
Mike
@libxmike
Oct 09 2016 20:37
with vi you just remove it with "x" then :!q
Terri Lyman
@tatigger
Oct 09 2016 20:37
Let me check. Wait. How do I check that one?
Scott Leibrand
@scottleibrand
Oct 09 2016 20:37
In that case it's probably not your problem.
So maybe move on to testing NS pulls manually.
Mike
@libxmike
Oct 09 2016 20:39
so, I guess my ns-loop.log look now better after removing "/"
Refreshed temptargets and meal-carbs
Uploaded
Starting ns-loop at Sun Oct 9 22:31:13 CEST 2016:
ns://JSON/shell/cgm/ns-glucose.json
reporting cgm/ns-glucose.json
Refreshed temptargets and meal-carbs
Uploaded
Starting ns-loop at Sun Oct 9 22:36:12 CEST 2016:
ns://JSON/shell/cgm/ns-glucose.json
reporting cgm/ns-glucose.json
Refreshed temptargets
cgm-loop.log also look good
Terri Lyman
@tatigger
Oct 09 2016 20:40
ummm @scottleibrand how do I test NS pulls manually?
Mike
@libxmike
Oct 09 2016 20:40
so the problem was the /
Scott Leibrand
@scottleibrand
Oct 09 2016 20:40
Hmm, really?
But you didn't enter/paste a trailing / into oref0-setup?
Mike
@libxmike
Oct 09 2016 20:41
no
Terri Lyman
@tatigger
Oct 09 2016 20:42
@scottleibrand , me or @libxmike , because I have no clue what I am doing. I didn't enter one, @scottleibrand I know for sure, cuz I copied straight out of my notebook with the url, no /
Mike
@libxmike
Oct 09 2016 20:42
was done by setup script
Terri Lyman
@tatigger
Oct 09 2016 20:42
Setting up oref0 in /home/pi/open2aps for pump 431813 with G4 CGM,
NS host https://whispering_spire_16091.herokuapp.com, Carelink, advanced features autosens meal
Scott Leibrand
@scottleibrand
Oct 09 2016 20:42
That's strange, because that would seem to mean it would break for everyone, which it hasn't.
Terri Lyman
@tatigger
Oct 09 2016 20:42
That is the string.
The line of confirmation code after I ran setup. Probably can find it from yesterday to, I saved the log.
Scott Leibrand
@scottleibrand
Oct 09 2016 20:43
That URL doesn't work.
Mike
@libxmike
Oct 09 2016 20:43

SORRY!! I did enter / :(

Are you using Nightscout? If not, press enter.
If so, what is your Nightscout host? (i.e. https://mynightscout.azurewebsites.net)? http://192.168.1.208:1337/
Ok, http://192.168.1.208:1337/ it is.

but I did copy from browser w/o "/"

Terri Lyman
@tatigger
Oct 09 2016 20:44
Mine?
Scott Leibrand
@scottleibrand
Oct 09 2016 20:44
@tatigger when I click that URL heroku gives me a no such app error.
Terri Lyman
@tatigger
Oct 09 2016 20:45
Ha! You are right - I need - not _. Will re-run setup and check again. Sorry
Scott Leibrand
@scottleibrand
Oct 09 2016 20:46
@tatigger I highly recommend copy and paste vs. typing everything in.
@libxmike yeah, browsers add the trailing / - which is why we need someone to strip it on input.
Mike
@libxmike
Oct 09 2016 20:47
@scottleibrand except for NS URL from browser :)
Terri Lyman
@tatigger
Oct 09 2016 20:49
So I have a question, which api do I use? I think Heroku requested an API when I made that second NS account.
PieterGit
@PieterGit
Oct 09 2016 21:00
check question for @scottleibrand : if i want to integrated my cgm-loop for openaps/oref0#243 , I must continuously write a cgm/glucose.json file with 24h of egv info (288 records). Is that right? Or are there other cgm files the other loops need.
Terri Lyman
@tatigger
Oct 09 2016 21:11
pi@raspberrypi:~/open2aps $ tail -F /var/log/openaps/ns-loop.log
Starting ns-loop at Sun Oct 9 14:08:02 MST 2016:
ns://JSON/shell/cgm/ns-glucose.json
reporting cgm/ns-glucose.json
Refreshed temptargets and meal-carbs
Uploaded
Does this mean NS is working? because my NS website still shows openAPS as unknown.
Mike
@libxmike
Oct 09 2016 21:11
looks good, check cat /home/pi/myopenaps/cgm/glucose.json
@tatigger so does my NS, but BG data ist catured
Terri Lyman
@tatigger
Oct 09 2016 21:14
Ok, but that file captures CGM data, which I have connected to the pi. @libxmike
Mike
@libxmike
Oct 09 2016 21:16
and ns-glucose.json ?
Terri Lyman
@tatigger
Oct 09 2016 21:18
Yes! that worked too - so then where do we see the suggested actions? I thought they show up in NS
Mike
@libxmike
Oct 09 2016 21:18
check post from Pieter from 23:00
I dont know yet , I'm setting my rig for the first time
apparently you need 24h of data , 288 records
Terri Lyman
@tatigger
Oct 09 2016 21:20
Cool thanks so much!
Scott Leibrand
@scottleibrand
Oct 09 2016 21:38
No, the 288 thing is unrelated to getting uploads to NS working.
@PieterGit my plan is to use the https://github.com/openaps/docs/wiki/CGM-Loop-with-openxshareble-scratchpad approach for plugged in CGM as well.
Luis Betancourt
@betluis
Oct 09 2016 23:24

Code Issues 13 Pull requests 3 Pulse
Open
setting up openaps
hello...

After two months of finding the right used pump, getting my daughter to change from injections tu pump, get the CGM sensor, etc... finally I am trying to make progress with the actual implementation of the openaps system.

I am stuck right now in the process to update data to Nightscout, could somebody please help me?

below
is the reponse when I do "openaps do-everything"

thsnk a lot for any help!
Luis

pi@raspberrypi:~/my_openaps $ openaps do-everything
PREFLIGHT
PREFLIGHT OK
usage: openaps-report invoke [-h]
{model.json,monitor/battery.json,monitor/clock.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-recent-devicestatus.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-predict/oref0.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}
[{model.json,monitor/battery.json,monitor/clock.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-recent-devicestatus.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-predict/oref0.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: 'raw-cgm/glucose-raw.json' (choose from u'model.json', u'monitor/battery.json', u'monitor/clock.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-recent-devicestatus.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-predict/oref0.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')
ns://JSON/shell/nightscout/recent-treatments.json
Could not parse pumphistory: { [Error: Cannot find module '/home/pi/my_openaps/monitor/pump-history.json'] code: 'MODULE_NOT_FOUND' }
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in
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-pack

Terri Lyman
@tatigger
Oct 09 2016 23:24
Ok, so all three loops seem to be looping. But I still have no uploads to NS. What do I check next?
Scott Leibrand
@scottleibrand
Oct 09 2016 23:26
@betluis I would switch over to the dev docs, particularly http://openaps.readthedocs.io/en/oref0-setup/docs/walkthrough/phase-2/oref0-setup.html
@tatigger have you unplugged your CGM and confirmed that the ns-loop is updating the glucose.json from NS?
Luis Betancourt
@betluis
Oct 09 2016 23:31

ello...

After two months of finding the right used pump, getting my daughter to change from injections tu pump, get the CGM sensor, etc... finally I am trying to make progress with the actual implementation of the openaps system.

I am stuck right now in the process to update data to Nightscout, could somebody please help me?

below
is the reponse when I do "openaps do-everything"

thsnk a lot for any help!
Luis


pi@raspberrypi:~/my_openaps $ openaps do-everything
PREFLIGHT
PREFLIGHT OK
usage: openaps-report invoke [-h]
{model.json,monitor/battery.json,monitor/clock.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-recent-devicestatus.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-predict/oref0.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}
[{model.json,monitor/battery.json,monitor/clock.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-recent-devicestatus.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-predict/oref0.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: 'raw-cgm/glucose-raw.json' (choose from u'model.json', u'monitor/battery.json', u'monitor/clock.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-recent-devicestatus.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-predict/oref0.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')
ns://JSON/shell/nightscout/recent-treatments.json
Could not parse pumphistory: { [Error: Cannot find module '/home/pi/my_openaps/monitor/pump-history.json'] code: 'MODULE_NOT_FOUND' }
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-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.m

Terri Lyman
@tatigger
Oct 09 2016 23:48
I think this means that the file is still getting bg and it is not plugged into pi, so that is from NS
i@raspberrypi:~/open2aps $ cat /home/pi/open2aps/cgm/glucose.json
[
{
"filtered": 187000,
"direction": "Flat",
"noise": 1,
"type": "sgv",
"_id": "57fad5fad3e66aff689902b4",
"sysTime": "2016-10-09T16:41:58.877-0700",
"dateString": "2016-10-09T16:41:58.877000-07:00",
"sgv": 161,
"device": "xDrip-DexcomShare",
"xDrip_filtered": 187,
"unfiltered": 181000,
"xDrip_raw": 181,
"date": 1476056518877,
"rssi": 100,
"xDrip_calculated_current_slope": -1.0027542316228575e-05,
"xDrip_age_adjusted_raw_value": 181,
"xDrip_calculated_value": 161,
"glucose": 161
},
Luis Betancourt
@betluis
Oct 09 2016 23:51
@scottleibrand ok, thanks I'll go to the documentation you mention and try to see where I can get from there.