These are chat archives for nightscout/intend-to-bolus

5th
Aug 2018
naboull1
@naboull1
Aug 05 2018 00:12

cant tell if it works yet had to re run the oref0 setup again and it hangs for a long time on

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
importing supermicrobolus file
determine-basal://JSON/shell/enact/smb-suggested.json
pump://JSON/set_temp_basal/enact/smb-enacted.json
pump://JSON/bolus/enact/bolused.json
Adding OpenAPS log shortcuts

abnormally long what could be the reason?

Scott Leibrand
@scottleibrand
Aug 05 2018 01:05
@naboull1 if you'd like, you could do a PR to update the docs to mention the correct pins for the Pi Explorer HAT
naboull1
@naboull1
Aug 05 2018 01:07

@cluckj @scottleibrand @danamlewis okay we have progression but hit a confusing road block

i am using freestyle libre on nightscout through xdrip on android phone.

in oref0 setup when i changed what cgm i would like to use from xdrip to MDT its not getting readings from xdrip anymore and I need MDT because i need it to install MRAA so i can then do the CCPROG to fix the radio transmission to the pump

what im understanding is i need to go with xdrip option but I need a separate way to install MRAA and CCPROG

is there a separate install doc i can follow to get MRAA and CCPROG
or someone can add these install line to the main, im not sure

@scottleibrand i havnt done a PR before ill try doing it :)
Scott Leibrand
@scottleibrand
Aug 05 2018 01:09
no, you don't want to keep oref0-setup set to MDT
if you changed it to MDT as a way to install MRAA, you'll want to re-run oref0-setup with it set to xdrip now that you've got mraa installed and were able to run ccprog
naboull1
@naboull1
Aug 05 2018 01:13
okkay ill try that now
naboull1
@naboull1
Aug 05 2018 03:25

has someone just added this to oref0?

What kind of CGM would you like to configure?: xdrip
Ok, xdrip it is.

Explorer Board HAT detected.
Would you like to [D]ownload precompiled Go pump communication library or build them from [S]ource? [D]/S s
What type of radio do you use? [1] for cc1101 [2] for CC1110 or CC1111 [3] for RFM69HCW radio module 1/[2]/3 2
Building Go pump binaries from source with + radiotags + tags.

Scott Leibrand
@scottleibrand
Aug 05 2018 03:28
yes, I just merged openaps/oref0#1070 and openaps/oref0#1077 to dev, if anyone wants to test them out
why are you trying to build Go from source?
naboull1
@naboull1
Aug 05 2018 03:31

i got it working and i want to have a clean a clean fresh install starting from scratch

i dont know the difference between source and download

should i be picking source or download?

Scott Leibrand
@scottleibrand
Aug 05 2018 03:32
Download.
naboull1
@naboull1
Aug 05 2018 03:32
the merge you made i picked 2 does that fix the problems ive been having with the explorer hats d3 and d4 lights and flashing problem
Scott Leibrand
@scottleibrand
Aug 05 2018 03:33
You don’t want to install from source unless you’re making modifications to the source code.
naboull1
@naboull1
Aug 05 2018 03:33
okay cool ill change it to download. thank you
so does option 2 CC1110 resolve the radio flashing issue?
or would i still need to do a setup as MDT to install mraa/ccprog and then redo it back to xdrip?
Scott Leibrand
@scottleibrand
Aug 05 2018 03:42
option 2 CC1110 is the same as the old default build-from-source option. the addition of the CC1101 and RFM69HCW option is what's new, for people with non-Explorer hardware
you don't need to set up as MDT if you've already gotten the dim LEDs to shut off by running ccprog
mraa only has to be installed once
naboull1
@naboull1
Aug 05 2018 03:44
ok cool cool thank you for your help :)
wfeddern
@wfeddern
Aug 05 2018 14:45
I am getting a pump battery low alert in nightscout for 1.29 volts, but my pump shows 3/4 full on battery icon still (medtronic 554). Should I replace battery based on the voltage report or wait for alert from pump?
BTW, I started closed loop last night (on oref0) on pi zero/HAT and working great so far.
wfeddern
@wfeddern
Aug 05 2018 15:02
Replaced battery and up to 1.47 volts now, so I guess 1.29 is pretty low. Time to start buying batteries in bulk :)
Re: my previous issue with bluetooth tether, looks like my cell provider disabled bluetooth tether on all samsung devices a few years back for no apparent reason. Would be interested in hearing work arounds that people have been successfull with. Looking at PDAnet and just doing wifi. Tried some other bluetooth tether apps and using bluetooth tether in pdanet, but no luck.
Dana Lewis
@danamlewis
Aug 05 2018 15:47
@wfeddern there are some notes in docs about battery levels, and suggest using lithiums (although they die faster at the end). There's also a list of notes about workable phones here, but If provider disables tether I'm not sure there's a work around. http://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/bluetooth-tethering-edison.html#phone-selection-for-bt-tethering
wfeddern
@wfeddern
Aug 05 2018 16:15
found the battery info, was buried in the nightscout setup page. Have to price out lithium vs multiple alkaline
Using a 2000mAh battery now, would this battery be a good option (on pi zero setup) http://www.canadarobotix.com/battery-chargers/1435-lithium-ion-polymer-lipo-battery-3-7v-6000mah
Dana Lewis
@danamlewis
Aug 05 2018 16:43
Feel free to Pr if you think there's a better location for it?
Tim Street
@tim2000s
Aug 05 2018 16:46
We've been trying to run the Pi0W install script this afternoon and running into the following issue:
Collecting openaps
  Downloading https://files.pythonhosted.org/packages/fb/c5/bbbabaf067adb6da839a29dee46a03eddd72f2ce3a218bc0e0353485e629/openaps-0.1.5.tar.gz
Collecting argcomplete (from openaps)
  Downloading https://files.pythonhosted.org/packages/31/88/ba8d8684a8a27749250c66ff7c2b408fdbc29b50da61200338ff9b2607bf/argcomplete-1.9.4-py2.py3-none-any.whl
Collecting decocare>0.0.26 (from openaps)
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 792, in get_page
    "Cache-Control": "max-age=600",
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
    total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
Dana Lewis
@danamlewis
Aug 05 2018 16:48
Want to try installing dev?
Eric
@ecc1
Aug 05 2018 17:15
Surprised to see the CC1101 option in the install script. Is anyone using it? That radio driver is the least well-tested of the bunch, so I'm interested in any issues with it. And the precompiled releases haven't included anything except CC111x so far -- is there a case for including RFM69 too (or is that just for @juehv and me :-) ?
Dana Lewis
@danamlewis
Aug 05 2018 17:30
I don't know, but I definitely want to change that script prompt before it goes to master
alimhassam
@alimhassam
Aug 05 2018 17:42
@danamlewis I tried to change the script prompt (and also give an option to choose pre-release versions so we can test and give @ecc1 a :+1: ). Was just merged to dev. Feel free to suggest other follow up changes. I might be able to tackle then if needed.
Dana Lewis
@danamlewis
Aug 05 2018 17:50
:+1:
Eric
@ecc1
Aug 05 2018 17:52
maybe add "Explorer boards/HATs and TI sticks" to the CC111x prompt (or replace it with that) and make it the first option, with "other radios" or something that warns most people away from it :-)
woodtrevor
@woodtrevor
Aug 05 2018 18:00
@wfeddern @danamlewis re bluetooth tether, there are apps that may work for tethering even if the provider disables the builtin tethering option. I've had good luck with one called easytether pro. It does require some customization of the script that brings up the tether and switches back and forth between that and wifi though.
wfeddern
@wfeddern
Aug 05 2018 18:03
@woodtrevor do you have any notes on the customizations? and are you using the easy tether pro from polyclef or mobile stream (there are 2 on playstore)
woodtrevor
@woodtrevor
Aug 05 2018 18:21
Mobile Stream. There is a free version (not pro) that allows you to try the basic functionality first to see if it will work. You will need pro though for openaps. The instructions on their website are pretty easy to follow to connect and test the tether manually. If that works then it's pretty easy to modify the rig-online script to sub in the steps to establish the easytether connection vs the built in tether. Happy to share what I did or answer questions if you end up going that route.
Dana Lewis
@danamlewis
Aug 05 2018 18:22
That's sounds worth a PR too if you get it up and running 👍🏼
wfeddern
@wfeddern
Aug 05 2018 21:13
@woodtrevor Test with lite version worked! Thanks, going to buy paid version and work on the scripts later.
woodtrevor
@woodtrevor
Aug 05 2018 22:08
👍
wfeddern
@wfeddern
Aug 05 2018 22:25
@danamlewis will work on documenting process too, but need to do a fresh install of raspbian first since I did so much fiddling trying to get the traditional bluetooth tether to work before realizing my provider had it disabled on phone.
Adi Barilan
@Adidushi
Aug 05 2018 22:40
heyo! I'm having a bit of trouble with my g4 non-share connecting to a rig. I have a BT wixel that doesn't want to connect to my phone, so I want to use it as a USB wixel for my pi. How can I make the pi read off the wixel via USB?
or if y'all have a fix for my g4 receiver occasionally not letting the pi read it
It's a 2017-produced non-share receiver
Jens Heuschkel
@juehv
Aug 05 2018 22:44
I think the rfm69 is very welcome for all cheapyboard users. I gave away 3 of them :)
wfeddern
@wfeddern
Aug 05 2018 22:45
@woodtrevor did you modify oref0-online script to add checks for tun-easytether? or just replace the bluetooth code there with commands for easytether? I think we want to add and leave the original bluetooth tether code in place.