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

28th
Jan 2018
Scott Leibrand
@scottleibrand
Jan 28 2018 00:38
Ok. Once you’ve figured out what works best, I’d like to run autotune again and see if it recommends something close, and if not figure out why not.
jquitos
@jquitos
Jan 28 2018 06:12
can someone help me out? I have reflashed our back up rig due to BT or Wifi not working anymore. After reflashing i try to install oref0 with the set up script but then i get this

Attempting to bring up wlan0:

Killed old client process
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/90:b6:86:01:fc:a8
Sending on LPF/wlan0/90:b6:86:01:fc:a8
Sending on Socket/fallback
DHCPRELEASE on wlan0 to 192.168.1.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/90:b6:86:01:fc:a8
Sending on LPF/wlan0/90:b6:86:01:fc:a8
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Wifi SSID: root@Baymax:~#

obviously it's not connecting.... did i do something wrong? I didn't have this problem reflashing the other rig
Scott Leibrand
@scottleibrand
Jan 28 2018 08:16
looks like your wifi config is wrong (or your router is doing something weird). maybe try it with your phone hotspot instead?
Ljuslykta
@Ljuslykta
Jan 28 2018 10:41
I've been out of the loop for a couple of months now. Last time I was looping was last summer, and one thing that was a pain to deal with was that I live in an area with bad reception. I was therefore looking for some way to sidestep the need for going via Nightscout that required internet connection. I then got the answer that it wasn't really possible then but that you were working on some sort of better offline solution. Did that ever get released?
chriddetyp1
@chriddetyp1
Jan 28 2018 11:11
@scottleibrand Hi Scott! Just a follow up. Autotune is still off. But I know now why it might have calculated dodgy basal rates for me. I did a calculation starting from somewhere in 2017 where I had only BGs but not treatments. So considering that it makes to me sense that autotune wasn´t able to calculate proper BR (very unsteady and lower than my working ones). So the plan is collecting from now on treatment and BG data and then recalculate the following weeks. And fun fact this morning: developed resistance and re-read autosense DOCs and then switched it on again with max / min = 1.1/0.9. Loop brought me back with adjusted ISF / BR . So sensing variables max/min (preferences.json) also stretch the BR in the same ratio as the ISF? That´s what I´d expect...Many thanks for these cool tools (super super awesome)!
Tim Howard
@tghoward
Jan 28 2018 13:58
@Ljuslykta have you seen the offline looping page, here?
https://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/offline-looping-and-monitoring.html
there are a few options that folks are using ...
Ljuslykta
@Ljuslykta
Jan 28 2018 14:00
@tghoward Yes, but using all of them you loose functionality that's only avaliable in the Nightscout interface, which was the gripe I had with it
Tim Howard
@tghoward
Jan 28 2018 14:03
Yes, you lose some of the ability to see results and get information easily, but many folks are looping effectively without internet connection. Which is what I thought your question was. Yes, other stuff continue to be in the works. :smile:
chriddetyp1
@chriddetyp1
Jan 28 2018 14:04
@tghoward I just tried that with my rig + Android Samsung G. Note 3 via Bluetooth PAN. Unfortunately I don´t receive BG in OpenAPS from Xdrip. I bet its a typo... in the Base URL: http://myapipw@192.168.44.205:5000/api/v1/
Tim Howard
@tghoward
Jan 28 2018 14:08
@chriddetyp1 Sorry, I'm not in tune enough with those details to be able to help debug there! Wish I was!
chriddetyp1
@chriddetyp1
Jan 28 2018 14:15
@tghoward no worries. In case somebody reads it here and has experience with that... I wonder if have to use "openaps first-upload" as well or is it just the Medtronic CGM?
philipgo
@philipgo
Jan 28 2018 14:40
@chriddetyp1 That looks correct, which CGM type did you select during setup?
jquitos
@jquitos
Jan 28 2018 15:14

@scottleibrand do you mean use a mobile hotspot to see if that will work?

I reflashed again and I get to the set up wifi step.... everything goes through and when I bring up to test for wifi I have an IP that is assigned. When I finish installing packages, ssh...etc... it goes through that without problems. Then when I try to run the setup script if gives the above message... I'm at my wits end because I don't know what I'm doing wrong and I didn't have problems before

chriddetyp1
@chriddetyp1
Jan 28 2018 15:35
@drnoname82 Xdrip in the setup script and using Xdrip+ (22.01.17 nightly)
Tim Street
@tim2000s
Jan 28 2018 16:41
@jquitos That’s usually an indication of an incomplete flash and requires that you flash the rig again. Those of us that have seen that type of issue have found it to be caused by the cables.
philipgo
@philipgo
Jan 28 2018 16:47
@chriddetyp1 What is the output of the command xdrip-looplog? Are there any errors in the logs of the X Drip+ app?
Cathje
@Cathje
Jan 28 2018 17:38
Hi all, a few weeks ago , I posted a question on this forum since my rig gave a radio error and restarted every 5 min. After trying a few solutions, it seemed that my explorer board itself was broken and so I got a new one from the company. It finally arrived, the radio seems to work and I think I'm sooooooo close to closing the loop. However, after an hour of trying to get a successful loop, the loop logs keep complaining about input.glucose_data.map (unable to call method map of undefined, could not parse monitor/glucose.json) . I am pretty sure that my rig is connected to my nightscout site and pump, since I can see pump bolusses on the graph. However, it does not seem to read any glucose values from nightscout. If i do a curl to the entries.json url of nightscout, I am seeing a full array of values. Does anyone has an idea how come my glucose.json file is still empty? In which file (or part of code) does it store the nightscout values into the json file? Maybe I can try to debug it from there?
chriddetyp1
@chriddetyp1
Jan 28 2018 17:45
image.png
@drnoname82 the last entry should be considered, prior this there was a typo at the end of BASE Url (a missing / at the end)
Dana Lewis
@danamlewis
Jan 28 2018 18:45
@Ljuslykta which functionality is it you're looking for in an offline scenario? You described something that's only in NS?
philipgo
@philipgo
Jan 28 2018 18:50
@chriddetyp1 Could it be the Edison is connected to Wifi right now? Your phone is in wifi and it does not seem to be sharing internet connection via wifi at the moment.
Scott Leibrand
@scottleibrand
Jan 28 2018 18:59
@Cathje what does your ns-loop.log say?
Cathje
@Cathje
Jan 28 2018 19:38
@scottleibrand : Starting oref0-ns-loop at Sun Jan 28 20:36:02 CET 2018:
No recent valid BG found. Most recent:
Latest NS temptargets: {"target":null,"duration":null,"start":null}
Merging local temptargets: Temptargets merged: {"target":null,"duration":null,"start":null}
Refreshed carbhistory; COB: {"batteryVoltage":3844,"battery":66}
No recent suggested.json found; last updated No new treatments to upload
Completed oref0-ns-loop at Sun Jan 28 20:36:20 CET 2018
Scott Leibrand
@scottleibrand
Jan 28 2018 20:10
There’s your problem. Probably means your NS URL is incorrect, or you set up tokenauth incorrectly. If you have tokenauth enabled, change NS back to world-readable and see if that fixes it.
Cathje
@Cathje
Jan 28 2018 20:28
If you mean with "world-readable", setting the AUTH_DEFAULT_ROLES from denied to readable, world-readable or an empty value (so using the default setting)... I have tried that, but it doesn't make a difference. If my tokenauth or NS url would be incorrect, how come my NS site registers bolusses that I entered in my pump?
chriddetyp1
@chriddetyp1
Jan 28 2018 20:39
@drnoname82 True (screenshot was shot later than trying set up offline looping), but it wasn´t as I tried to do the offline looping (switched off the router) to establish the bluetooth PAN, which was successful, as ns received over PAN data from the rig but no data from xdrip.
jquitos
@jquitos
Jan 28 2018 21:02
@tim2000s Thanks Tim... I'll have to hunt down some cables in the house... is there anything that I can use to determine if it's the cable or not or if the cable is correct?
philipgo
@philipgo
Jan 28 2018 21:12
@chriddetyp1 And the rig was looping or complaining about BG data too old? When using xdripaps for offline looping, OpenAPS will not upload the values to Nightscout. That is good because this way you can use both offline and online looping without ending up with duplicate data in Nightscout. If you want your CGM values to be displayed in Nightscout while uploading to your rig via BT PAN, you must set the X Drip+ app to upload to BOTH your rig and Nightscout (just enter both destinations with a space in between)
Scott Leibrand
@scottleibrand
Jan 28 2018 22:21
@Cathje treatment uploads and CGM data downloads use different mechanisms
Ljuslykta
@Ljuslykta
Jan 28 2018 23:17
@danamlewis I can't remember exactly now since it was some time ago, but I found the message I wrote then. I was using Xdrip, and I found that when I was offline I didn't have reasoning behind basal changes, the battery life of the machines, better predictions and so on. I basically felt that I was missing that information, and the only way to get it was to try to get online. Is there now some way to get some kind of offline NS or that kind of information directly into Xdrip?
Dana Lewis
@danamlewis
Jan 28 2018 23:19
there's a couple of options to get that info for android phone users in an offline situation - a local webpage is one good option, plus HotButton, or HTTP widget. Lots described here: http://openaps.readthedocs.io/en/latest/docs/While%20You%20Wait%20For%20Gear/monitoring-OpenAPS.html#hot-button-for-android-users
Dana Lewis
@danamlewis
Jan 28 2018 23:54
@drnoname82 :clap: :clap: :clap: :clap: