Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
Scott Leibrand
that won't fix itself.
tomorrow you can work on getting your reports fixed up for your G5, and/or figuring out what's wrong with your NS setup
G. Kidd
happens after every time it Refreshed pumphistory
Scott Leibrand
yeah, that's when it checks for updated BG data
but monitor/glucose.json is empty, so it never finds any there
the pump-loop doesn't actually try to pull the BG data: that's happening in the cgm-loop
so all the pump-loop is telling you is "nope, still empty"
G. Kidd
one thing b4 I crash...what's the eaiest way to check NS BG calls within the contect of an oref0-setup instance
riger that
Scott Leibrand
try openaps use ns shell preflight
G. Kidd
Scott Leibrand
it will try to connect to NS and return true or false
G. Kidd
see that shows true
so maybe it wold actually work if I let it go for awhile
how did you guys get your "ns" added as a device in openaps? That step isn't in my setup doc
Scott Leibrand
@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
I stepped away from iphone/ receiver recently---would it just pull older 20 records?
pi@raspberrypi:~/APS401 $ openaps get-ns-glucose
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__
  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
oh, Unknown request: oref0_glucose_since is a clue
means you're using an old version, of oref0 I think
G. Kidd
hmmmm...maybe I lost internet connection while downloading latest within script?
Scott Leibrand
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
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
one sec, trying to figure out the proper fix in the script to have you test that
G. Kidd
Scott Leibrand
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
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
 bin/oref0-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Scott Leibrand
cool, that's my 1-line change, now re-run oref0-setup.sh
G. Kidd
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
sorry you're running into all the bugs
thx for hanging in there.
G. Kidd
no way man....sorry I'm hitting you up non stop.
but maybe it'll be useful in the end...hopefully
Scott Leibrand
well you've already helped me fix one bug: that should help the next person in this situation
G. Kidd
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
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
maybe * * * * * sudo wpa_cli scan
if you have toby's hack going, you can comment that out