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

28th
May 2016
Michael Sluis
@binaryrefinery
May 28 2016 00:41
@mddub thanks for the info - I hadn't considered the possible lag impact. 👍
Paul Martin
@Spazholio
May 28 2016 01:22
So after a base install and update of all packages on an Edison, how much space do most people have leftover?
garykidd
@garykidd
May 28 2016 01:31
pi@raspberrypi:~/APS0 $ openaps alias add status-upload '! bash -c "openaps report invoke monitor/upload-status.json && ns-upload https://ABCDEFABCDEF.azurewebsites.net ############ devicestatus.json monitor/upload-status.json"'
added status-upload ! bash -c "openaps report invoke monitor/upload-status.json && ns-upload https://ABCDEFABCDEF.azurewebsites.net ########## devicestatus.json monitor/upload-status.json"
Traceback (most recent call last):
File "/usr/local/bin/openaps-alias", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/pi/src/openaps/bin/openaps-alias", line 37, 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-alias", line 27, in epilog
super(AliasApp, 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-1.0.2-py2.7.egg/git/cmd.py", line 450, in <lambda>
return lambda args, **kwargs: self._call_process(name, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/GitPython-1.0.2-py2.7.egg/git/cmd.py", line 902, in _call_process
return self.execute(make_call(),
_kwargs)
File "/usr/local/lib/python2.7/dist-packages/GitPython-1.0.2-py2.7.egg/git/cmd.py", line 695, in execute
raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git add openaps.ini' returned with exit code 128
stderr: 'error: insufficient permission for adding an object to repository database .git/objects
error: openaps.ini: failed to insert into database
error: unable to index file openaps.ini
fatal: updating files failed'
ANyone have an idea why this isn't working?
Ali Mazaheri
@amazaheri
May 28 2016 01:37
@Spazholio I have been on %76 used constantly (yocto) had issues with space with ubilinux way back when I was running it.
Paul Martin
@Spazholio
May 28 2016 01:42
@amazaheri Very cool. I’ve got 78% before even installing openaps, so I wanted to make sure there wasn’t something else I could do to trim it up a bit.
Lynne Butts
@flutelynne_twitter
May 28 2016 01:43
Entered stuff I missed like all of the variable for carelink, all pump fields, mmconnect fields. Configured my nightscout site, etc. Looking at openaps / oref0, and installed. But when I type mm-stick list-usb, I get "This must be run as root." Also, what do I put for <input> <output> in the mm-format areas?
Paul Martin
@Spazholio
May 28 2016 01:47
@garykidd I’m seeing git errors in there. Have you run oref0-reset-git to make sure your repo’s healthy?
garykidd
@garykidd
May 28 2016 01:48
@Spazholio thx

pi@raspberrypi:~/APS0 $ oref0-reset-git
Attempting to fix git corruption. Please wait 15s.
Git repo does not appear to be corrupt.

oref0-fix-git-corruption: no process found

Paul Martin
@Spazholio
May 28 2016 01:49
Are there weird permissions on any of the files in there? Have you ever run them via sudo?
garykidd
@garykidd
May 28 2016 01:49
dont think so
this is weird...
pi@raspberrypi:~/APS0 $ openaps alias show
monitor-gkdex report invoke monitor/glucose.json
last_four_hours report invoke last_four_pump_hours.json last_four_cgm_hours.json
refresh_pump report invoke recent_pump_data.json read_clock.json read_Battery_status.json pump_settings.json carb_ratios.json current_basal_profile.json insulin_sensitivities.json bg_targets.json pump_status.json
gather-profile report invoke settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json settings/profile.json
gather ! bash -c "rm -f monitor/; openaps gather-profile && openaps monitor-cgm && openaps monitor-pump && openaps report invoke monitor/iob.json"
preflight ! bash -c "rm -f monitor/clock.json && openaps report invoke monitor/clock.json 2>/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || (mm-stick warmup || (sudo oref0-reset-usb && echo PREFLIGHT SLEEP && sleep 120); echo PREFLIGHT FAIL; exit 1)"
monitor-pump report invoke monitor/clock.json monitor/temp_basal.json monitor/pumphistory.json monitor/iob.json
monitor-cgm report invoke monitor/glucose.json
status-upload ! bash -c "openaps report invoke monitor/upload-status.json && ns-upload https://xxxxxxxxxxxxxx.azurewebsites.net xxxxxxxxxxxxx devicestatus.json monitor/upload-status.json"
Traceback (most recent call last):
File "/usr/local/bin/openaps-alias", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/pi/src/openaps/bin/openaps-alias", line 37, 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-alias", line 27, in epilog
super(AliasApp, 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-1.0.2-py2.7.egg/git/cmd.py", line 450, in <lambda>
return lambda
args, kwargs: self._call_process(name, *args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/GitPython-1.0.2-py2.7.egg/git/cmd.py", line 902, in _call_process
return self.execute(make_call(), **_kwargs)
File "/usr/local/lib/python2.7/dist-packages/GitPython-1.0.2-py2.7.egg/git/cmd.py", line 695, in execute
raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git add openaps.ini' returned with exit code 128
stderr: 'error: insufficient permission for adding an object to repository database .git/objects
error: openaps.ini: failed to insert into database
error: unable to index file openaps.ini
fatal: updating files failed'
pi@raspberrypi:~/APS0 $
Paul Martin
@Spazholio
May 28 2016 01:50
I don’t know why you’d be getting permissions errors in there. That’s definitely odd.
garykidd
@garykidd
May 28 2016 01:58
@Spazholio thanks Paul
Martin Haeberli
@mhaeberli
May 28 2016 02:38
Do I understand correctly that ALL 722 s are OpenAPS compatible?
Paul Martin
@Spazholio
May 28 2016 02:39
I think your best bet is to go by firmware rather than model number.
live4sw
@live4sw
May 28 2016 02:41
Quick q - are there existing docs on meal-assist?
My original rig seems to work fine without it despite having upgraded. But when I cloned the repo onto two new devices, it is telling me Optional feature Meal Assist enabled, but could not read required meal data.
I know one of the changes in new oref0 is that it no longer runs if meal-assist is enabled and there is no meal report, so I do want to figure out how to do meal-assist. Just don’t know if there are any good docs to start from.
Martin Haeberli
@mhaeberli
May 28 2016 02:48
@Spazholio thx
Tia Ghose
@tiaghose_twitter
May 28 2016 02:59
hi folks, anyone know if firmware 2.4a 1.1 is too new to use with the reference design?
or is that the 2.4a or lower that is required in the paradigm 523?
garykidd
@garykidd
May 28 2016 03:00
@Spazholio is this not needed if you dont have euro pump?
``openaps report add settings/profile.json text get-profile shell settings/settings.json settings/bg_targets_raw.json settings/insulin_sensitivities_raw.json settings/basal_profile.json preferences.json```
bg_targets_raw.json ?
Paul Martin
@Spazholio
May 28 2016 03:01
I don’t know that euro vs US comes into play with any aspect of the reports that OpenAPS generates. If I’m wrong, someone correct me...
@tiaghose_twitter The best way to check is to see if it has the “PC Connect” option in the menu.
garykidd
@garykidd
May 28 2016 03:11
do youhave a bg_targets_raw.json or just bg_tagets.json?
Jason Calabrese
@jasoncalabrese
May 28 2016 03:14
The _raw.json files are created when using the templates
garykidd
@garykidd
May 28 2016 03:15
@jasoncalabrese it looked like the bg_targets_raw related to conversion of or from euro
Jason Calabrese
@jasoncalabrese
May 28 2016 03:16
I thought when using mgdl it did a copy, but I'm not using the templates yet
garykidd
@garykidd
May 28 2016 03:38
hmmm so doesnt seemlike I need that---kinda confusiong
Tia Ghose
@tiaghose_twitter
May 28 2016 03:54
Paul Martin, okay thanks. I received a picture from a person but he didn't seem to understand what i meant by PC Connect so I'm not sure, and the pump is a fair drive away so don't want to make the trek to find out on my own. Thanks
Paul Martin
@Spazholio
May 28 2016 03:58
@tiaghose_twitter https://github.com/openaps/docs/blob/master/docs/docs/walkthrough/phase-0/hardware.md <— looks like 2.4A and lower means you’re good to go.
Tia Ghose
@tiaghose_twitter
May 28 2016 03:58
okay, yeah i just wasn't sure if the 1.1 at the end of it meant it was higher than 2.4A or lower
Scott Leibrand
@scottleibrand
May 28 2016 04:44
The 1.1 shouldn't matter. And as far as we know all 522s and 722s are good.
@jasoncalabrese looks good for wip/iob-cob.
Jason Curry
@mccgm
May 28 2016 04:52
"Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.0', 'openaps-use')
  File "/usr/local/lib/python2.7/dist-packages/setuptools-21.2.1-py2.7.egg/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/setuptools-21.2.1-py2.7.egg/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/__init__.py", line 52, in __call__
    self.epilog( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-use", line 50, in epilog
    super(UseToolApp, self).epilog( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/cli/__init__.py", line 75, in epilog
    self.create_git_commit( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/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.2-py2.7.egg/git/cmd.py", line 459, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.2-py2.7.egg/git/cmd.py", line 920, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.2-py2.7.egg/git/cmd.py", line 705, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git add openaps.ini' returned with exit code 128
stderr: 'fatal: Unable to create '/home/pi/ayeletssail/.git/index.lock': Permission denied'
I've never seen a "Permission Denied" fatal error
Any clues?
Scott Leibrand
@scottleibrand
May 28 2016 04:58
That usually means you used sudo on an openaps command at some point.
Jason Curry
@mccgm
May 28 2016 05:00
I get the feeling I should know what that would do. But, I don't.
Scott Leibrand
@scottleibrand
May 28 2016 05:00
You have to do something like sudo chown pi.pi -R * to change ownership on everything from root back to pi
Jason Curry
@mccgm
May 28 2016 05:02
Nope, I tried that...I guess it's time to throw in the backup SD
When I run use...model, it returns the model ok followed by the error
Jarred Yaw
@jyaw
May 28 2016 12:51
Anyone have issues on their pi 2 paired with the edumax wifi dongle? My wifi seems to drop every few hours. Then when I take it out and reinsert it seems to restart but the IPs are incorrect. Do I need to do a network restart every once in a while?
Jarred Yaw
@jyaw
May 28 2016 13:35
Every few hours is probably an exaggeration ... it happens at least once every night I sit down to work on this thing tho.
Paul Martin
@Spazholio
May 28 2016 13:40
So…this might be a loaded question, but how do I make OpenAPS more aggressive when I’ve got a high overnight?
I went to bed at 190 (went out with the in-laws and…misbehaved for dinner) and figured I’d be good by morning. Even bolused a bit since I was at 250 two/three hours prior. I woke up at 150. I would prefer to have woken up within range, so is there a way to make that happen? It might be difficult since once I’m up that high, it’s a bit of a struggle to get me back down.
live4sw
@live4sw
May 28 2016 13:46
@Spazholio I think the main limitation on the ability of OpenAPS to bring you back down is the max basal, which is meant as a safety feature.
I limit my max basal to 2x my lowest basal rate
i think that’s about as high as people go
Paul Martin
@Spazholio
May 28 2016 13:47
I’ve never seen it hit my max basal, but I understand that that’s a safety feature.
Oh god, no. I definitely go above that.
Scott Leibrand
@scottleibrand
May 28 2016 13:49
Take a look at NS and see what limit was driving the decisions it was making when you think it should have been more aggressive, particularly when flat or slightly rising.
See if it was hitting maxSafeBasal or not, for example.
Or, paste your profile.json.
live4sw
@live4sw
May 28 2016 13:51
@scottleibrand Just wanted to re-ask my question from the other day - is there an easy way to disable Meal Assist in the newest release? Or, alternatively, are there docs for Meal Assist?
Paul Martin
@Spazholio
May 28 2016 13:52
{"max_iob":5,"type":"current","dia":3,"skip_neutral_temps":false,"current_basal":1.8,"max_daily_basal":2.2,"max_basal":8,"min_bg":100,"max_bg":120,"sens":20,"carb_ratio":5} I think I might have been bumping up against max_iobsince max_basal is higher than it. I don’t think I realized that.
(and yes, I realize my max_basal is high. I treat very aggressivly when I’m high.)
Scott Leibrand
@scottleibrand
May 28 2016 13:56
Meal assist is supposed to be disabled by not passing a meal.json to determine-basal. I think you may be seeing a bug, so I need more info.
That max_iob will never get hit I suspect.
Your actual maxSafeBasal will usually be 6.6U/hr (3x your max daily)
You should consider dropping your max_bg while leaving min_bg unchanged.
Changing them both to 100 will lower the target from 110 to 100, which should mean you end up at least 10 points lower in that kind of situation. There's pretty much no downside to having min_bg=max_bg
Paul Martin
@Spazholio
May 28 2016 14:00
Is setting it to the same number (a la temp targets) something that’s advised, or no? I mean, I don’t see any issue with that, it’ll just make the system to….and there’s my answer.
I had them set a little lower than that but I was getting lows at night, so I bumped them up a bit. I’ll try setting them to be equal.
Scott Leibrand
@scottleibrand
May 28 2016 14:01
Yeah, it "thrashes" a bit, but that doesn't hurt anything.
live4sw
@live4sw
May 28 2016 14:01
Sure - @scottleibrand: the first error comes when profile.json runs, get-profile://text/shell/settings/profile.json Could not parse carbratio_data. Feature Meal Assist enabled but cannot find required carb_ratios.
Paul Martin
@Spazholio
May 28 2016 14:01
I’m still not sure of my DIA though. I’m frankly guessing with that.
Scott Leibrand
@scottleibrand
May 28 2016 14:02
@live4sw and yes, in the advanced section there are docs on autosens and meals assist. Not perfect yet, but they will get you started.
Paul Martin
@Spazholio
May 28 2016 14:03
@live4sw If you go through those docs and note exactly what was unclear or missing, feel free to issue a PR. Or just document what wasn’t there, and I can do it later on. I have meal assist on, but wouldn’t mind wrapping my head more securely around it. =)
Also, I’m going to be setting up some new rigs from scratch in the coming week(s) so I’ll attempt to go through the docs and follow them exactly to see where things fall down or aren’t quite clear.
live4sw
@live4sw
May 28 2016 14:04

this is my settings/profile.json report:

[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 max_iob = max_iob.json device = get-profile remainder = [] insulin_sensitivities = settings/insulin_sensitivities.json

Scott Leibrand
@scottleibrand
May 28 2016 14:05
@Spazholio longer DIA would make it less aggressive with lots of IOB, and shorter DIA is unlikely to be accurate.
@live4sw that looks like a bug. Can you open an oref0 issue? Please include the configuration of your profile.json report and get-profile device.
@live4sw and the get-profile device config?
(Poor connectivity here in the middle of a Norweigian fjord.)
Paul Martin
@Spazholio
May 28 2016 14:07
Thanks @scottleibrand.
Scott Leibrand
@scottleibrand
May 28 2016 14:07
Definitely a modern-day problem. ;-)
Paul Martin
@Spazholio
May 28 2016 14:07
Fjords? Have you been pining for them?
(please let someone get that reference)
live4sw
@live4sw
May 28 2016 14:07
Sure @scottleibrand, will add that as an issue. Appreciate your taking time when on vacation.
Scott Leibrand
@scottleibrand
May 28 2016 14:07
(Not really a #firstworldproblem though.)
feel free to paste your config here, I just won't be able to fix it for awhile. :-)
live4sw
@live4sw
May 28 2016 14:22
@scottleibrand FYI - it appears it was caused by having Remainder = [] in my profile.json and suggested.json reports. Removing those seem to allow the loop to run. I will add issue.
Scott Leibrand
@scottleibrand
May 28 2016 14:32
Ah, good to know. We can probably add a check to oref0 to exclude that. Thx for tracking it down.
Feel free to try your hand at a patch to bin/oref0-get-profile and bin/oref0-determine-basal if you like.
garykidd
@garykidd
May 28 2016 14:36
How do you set time on the rig (RP3)?
Jarred Yaw
@jyaw
May 28 2016 14:41
nm I found the wifi troubleshooting page. I think that first section addresses my issues.
Scott Leibrand
@scottleibrand
May 28 2016 14:42
@garykidd are you trying to set timezone, or set the time when you aren't online and don't have NTP?
timezone you can do with raspi-config as described in the docs, or dpkg-reconfigure tzdata
garykidd
@garykidd
May 28 2016 14:43
pi@raspberrypi:~/APS0 $ openaps use tz clock --timezone "EST" --adjust "missing" --date "None" --astimezone monitor/clock.json
"2016-05-28T00:21:21-05:00"pi@rareport invoke enact/suggested.jsontimezone monitor/clock.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Sat May 28 2016 00:17:49 GMT+0000 (UTC) vs Sat May 28 2016 14:42:48 GMT+0000 (UTC)
reporting enact/suggested.json
pi@raspberrypi:~/APS0 $
Scott Leibrand
@scottleibrand
May 28 2016 14:44
Presumably you're not in Iceland, so you need to set timezone.
garykidd
@garykidd
May 28 2016 14:45
iceland's green...greenlands ice...nope
Scott Leibrand
@scottleibrand
May 28 2016 14:45
We'll be there in a few days. :-)
garykidd
@garykidd
May 28 2016 14:46
ironic..somewhat. You guys travel alot. Hope it's awesome.
Scott Leibrand
@scottleibrand
May 28 2016 14:47
(that statement is true of both Iceland/UTC and EDT)
Norway has been pretty awesome so far. :-)
garykidd
@garykidd
May 28 2016 14:47
ANy issues with using sudo to accomplish raspi-config....
pi@raspberrypi:~/APS0 $ raspi-config -h
Script must be run as root. Try 'sudo raspi-config'
or do I simply change to root directory.
Scott Leibrand
@scottleibrand
May 28 2016 14:51
Sudo is correct for that.
garykidd
@garykidd
May 28 2016 15:06
so I set the timezone correctly but cant seem to get the right time entered--cant find where I'd enter that...woul've thought it would have been in same subdirectory
Scott Leibrand
@scottleibrand
May 28 2016 15:07
You don't.
It gets its time from the network. And it looked like that was correct.
It was just 5 hours off due to the timezone being wrong.
garykidd
@garykidd
May 28 2016 15:09
well 5 mins off or so
garykidd
@garykidd
May 28 2016 15:22
hmmm... which time is which? the latter is correct.
openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Sat May 28 2016 00:17:49 GMT-0400 (EDT) vs Sat May 28 2016 11:21:22 GMT-0400 (EDT)
reporting enact/suggested.json
Scott Leibrand
@scottleibrand
May 28 2016 15:22
The former is the CGM time.
live4sw
@live4sw
May 28 2016 15:23
Ugh - sorry, one more issue with my NS site. It now is incorrectly saying that it is current (OpenAPS ~1m ago) when it is just showing the current IOB: 0.32U
I even turned off my rig to test this out.
Is there a reason that keeps showing? Definitely a problem if I need to mouse over to see if it’s actually working.
garykidd
@garykidd
May 28 2016 15:23
Oh...maybe that's NS time then?
Lynne Butts
@flutelynne_twitter
May 28 2016 15:25
pi@raspberrypi:~/abouttime $ mm-stick list-usb
This must be run as root!
pi@raspberrypi:~/abouttime $ sudo mm-stick list-usb
/usr/local/bin/mm-stick: line 94: cd: /sys/bus/pci/drivers/?hci_hcd: No such file or directory
Weird error. Failed to change directory to /sys/bus/pci/drivers/?hci_hcd
jaylagorio
@jaylagorio
May 28 2016 15:27
Hardware question - does the 511 not work? I just noticed the list stopped at 512. Did the 511 not have RF?
Dana Lewis
@danamlewis
May 28 2016 15:33
Some of the really old models work less well than the medium-old models
jaylagorio
@jaylagorio
May 28 2016 15:33
Crap. Another lead down the drain.
Dana Lewis
@danamlewis
May 28 2016 15:36
I'm not sure anyone has verified either way. But we know 512 has limited settings, 511 we assume is worse.c etc
garykidd
@garykidd
May 28 2016 15:36
@scottleibrand How do you set CGM time?
CGM doesnt appear to have advanced?...pretty sure that'snot right...hmmm unless maybe my CGM is entering a black hole
pi@raspberrypi:~/APS0 $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Sat May 28 2016 00:17:49 GMT-0400 (EDT) vs Sat May 28 2016 11:21:22 GMT-0400 (EDT)
reporting enact/suggested.json
pi@raspberrypi:~/APS0 $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Sat May 28 2016 00:17:49 GMT-0400 (EDT) vs Sat May 28 2016 11:37:49 GMT-0400 (EDT)
reporting enact/suggested.json
Scott Leibrand
@scottleibrand
May 28 2016 15:42
Are you invoking the glucose.json report? Is it updated?
jaylagorio
@jaylagorio
May 28 2016 15:44
@danamlewis OK, I'll blaze that trail then. Fingers crossed.
garykidd
@garykidd
May 28 2016 15:48
@scottleibrand I wasn not.
getting closer
Dana Lewis
@danamlewis
May 28 2016 15:50
@jaylagorio :+1:
garykidd
@garykidd
May 28 2016 16:15
@scottleibrand do you need to use 'units' if you dont have euro pump/settings?
Scott Leibrand
@scottleibrand
May 28 2016 16:16
It's good practice, but no you don't have to.
garykidd
@garykidd
May 28 2016 16:27
its actually probably easier for me jus tto follow along in the docs
as its writtenup that way.
Scott Leibrand
@scottleibrand
May 28 2016 16:29
:+1: yeah.
That was the idea: recommend the same config for everyone regardless of which units they use.
Ben West
@bewest
May 28 2016 17:19
512, 511 should work ok
oamyoamy
@oamyoamy
May 28 2016 17:35
@bewest - @flutelynne_twitter (Lynne B) is stuck at a point with the NS visualization... she's looking for some help and has asked questions above but still hasn't gotten things sorted out. Can you please keep an eye out... Thanks.
Lynne Butts
@flutelynne_twitter
May 28 2016 17:37
@bewest. I am looking at the git bewest/decoding-carelink Should I follow these steps to get carelink to upload to the nightscout page?
Ben West
@bewest
May 28 2016 17:38
sure
no
Lynne Butts
@flutelynne_twitter
May 28 2016 17:39
ok
Ben West
@bewest
May 28 2016 17:39
@flutelynne_twitter howdy, I'm scrolling up to find you'r details
Lynne Butts
@flutelynne_twitter
May 28 2016 17:39
Hi Ben
Ben West
@bewest
May 28 2016 17:39
:-)
so you have Nightscout going already
and we're trying to do what? upload treatments?
Lynne Butts
@flutelynne_twitter
May 28 2016 17:40
I've had Nightscout since 2014. I have the 9.0-beta 2 since it was released. I cannot get my medtronic to show up on nightscout.
oamyoamy
@oamyoamy
May 28 2016 17:41
(Thanks, @bewest !)
Lynne Butts
@flutelynne_twitter
May 28 2016 17:42
I've installed all variables in heroku, configured nightscout, I can communicate to the pump via terminal (suspend/resume). I get ns shell reports of bgs only. on Nightscout site, I get OpenAps "unknown" and pump pill is blank
@oamyoamy Thank you!
Ben West
@bewest
May 28 2016 18:01
hmmm
so openaps is working also?
is openaps getting pump history already?
Lynne Butts
@flutelynne_twitter
May 28 2016 18:02
Openaps in the nightscout site says "unknown". But I set up the RPi2, can get reports of the G5 results in the terminal.
openaps use Clark read_history_data
usage: openaps-use Clark read_history_data [-h] page
openaps-use Clark read_history_data: error: too few arguments
Lynne Butts
@flutelynne_twitter
May 28 2016 18:08
But I do get openaps use Clark mytest
{
"low_reservoir_warn_point": 20,
"keypad_lock_status": 0,
"maxBasal": 1.5,
"temp_basal": {
"percent": 100,
"type": "Units/hour"
},
"low_reservoir_warn_type": 0,
"insulinConcentration": 100,
"audio_bolus_enable": true,
"variable_bolus_enable": true,
"alarm": {
"volume": 2,
"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": 0,
"patterns_enabled": true,
"maxBolus": 7.0,
"paradigm_enabled": 0
}pi@raspberrypi:~/abouttime $
openaps use Clark read_current_history_pages
36pi@raspberrypi:~/abouttime $
Ben West
@bewest
May 28 2016 18:26
@jasoncalabrese calibrations :-)
which reports are set up? openaps report show
Scott Leibrand
@scottleibrand
May 28 2016 18:28
@flutelynne_twitter did you see the note added to https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/visualization.html about the dependencies in phase 2?
Lynne Butts
@flutelynne_twitter
May 28 2016 18:29
openaps report show
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
pump://JSON/read_clock/raw-pump/clock-raw.json
tz://JSON/clock/monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
determine-basal://text/shell/oref0-predict/oref0.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
pump://JSON/model/model.json
pump://JSON/reservoir/monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
oref0://JSON/shell/settings/settings.json
pump://JSON/read_settings/raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
pump://JSON/read_temp_basal/raw-pump/temp-basal-status.json
pump://JSON/reservoir/raw-pump/reservoir.json
pump://JSON/read_status/raw-pump/status.json
pump://JSON/read_battery_status/raw-pump/battery.json
get-profile://text/shell/oref0-monitor/profile.json
calculate-iob://text/shell/oref0-monitor/iob.json
ns://JSON/shell/nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
nightscout-status://JSON/shell/monitor/upload-status.json
tz://JSON/clock/monitor/clock-zoned.json
pi@raspberrypi:~/abouttime $
@scottleibrand I will review them again.
Ben West
@bewest
May 28 2016 18:31
ah great
Ben West
@bewest
May 28 2016 18:38
head nightscout/recent-treatments.json
openaps report show --cli nightscout/recent-treatments.json
Paul Martin
@Spazholio
May 28 2016 18:42
So if I’ve got a high (~180) and only 1.2U IOB, why do I not have an aggressive temp basal to attempt to bring that down? What other mitigating factors might prevent that?
Lynne Butts
@flutelynne_twitter
May 28 2016 18:45
openaps report show --cli nightscout/recent-treatments.json
openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
Scott Leibrand
@scottleibrand
May 28 2016 18:46
@Spazholio look at the reason field and it will tell you specifically.
But generally, the avgDelta (over 15m) can reduce or even eliminate a high temp if you're falling faster than expected.
Lynne Butts
@flutelynne_twitter
May 28 2016 18:48
openaps use ns shell get entries.json 'count=1'
[
{
"direction": "Flat",
"trend": 4,
"dateString": "2016-05-28T18:44:12.000Z",
"sgv": 179,
"device": "share2",
"date": 1464461052000,
"_id": "5749e71c1f1f1129d080b853",
"type": "sgv"
}
John Benjamin
@Bender1061
May 28 2016 18:55
Well my TI Stick is now running for my Raspberry pi rig, Now it's time to get my Edison imaged.
Paul Martin
@Spazholio
May 28 2016 18:55
Screen Shot 2016-05-28 at 2.55.16 PM.png
(I’d love a “copy to clipboard” feature on that pill, btw - who would I suggest that to?)
Incidentally, my temp basal rate on the pump was my regular rate - 1.80u.
Jason Calabrese
@jasoncalabrese
May 28 2016 19:08
nice @bewest
those subrecords are interesting
I think I heard about that but haven't looked at it could help to better understand what dexcom is doing with the entered data
Lynne Butts
@flutelynne_twitter
May 28 2016 19:11
@scottleibrand I thought that I did it correctly, but I did get confused at the place where someone wrote that it is confusing...
Scott Leibrand
@scottleibrand
May 28 2016 19:30
@Spazholio looks like it was setting a maximal high temp there. What about other time points where it did less than you expected?
Paul Martin
@Spazholio
May 28 2016 19:32
Remind me again - the basal pill on the right, what does it indicate? It never seems to be the same as what the actual basal rate is on the pump.
As I scroll back, I’ve been going up for about 2 hours, and most of the time if I have a high basal (4.8u) it only stays high for a minute or two, and then it drops back down to 2u or something. For instance, right now, I’m at 195 and going up, and I’ve got a temp basal of 2u.
Ben West
@bewest
May 28 2016 19:35
also, I think I might have just added unified g5-USB support for dexcom
Paul Martin
@Spazholio
May 28 2016 19:36
If I’m going up, shouldn’t a high temp basal persist for more than a few minutes? Like…at least 30?
Lynne Butts
@flutelynne_twitter
May 28 2016 19:36
@bewest g5-USB sounds great!
Ben West
@bewest
May 28 2016 19:36
openaps/dexcom_reader#6
Scott Leibrand
@scottleibrand
May 28 2016 19:39
@Spazholio what does the reason say after it goes back to 2? Is that when the BG drops?
Paul Martin
@Spazholio
May 28 2016 19:39
I’ll have to check, but the numbers have been going steadily up, not down.
Scott Leibrand
@scottleibrand
May 28 2016 19:40
Ok, we need a reason from the pill or the logs then.
Paul Martin
@Spazholio
May 28 2016 19:41
Ok, doing this in NS is more or less a complete non-starter. Is there a method by which I can pull the last 2 hours of temp basals and reasons in some sort of report or CSV or something?
Ugh. Maybe the “Reports” button? sigh
Sorry I have the inlaws over, so attention is divided here...
jaylagorio
@jaylagorio
May 28 2016 19:43
@bewest The hardware docs say 512/712, I wondered if maybe the 511 was known to be different enough that it wouldn't work. I guess I'll find out!
Ben West
@bewest
May 28 2016 19:43
it should work fine
certain things don't have schedules or are hardcoded
eg, dia is hardcoded to 4 hours in firmware
so you need to make a static file for that
Lynne Butts
@flutelynne_twitter
May 28 2016 19:44
@bewest not sure what to do at this point.
Paul Martin
@Spazholio
May 28 2016 19:44
NS seems to hang on the "Loading profile switch data …” and doesn’t actually produce anything.
Ben West
@bewest
May 28 2016 19:44
reporting errors/status/profile is also different, need static files for those too
jaylagorio
@jaylagorio
May 28 2016 19:44
Uh oh, I've forgotten an acronym - DIA?
Ben West
@bewest
May 28 2016 19:44
duration of insulin
there's no schedule for sensitivities, iirc
jaylagorio
@jaylagorio
May 28 2016 19:45
Oh, right, thanks. Lucky for me I've always used 4h for that but I'll keep that in mind.
Ben West
@bewest
May 28 2016 19:45
still has max temp basal and temp basal though
head nightscout/recent-treatments.json
@flutelynne_twitter looks like if that file is ok, it just needs to be uploaded
Paul Martin
@Spazholio
May 28 2016 19:46
@bewest Is that directed at me, or…?
Lynne Butts
@flutelynne_twitter
May 28 2016 19:47
@bewest That is where I am stuck
Ben West
@bewest
May 28 2016 19:47
at @flutelynne_twitter try that head nightscout/recent-treatments.json so we can get a peek what's in it
Paul Martin
@Spazholio
May 28 2016 19:47
If so, my nightscout/recent-treatments.json is empty.
And I have no idea why it’s hanging at "Loading profile switch data …"
Lynne Butts
@flutelynne_twitter
May 28 2016 19:48
head nightscout/recent-treatments.json
head: cannot open ‘nightscout/recent-treatments.json’ for reading: No such file or directory
@bewest
Ben West
@bewest
May 28 2016 19:48
hmm... had a report for it: openaps report show --cli nightscout/recent-treatments.json
openaps report invoke nightscout/recent-treatments.json try invoking it
should create that file and have stuff in it
head nightscout/recent-treatments.json
Paul Martin
@Spazholio
May 28 2016 19:50
It’s pulling from the 24h pumphistory, but only has 3 items in it. Does that sound right?
Ben West
@bewest
May 28 2016 19:50
@Spazholio I'm not sure what's going on with your NS/profile situation
Paul Martin
@Spazholio
May 28 2016 19:50
(I know you’re talking to @flutelynne_twitter but it seemed to apply to me as well) =)
Ben West
@bewest
May 28 2016 19:50
it might depending on what issue you're looking at
it could only have 3 items
Lynne Butts
@flutelynne_twitter
May 28 2016 19:51

@bewest openaps report invoke nightscout/recent-treatments.json
ns://JSON/shell/nightscout/recent-treatments.json
json: error: could not read "model.json": Error: ENOENT, no such file or directory 'model.json'
Could not parse pumphistory: { [Error: Cannot find module '/home/pi/abouttime/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.0', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.0-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.0-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.0-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.0-py2.7.egg/openaps/reports/reporters/init.py", line 27, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/reporters/init.py", line 25, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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
pi@raspberrypi:~/abouttime $

Ben West
@bewest
May 28 2016 19:51
ah great
no model.json
I see a report for that too though...
Lynne Butts
@flutelynne_twitter
May 28 2016 19:52
@Spazholio I cannot get my pump to go to nightscout page via carelink, either
Ben West
@bewest
May 28 2016 19:52
so if model.json is missing, and there's a report for it called model.json, any idea how to get the report to update the file?
Lynne Butts
@flutelynne_twitter
May 28 2016 19:53
@bewest No...
Ben West
@bewest
May 28 2016 19:54
openaps report invoke model.json, to update that
hmm, I tried to write up some background on how the tools work and why here http://openaps.readthedocs.io/en/latest/docs/openaps-guide/overview.html
might help with understanding why use openaps use sometimes vs openaps report other times, depending on what's going on
the write up probably needs some more work :-) I was pressed for time, but it's intended to help understand why use, why report, etc
but looks like you've basically got a configuration that should be ready to send treatments data to nightscout, the reports are helping us pull information into the openaps working area
those errors are explaining that some of the expected data is missing
Lynne Butts
@flutelynne_twitter
May 28 2016 19:59
@bewest openaps report invoke model.json
pump://JSON/model/model.json
reporting model.json
Well, definitely the pump data. No-show on NS site
Ben West
@bewest
May 28 2016 19:59
we're still preparing the data
now try the other report invoke
the one before this
openaps report invoke nightscout/recent-treatments.json
Lynne Butts
@flutelynne_twitter
May 28 2016 20:02

openaps report invoke nightscout/recent-treatments.json
ns://JSON/shell/nightscout/recent-treatments.json
Could not parse pumphistory: { [Error: Cannot find module '/home/pi/abouttime/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.0', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.0-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.0-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.0-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.0-py2.7.egg/openaps/reports/reporters/init.py", line 27, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/openaps/reports/reporters/init.py", line 25, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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
pi@raspberrypi:~/abouttime $

Ben West
@bewest
May 28 2016 20:08
now history can't be found
so we'll use similar process, we know from earlier report show that there is a report for that
we can refresh that one with: openaps report invoke monitor/pump-history.json
the error at the top has the hint: [Error: Cannot find module '/home/pi/abouttime/monitor/pump-history.json'
so the last part of that is the report name: monitor/pump-history.json
so we can openaps report invoke anything that is a report name
Lynne Butts
@flutelynne_twitter
May 28 2016 20:12
like this? openaps report invoke /home/pi/abouttime/monitor/pump-history.json
usage: openaps-report invoke [-h]
{model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/upload-status.json,nightscout/recent-treatments.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.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-zoned.json,monitor/clock.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/upload-status.json,nightscout/recent-treatments.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.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: '/home/pi/abouttime/monitor/pump-history.json' (choose from u'model.json', u'monitor/battery.json', u'monitor/clock-zoned.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'monitor/upload-status.json', u'nightscout/recent-treatments.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-monitor/iob.json', u'oref0-monitor/profile.json', u'oref0-predict/oref0.json', u'raw-pump/battery.json', u'raw-pump/bg-targets-raw.json', u'raw-pump/clock-raw.json', u'raw-pump/insulin-sensitivities-raw.json', u'raw-pump/pump-history-raw.json', u'raw-pump/reservoir.json', u'raw-pump/selected-basal-profile.json', u'raw-pump/settings.json', u'raw-pump/status.json', u'raw-pump/temp-basal-status.json', u'settings/bg-targets.json', u'settings/insulin-sensitivities.json', u'settings/selected-basal-profile.json', u'settings/settings.json')
pi@raspberrypi:~/abouttime $
Paul Martin
@Spazholio
May 28 2016 20:14
Close. Do openaps report invoke monitor/pump-history.json instead.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:15
Then I get: openaps report invoke monitor/pump-history.json
tz://JSON/rezone/monitor/pump-history.json
monitor/pump-history.json raised can't open 'raw-pump/pump-history-raw.json': [Errno 2] No such file or directory: 'raw-pump/pump-history-raw.json'
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.0', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.0-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.0-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.0-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.0-py2.7.egg/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openapscontrib-0.0.9-py2.7.egg/openapscontrib/timezones/_init.py", line 85, in main
inputs = self.get_program(args)
File "/usr/local/lib/python2.7/dist-packages/openapscontrib-0.0.9-py2.7.egg/openapscontrib/timezones/_init.py", line 57, in get_program
program = json.load(argparse.FileType('r')(params.get('input')))
File "/usr/lib/python2.7/argparse.py", line 1142, in call
raise ArgumentTypeError(message % (string, e))
argparse.ArgumentTypeError: can't open 'raw-pump/pump-history-raw.json': [Errno 2] No such file or directory: 'raw-pump/pump-history-raw.json'
pi@raspberrypi:~/abouttime $
Paul Martin
@Spazholio
May 28 2016 20:16
So if it’s missing THAT report, you can do the same openaps report invoke command on that one, and it should generate it.
Sometimes you have to just keep tracking back until you get one that runs, then work your way back forward again. Once you get them all going and put into a loop, this sort of thing will be done automatically. But it’s good to get a feel for it this way first.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:20
Ok. I'm really slow... This DOES come up: openaps use Clark read_status
{
"status": "normal",
"bolusing": false,
"suspended": false
Paul Martin
@Spazholio
May 28 2016 20:21
Ok, good.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:22
So just go back to each report and add it as openaps report invoke? For some reason, I thought that I already did that.
Paul Martin
@Spazholio
May 28 2016 20:22
Do you have anything set up in cron yet?
Some loop setups delete several reports at the beginning of the loop to ensure you’re not working with old data.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:23
I'm not sure.
Paul Martin
@Spazholio
May 28 2016 20:23
Run crontab -e and see if there’s anything in there.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:23
I think now that, by my notes, I did openaps report add

crontab -e
no crontab for pi - using an empty one

Select an editor. To change later, run 'select-editor'.

  1. /bin/ed
  2. /bin/nano <---- easiest
  3. /usr/bin/vim.tiny

Choose 1-3 [2]:

Ben West
@bewest
May 28 2016 20:26
2
Paul Martin
@Spazholio
May 28 2016 20:26
Yep.
Ben West
@bewest
May 28 2016 20:26
for future, crontab -l just lists it
Lynne Butts
@flutelynne_twitter
May 28 2016 20:27
Ok. confused. I understand that it should be 2. Where in the docs can I find this?
Paul Martin
@Spazholio
May 28 2016 20:28
Agh, right.
Ben West
@bewest
May 28 2016 20:29
don't worry about that detail for now @flutelynne_twitter
@Spazholio now, you probably have to get her out of the editor ;-)
Paul Martin
@Spazholio
May 28 2016 20:30
Hey, at least I didn’t have her choose vim. =)
Lynne Butts
@flutelynne_twitter
May 28 2016 20:31
I did 2 ugh now ^X to get out of this?
Paul Martin
@Spazholio
May 28 2016 20:31
Correct.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:32
Whew...out
Ben West
@bewest
May 28 2016 20:33
:-)
openaps report invoke raw-pump/pump-history-raw.json
this will fetch the pump history from the pump, and save it in the file
the previous invoke failed because there was no pump history yet
Lynne Butts
@flutelynne_twitter
May 28 2016 20:36
openaps report invoke raw-pump/pump-history-raw.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
reporting raw-pump/pump-history-raw.json
pi@raspberrypi:~/abouttime $
dhermanns
@dhermanns
May 28 2016 20:40
@bewest Hi Ben! I got openaps running on my pi using the docker container. I can read the glucose values from the pump. No I'm wondering whats the best way to get all data to the nightscout backend. I saw the script from Scott. And had a look a the doku about ns-upload. But this script seems missing in the container
@bewest Found the script under github. Should i use that? Is there a better container? Or whats the best way to get the upload working?
Ben West
@bewest
May 28 2016 20:42
for uploading to NS?
we're doing that now
dhermanns
@dhermanns
May 28 2016 20:42
yes
Ben West
@bewest
May 28 2016 20:43
use the ns device created by nightscout autoconfigure-device-crud, @dhermanns
Lynne Butts
@flutelynne_twitter
May 28 2016 20:43
openaps report invoke raw-pump/pump-history-raw.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
reporting raw-pump/pump-history-raw.json
pi@raspberrypi:~/abouttime $ openaps report show raw-pump/pump-history-raw.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
pi@raspberrypi:~/abouttime $ openaps report show --cli raw-pump/pump-history-raw.json
openaps use pump iter_pump_hours 8.0
pi@raspberrypi:~/abouttime $ openaps report show --cli nightscout/recent-treatments.json
openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
Ben West
@bewest
May 28 2016 20:44
nice, openaps report invoke monitor/pump-history.json
this looks like output from my templates :-)
dhermanns
@dhermanns
May 28 2016 20:44
Is that contained in
Ben West
@bewest
May 28 2016 20:44
it's part of oref0, you can just type nightscout to get help
also nightscout autoconfigure-device-crud should generate help message
dhermanns
@dhermanns
May 28 2016 20:44
Ah thx - great. I will have a look at that :)
Ben West
@bewest
May 28 2016 20:45
there's more help covered here openaps/docs#129
need help getting it migrated into the docs
Lynne Butts
@flutelynne_twitter
May 28 2016 20:47
openaps report invoke monitor/pump-history.json
tz://JSON/rezone/monitor/pump-history.json
reporting monitor/pump-history.json
pi@raspberrypi:~/abouttime $ openaps report show monitor/pump-history.json
tz://JSON/rezone/monitor/pump-history.json
pi@raspberrypi:~/abouttime $ openaps report show --cli nightscout/recent-treatments.json
openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
C-Ville
@C-Ville
May 28 2016 20:47
@dhermanns sorry for that stupid question, what is the advantage of having openaps running in a docker container on a pi?
jaylagorio
@jaylagorio
May 28 2016 20:47
@bewest What's the "crud" in that command mean?
Ben West
@bewest
May 28 2016 20:48
create replace update delete
@flutelynne_twitter getting closer
openaps report invoke nightscout/recent-treatments.json
Lynne Butts
@flutelynne_twitter
May 28 2016 20:48
Sorry...I appreciate this immensely
Ben West
@bewest
May 28 2016 20:49
hopefully we've finally gotten all the data
this hopefully prepares the data to actually upload
Lynne Butts
@flutelynne_twitter
May 28 2016 20:50
openaps report invoke nightscout/recent-treatments.json
ns://JSON/shell/nightscout/recent-treatments.json
reporting nightscout/recent-treatments.json
pi@raspberrypi:~/abouttime $ openaps report show nightscout/recent-treatments.json
ns://JSON/shell/nightscout/recent-treatments.json
pi@raspberrypi:~/abouttime $ openaps report show --cli nightscout/recent-treatments.json
openaps use ns shell format-recent-history-treatments monitor/pump-history.json model.json
Ben West
@bewest
May 28 2016 20:51
ok, let's take a peek at what's inside, just to make sure and avoid further surprises:
head nightscout/recent-treatments.json
dhermanns
@dhermanns
May 28 2016 20:51
@jaylagorio I can play around without any risk. If something goes wrong, i can simply throw the container away. If I get it to work, I can easily release my own container with everything I need in place.
Lynne Butts
@flutelynne_twitter
May 28 2016 20:51
That would be great. My husband would thank you. He went on a bike ride today..
Ben West
@bewest
May 28 2016 20:51
if that has some data,
Lynne Butts
@flutelynne_twitter
May 28 2016 20:52
head nightsout/recent-treatments.json
head: cannot open ‘nightsout/recent-treatments.json’ for reading: No such file or directory
jaylagorio
@jaylagorio
May 28 2016 20:52
@C-Ville See @dhermanns 's response to you above ;-)
Ben West
@bewest
May 28 2016 20:52
openaps use ns shell upload-non-empty-treatments nightscout/recent-treatments.json
jaylagorio
@jaylagorio
May 28 2016 20:52
As a fellow containerhead you don't have to sing Docker's praises to me
Ben West
@bewest
May 28 2016 20:53
this should upload that file to nightscout once, manually
oh
hmm
nevermind
not if it's not there ;-)
hmm
confused, you invoked it and it worked fine
openaps report invoke nightscout/recent-treatments.json && head nightscout/recent-treatments.json
Lynne Butts
@flutelynne_twitter
May 28 2016 20:54
openaps use ns shell upload-non-empty-treatments nightscout/recent-treatments.json
[
{
"created_at": "2016-05-28T00:00:00-05:00",
"_type": "old6c",
"_description": "old6c 2016-05-28T00:00:00 head[1], body[35] op[0x6c]",
"timestamp": "2016-05-28T00:00:00-05:00",
"notes": "old6c 515 ",
"_head": "6c",
"enteredBy": "openaps://medtronic/515",
"_date": "5b90",
"eventType": "Note",
"_body": "050c00e80000000001e801e06200080200000008020000000000000008640100000001",
"medtronic": "mm://openaps/mm-format-ns-treatments/old6c"
}
]pi@raspberrypi:~/abouttime $
Ben West
@bewest
May 28 2016 20:54
hmm
ok
well guess there was stuff in there after all
C-Ville
@C-Ville
May 28 2016 20:54
@dhermanns thank you sounds reasonable, for me getting docker to work this would most likely be a brick wall. @jaylagorio thanks :-)
Lynne Butts
@flutelynne_twitter
May 28 2016 20:54
should I do the invoke one too?
Ben West
@bewest
May 28 2016 20:54
openaps report add nightscout/recently-uploaded-treatments.json JSON ns shell upload-non-empty-treatments nightscout/recent-treatments.json
this report add will save that use for later
doesn't actually upload, just saves the config for that
the previous use actually uploaded stuff, it looks ilke
believe Nightscout should be showing data
Lynne Butts
@flutelynne_twitter
May 28 2016 20:57
3:57
3mins agoPumpOpenAPS ⚠unknown
3HR 6HR 12HR 24HR ...
Lynne Butts
@flutelynne_twitter
May 28 2016 21:03
openaps report invoke nightscout/recent-treatments,json && head nightscout/recent-treatments.json
usage: openaps-report invoke [-h]
{model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/upload-status.json,nightscout/recent-treatments.json,nightscout/recently-uploaded-treatments.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.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-zoned.json,monitor/clock.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/upload-status.json,nightscout/recent-treatments.json,nightscout/recently-uploaded-treatments.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.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: 'nightscout/recent-treatments,json' (choose from u'model.json', u'monitor/battery.json', u'monitor/clock-zoned.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'monitor/upload-status.json', u'nightscout/recent-treatments.json', u'nightscout/recently-uploaded-treatments.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-monitor/iob.json', u'oref0-monitor/profile.json', u'oref0-predict/oref0.json', u'raw-pump/battery.json', u'raw-pump/bg-targets-raw.json', u'raw-pump/clock-raw.json', u'raw-pump/insulin-sensitivities-raw.json', u'raw-pump/pump-history-raw.json', u'raw-pump/reservoir.json', u'raw-pump/selected-basal-profile.json', u'raw-pump/settings.json', u'raw-pump/status.json', u'raw-pump/temp-basal-status.json', u'settings/bg-targets.json', u'settings/insulin-sensitivities.json', u'settings/selected-basal-profile.json', u'settings/settings.json')
pi@raspberrypi:~/abouttime $ openaps report show --cli nightscout/recently-uploaded-treatments.json
openaps use ns shell upload-non-empty-treatments nightscout/recent-treatments.json
pi@raspberrypi:~/abouttime $
duh need a redo
Lynne Butts
@flutelynne_twitter
May 28 2016 21:13
@bewest still 4:12
3mins agoPumpOpenAPS ⚠unknown
3HR 6HR 12HR 24HR ...
Scott Leibrand
@scottleibrand
May 28 2016 21:17
@bewest do you want to update ns-uploader-setup.sh to use your template and nightscout autoconfigure-device-crud stuff? and/or add a comment in there noting that people should do that instead?
Lynne Butts
@flutelynne_twitter
May 28 2016 21:25
@bewest was i supposed to add the -crud after the autoconfig part?
Paul Martin
@Spazholio
May 28 2016 21:33
So…any mongo experts in the house? An upgrade seems to have gone sideways. =)
Lynne Butts
@flutelynne_twitter
May 28 2016 21:35
@Spazholio with the auto-config part (which I did) was I supposed to list it as "myautoconfig-device-crud" ?
Lynne Butts
@flutelynne_twitter
May 28 2016 21:50
@bewest I went back and did the template, thinking that maybe I should have added the "-device-crud" at the end of my configured part. I still only show G5 reading, not pump readings. Should I redo the openaps report invoke parts again?
garykidd
@garykidd
May 28 2016 21:51
@scottleibrand regarding the crud install---thought I had done a PR for that noting that.
Lynne Butts
@flutelynne_twitter
May 28 2016 21:52
Pump still not showing up on Nightscout site
Ben West
@bewest
May 28 2016 22:03
@flutelynne_twitter you already did it
you already have the ns device
@scottleibrand there's an open call for help on openaps/docs#129
I've moved on to some of the other issues
just updated medtronic to use a separate json file to track session management
should prevent any more weird truncating issues
Lynne Butts
@flutelynne_twitter
May 28 2016 22:05
ugh should I undo what I did then? I did the "myconfig-device-crud"
Ben West
@bewest
May 28 2016 22:05
it's fine :-)
I'm confused by the nightscout/recent-treatments.json bit we were doing before...
some of the commands looked like they worked, and then others didn't, so not sure what happened
garykidd
@garykidd
May 28 2016 22:06
any ideas on this.....openaps report add settings/insulin_sensitivities.json JSON units insulin_sensitivities_raw.json
usage: openaps-report add report {base,text,stdout,JSON} units [-h] USAGE ...
openaps-report add report {base,text,stdout,JSON} units: error: argument USAGE: invalid choice: 'insulin_sensitivities_raw.json' (choose from 'bg_targets', 'insulin_sensitivities')
pi@raspberrypi:~/APS0 $ cd settings
pi@raspberrypi:~/APS0/settings $ ls
basal_profile.json bg_targets.json bg_targets_raw.json insulin_sensitivities_raw.json profile.json settings.json
pi@raspberrypi:~/APS0/settings $
Lynne Butts
@flutelynne_twitter
May 28 2016 22:06
Whew! Yeah, I'm still getiing only the BG info
Ben West
@bewest
May 28 2016 22:07
@flutelynne_twitter do you remember when we highlighted a command to upload data manually, once?
@garykidd try getting the use first
openaps use units ... insulin_sensitivities_raw.json
missing an arg in there
Lynne Butts
@flutelynne_twitter
May 28 2016 22:08
the openaps report invoke one?
Ben West
@bewest
May 28 2016 22:08
well, we did several
no, it was an ns shell one
we went through a bunch of invokes to get the data pulled in
there were several pieces of data that needed to be pulled in
Lynne Butts
@flutelynne_twitter
May 28 2016 22:09
I will trace back and try them all again.
Ben West
@bewest
May 28 2016 22:10
I think there were four reports we needed to invoke
feel free to list them here, I'll show you a tip
garykidd
@garykidd
May 28 2016 22:14
openaps use units insulin_sensitivities settings/insulin_sensitivities_raw.json
{
"units": "mg/dL",
"user_preferred_units": "mg/dL",
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 30,
"x": 0,
"offset": 0
},
{
"i": 11,
"start": "05:30:00",
"sensitivity": 36,
"x": 1,
"offset": 330
},
{
"i": 21,
"start": "10:30:00",
"sensitivity": 30,
"x": 2,
"offset": 630
}
],
"first": 1
looks like that part worked ok
but...
openaps report add settings/insulin_sensitivities.json JSON units insulin_sensitivities_raw.json
usage: openaps-report add report {base,text,stdout,JSON} units [-h] USAGE ...
openaps-report add report {base,text,stdout,JSON} units: error: argument USAGE: invalid choice: 'insulin_sensitivities_raw.json' (choose from 'bg_targets', 'insulin_sensitivities')
Ben West
@bewest
May 28 2016 22:17
you're deleting a word in there towards the end
should be same as after use
... units insulin_sensitivities settings/insulin_sensitivities_raw.json
Lynne Butts
@flutelynne_twitter
May 28 2016 22:17
@bewest head nightscout/recent-treatments.json
[
{
"carbs": "10",
"bg": "93",
"ratio": "15",
"bolus": {
"programmed": 0.6,
"_type": "Bolus",
"_description": "Bolus 2016-05-28T16:54:21 head[4], body[0] op[0x01]",
"timestamp": "2016-05-28T16:54:21-05:00",
pi@raspberrypi:~/abouttime $
Ben West
@bewest
May 28 2016 22:17
great
now we can upload it once as a demo:
openaps use ns shell upload-non-empty-treatments nightscout/recent-treatments.json
it should mostly print same data back, but it should also appear in NS
garykidd
@garykidd
May 28 2016 22:21
@bewest can you be more specific sorry. When you say I deleted a word somewhere in there--are you referring to the first line I pasted above...or the latter?
Lynne Butts
@flutelynne_twitter
May 28 2016 22:21
@bewest I imagine it will take a while to show on Nightscout?
Paul Martin
@Spazholio
May 28 2016 22:22
Ok, so after a lot of wrangling, I managed to get my MongoDB install upgraded, and now it’s showing my reports (it wasn’t before). But I have a few questions about them. Under “Treatments”, I don’t see any Sensor Glucose readings. I’m using the Dexcom Bridge to get that info into NS. What can I do to make the sensor info show in that report? It shows in the other reports.
Ben West
@bewest
May 28 2016 22:22
@flutelynne_twitter no, it should show up in less than 5 seconds
@flutelynne_twitter specifically, this makes the pump treatments show up
@flutelynne_twitter if there have been any temp basals, it should also show up in the basal line
those two things are the only two things this data provides... so bolus circles and stuff should show up
@garykidd compare: openaps report add settings/insulin_sensitivities.json JSON units insulin_sensitivities settings/insulin_sensitivities_raw.json vs openaps report add settings/insulin_sensitivities.json JSON units settings/insulin_sensitivities_raw.json compared to the working use: openaps use units insulin_sensitivities settings/insulin_sensitivities_raw.json
openaps report add settings/insulin_sensitivities.json JSON units insulin_sensitivities settings/insulin_sensitivities_raw.json
#vs
openaps report add settings/insulin_sensitivities.json JSON units settings/insulin_sensitivities_raw.json
# compared to the working use:
openaps use units insulin_sensitivities settings/insulin_sensitivities_raw.json
garykidd
@garykidd
May 28 2016 22:28
hmmm....
pi@raspberrypi:~/APS0 $ openaps report add settings/insulin_sensitivities.json JSON units insulin_sensitivities settings/insulin_sensitivities_raw.json
added units://JSON/insulin_sensitivities/settings/insulin_sensitivities.json
Great
Ben West
@bewest
May 28 2016 22:28
see how it has same number of words as the use? units insulin_sensitivities settings/insulin_sensitivities_raw.json
garykidd
@garykidd
May 28 2016 22:29
but I think that .... openaps report add settings/insulin_sensitivities.json JSON units settings/insulin_sensitivities_raw.json
is a cut and paste from the docs...
rtd
Ben West
@bewest
May 28 2016 22:29
then it's wrong :-)
garykidd
@garykidd
May 28 2016 22:30
I understand the latter is wrong.....too bad it was starting to make ssense in my head
Ben West
@bewest
May 28 2016 22:30
it still makes sense:
notice how everything after use has same number of words: units insulin_sensitivities settings/insulin_sensitivities_raw.json, units is the name of the "device"
insulin_sensitivities is the name of the operation it should perform (units always changes units ,but which kind of data should it operate on?)
and finally, settings/insulin_sensitivities_raw.json is where the data lives
where do we find the data?
so it's what, how, where?
use what how where
report add saves all that, but starts by defining where the results of the data should be saved, and how
so report add results from what how where
the what how where parts should be identical/copy paste
Paul Martin
@Spazholio
May 28 2016 22:33
Damn you, I was hoping openaps use what how where was gonna be some awesomely comprehensive help doc that I just hadn’t stumbled upon. =)
Ben West
@bewest
May 28 2016 22:33
I just made it up to answer your question
consider adding it to issue/doc somewhere
Paul Martin
@Spazholio
May 28 2016 22:34
Not my question, but I still ran it. =)
Ben West
@bewest
May 28 2016 22:34
there's a tutorial that covers this kind of material here http://openaps.readthedocs.io/en/latest/docs/openaps-guide/overview.html
should be runnable on mac/without medical devices
:-)
garykidd
@garykidd
May 28 2016 22:40
I think the part that isnt necessarily intuitive for me is that.... and I'm guessing here a bit.... insulin_sensitivities and bg_targets are specific arguments for unit and not arbitrary references. is that right?
Lynne Butts
@flutelynne_twitter
May 28 2016 22:42
@bewest I still have: 5:42
3mins agoPumpOpenAPS ⚠unknown
3HR 6HR 12HR 24HR ...
Pump pill says "Device undefined"
garykidd
@garykidd
May 28 2016 22:44
...and sweet....
pi@raspberrypi:~/APS0 $ openaps gather-profile
GK715://JSON/read_settings/settings/settings.json
reporting settings/settings.json
units://JSON/bg_targets/settings/bg_targets.json
reporting settings/bg_targets.json
units://JSON/insulin_sensitivities/settings/insulin_sensitivities.json
reporting settings/insulin_sensitivities.json
GK715://JSON/read_basal_profile_std/settings/basal_profile.json
reporting settings/basal_profile.json
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
Lynne Butts
@flutelynne_twitter
May 28 2016 22:49
@bewest Cool, I do see the bolus circle, but pump does not show up on Nightscout site. What else can I do?
Ben West
@bewest
May 28 2016 22:51
ok, if the bolus circle shows up, then the pump data did go to the website
ah, the pill
is that devicestatus?
I haven't enabled that myself, someone that has can probably walk you through those steps
not sure if we added that report to get things uploaded
we just did it once with the use manually
Lynne Butts
@flutelynne_twitter
May 28 2016 22:53
Ok.. Thanks, Ben! I will read some more, and keep plugging away.
Ben West
@bewest
May 28 2016 22:54
it's ok to paste commands in here and verify what you think it will do before running them :)
Lynne Butts
@flutelynne_twitter
May 28 2016 22:54
Good to know!
Paul Martin
@Spazholio
May 28 2016 22:55
ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json upload/ns-status.json upload/upload-status.json <— I have that chucked into my loop somewhere, and I think it does what you’re looking for.
Ben West
@bewest
May 28 2016 23:04
that part is now:
Lynne Butts
@flutelynne_twitter
May 28 2016 23:04
@Spazholio I got that the input file does not exist. I am wondering if it has to do with mm-stick, mm-format-ns-glucose, etc. I don't know what to put in input output
Ben West
@bewest
May 28 2016 23:05
issue is before that
creating the ns-status.json
openaps report show upload/ns-status.json --cli to get the use
@Spazholio lot of that is simpler inside the ns device now
ah, ns-status
Paul Martin
@Spazholio
May 28 2016 23:06
Yeah, I’m still using old code. Gotta refactor.
Ben West
@bewest
May 28 2016 23:07
still curious what your device is named
Paul Martin
@Spazholio
May 28 2016 23:07
Mine?
Also, that code you gave me to upload gaps might need a bit of tweaking or investigating. While my NS was down, I had about 1.5 - 2 hours of no entries in there (which makes sense). Running the lsgaps in the way you showed me only added 2 entries.
Ben West
@bewest
May 28 2016 23:09
you have ns-status working, so it would help @flutelynne_twitter to see what your openaps report show upload/ns-status.json --cli says
Paul Martin
@Spazholio
May 28 2016 23:10
Sure thing.
1 sec.
Lynne Butts
@flutelynne_twitter
May 28 2016 23:11
openaps report show upload/ns-status.json --cli says
usage: openaps-report show [-h] [--ini] [--json] [--cli_only]
[{model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/upload-status.json,nightscout/recent-treatments.json,nightscout/recently-uploaded-treatments.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.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 show: error: argument report: invalid choice: 'upload/ns-status.json' (choose from u'model.json', u'monitor/battery.json', u'monitor/clock-zoned.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'monitor/upload-status.json', u'nightscout/recent-treatments.json', u'nightscout/recently-uploaded-treatments.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-monitor/iob.json', u'oref0-monitor/profile.json', u'oref0-predict/oref0.json', u'raw-pump/battery.json', u'raw-pump/bg-targets-raw.json', u'raw-pump/clock-raw.json', u'raw-pump/insulin-sensitivities-raw.json', u'raw-pump/pump-history-raw.json', u'raw-pump/reservoir.json', u'raw-pump/selected-basal-profile.json', u'raw-pump/settings.json', u'raw-pump/status.json', u'raw-pump/temp-basal-status.json', u'settings/bg-targets.json', u'settings/insulin-sensitivities.json', u'settings/selected-basal-profile.json', u'settings/settings.json', '
')
pi@raspberrypi:~/abouttime $
Paul Martin
@Spazholio
May 28 2016 23:12
Same here. It’s not generated via a report, apparently. format-ns-status = ! bash -c "ns-status monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/battery.json monitor/reservoir.json monitor/status.json > upload/ns-status.json"
I think that was config’d with Scott’s setup.sh script a while back.
Ben West
@bewest
May 28 2016 23:13
ok
oref0 device-helper status ns-status '$*' | openaps import
this creates a proper openaps device called status
I was able to use it like this: openaps use status shell monitor/clock.json oref0-moitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
Lynne Butts
@flutelynne_twitter
May 28 2016 23:14
@Spazholio Maybe I am getting confused, bc I am looking at ben's #129 AND Scott's page
Ben West
@bewest
May 28 2016 23:14
but I was testing it in a different place... lemme clean that up
Paul Martin
@Spazholio
May 28 2016 23:14
I have a device called ns-status already. Is it going to clobber that?
Or is yours called status and not ns-status…?
Ben West
@bewest
May 28 2016 23:15
this one is called status
the use to generate status for the pill should look something like that ^^^
openaps use status shell monitor/clock.json oref0-moitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
if it's called ns-status, then it'd be: openaps use ns-status shell monitor/clock.json oref0-moitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
if that works, you can save it as a report:
Paul Martin
@Spazholio
May 28 2016 23:17
So is it just a more efficient, oref0-y version of ns-status?
Ben West
@bewest
May 28 2016 23:17
openaps report add nightscout/openaps-pill.json JSON status shell monitor/clock.json oref0-moitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
then to upload:
to do it once to test it:
Lynne Butts
@flutelynne_twitter
May 28 2016 23:18
@bewest would that openaps use status shell...work for me?
Ben West
@bewest
May 28 2016 23:18
yeah, both, it sounds like
Paul Martin
@Spazholio
May 28 2016 23:19
Alright. I have to head out in a bit, but I’ll refactor my stuff later on tonight. Thanks.
Ben West
@bewest
May 28 2016 23:20
then to upload once, as a test, it'd be something like: openaps use ns shell upload devicestatus.json nightscout/openaps-pill.json
this replaces the ns-upload stuff
to save that as a report, for automation, inclusion into an alias, it'd be something like
openaps report add nightscout/uploaded-openaps-pill.json JSON ns shell upload devicestatus.json nightscout/openaps-pill.json
Paul Martin
@Spazholio
May 28 2016 23:22
You have an oref0-montor dir as well as a monitor dir?
Ben West
@bewest
May 28 2016 23:24
yeah, the template tool will create it all for you :-)
Paul Martin
@Spazholio
May 28 2016 23:24
I’m gonna pick your brain about why there are two later on. =)
Ben West
@bewest
May 28 2016 23:25
I have it so it's really dead simple: only oref0 tools are allowed to write into the oref0 directories
monitor is a combination of cleaned data from both dexcom/medtronic
templates stuff is here openaps/docs#132
hmm should update that... aliases are included in dev
or maybe they made it into release, I forget