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
G. Kidd
@tim2000s that means you're using share and/or NS then for BG?
@tim2000s did you need to add --no-raw to oref0_glucose calls in oref0-setup script?
Im actually thinking the continual sudo wpa cli scans are making my router conk out.....same with my damn * * * * * /home/pi/bin/bt-pan client XX:YY:ZZ:AA:BB:CC in cron causing BT issues in car.....so many links...so many possible broken links...
@scottleibrand might you be around tomorrow night...I thought I'd have energy tonight....but no dice.
Scott Leibrand
perhaps. nothing scheduled yet, but we'll see
G. Kidd
before I hit the hay...any ideas....maybe that NO MODULE FOUND error is OK and it'll start to set basals over time...i was wathcing the damn tail loop log mor ethan NS and now I am wondering if it might kick in on NS
even with that error
Scott Leibrand
not sure what "no module found" thing you're talking about
G. Kidd
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' }
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
oh, you just mean your glucose.json being empty
G. Kidd
yeah...I guess....I am so tired.
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