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

29th
Jan 2018
jquitos
@jquitos
Jan 29 2018 01:58
I'm at a loss.... I don't know how many times I have reflashed this rig to get it to work. Always the same thing where I lose the ability to generate an IP and then can't run the setup script
Scott Leibrand
@scottleibrand
Jan 29 2018 02:06
Which command causes it to lose its IP?
jquitos
@jquitos
Jan 29 2018 02:22

@scottleibrand After I set up wifi I do what's next in the setup instructions which is:
dpkg -P nodejs nodejs-dev

apt-get update && apt-get -y dist-upgrade && apt-get -y autoremove

apt-get install -y sudo strace tcpdump screen acpid vim python-pip locate

After it goes through all that... then I do the next step...
adduser edison sudo

adduser edison dialout

dpkg-reconfigure tzdata

Then I try to run oref0 set up and I get:
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 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Wifi SSID: root@Baymax:~#

I run <ifconfig> and I get this:

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr 02:00:86:6e:4e:d3
inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::86ff:fe6e:4ed3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 90:b6:86:01:fc:a8
inet6 addr: fe80::92b6:86ff:fe01:fca8/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:102783 errors:0 dropped:0 overruns:0 frame:0
TX packets:56038 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:144843636 (138.1 MiB) TX bytes:4285759 (4.0 MiB)

fabe21
@fabe21
Jan 29 2018 02:32
Hi , real easy questions. I am looping.... but trying to add Bluetooth Tether and don't know how to stop loop ........ tried quite a few commands in including cd, start, stop, l etc.... please help oh yeah, tried cron too
Scott Leibrand
@scottleibrand
Jan 29 2018 03:11
@jquitos hmm... there's nothing in oref0-setup that attempts to bring up wlan0
what does it do right before that?
jquitos
@jquitos
Jan 29 2018 03:13
@scottleibrand it actually brings it up when I first run oref0 setup (I just closed out putty...oops)... but then it still doesn't connect... and then I try to run it again and it's gone
Scott Leibrand
@scottleibrand
Jan 29 2018 03:13
@fabe21 service cron stop will prevent it from starting another loop
@jquitos ok, we need to drill down into precise details of what's going on, so please paste the exact command you ran and the exact output you got when you get a chance
https://github.com/openaps/oref0/blob/dev/bin/oref0-setup.sh doesn't have anything in it that does an ifup wlan0 or similar, so I think you must be running something else
fabe21
@fabe21
Jan 29 2018 03:19
this is a strong loop cause it just keeps ......... even with service cron stop command
jquitos
@jquitos
Jan 29 2018 03:19
@scottleibrand to do that I'll have to start with reflashing the rig again up to the point of where I start to have issues... is that what you'd like me to do? May not be able to stay awake long enough for that tonight since I "toyed" with it for several hours last night...lol
but I can start the process and update you when I get to where I ran into issues
fabe21
@fabe21
Jan 29 2018 03:23
Ctrl C worked . Thanks
Scott Leibrand
@scottleibrand
Jan 29 2018 03:24
@jquitos can't you just re-run the last thing you did that gave you the problem?
@fabe21 Ctrl-C just stops viewing the log. if you have a loop waiting for new BG or for radio silence, you can do killall -g oref0-pump-loop to kill it early
jquitos
@jquitos
Jan 29 2018 03:25
oh true... i suppose I could do that...lol...
Scott Leibrand
@scottleibrand
Jan 29 2018 03:26
@fabe21 although it sounds like you might be confusing "stopping the loop" with "getting your terminal back to do other stuff" while it's running in the background
fabe21
@fabe21
Jan 29 2018 03:27
Yes, @scottleibrand you are correct. Just leave it running and trying to add BT tethering to the rig. Don't want Loop to actually stop.
jquitos
@jquitos
Jan 29 2018 03:29

@scottleibrand here is what I just ran:
dpkg -P nodejs nodejs-dev

what I got:
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove nodejs-dev which isn't installed

however that's not the typical response that I get prior to having issues... but what I am getting now
now running: apt-get update && apt-get -y dist-upgrade && apt-get -y autoremove
and that pulls up a bunch of stuff in terminal but I can give you the last little bit if you'd like when it's done
Scott Leibrand
@scottleibrand
Jan 29 2018 03:44
dpkg -P is “purge”, so if they’re already gone that’s good.
unless you get errors, the apt-get stuff is also probably fine.
LMK when you get to the step that gives you problems.
jquitos
@jquitos
Jan 29 2018 03:46

trying to run apt-get however having issues now with "fetching> Err http://security.debian.org jessie/updates InRelease

Err http://http.debian.net jessie-updates InRelease

Err http://http.debian.net jessie-backports InRelease

but i don't know if that's related to my current internet connectivity
Scott Leibrand
@scottleibrand
Jan 29 2018 03:53
yeah, you won't be able to apt-get without Internet
if that is currently broken, you can either try to troubleshoot it manually, or re-run the bootstrap copy-paste script that sets it up
Martin Haeberli
@mhaeberli
Jan 29 2018 04:25
btw, this article on ‘gray failures’ in the cloud may have deep relevance for the OpenAPS community … https://www.cs.jhu.edu/~huang/paper/grayfailure-hotos17.pdf
chriddetyp1
@chriddetyp1
Jan 29 2018 07:29
@drnoname82 I was connected to the inet via cell phone and OpenAPS was trying to loop but couldn't as BG data was too old. And usually disappearing from my WiFi at home let's the Rig connect to the Pan of my cellphone. That's why I'm assuming something is wrong with the configuration in Xdrip+ (or may be with xdripapps on the rig? )
peterfulvi
@peterfulvi
Jan 29 2018 12:20
I have a few Lipo Batteries in which one of the wires came detached. It seems like a fixable problem with a soldering iron. Im very new at soldering any rcomendations on materials
ejoe132
@ejoe132
Jan 29 2018 16:04
Looking to get back on openaps, seems all the edison supply is all but gone now, are there plans for moving to a different hardware platform?
Jon Cluck
@cluckj
Jan 29 2018 16:24
yes, in the next couple of months the recommended platform will be the new explorer hat for raspberry pi
ejoe132
@ejoe132
Jan 29 2018 16:42
@cluckj So thats still a bit away then? Just didnt wanna try to locate an edison for the higher price if something was just around the bend
Dana Lewis
@danamlewis
Jan 29 2018 16:49
@ejoe132 still available on eBay
Michael Spradling
@M1Sports20
Jan 29 2018 18:17
I am curious about the expolrer hat and rasp pi w. Is this solution larger or smaller than the current explorer and Edison? Also how is the battery on the pi compared to Edison?
i see it has a screen that will be neat
Trying to determine if I want another order of the explorer just in case mine goes bad, or I will most likly just move onto the hat?
Also, wondering how long support will last for explorerin oref0.
Dana Lewis
@danamlewis
Jan 29 2018 18:19
It's about the same shape as an Edison/EB, but given the bigger power consumption needs of Pi, will require a bigger battery. Mine still fits in the same 3" soft case, though
A long time
Michael Spradling
@M1Sports20
Jan 29 2018 18:23
@danamlewis: So do you like it more or less than the explorer setup. Is there anywhere I can read about this setup. Just curious
Michael Spradling
@M1Sports20
Jan 29 2018 18:28
thanks. I don't know how i missed that, i follow your blog
Jon Cluck
@cluckj
Jan 29 2018 21:14
edison is faster, a tiny bit more portable, and gets better battery life; the pi hat has a screen & buttons, will be cheaper and actually available, it can have a QI charging loop attached to it, and we're working on the battery life :)
Scott Leibrand
@scottleibrand
Jan 29 2018 21:30
but no matter how much we improve it, the power efficiency of a Pi will always be worse than an Edison, so batteries will have to be a bit bigger
LilDucky
@LilDucky
Jan 29 2018 21:54
That is unless we can power off the rig when it is idle like @ecc1 has tried in his loop
Scott Leibrand
@scottleibrand
Jan 29 2018 22:02
Yeah, with hardware changes there are more options.
kallnap
@kallnap
Jan 29 2018 22:07
18650 Lipos are available with 3600mAh, which may help a bit
Jon Cluck
@cluckj
Jan 29 2018 22:07
drop charging the pi-hat, with a 2500mAh battery has been pretty good
John Benjamin
@Bender1061
Jan 29 2018 22:24
@cluckj is the QI charger you are thinking about the same as adafruit sells? so have a couple soldier points? that would be great. But would the QI charging pad effect the 900MHz range?
Scott Leibrand
@scottleibrand
Jan 29 2018 22:24
the Explorer HATs being produced have wire whip antennas, so you should be able to situation the antenna mostly outside/around any obstructions
John Benjamin
@Bender1061
Jan 29 2018 22:25
ok, that would work
I like the idea of using a QI charger, I did that when I have the breakout board attached to the TI Stick, it worked pretty good. and I just treated the rig like my cell phone at work and set it on a second QI charger.
Peter Miller
@ochenmiller
Jan 29 2018 22:48
@Bender1061, I've been using a rig with a QI charger for some time now. It doesn't appear to have any adverse effect on any of the transceivers (G4/Medrtonic/Bluetooth/Wifi).
Jon Cluck
@cluckj
Jan 29 2018 22:57
@Bender1061 yes, I used the little bare coil one from adafruit and soldered it to the usb power pads