Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 31 2019 15:51
    xen0n starred openaps/oref0
  • Jan 31 2019 15:12
    cclauss opened #1191
  • Jan 31 2019 15:09
    cclauss edited #1190
  • Jan 31 2019 15:08
    cclauss edited #1189
  • Jan 31 2019 15:07
    cclauss edited #1190
  • Jan 31 2019 15:07
    cclauss opened #1190
  • Jan 31 2019 15:00
    cclauss synchronize #1189
  • Jan 31 2019 14:52
    cclauss opened #1189
  • Jan 31 2019 14:10
  • Jan 31 2019 14:06
    Owaisaaa starred openaps/docs
  • Jan 31 2019 12:20
    cclauss synchronize #22
  • Jan 31 2019 12:16
    cclauss opened #22
  • Jan 31 2019 12:11
    cclauss edited #21
  • Jan 31 2019 12:09
    cclauss opened #21
  • Jan 31 2019 11:31
    tuzoenduro commented #1406
  • Jan 31 2019 11:25
    cclauss opened #140
  • Jan 30 2019 05:53
  • Jan 29 2019 16:03
    tzachi-dar commented #1406
  • Jan 29 2019 14:46
    rostag starred openaps/oref0
  • Jan 27 2019 22:06
    PieterGit synchronize #1176
G. Kidd
@garykidd
see that shows true
so maybe it wold actually work if I let it go for awhile
LBehler
@LBehler
how did you guys get your "ns" added as a device in openaps? That step isn't in my setup doc
@scottleibrand
Scott Leibrand
@scottleibrand
@LBehler in this context, oref0-setup does it
@garykidd if you want to troubleshoot NS further, try openaps get-ns-glucose
and then head -20 cgm/ns-glucose.json
G. Kidd
@garykidd
I stepped away from iphone/ receiver recently---would it just pull older 20 records?
pi@raspberrypi:~/APS401 $ openaps get-ns-glucose
ns://JSON/shell/cgm/ns-glucose.json
No JSON object could be decoded
Unknown request: oref0_glucose_since
followed by ...at the end...
Format potential entries (glucose values) for Nightscout.

    openaps use ns shell format-recent-type tz entries monitor/glucose.json  | json -a dateString | wc -l
    # Add it as a report
    openaps report add nightscout/recent-missing-entries.json JSON ns shell format-recent-type tz entries monitor/glucose.json
    # fetch data for first time
    openaps report invoke nightscout/recent-missing-entries.json

    # add report for uploading to NS
    openaps report add nightscout/uploaded-entries.json JSON  ns shell upload entries.json nightscout/recent-missing-entries.json
    # upload for fist time.
    openaps report invoke nightscout/uploaded-entries.json

Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 48, in main
    reporters.Reporter(report, device, task)(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 33, in __call__
    self.blob = self.serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 31, in serialize
    return self.method.serialize(render(data), self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/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:~/APS401 $
could that all be cgm related stuff vs. NS?
Scott Leibrand
@scottleibrand
oh, Unknown request: oref0_glucose_since is a clue
means you're using an old version, of oref0 I think
G. Kidd
@garykidd
hmmmm...maybe I lost internet connection while downloading latest within script?
Scott Leibrand
@scottleibrand
or maybe my script thought you were recent enough when you weren't
I think I saw this once before, and not sure we ever fixed it in the script, just had whoever it was download the latest oref0
G. Kidd
@garykidd
hmmmm.....you'd know better than I....but thinking on it...I did try 4 or 5 times to get this running...so at least it;s consistent...so I think that means that ....it probably isn't what I thought above about losing internet connection mid-stream/setup.
sudo npm install -g oref0 ?
Scott Leibrand
@scottleibrand
one sec, trying to figure out the proper fix in the script to have you test that
G. Kidd
@garykidd
k
Scott Leibrand
@scottleibrand
ok, do cd ~/src/oref0/ && git pull for me, and then re-run oref0-setup
this time it should say Installing latest oref0 dev and then do the npm spinner
This message was deleted
G. Kidd
@garykidd
pi@raspberrypi:~/APS401 $ cd ~/src/oref0/ && git pull
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From git://github.com/openaps/oref0
   d21a334..f1693b3  dev        -> origin/dev
Updating d21a334..f1693b3
Fast-forward
 bin/oref0-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Scott Leibrand
@scottleibrand
cool, that's my 1-line change, now re-run oref0-setup.sh
G. Kidd
@garykidd
OK...gonna clear my crontab so that I can create a new new one from script and not just append the existing one.....brb
Scott Leibrand
@scottleibrand
sorry you're running into all the bugs
thx for hanging in there.
G. Kidd
@garykidd
no way man....sorry I'm hitting you up non stop.
but maybe it'll be useful in the end...hopefully
Scott Leibrand
@scottleibrand
well you've already helped me fix one bug: that should help the next person in this situation
G. Kidd
@garykidd
Well then...that's cool. there have been a few small moments when I've actually known something that someone else hasn't...and it's good to be able to contribute...even if its something small.
True for openaps
true for life, really
dougtakeuti
@dougtakeuti
Hi @scottleibrand, I ran the script in a new openaps instance in the Edison rig. However, when I sent it to school running the old loop, it would not connect to the school wifi anymore. I've been using @TC2013 wifi hack successfuly for a few months. Is there anything in the script that could have caused it or is it just a coincidence?
Scott Leibrand
@scottleibrand
maybe * * * * * sudo wpa_cli scan
if you have toby's hack going, you can comment that out
dougtakeuti
@dougtakeuti
yes, I saw that
Scott Leibrand
@scottleibrand
or try that instead of his thing, dunno
dougtakeuti
@dougtakeuti
ok, will play around with that, thanks
G. Kidd
@garykidd
hmmmm...don't think I saw this in any install attempt...
Checking /home/pi/APS401: true
/home/pi/APS401 already exists
/home/pi/src/oref0/ already exists; pulling latest
Already up-to-date.
Checking oref0 installation
Installing latest oref0 dev

> oref0@0.2.0 global-install /home/pi/src/oref0
> npm install && sudo npm install -g && sudo npm link && sudo npm link oref0

npm WARN package.json mocha@2.5.3 No README data
npm ERR! Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/oref0-calculate-iob.js'
npm ERR!  { [Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/oref0-calculate-iob.js']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: '/home/pi/src/oref0/node_modules/oref0/bin/oref0-calculate-iob.js' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.4.21-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/oref0-calculate-iob.js
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/oref0-calculate-iob.js'
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

npm ERR! oref0@0.2.0 global-install: `npm install && sudo npm install -g && sudo npm link && sudo npm link oref0`
npm ERR! Exit status 50
npm ERR! 
npm ERR! Failed at the oref0@0.2.0 global-install script.
npm ERR! This is most likely a problem with the oref0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm install && sudo npm install -g && sudo npm link && sudo npm link oref0
npm ERR! You can get their info via:
npm ERR!     npm owner ls oref0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.21-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /home/pi/src/oref0
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

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
Scott Leibrand
@scottleibrand
yeah, this is the first time it's attempting to install oref0 for you
G. Kidd
@garykidd
so that's OK
Scott Leibrand
@scottleibrand
looks like you messed up perms on your ~/src/oref0 directory at some point by doing something with sudo maybe
G. Kidd
@garykidd
sure
Scott Leibrand
@scottleibrand
just sudo rm -rf ~/src/oref0/ and re-clone it
(re-clone = the step 1: mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull))
G. Kidd
@garykidd
done.