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

5th
May 2019
LuminaryXion
@LuminaryXion
May 05 00:07

Good morning! I've got my raspberry pi working but it's not trying to bt connect to my phone. I'm out and about so there's no wifi for it to try. How do I get it to connect to my phone?

I've read everything I can find, but only BT info is for edison. Not RasPi

davidvjr
@davidvjr
May 05 00:16
Starting oref0-pump-loop at Sat May  4 20:05:03 EDT 2019 with 28 second wait_for_silence:
Waiting up to 4 minutes for new BG: First loop: not waiting

Listening for 28s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Sat May  4 20:05:33 EDT 2019
Preflight OK. Profile less than 60m old; Profile valid. Pump history update failed. Last record 2019-04-30T09:08:58-04:00
Couldn't invoke_pumphistory_etc - continuing
Retry 1 of refresh_pumphistory_and_meal
Pump history update failed. Last record 2019-04-30T09:08:58-04:00
Couldn't invoke_pumphistory_etc - continuing
Listening for 2s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Sat May  4 20:06:21 EDT 2019
Retry 2 of refresh_pumphistory_and_meal
Pump history update failed. Last record 2019-04-30T09:08:58-04:00
Couldn't invoke_pumphistory_etc - continuing
Listening for 28s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Sat May  4 20:07:11 EDT 2019
Retry 3 of refresh_pumphistory_and_meal
Pump history update failed. Last record 2019-04-30T09:08:58-04:00
Couldn't invoke_pumphistory_etc - continuing
Couldn't refresh_pumphistory_and_meal
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 8 s silence before mmtuning
Listening for 8s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Sat May  4 20:07:43 EDT 2019
Listening for 8 s silence before mmtuning: Listening for 8s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Sat May  4 20:07:52 EDT 2019
mmtune: "916.600", 3, -39 -- "916.650", 3, -39
No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Sat May 4 20:08:11 EDT 2019
What can I do to fix the trouble it is having with pump history?
The reason I was redoing setup was to get looping on a new to me 722, which I've been using, for a few days with out the rig turned on.
davidvjr
@davidvjr
May 05 00:44
I'm shooting in the dark, but I tried to sync the device clocks:
oref0-pump-loop: no process found
Waiting for ntpd to synchronize... OK!
Setting pump time to Sat May 4 20:42:36 EDT 2019
2019/05/04 20:42:37 connected to CC111x radio on /dev/spidev5.1
2019/05/04 20:42:37 MEDTRONIC_PUMP_ID environment variable is not set
cat: preferences.json: No such file or directory
Setting CGM time to Sat May 4 20:42:37 EDT 2019 with openaps use cgm UpdateTime --to now
root@edisonrig:~/myopenaps/settings#
Does this look OK?
Jon Cluck
@cluckj
May 05 00:48
@davidvjr cd .. and try again, you need to run that stuff from ~/myopenaps
I don't think it's the device clocks? was 4/30 the last time you had your x12 connected?
davidvjr
@davidvjr
May 05 00:49
Yes on the x12...
Jon Cluck
@cluckj
May 05 00:51
rm ~/myopenaps/monitor/pumphistory-24h-zoned.json should wipe out your rig's memory of the old pump history
@LuminaryXion the directions are the same, except that you can use raspbian's built-in bluetoothd. Skip the line where it says to do /usr/local/bin/bluetoothd --experimental & as bluetooth is already running
the bluetoothctl and pairing steps are the same
LuminaryXion
@LuminaryXion
May 05 00:54
Thanks Jon, I'll give it a try :)
davidvjr
@davidvjr
May 05 00:55
@cluckj When I do that is it best to sudo service cron stopfirst?
Jon Cluck
@cluckj
May 05 00:56
eh, yolo
the radio is locked when in use so it won't harm anything
LuminaryXion
@LuminaryXion
May 05 00:57
lol
davidvjr
@davidvjr
May 05 00:57
=) seem to have worked! Ahhh! Getting my first temp basal from openAPS!
Jon Cluck
@cluckj
May 05 00:58
:clap: :confetti_ball:
LuminaryXion
@LuminaryXion
May 05 00:59

@LuminaryXion the directions are the same, except that you can use raspbian's built-in bluetoothd. Skip the line where it says to do /usr/local/bin/bluetoothd --experimental & as bluetooth is already running

it says to restart the bluetooth, by killing it, then using that line to run it. You sure I should skip this step?

Jon Cluck
@cluckj
May 05 01:00
yes
LuminaryXion
@LuminaryXion
May 05 01:00
ok!
davidvjr
@davidvjr
May 05 01:01
@cluckj I was looping last week, but just pumping air! Sweet! Will my saved wifi networks still be there? Can I just "safely remove hardware" and unplug the USB cables, or should I power down the rig?
Jon Cluck
@cluckj
May 05 01:01
yes they should still be there
unplugging is okay, but don't power it down if you want to keep looping though...
LuminaryXion
@LuminaryXion
May 05 01:08
looks like it might have worked. :) Will try it in a bit
davidvjr
@davidvjr
May 05 01:10
OK, well thanks very much again @cluckj . What you are doing here is very helpful and I appreciate it.
Jon Cluck
@cluckj
May 05 01:11
:thumbsup:
thanks
just paying it forward :)
davidvjr
@davidvjr
May 05 01:22
That's great. I'm trying to answer some very basic questions over in looped to pitch in with the influx of new people there. Providing links if I can. Hopefully I can help more soon. The kindness of people has been on full display since I got involved with this. I offered to buy a pump from a diabetes related Instagram contact who had mentioned she had a box of old pumps. Once we talked and she heard I wanted to DIY loop, she offered to give me one. Before I accepted her offer I provided her with a link to the looped group and told her she could sell her pump for $800 there. She sent it to me for nothing the next day. That was the first time I had ever talked to her. Pretty amazing.
Jon Cluck
@cluckj
May 05 01:24
awesome :D
Dana Lewis
@danamlewis
May 05 01:27
Wow that’s great to hear! And +1 thanks for paying it forward even more :smile:
LuminaryXion
@LuminaryXion
May 05 01:37

looks like it might have worked. :) Will try it in a bit

confirmed it's working. Thanks again for everything! :D

Dana Lewis
@danamlewis
May 05 01:38
:+1:
LuminaryXion
@LuminaryXion
May 05 02:21
Hi! I have a couple general questions about looping offline...
LuminaryXion
@LuminaryXion
May 05 02:26

I'm considering my options for my next raspberry pi. The person I'm helping is not tech savvy and doesn' t have nightscout set up yet. I know it's possible to connect the dexcom directly to the pi (any advice on the kind of cable to use for that?)

But does it need to connect to nightscout first before it can loop offline?

If he decides to go for a long-term offline solution (likely, yes I know the drawbacks.) would it pick up any ISF or ICR changes from the pump settings?

Dana Lewis
@danamlewis
May 05 02:41
No, you don’t have to have NS setup to loop
LuminaryXion
@LuminaryXion
May 05 02:42
that's good news for Japanese people. Less steps involving things they don't understand. ^_^
will it pick up settings changes from the pump?
Scott Leibrand
@scottleibrand
May 05 02:57
it's supposed to, but there are open issues reporting problems with that, so it could use a few more eyes
specifically openaps/oref0#1251
LuminaryXion
@LuminaryXion
May 05 03:10

specifically openaps/oref0#1251

I'll take a look :)

LuminaryXion
@LuminaryXion
May 05 03:22
gotcha.
Sgoldberg89
@Sgoldberg89
May 05 14:01
Hey @danamlewis ! Hope you're doing well!
Same to you @scottleibrand !
I was wondering if anyone on here has had the plastic bit at the top of the insulin reservoir come loose or break off. I'm not totally sure what it does. I bought some strong-ish super glue with the thought of gluing the bejezus out of it from the outside, to try and prevent damage from occurring, but thought I'd check with my favorite group of betes-experts before doing so.
oh also mine is loose and broken on 1 side - not just a prophylactic preventative measure.
Bernhard Klein
@Volberger
May 05 15:07

Hello everybody,
After a few days of running the loop this afternoon suddenly this message appeared in the pump log: "CC111 no response"

https://drive.google.com/open?id=1mVmFcmYuYe7IyrMjOEJ-fQd5VjzoS0Ki

Is my Explorer HAT broken or is that a problem in the OpenAPS oref0 installation? Looking forward to your help
Greetings

Scott Leibrand
@scottleibrand
May 05 15:25
@Sgoldberg89 that plastic rim helps keep the reservoir from coming out of the pump. For example, during an occlusion, if the reservoir pushes out under the higher pressure, the pump wouldn’t be able to detect that and wouldn’t be able to give a No delivery error.
If the reservoir ever does pop out, disconnect the tubing from your pump site immediately - any pressure on the top of the reservoir would result in instant delivery of all the missed insulin, which could be way more than is safe, particularly if you’ve been looping and it’s been trying to give more insulin to deal with the high BG because you haven’t been getting what was requested.
live4sw
@live4sw
May 05 15:49
@sgoldberg Do you mean part of the reservoir, or the activity guard? - https://www.diabetes.shop/other-accessories/activity-guard-for-paradigm-pumps/paradigm-7-series-charcoal
Dana Lewis
@danamlewis
May 05 17:25
@Sgoldberg89 👋🏼 are you talking about all of it or part of it? I had half of that top ring pop off and kept it in place with tape (others have used sugru or a 3d printed case), but beware super glue and other types that might degrade the pump plastic. If it’s the hole ring I would go ahead and swap pumps; if it’s a small partial piece you might can make do
As Scott mentioned, don’t do any repairs or pushing on the reservoir while it’s in the pump and attached to your body
Sgoldberg89
@Sgoldberg89
May 05 19:16
Thanks for the tips!
maybe I'll try to tape it down instead of using glue...
I only have 1 backup and i'm not 100% sure it'll work, haha. It MAY be a demo pump, i'm too scared to find out
Sgoldberg89
@Sgoldberg89
May 05 19:22
That reminds me, I actually do have a 500 that works, but I'm a 700 user, is there a site/forum for swapping stuff like that?
Eric
@ecc1
May 05 19:24
Looped group on FB perhaps
Sgoldberg89
@Sgoldberg89
May 05 19:28
Thanks @ecc1, just submitted a request to join the group.
mkericson
@mkericson
May 05 19:33
@Sgoldberg89 I had the same problem with cracks and loose pieces near the reservoir screw area of my pump. I used BONDIC after someone here recommended it . I cleaned and sanded the top section and loaded this around the entire top ring of the reservoir area and it has worked wonders. It's has help up now for over a year. You can find Bondic kits on amazon.
renegadeandy
@renegadeandy
May 05 21:36
Hi all my aps has failed due to a weird xDrip, nightscout issue, I was hoping somebody could help. I have posted on the nightscout gitter to no avail yet.

Hi all. I use nightscout and have xDrip+ uploading to it.

About 1.5 hours ago, my nightscout reported a failure to upload it's new bg data to nightscout, with the error :

NightscoutUploader Unable to do REST API upload: Internal server error url: <my nightscout url> marking record failed

So I have been watching the logs, and when that error appears, in my nightscout I see:

GRANTED:  92.239.205.226 api-secret api:entries:read
GRANTED:  92.239.205.226 api-secret api:entries:create
got data-received event, requesting reload
searching treatments q { find: { created_at: { '$gte': '2019-04-27T21:02:19.421Z' } },
  sort: { created_at: 1 } }
Load Complete:
         sgvs:535, treatments:287, mbgs:3, cals:2, profiles:1, devicestatus:29, profileTreatments:1, tempbasalTreatments:170
reloading sandbox data
WS: running websocket.update
delta changes found on treatments
lastData full size 435356 bytes
WS: running websocket.emitData 1557090139421
tick 2019-05-05T21:02:22.748Z
searching treatments q { find: { created_at: { '$gte': '2019-04-27T21:02:27.748Z' } },
  sort: { created_at: 1 } }

Which doesn't help me fix the internal server errors. Any ideas?