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
Scott Leibrand
@scottleibrand
not sure what "no module found" thing you're talking about
G. Kidd
@garykidd
pi@raspberrypi:~/APS401 $ tail -F /var/log/openaps/pump-loop.log
Listening: .No comms detected
Old pumphistory: 
Error, retrying
Starting pump-loop at Fri 30 Sep 21:06:28 EDT 2016:
Listening: .No comms detected
Old pumphistory: 
Error, retrying
Starting pump-loop at Fri 30 Sep 21:07:28 EDT 2016:
Listening: .Starting pump-loop at Fri 30 Sep 21:10:02 EDT 2016:
Listening: .No comms detected
Old pumphistory: Refreshed pumphistory
Could not parse input data:  { [Error: Cannot find module '/home/pi/APS401/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
Old pumphistory-24h refreshed
Profile less than 60m old
temp_basal.json less than 5m old
Pumphistory less than 5m old
Settings refreshed
Pumphistory-24 less than 20m old
Completed pump-loop at Fri 30 Sep 21:11:28 EDT 2016
Scott Leibrand
@scottleibrand
oh, you just mean your glucose.json being empty
G. Kidd
@garykidd
sorry...almost.....;MODULE_NOT_FOUND'
yeah...I guess....I am so tired.
Scott Leibrand
@scottleibrand
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
@garykidd
happens after every time it Refreshed pumphistory
Scott Leibrand
@scottleibrand
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
@garykidd
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
@scottleibrand
try openaps use ns shell preflight
G. Kidd
@garykidd
roger
Scott Leibrand
@scottleibrand
it will try to connect to NS and return true or false
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.