oref0-get-profile settings/settings.json settings/bg_targets_raw.json settings/insulin_sensitivities_raw.json settings/basal_profile.json preferences.json
I'm following this:
docs/docs/docs/walkthrough/phase-2/Using-oref0-tools.md
The top is confusing. Not sure if I'm supposed to be registering oref0 somehow?... Basically, I started working at the 'older directions' section
sudo npm install -g git://github.com/openaps/oref0.git#dev
sudo npm install -g json oref0
oref0-get-profile
.git/
subdir which don't get finished correctly
sudo shutdown now
will cause it to stop everything nicely
sudo shutdown now
or is it really immediate?
grep diff `which oref0-reset-git`
which oref0-reset-git
?
The popup text for that form section says:
grams per unit time. Represents both the change in COB per unit of time, as well as the amount of carbs that should take effect over that time. Carb absorption / activity curves are less well understood than insulin activity, but can be approximated using an initial delay followed by a constant rate of absorption (g/hr).
$ rm myopenaps
rm: cannot remove ‘myopenaps’: Is a directory
rm -r myopenaps
rm -rf myopenaps
-rf
though, you can delete more than you expect if you aren't careful
so i deleted the myopenaps directory. then tried running the "recommended way to install" using package-mgr
curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
and i still get error about no openaps script...
......openaps installed
Traceback (most recent call last):
File "/usr/local/bin/openaps", line 4, in <module>
__import__('pkg_resources').run_script('openaps==0.1.5', 'openaps')
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 1496, in run_script
pkg_resources.ResolutionError: No script named 'openaps'
cat monitor/iob.json
{
"netbasalinsulin": 0,
"activity": 0,
"basaliob": 0,
"hightempinsulin": 0,
"bolussnooze": 0,
"iob": 0
[report "monitor/iob.json"]
profile = settings/profile.json
use = shell
clock = monitor/clock.json
reporter = JSON
json_default = True
pumphistory = monitor/pumphistory.json
device = calculate-iob
remainder =
oref0-profile = settings/profile.json
openaps report invoke
followed by cat
for the respective output file and iob doesn't seem to be ringing true as it is 0 ! (not 1)
~/my_openaps $ openaps report invoke monitor/iob.json
calculate-iob://JSON/shell/monitor/iob.json
reporting monitor/iob.json
:~/my_openaps $ cat monitor/iob.json
{
"netbasalinsulin": 0,
"activity": 0,
"basaliob": 0,
"hightempinsulin": 0,
"bolussnooze": 0,
"iob": 0
~/my_openaps $ cat monitor/clock.json
"2016-07-27T16:01:06"
~/my_openaps $ cat monitor/iob.json
{
"netbasalinsulin": 0,
"activity": 0.0022,
"basaliob": 0,
"hightempinsulin": 0,
"bolussnooze": 0.098,
"iob": 0.24
~/my_openaps $ cat monitor/iob.json
{
"netbasalinsulin": 0,
"activity": 0.0023,
"basaliob": 0,
"hightempinsulin": 0,
"bolussnooze": 0.082,
"iob": 0.232
~/my_openaps $ cat monitor/iob.json
{
"netbasalinsulin": -0.05,
"activity": 0.0028,
"basaliob": -0.05,
"hightempinsulin": 0,
"bolussnooze": 0.
date
field, which some of my new code in dev expects. there is a workaround that involves using the json
tool to add a date field to your glucose data, or you can go back to master for now. either way, we should also open an issue to make oref0 handle your date format. can you open one at https://github.com/openaps/oref0/issues/new and include a sample from your zoned glucose.json?
openaps use ns shell get
but I'm getting the following error message: json: error: input is not JSON: Unexpected '<' at line 1, column 1:oref0 fix-git-corruption
and usually reports Git repo does not appear to be corrupt