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

9th
Mar 2017
John Benjamin
@Bender1061
Mar 09 2017 00:01
@tim2000s Ouch!, but good to know, I'm looking at some of those cases where you pretty much have to open them up to charge them. Probably for the best.
Scott Leibrand
@scottleibrand
Mar 09 2017 00:01
Pay careful attention to everything written in the docs, not just the copy-and-paste sections. You missed the part about logging in as root, so if you keep doing things that way you'll miss other important steps as well.
John Benjamin
@Bender1061
Mar 09 2017 00:04
it's funny when you start considering days you have a hard time staying below 200, but less then 250 a real bad diabetes day.
Dana Lewis
@danamlewis
Mar 09 2017 00:04
^ Yep!
John Benjamin
@Bender1061
Mar 09 2017 00:06
it's a good feeling
Dana Lewis
@danamlewis
Mar 09 2017 00:09
:+1:
dan lightner
@danimaniac
Mar 09 2017 00:43
@tim2000s @Bender1061 Myself and @thebookins have been designing vented cases recently. He is a bit further along with his, but you can look at mine at this link. I will be revising some minor details of my case in the next few days...I just got my Explorer Board yesterday and am currently getting my rig setup. Rig first, case second. https://github.com/danimaniac/OpenAPS-Explorer-Board-Edison-vented-case
John Benjamin
@Bender1061
Mar 09 2017 00:46
:fire:
Scott Leibrand
@scottleibrand
Mar 09 2017 01:19
hopefully not . :)
dan lightner
@danimaniac
Mar 09 2017 01:55
The Explorer Board wifi setup does not seem to connect to a hidden router even when specified in wpa_supplicant? Slick as a whistle as soon as I broadcast my home router's ssid.
Scott Leibrand
@scottleibrand
Mar 09 2017 02:09
that would be a general Linux thing with wpa_supplicant, not specific to the Explorer board. I would do some Googling.
you just need to figure out the configuration parameters for setting up non-broadcasting SSIDs in wpa_supplicant.
Harris3
@Harris3
Mar 09 2017 02:14
@ecc1 that's great! Thank you!!
dan lightner
@danimaniac
Mar 09 2017 02:31
I think I am closed looping (test pump, filled with water, not connected): my programmed basal rate in the pump for this time segment is 1.35u/h, but the pump shows a current temp basal rate of 0.0u/h for 30 min (my BG is currently 69). Is this a correct assumption?
Dana Lewis
@danamlewis
Mar 09 2017 02:31
:D if you didn’t set that temp, then yes!
:confetti_ball:
dan lightner
@danimaniac
Mar 09 2017 02:39
Nightscout site is updating to show the 0.0u/h temp basal now, too. Now to dig deeper and learn a few things. Setup was fairly easy, although I have some PR's in mind for the setup docs as time permits. Thanks for all the vision and hard work, you guys!
Dana Lewis
@danamlewis
Mar 09 2017 02:39
Congrats! And yes, PRs welcome :)
feraridurango
@feraridurango
Mar 09 2017 02:52

After editing, your file should look like:

interfaces(5) file used by ifup(8) and ifdown(8)

auto lo
iface lo inet loopback

auto usb0
iface usb0 inet static
address 192.168.2.15
netmask 255.255.255.0

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

am I to change the address to my own ? and the netmask to my own ?
@diabeticgonewild I was looking at you youtube videos earlier and I wanted to talk to you so glad you are here now :)
feraridurango
@feraridurango
Mar 09 2017 03:13
does anyone see this ? just wondering
Dana Lewis
@danamlewis
Mar 09 2017 03:13
(yes)
feraridurango
@feraridurango
Mar 09 2017 03:14
hey I was feeling lonely lol
thank you
Dana Lewis
@danamlewis
Mar 09 2017 03:14
:+1:
dmdfreak
@dmdfreak
Mar 09 2017 03:31
This message was deleted

Sorry to re-ask this question but I think I got lost in the shuffle. When I got to this line and ran it this was what it returned. This is the last thing I needed to get offline BT connection working. Any ideas?

sudo bt-pan client D0:13:FD:72:0E:37

Traceback (most recent call last):
  File "/usr/local/bin/bt-pan", line 228, in <module>
    if __name__ == '__main__': sys.exit(main())
  File "/usr/local/bin/bt-pan", line 196, in main
    try: iface = net.Connect(opts.uuid)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network1" doesn't exist
Scott Leibrand
@scottleibrand
Mar 09 2017 05:27
If anyone has any input on whether/when they'd like their Edison to shut down if battery is critically low, could you please comment on https://github.com/openaps/oref0/pull/395#issuecomment-285258105 ?
Tim Street
@tim2000s
Mar 09 2017 06:29
@danimaniac The case I showed pictures of is vented.
andyhandy
@andyhandy
Mar 09 2017 10:49
@tim2000s Hi - just wondering what sort of battery you have? I have the same case as you but the pressure on the battery wires keeps ripping them out. Thanks
katie disimone
@Kdisimone
Mar 09 2017 12:25
@feridurango The instructions do not say to change those IP addresses to your own, do they? If there's no instructions specifically to change them, then you should leave them as you found them.
peterfulvi
@peterfulvi
Mar 09 2017 13:03
I'm in the process of flashing another Edison for setting up another rig. I'm having trouble with the flashing process. I run flashall.bat then reboot My Edison,and get no response fro the batch file. Does anything need to reset. With the cables i use im able to access it by serial connection, so i figure the cable s are goo to go . Im using aPCwith Windows 7
dan lightner
@danimaniac
Mar 09 2017 14:20
@tim2000s I saw the photos. I am going a little further (overboard maybe) with the venting in my design, but I feel it's better safe than sorry. I would rather have too much venting so long as it doesn't detract from the physical protection of the rig.
kws1969
@kws1969
Mar 09 2017 14:34
Looking at 2 weeks of auto tune logs day by day. Is it safe to make-adjust basels off an average or are we better off to stay with one Basel and allow open to adjust on the fly??
Eric
@ecc1
Mar 09 2017 18:25
@Harris3 if you're going to try applying that patch yourself, please pick up the updated one from the dev branch of https://github.com/ecc1/decocare (@rdsteed found a bug in my first cut at this that affects sensitivity schedules with entries after 3:30pm)
Dana Lewis
@danamlewis
Mar 09 2017 18:49
@kws1969 I don't think I understand your question - can you clarify?
dan lightner
@danimaniac
Mar 09 2017 18:52
@tynbendad Yes, that is the standard power on-board antenna Edison. That is the same one I purchased a few weeks ago (just received my Explorer Board this Monday).
tynbendad
@tynbendad
Mar 09 2017 18:56
@danimaniac :+1:
where's a good place to find a 3d printed case for edison/explorer/2500mah rig? i don't have any experience w/3d printed parts, but love the rileylink's since its solid & kid is used to it
tynbendad
@tynbendad
Mar 09 2017 19:05
thx, was just looking thru those, they are all for the sample 2000mah... (except the 18650 one, which is interesting - know where the power plug adapter for that is?)
maybe i'll have my t1d design his own case, they are supposed to have a 3d printer at school somewhere ;)
John Benjamin
@Bender1061
Mar 09 2017 19:15
@tynbendad a way around that 500 mah difference is to have a carry one that you take with you everywhere, and plug that in by the door. Then place several others around your house or apartment, so that way when home, you don't need to be using a battery. Granted i also carry a spare battery in my bag just in case. I too use a 2500 mah battery, but I'm waiting to see what kind of changes @danimaniac makes on her case, before I print mine.
tynbendad
@tynbendad
Mar 09 2017 19:32
@Bender1061 thx :+1:
Dana Lewis
@danamlewis
Mar 09 2017 19:35
+1 for multiple rigs, which you can leave plugged into a wall charger so you always have a fresh rig ready to go, too, in case you forget to plug in and charge your "mobile" rig
jmcrawford
@jmcrawford
Mar 09 2017 19:35
A while back someone posted instructions on how to prune Mongo db entries to reduce size - anyone have that handy?
Diabetic_Dude
@diabetic_dude_twitter
Mar 09 2017 19:37
So I have set up my IFTTT but am having a hard time understanding how the test it section works. I have Selected "Test it" , waited a bit, now where should I see the results? For this entry I am trying to set up the eating soon mode.
Dana Lewis
@danamlewis
Mar 09 2017 19:38
@diabetic_dude_twitter check and see if it set it in NS - should show a small grey line on the graph and if you check your OpenAPS pill it should say the target is now 80
Or check your logs, too
Matthias
@ceben80
Mar 09 2017 19:40
@danamlewis .....farmer :star2:
Diabetic_Dude
@diabetic_dude_twitter
Mar 09 2017 19:41
thanks, it isn't working, I am going to look into it and see what I can find
Dana Lewis
@danamlewis
Mar 09 2017 19:43
@ceben80 :p
Matthias
@ceben80
Mar 09 2017 19:48
Hihi :wink:
Diabetic_Dude
@diabetic_dude_twitter
Mar 09 2017 19:49
@danamlewis how can I check my logs ?
Eric
@ecc1
Mar 09 2017 19:50
@jmcrawford When I do this, I first use mongodump to take a backup, then use the mongo client to remove old entries: db.entries.remove({dateString:{$lt:"2017-01-01"}}) for example
Diabetic_Dude
@diabetic_dude_twitter
Mar 09 2017 19:56
understood and thanks
jmcrawford
@jmcrawford
Mar 09 2017 20:05
@ecc1 Thanks. That command deletes records from that date only, or up to that date?
Eric
@ecc1
Mar 09 2017 20:07
it delete entries whose dateString is less than that date (i.e. earlier)
jmcrawford
@jmcrawford
Mar 09 2017 20:07
Ahh - $lt - thanks
dmdfreak
@dmdfreak
Mar 09 2017 20:50
Rig is paired to my phone but when I do this I get errors.
sudo bt-pan client D0:13:FD:72:0E:37
Eric
@ecc1
Mar 09 2017 21:02
Please post the exact error message (copy and paste)
dmdfreak
@dmdfreak
Mar 09 2017 21:02
Traceback (most recent call last):
File "/usr/local/bin/bt-pan", line 228, in <module>
if name == 'main': sys.exit(main())
File "/usr/local/bin/bt-pan", line 196, in main
try: iface = net.Connect(opts.uuid)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network1" doesn't exist
Eric
@ecc1
Mar 09 2017 21:03
What does bluetoothd --version return?
dmdfreak
@dmdfreak
Mar 09 2017 21:04
5.37
It's a new build
Eric
@ecc1
Mar 09 2017 21:06
And you're sure your phone shows up in bluetoothctl when you use the paired-devices command, and you've done trust D0:13:FD:72:0E:37 as well?
dmdfreak
@dmdfreak
Mar 09 2017 21:06
Both yes sir checked in many times
It*
Eric
@ecc1
Mar 09 2017 21:07
Did you restart bluetoothd after the new build?
dmdfreak
@dmdfreak
Mar 09 2017 21:07
Yes sir
Eric
@ecc1
Mar 09 2017 21:13
Hmm, I'm running out of ideas. What happens if you run busctl introspect org.bluez /org/bluez/hci0/dev_D0_13_FD_72_0E_37 ?
dmdfreak
@dmdfreak
Mar 09 2017 21:14
That one will take me a few minutes. One sec
Eric
@ecc1
Mar 09 2017 21:15
There should be a lot of output. Mainly want to see if it returns without error, and if there is a line with ".Connect method ..."
dmdfreak
@dmdfreak
Mar 09 2017 21:26
I'm mobile now so it's not letting me have enough room to paste that command. It writes back over itself Everytime and won't run.
dmdfreak
@dmdfreak
Mar 09 2017 21:32
Let me get a different SSH program real quick
dmdfreak
@dmdfreak
Mar 09 2017 21:41
Cannes back invalid command
In Bluetoothctl invalid command. Outside Bluetoothctl it says known command introspect
jmcrawford
@jmcrawford
Mar 09 2017 21:43
Earlier today our pump started showing BG records as mg/Dl instead of mmol/L on NS. Manual callibrations (via xDrip) appear normally, but pump entries are plotted at BG*18. Really messing with the graph. Any idea what would cause this all of a sudden, and how to correct?
Eric
@ecc1
Mar 09 2017 21:43
@dmdfreak right, that's not in bluetoothctl but at the shell. Did you include the "busctl" ?
Scott Leibrand
@scottleibrand
Mar 09 2017 21:44
@jmcrawford did someone accidentally change the settings on the pump?
Eric
@ecc1
Mar 09 2017 21:45
It's also possible to check the mmol box in the NS settings menu, maybe by accident?
sorry mg/dL in your case
dmdfreak
@dmdfreak
Mar 09 2017 21:45
Yes I did. Double checked
Eric
@ecc1
Mar 09 2017 21:46
hmm. what does busctl --version say?
jmcrawford
@jmcrawford
Mar 09 2017 21:46
NS is set to mmol, I changed to mg to test, and back. Records plotted the same, just different units.
dmdfreak
@dmdfreak
Mar 09 2017 21:47
System 215
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR
root@timsedison:~#
Eric
@ecc1
Mar 09 2017 21:49
Ah, that's before the introspect command was added. Let me see if I can find a workaround
dmdfreak
@dmdfreak
Mar 09 2017 21:50
OK ty for helping
jmcrawford
@jmcrawford
Mar 09 2017 21:51
Any idea what command I can run to check the pump settings for the units? use pump settings doesn't seem to show mmol/mg. I'm remote, so can only access via openaps commands
Eric
@ecc1
Mar 09 2017 21:56
@dmdfreak OK, let's try something different for now. In bluetoothctl, can you do info D0:13:FD:72:0E:37 (btw, you can use tab-completion after the first couple of digits of the MAC address)
dmdfreak
@dmdfreak
Mar 09 2017 21:58

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 9 15:48:10 2017 from android-17129d8e07fa3ea6
root@timsedison:~# bluetoothctl
[NEW] Controller 58:A8:39:01:05:EB timsedison [default]
[NEW] Device D0:13:FD:72:0E:37 V20
72:0E:37 h]# info D0:13:FD:
Device D0:13:FD:72:0E:37
Name: V20
Alias: V20
Class: 0x5a020c
Icon: phone
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: LG Electronics (0000feb9-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (fafbdd20-83f0-4389-addf-917ac9dae5b2)
Modalias: bluetooth:v00C4p13A1d1000
[bluetooth]#

Eric
@ecc1
Mar 09 2017 22:01
Hmm, it doesn't look like your phone has the BT tethering service. When I do that command, I see a line that says UUID: NAP (...) which is the service for personal-area networking that you need. Is there something you need to do on your phone to enable it? On my Android Nougat phone, there's a "tethering and hotspot" item under settings.
I've also heard that some phones turn it off after a timeout if no client connects to it ...
dmdfreak
@dmdfreak
Mar 09 2017 22:02
I do as well. I'm on N too. I had it on when I tried to connect the first time
Hard to do now since I'm not at home.
I've got the time turned off when I run it
Eric
@ecc1
Mar 09 2017 22:05
I don't understand your last sentence
dmdfreak
@dmdfreak
Mar 09 2017 22:06
I turn off the timeout for hotspot when it's running
jmcrawford
@jmcrawford
Mar 09 2017 22:10
Wifey says that Canadian pumps are required to only support mmols, so that can't be the problem.
Eric
@ecc1
Mar 09 2017 22:11
@jmcrawford The command to print insulin sensitivities should show the units
^ glucose units
@dmdfreak How do you do that? I don't see any settings for Bluetooth tethering except on/off
jmcrawford
@jmcrawford
Mar 09 2017 22:13
cat settings/insulin_sensitivities.json
{
"units": "mg/dL",
"user_preferred_units": "mmol/L",
"sensitivities": [
dmdfreak
@dmdfreak
Mar 09 2017 22:14
It's under tethering/mobile hotspot /Mobil hotspot timer
Might be LG specific?
I have nothing that says Bluetooth tethering
jmcrawford
@jmcrawford
Mar 09 2017 22:15
All Mongo records are stored as mg. It's something in the NS interpretation of those records that is off
gregtcm
@gregtcm
Mar 09 2017 22:16
@dmdfreak How/where did you turn your phone bluetooth tethering timeout off
Eric
@ecc1
Mar 09 2017 22:16
Yes, that's what I'm thinking. I have a vanilla-Android (Nexus) model. I'm wondering if that's only WiFi hotspot? Maybe google for BT tethering with your specific model?
gregtcm
@gregtcm
Mar 09 2017 22:16
Ah, I see @ecc1 already asked and you answered. Thanks
dmdfreak
@dmdfreak
Mar 09 2017 22:16
OK let me look
dmdfreak
@dmdfreak
Mar 09 2017 22:27
Not looking good. I'm going to call T-Mobile and ask them about it
Eric
@ecc1
Mar 09 2017 22:31
Yeah, it looks like it might be up to the carrier whether it's enabled. I think someone else in the community had a phone that didn't support BT tethering similarly
dmdfreak
@dmdfreak
Mar 09 2017 22:34
Thinking I might could runa tether program to bypass but no idea. I'll let the T-Mobile tech take a run at it first
dmdfreak
@dmdfreak
Mar 09 2017 22:55
Verified. No BT tethering on T-Mobile v20. I think the Verizon version does. Not sure about the others. I'll try software right when I get home.
@ecc1
dmdfreak
@dmdfreak
Mar 09 2017 23:57
Something weird sitting on NS. I ate lunch at 12. 30 carbs. It's now 6 and I just had a 10 carb snack but çob and openAPS is showing and using 38 carbs. Good is that possible
How*
Dana Lewis
@danamlewis
Mar 09 2017 23:59
in general, OpenAPS calculates dynamic carb absorption, so if your BG is not rising as expected, carbs will stick around a lot longer. That being said - there’s a small bug impacting a few people that’s influencing COB calculations, so if you want to try dev and test that fix, you could give us another +1 for the dev to master release so we can get that patch fix more widely distributed.