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

20th
Oct 2016
garykidd
@garykidd
Oct 20 2016 00:53
@scottleibrand yeah flashing OK...its something with SCREEN I think that's f'in me up. maybe will try via pi or via pi immediately after flashing as @jbwittmer suggested. @jbwittmer SOrry you had issues as well but feeling more sane that I'm not the only one.
Paul Martin
@Spazholio
Oct 20 2016 00:59
I have horrible issues with screen and the Edison. It works fine until I use vim to edit files and then things go all ka-flooey.
garykidd
@garykidd
Oct 20 2016 01:09
@Spazholio were you able to get vim to work?
Paul Martin
@Spazholio
Oct 20 2016 01:11
Oh, it works. Just poorly. If I have a fullscreen terminal, when I screen in, it’s fine. But when I invoke vim, I get what I think is an 80x24 window. And when I exit out, it stays at 80x24.
garykidd
@garykidd
Oct 20 2016 01:11
nano and vi each had terrble issues for me...hitting control L would have the screen change to all sorts of different garbage at different points---I tried new usb cables--always the same result though
for me it was only problems with editors...regular command line entries via screen were fine..no issues
Paul Martin
@Spazholio
Oct 20 2016 01:13
CTRL+L, huh? Interesting.
What does CTRL+L normally do?
garykidd
@garykidd
Oct 20 2016 01:14
or maybe command L forget..
Dana Lewis
@danamlewis
Oct 20 2016 01:40
anyone want to thumbs up this PR into dev, so we can check it out in RTD and do better testing of the structure changes? openaps/docs#427
Dana Lewis
@danamlewis
Oct 20 2016 01:53
thx @Spazholio
Paul Martin
@Spazholio
Oct 20 2016 01:53
Nice, comprehensive, and compartmentalized. =)
Dana Lewis
@danamlewis
Oct 20 2016 02:17

Here was the “before” of Phase 0 (aka current master): http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/index.html

Here is the “after” of Phase 0 (aka current dev): http://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-0/index.html

And then here is the open pull request to comment, flag any issues you see, etc.: openaps/docs#428

noxlux
@noxlux
Oct 20 2016 02:19
hello all, i'm new here and helping a friend set up their openaps and I have a question. is the oref0-determine-basal.js a file that i can run and if so where is it? i've been searching through the files and can't find it!
Dana Lewis
@danamlewis
Oct 20 2016 02:20
welcome @noxlux - you’ll want to be using the docs and the setup scripts provided within, if you’re not already. Docs are available here: http://openaps.readthedocs.io/en/latest/
but to answer your original question oref0-determine-basal is https://github.com/openaps/oref0/blob/master/bin/oref0-determine-basal.js hosted in the oref0 repo under OpenAPS
noxlux
@noxlux
Oct 20 2016 02:24
thank you!
taylorfowler
@taylorfowler
Oct 20 2016 02:45
Hey QQ, I'm looking at LiPo batteries for the Edison. Can you charge them via the explorer board / breakout boards? Or should i be trying to pick up a charger as well? Thanks
have been googling around but cant seem to find a straight answer
Paul Martin
@Spazholio
Oct 20 2016 02:48
You can charge from the breakout board, yes. I can’t speak to the Explorer, but I imagine the same is true.
Dana Lewis
@danamlewis
Oct 20 2016 02:48
Yes for charging through explorer board
Hey @taylorfowler, you'd be a good one to review the new Edison hardware page I just added to the docs. See the above Pr I just linked to
I pulled in that link and content about lipo's from the mmeowlink wiki but we may need to update with a better link
taylorfowler
@taylorfowler
Oct 20 2016 02:52
Thanks guys! I'll take a look now @danamlewis. I was actually going through it when I clicked through the link for the LiPo' s and it shot me over to a UK web site. It should probably give a couple options for US/EU.
Dana Lewis
@danamlewis
Oct 20 2016 02:52
Excellent :) thanks for taking a look
David Young
@wgs4
Oct 20 2016 02:53
when you try to ping a host, and it is unreachable, is it normal for the response IP to be from the local machine you attempted to ping from?
pi@rpi ~ $ ping google.com
PING google.com (64.233.177.139) 56(84) bytes of data.
From 192.168.0.120 icmp_seq=1 Destination Host Unreachable
taylorfowler
@taylorfowler
Oct 20 2016 02:54
@danamlewis do you want me to just comment on openaps/docs#428 with feedback?
diabeticgonewild
@diabeticgonewild
Oct 20 2016 02:55
Who tortured themselves by watching the presidential debate?!
David Young
@wgs4
Oct 20 2016 02:55
When the Ping is successfull, the FROM IP makes sense..
david@Davids-MacBook-Pro:~$ ping google.com
PING google.com (64.233.177.139): 56 data bytes
64 bytes from 64.233.177.139: icmp_seq=0 ttl=46 time=24.372 ms
Dana Lewis
@danamlewis
Oct 20 2016 02:55
@taylorfowler that would be great
Paul Martin
@Spazholio
Oct 20 2016 02:58
@diabeticgonewild I watched it. =)
@wgs4 I’d say that because it can’t get to the destination, it’s showing you the result from the furthest it’s been able to reach. In this case, it can’t get past its own interface, so that’s what’s shown.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 02:59
Hahaha! This is what one of my friends had to say about Trump
"Woe is me, the world is rigged against me" says a man with more privilege, money and power than most people will ever experience in their life. He's delusional.
Paul Martin
@Spazholio
Oct 20 2016 03:01
Yeah, that was ugly.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:01
I didn't watch it. I would have but have other things to worry about...like life.
Trying to take care of things...kind of...in my own life.
Just watching the commentary now...
David Young
@wgs4
Oct 20 2016 03:02
@Spazholio thank you. I’ve been struggling with basics on and off. I’ve got my Pi configured for both my home and office network. It was abe to see the world from both locations, but now it only sees the world from my office.
Paul Martin
@Spazholio
Oct 20 2016 03:04
@wgs4 I think you’re using systemd, so I’m going to be of limited help. I assume you’ve tried rebooting?
David Young
@wgs4
Oct 20 2016 03:05
@Spazholio yes I have tried rebooting…
Paul Martin
@Spazholio
Oct 20 2016 03:07
What does sudo ifconfig return?
David Young
@wgs4
Oct 20 2016 03:07
short version that I believe matters is...
wlan0     Link encap:Ethernet  HWaddr 74:da:38:6c:e6:dc  
          inet addr:192.168.0.120  Bcast:192.168.0.255  Mask:255.255.255.0
do you need the whole output pasted?
Paul Martin
@Spazholio
Oct 20 2016 03:08
Oh, so you have an IP. Huh.
Can you ping 8.8.8.8?
David Young
@wgs4
Oct 20 2016 03:08
no
Paul Martin
@Spazholio
Oct 20 2016 03:08
No, that won’t matter. Hmm.
David Young
@wgs4
Oct 20 2016 03:08
nor google.com
Paul Martin
@Spazholio
Oct 20 2016 03:08
Thought it might be a DNS resolution issuel.
What about 192.168.0.1?
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:09
On RPi you should have something like this in interfaces file
David Young
@wgs4
Oct 20 2016 03:09
yes
Paul Martin
@Spazholio
Oct 20 2016 03:09
Ok, so you can ping your gateway.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:09
auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 auto wlan0 iface wlan0 inet dhcp pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
Except I can't paste it on mobile
David Young
@wgs4
Oct 20 2016 03:09
@Spazholio correct I can ping gateway
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:09
Follow this guide
It's solid for raspberry pi with multiple networks
Paul Martin
@Spazholio
Oct 20 2016 03:10
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:10
Thanks @Spazholio
David Young
@wgs4
Oct 20 2016 03:10
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Paul Martin
@Spazholio
Oct 20 2016 03:10
Oh wait…let me see the entire output of the sudo ifconfig command. I had a thought...
David Young
@wgs4
Oct 20 2016 03:11
pi@rpi /etc/network $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:db:c7:a7  
          inet6 addr: fe80::fa69:eba2:556f:53ea/64 Scope:Link
          UP BROADCAST 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)

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:2286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:207775 (202.9 KiB)  TX bytes:207775 (202.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 74:da:38:6c:e6:dc  
          inet addr:192.168.0.120  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::290a:eef9:bef4:7b5/64 Scope:Link
          inet6 addr: 2601:486:0:c21d:7865:132:2fd6:2edf/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9139 errors:0 dropped:105 overruns:0 frame:0
          TX packets:5685 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2196229 (2.0 MiB)  TX bytes:528918 (516.5 KiB)
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:11
For the Edison you have to make the interfaces file slightly different (compare original to the version on that site...), but the last 2 lines should be the same
@wgs4 your interfaces file is a mess
The link I gave you is literally the most straightforward way
I searched hours and hours for a simple solution for people.
David Young
@wgs4
Oct 20 2016 03:13
ah I was afraid of that
Paul Martin
@Spazholio
Oct 20 2016 03:13
Yeah, that looks like the stock one. I believe you can just get rid of any reference to wlan1 right off the bat. But yeah, do what @diabeticgonewild recommends with that link. Mine looks VERY similar.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:13
I worked in Geek squad for like almost 3 years so I am good at getting things working conceptually for people
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:21
@wgs4 the wpa_supplicant.conf file can be MUCH simpler than what's on the site that I posted. Just do one of these in brackets for EACH network in your wpa_supplicant.conf file
Paul Martin
@Spazholio
Oct 20 2016 03:23
@danamlewis I have a question about how the loop operates in a specific mode. When we were talking about using the bolus wizard but adjusting the carbs down in order to raise the loop’s “awareness” of the possibility of food absorption (I explained that poorly, but I hope you know what I’m referring to), does the loop, or CAN the loop, say something like, “Ok, he said he was going to eat 20g carbs, and he bolused for the entire amount according to the BW, but he’s STILL having an unexpected rise. Since I know that he obviously just ate and something’s gone awry, I’m going to increase the amount of insulin I’d normally give because I know that absorption is happening and something’s not quite right"
taylorfowler
@taylorfowler
Oct 20 2016 03:24
Paul Martin
@Spazholio
Oct 20 2016 03:24
(can you tell I like to anthropomorphize OpenAPS?)
taylorfowler
@taylorfowler
Oct 20 2016 03:24
*:+1:
oh jeez
Dana Lewis
@danamlewis
Oct 20 2016 03:25
Heh thanks @taylorfowler!
taylorfowler
@taylorfowler
Oct 20 2016 03:25
failing so hard.....i blame the debate ;)
Dana Lewis
@danamlewis
Oct 20 2016 03:26
@Spazholio I don't remember talking about adjusting carbs down. Generally, put in the carbs you are going to eat, regardless of how much you bolus. If you do that and have 1/2 bolus for x carbs, it'll see you have more carbs uncovered as you rise and adjust accordingly.
Paul Martin
@Spazholio
Oct 20 2016 03:26
Argh, I meant to say adjust the insulin down.
Dana Lewis
@danamlewis
Oct 20 2016 03:26
If you do full bolus for carbs and you rise more than expected, it'll still give you more insulin assuming that's what you need and with an eye to relevant basal caps
Paul Martin
@Spazholio
Oct 20 2016 03:26
I’ll go ahead and blame the debates too.
Dana Lewis
@danamlewis
Oct 20 2016 03:27
My first answer still covers that then ;)
Paul Martin
@Spazholio
Oct 20 2016 03:27
Ok, gotcha.
Dana Lewis
@danamlewis
Oct 20 2016 03:28
It's about expected and observed absorption and deviation
David Young
@wgs4
Oct 20 2016 03:29
@diabeticgonewild my wpa_supplicant.conf is good. but I did just reboot the Pi after copy/paste the info from the interfaces tutorial.. and now I can’t ssh to the Pi.. (uses shovel to commence digging into the problem).
Darrell Wright
@beached
Oct 20 2016 03:29
Can anyone tell me what the magic numbers e.g 0.001852 on lines 21 and 26of https://github.com/openaps/oref0/blob/master/lib/iob/calculate.js#L26 represent.
Dana Lewis
@danamlewis
Oct 20 2016 03:29
@taylorfowler I'll swap out the link, and good call on the next step link. The next link is auto generated but I can add a note with a link to help people jump there more easily!
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:30
Can you SSH in via Ethernet?
Dana Lewis
@danamlewis
Oct 20 2016 03:30
For the other suggestions, I will probably ping you after my changes go in and suggest you write those out in more detail and put into a separate PR so those don't get lost in structural changes
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:30
And fix the wpa_supplicant/interfaces issues?
It's one or the other.
David Young
@wgs4
Oct 20 2016 03:31
@diabeticgonewild well… you know how apple discontinued ethernet ports in their macbooks without an adaptor..
Paul Martin
@Spazholio
Oct 20 2016 03:31
@danamlewis Right, but if I don’t eat (don’t use the BW) it’s keeping me in range, that’s one thing. But if I use the BW and give all the insulin and still have a sharp rise, then something’s gone wrong (I counted carbs wrong, body’s just doing some funky stuff) and it would be interesting if the loop could say, “Well, there’s obviously more carbs than anticipated, so this isn’t just regular variances, there’s extra carbs present” and behave…more aggressively would be the best term, I suppose.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:31
Well then he needs to connect it to his router and SSH in that way.
David Young
@wgs4
Oct 20 2016 03:32
@diabeticgonewild nice call
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:32
@wgs4 you have to be more diligent than this. It requires persistence: things don't work the first time around for a reason.
David Young
@wgs4
Oct 20 2016 03:32
@diabeticgonewild Pi is not receiving an IP address on wlan0 when i perform netscan
Paul Martin
@Spazholio
Oct 20 2016 03:33
@wgs4 Plug it into the router, and then SSH to rpi.local. Should find it. Unless you’re screened in.
If you’re already in it, then disregard. =)
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:33
Are you sure? Read the first comment
Dana Lewis
@danamlewis
Oct 20 2016 03:34
@Spazholio you could have gone into the meal with gobs of negative iob; or counted carbs wrong; or done math bolus wrong; or get excited; or insert a million reasons for rise. If it has carbs uncovered for, it will do something with them. Otherwise a rise is a rise is a rise and we have no way to know if it is carbs or otherwise. So it'll deal, but under conservative assumptions for safety reasons.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:34
Do you have brew installed?
David Young
@wgs4
Oct 20 2016 03:34
yes
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:34
Along with nmap?
Darrell Wright
@beached
Oct 20 2016 03:34
Is avahi running?
Paul Martin
@Spazholio
Oct 20 2016 03:34
@danamlewis I figured that was the logic behind it. Technically, I imagine what I’m asking would require some sort of divination on the loop’s part.
David Young
@wgs4
Oct 20 2016 03:34
yes
Paul Martin
@Spazholio
Oct 20 2016 03:35
I don’t know that I’ve ever had to muck with avahi manually, so I think it should be running...
Darrell Wright
@beached
Oct 20 2016 03:35
bonjour on the other machine if windows
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:35
If you are certain about those things: then something is wrong with your interfaces file
Yeah on Windows you need bonjour to SSH in...
Downloading iTunes is the easiest way to get that...
David Young
@wgs4
Oct 20 2016 03:35
after I get SSH access in a few moments I’ll confirm
Darrell Wright
@beached
Oct 20 2016 03:36
@diabeticgonewild technically to resolve the name.local to an ip, but yeah
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:36
Thanks. I don't read much so I need to be reminded. Haha
It's true! 😂
Dana Lewis
@danamlewis
Oct 20 2016 03:36
@Spazholio OpenAPS is designed around understandable diabetes math, not divination ;)
Darrell Wright
@beached
Oct 20 2016 03:36
Could always go on the router and look at the dhcp client list and try them all
Paul Martin
@Spazholio
Oct 20 2016 03:37
@danamlewis Saving that for v2, I take it? Shrewd. ;)
Dana Lewis
@danamlewis
Oct 20 2016 03:37
LOL. No promises.
David Young
@wgs4
Oct 20 2016 03:39
@diabeticgonewild got ethernet ssh connection. yay
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:40
That's good.
What does your interfaces file look like
David Young
@wgs4
Oct 20 2016 03:40
i apparently do not have nmap install
pi@rpi /etc/network $ cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
pi@rpi /etc/network $
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:41
That's why you have to double check things
David Young
@wgs4
Oct 20 2016 03:41
brew install nmap ?
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:42
Yep
David Young
@wgs4
Oct 20 2016 03:42
ok, i dont have brew installed either. sorr
i’ve installed stuff on so many machines
I have apt-get and yum
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:43
sudo apt-get install brew
Paul Martin
@Spazholio
Oct 20 2016 03:43
Wait, why are we using nmap again? I think I missed something.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:43
To locate the Pi via router
Darrell Wright
@beached
Oct 20 2016 03:44
also write down your mac address
ifconfig -a and the wlan one
Paul Martin
@Spazholio
Oct 20 2016 03:44
Oh. But I think he’s into the Pi now?
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:44
Yeah that too.
Yeah but he still will need it
Paul Martin
@Spazholio
Oct 20 2016 03:44
I mean, it’s not a bad tool to have in your toolbox. I’m a huge fan.
David Young
@wgs4
Oct 20 2016 03:44
pi@rpi ~ $ sudo apt-get install brew
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package brew
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:44
He's bound to make mistakes and not resolving this will just cause problems.
Darrell Wright
@beached
Oct 20 2016 03:44
what is your hostname
David Young
@wgs4
Oct 20 2016 03:45
rpi
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:45
@wgs4 google how to install brew on Mac
Darrell Wright
@beached
Oct 20 2016 03:45
so /etc/hostname say only rpi not rpi.something
David Young
@wgs4
Oct 20 2016 03:45
i have brew on mac installed
Darrell Wright
@beached
Oct 20 2016 03:45
where something is anything
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:45
I just assumed that's what the command was
Darrell Wright
@beached
Oct 20 2016 03:45
and there are no other rpi's on the network
David Young
@wgs4
Oct 20 2016 03:45
I thought you wanted me to install brew on Pi
there are no other rpi on network
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:46
Yeah, but you are saying that it's already installed
Darrell Wright
@beached
Oct 20 2016 03:46
brew is for mac
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:46
That's contradictory
In and of itself
Paul Martin
@Spazholio
Oct 20 2016 03:46
brew is a strictly Mac thing. If you’ve already got brew on your Mac, then just do brew install nmap on the Mac.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:46
Of yeah it is on Mac
David Young
@wgs4
Oct 20 2016 03:46
ok.. i was searching for nmap on Pi. lol
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:46
Of course
David Young
@wgs4
Oct 20 2016 03:46
nmap is already installed on mac
so is brew
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:46
Yeah what @Spazholio said
David Young
@wgs4
Oct 20 2016 03:47
what would you suggest I do with nmap on my Mac? it is there .
Paul Martin
@Spazholio
Oct 20 2016 03:47
So later on, if you need to find the Pi and can’t get into it for whatever reason, you can find it using nmap. But since you’re in it now, we might be able to skip that step for the moment.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:47
You use that to locate the Pi
David Young
@wgs4
Oct 20 2016 03:48
I have Net Analyzer on my phone, so I was abe to scan my network. I probably need to do some reading nmap to better understand what all it does
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:48
You should delete the ENTIRE interfaces file CONTENTS off of your Pi, and then paste the interfaces file off of that site I posted.
David Young
@wgs4
Oct 20 2016 03:48
ok, so im on the pi, lets get back to my inteface file.. in fact, let me ping the world from eth0 and see what i get
Paul Martin
@Spazholio
Oct 20 2016 03:48
I think the command would be sudo nmap -p22 192.168.0.1/24. That will scan every computer in that network (making some assumptions here) for computers that have port 22 open.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:49
You should delete the contents of the interfaces file. Then paste the stuff from the site i gave you.
David Young
@wgs4
Oct 20 2016 03:49
so plugged into ethernet connector, Pi sees the world. so problem is def wlan0 related
I did, but I left 1 line of code that maybe I should have not left.
if im connected via ethernet, and if interfaces file was fixed, would wlan0 be assigned the static IP still ?
Paul Martin
@Spazholio
Oct 20 2016 03:53
…static IP?
David Young
@wgs4
Oct 20 2016 03:53
I can connect because of ethernet connection, but network scan is not showing 192.168.0.120 appearing like it should
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:53
Your wpa_supplicant.conf should look like this.
David Young
@wgs4
Oct 20 2016 03:53
I have my router set to assign a static iP to the Pi so I my firewall pinhole on port 22 will work
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:54

ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2

network={
ssid="ssid name"
psk="password"
scan_ssid=1
}

network={
ssid="ssid name"
psk="password"
scan_ssid=1
}
For 2 different networks, of course
Paul Martin
@Spazholio
Oct 20 2016 03:54
I don’t even have the scan_ssid lines in mine. Not saying you shouldn’t but I don’t think that’ll be a dealbreaker if you don’t.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:55
Yeah you probably don't need them
@wgs4 just delete the interfaces file contents and just copy and paste what's from the site
It's obvious what you need to do
Darrell Wright
@beached
Oct 20 2016 03:55
I wish I still had it, but I used to have code to put an rpi into AP mode when there were no known ssid's to connect to
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:56
It's on a site. I have it bookmarked on my laptop.
Paul Martin
@Spazholio
Oct 20 2016 03:56
I have mine set up slightly differently, using id_strs. I also use wpa-roam in the E/N/I file. But yeah, what’s on the site should suffice.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:56
Let's not make this overly complicated.
Paul Martin
@Spazholio
Oct 20 2016 03:56
@wgs4 Once you have the files looking like what’s described, let us know. We can move forward from a known-good point then.
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:56
This dude is clearly confused already
Paul Martin
@Spazholio
Oct 20 2016 03:57
@diabeticgonewild That statement was meant for you, rather than for @wgs4 to follow. Should have made that clearer. =)
David Young
@wgs4
Oct 20 2016 03:57
lol
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:57
OK thanks.
David Young
@wgs4
Oct 20 2016 03:57
pi@rpi /etc/wpa_supplicant $ sudo cat wpa_supplicant.conf 
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="Fort Knox 3"
    psk=“hidden”
    key_mgmt=WPA-PSK
}

network={
    ssid="WGS-ADI Wireless"
    psk="hidden"
    key_mgmt=WPA-PSK
}
network={
    ssid="David"
    psk=“hidden”
}
network={
    ssid="Phoenix West 2405"
    key_mgmt=NONE
}
network={
    ssid="WGS-ADI Wireless"
    psk=“hidden”
}
i typed hidden so i wouldnt post my passwords
diabeticgonewild
@diabeticgonewild
Oct 20 2016 03:58
Update_config
Should not be in there
Same with group and netdev
It kind of helps when you follow instructions if you know what I mean...
key_mgmt should be on ANY one of the access points WITH a password
David Young
@wgs4
Oct 20 2016 04:01
ok redoing the file now
diabeticgonewild
@diabeticgonewild
Oct 20 2016 04:01
And you have a duplicate "WGS-ADI Wireless"
That's carelessness
I'm going to bed. I have more serious stuff to worry about.
David Young
@wgs4
Oct 20 2016 04:05
ok thanks for your help.
sorry to cause the frustration
Paul Martin
@Spazholio
Oct 20 2016 04:14
Keep plugging away at it @wgs4. I'm heading out for the night as well but I'll be back tomorrow if that link doesn't shed some light. Feel free to tag me and I'll see if I can help more.
David Young
@wgs4
Oct 20 2016 04:15
@Spazholio Paul thanks for you help as well sir. have a good evening.
Scott Leibrand
@scottleibrand
Oct 20 2016 05:04
@Spazholio Ctrl-L redraws the screen. Good for recovering from terminal width mismatches.
@beached those magic numbers are the result of an excel curve fit to find the insulin activity curve that would result in activity rising linearly from 0 to a peak at 75m and then back to 0 again at DIA. The 75m was for either 3h or 4h DIA, and then that is scaled together with DIA when that changes.
David Young
@wgs4
Oct 20 2016 05:31
@Spazholio the learning curve on Unix adds a real layer making this hard for a newbie like me… Why I had both
/etc/wpa_supplicant/wpa_supplicant.conf and
/etc/wpa_supplicant.conf
is beyond me.. but I kept editing the wrong file, and the other was blank. now that I have that fixed, I have connectivity again.
Tim Street
@tim2000s
Oct 20 2016 08:55
@scottleibrand I have an equation that works out the impact on bg level of insulin based on the sinusoidal shape of insulin action, at time t. Don't know whether that's of interest?
C-Ville
@C-Ville
Oct 20 2016 09:42
@wgs4 could it be that you accidentially created the /etc/wpa_supplicant.conf, I think the /etc/wpa_supplicant/wpa_supplicant.conf is present and needs editing. I you accidentially type nano /etc/wpa_supplicant.conf you will create a new file, which then is empty. If you do edit and save, you end up with that additional file
Chris Oattes
@cjo20
Oct 20 2016 10:02
@tim2000s Is it similar to kenstack's formula?
Sandra Keßler
@SandraK82
Oct 20 2016 10:40

@ecc1 seems that the two lines are indeed not everything to fix it:

reporting enact/suggested.json
{"temp":"absolute","bg":145,"tick":"+5","eventualBG":141,"snoozeBG":141,"predBGs":{"IOB":[145,149,152,155,156,156,156,155,153,150,146,141,135,129,124,118,116,114,112,110,108,107,105,103,102,100,99,97,96,94,93,91,90,88,87,85,84,83,81,80,79,78,76,75,74,74,73,73,72],"aCOB":[145,147,146,145,141,135,129,123,117,111,105,100,94,88,82,77,75,73,71,69,67,65,64,62,61,59,58,56,55,53,52,50,49,47,46,44,43,41,40,39],"COB":[145,148,148,145,141,135,129,122,116,111,105,99,93,87,82,76,74,72,70,68,67,65,63,61,60,58,57,55,54,52,51,49,48,46,45,44,42,41,39]},"COB":5,"IOB":3.42,"reason":"COB: 5, Dev: 69, BGI: -6.51, ISF: 21, Target: 80; Eventual BG 141 >= 85, temp 6.325<7.5U/hr","duration":30,"rate":7.5}
rm: cannot remove ‘enact/enacted.json’: No such file or directory
enact/enacted.json  raised  byte must be in range(0, 256)
pump://JSON/set_temp_basal/enact/enacted.json

included in new setup you patches with:

#std setup
curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull)

#add ecc1 repo
cd decocare/
git remote add ecc1 https://github.com/ecc1/decocare.git
git fetch ecc1 
git checkout dev

#pull both commits into current dev
git cherry-pick c30e79e350462ea2993f362f722cb942d8d2b6de
git cherry-pick 985f0379def061e28155f07f36acbf2ae4deeb8c

# start setup
cd && ~/src/oref0/bin/oref0-setup.sh
Tim Street
@tim2000s
Oct 20 2016 10:49
I'm not aware of that one @cjo20
Mike
@libxmike
Oct 20 2016 11:11
@/all does anyone used/use Pi Zero successfully with CareLink w/o USB hanging after few hours? reboot does not work, USB reset script does not work, only power cycle the Zero works because power to USB has to be cut, my next try will be with hub-ctrl and maybe software/hardware power cycle
will see what will be faster, fix the Zero USB problem or I get the Explorer Board and Edison
Tim Street
@tim2000s
Oct 20 2016 11:19
I dumped carelink for Slice of Radio. It is a lot more stable and has better range. They cost about a tenner and it's easily set up.
(That's on Pi @libxmike )
Mike
@libxmike
Oct 20 2016 11:22
@tim2000s you have a link for Slice of Radio?
got it, @tim2000s you communicate with the pump with Slice of Radio? this is new for me
Tim Street
@tim2000s
Oct 20 2016 11:24
I bought mine from www.modmypi.com
Yes. Instructions are on the mmeowlink GitHub
Mike
@libxmike
Oct 20 2016 11:26
how reliable is it and how is the range?
Tim Street
@tim2000s
Oct 20 2016 11:27
Someone on here may have one they can give you.
Mike
@libxmike
Oct 20 2016 11:28
cool
Mike
@libxmike
Oct 20 2016 12:03
@/all who has a Slice of Radio and dont need it anymore?
Tim Street
@tim2000s
Oct 20 2016 12:22
I was finding carelink dropping regularly (multiple times a day). SOR was just staying up.
The range is also a great deal better. About 15 feet instead of six.
Mike
@libxmike
Oct 20 2016 12:25
what only works with carelink is power cycle , simple reboot does not work.
PieterGit
@PieterGit
Oct 20 2016 12:40
@libxmike : i don't use my pi zero, because i have problems with my hubpiwi (network hangs), have you tried increasing the delay on https://github.com/openaps/oref0/blob/master/bin/oref0-reset-usb.sh#L46 (e.g. sleep 3)
Matthias
@ceben80
Oct 20 2016 12:51

@scottleibrand I do have a new oref0setupinstallation but it's ending with.....

Checking /home/pi/myopenaps: true
/home/pi/myopenaps already exists
/home/pi/src/oref0/ already exists; pulling latest
Already up-to-date.
Checking oref0 installation

nothing happenend since 30 min :cry:

normally the set up duration is < 20 min, without checking or stopping :worried:
Mike
@libxmike
Oct 20 2016 12:56
@PieterGit I did not, I will when I get home, the
David
@davidkeddydb
Oct 20 2016 13:03
@tim2000s The Ti stick is also in that 15ft + range if not further. I was upstairs with the Pi on the first floor and it still reached me (wish I had suspended pump when I went in the shower. Never thought it would reach me)
I think I have version 7 of the hex file for the Ti stick. The Edison keeps getting hung up on listening for radio. it will attempt to loop for sometimes 15 mins before MMtune kicks in and gets it working. Worth trying to reflash and put version 8?
PieterGit
@PieterGit
Oct 20 2016 13:04

Question about the Edsion. I now have an EDI2BB.AL.K ("Standard Power On Board Antenne + Mini Breaout), The FCC stuff says:

This module, when configurated at the low power settings described in this filling, is approved for use in portable devices operating at a minimum separation distance of 5mm (0.1977 inch) from the body. This module is approved for use at at the maximum power setting in portable host devices where the smalles distance between the outer surface of the device and the user is 17 mm (0.669 inch) or the antenna is located at a distance where the SAR characteristics for the host are not influence by the user. The highest reported SAR value is 0.40 W/kg for the 5mm (0.197) seperation and 0.37W/kg for the 17mm (0.669) seperation distances.

Can anybody see if the Edison EDI2.LPON.AL.S has the same FCC statement.

Scott Leibrand
@scottleibrand
Oct 20 2016 13:08
@ceben80 you're not the first person to report that. Can you try running the individual commands from that part of the script manually and see what hangs, and what needs fixed? There might also be a fix for it already in the oref0-setup branch that needs chery-picked over.
David
@davidkeddydb
Oct 20 2016 13:17
I keep getting an already in use exception watching openaps pump-loop for /dev/ttyACM0 already in use. Is this normal or anything I can do to reduce the number of times I get this error. Sometimes the loop gets stuck trying to work that our for 20 minutes or so.
PieterGit
@PieterGit
Oct 20 2016 13:20
I did find the FCC docs for the Intel Edison at https://fccid.io/2AB8ZND1 but cannot currently find "the low power settings as described in the filing". Anybody knows what Intel is referring to?
Matthias
@ceben80
Oct 20 2016 13:26
@scottleibrand meanwhile before your answer I started again all steps from here
http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/oref0-setup.html?highlight=oref0-setup
......and now it works fine, don't ask me, loop is working :wink:
Matthias
@ceben80
Oct 20 2016 13:52
@scottleibrand awesome....my pancreas farm is growing :tada: :tada: :tada:
Starting pump-loop at Thu 20 Oct 15:48:08 CEST 2016:
Radio ok, Listening: ........No comms detected
Profile less than 60m old
glucose.json newer than temp_basal.json
Temp refreshed
Temp duration 27m or more
glucose.json newer than pumphistory: Refreshed pumphistory
{"carbs":21,"boluses":2.4,"mealCOB":0}
{"ratio":1.06}
{"iob":1.07,"activity":0.0275,"bolussnooze":0,"basaliob":1.038,"netbasalinsulin":1.75,"hightempinsulin":2.65,"time":"2016-10-20T13:49:52.000Z"}
{"delta":3,"glucose":97,"short_avgdelta":1.5,"long_avgdelta":-3.07}
{"duration":30,"rate":0,"temp":"absolute"}
Adjusting basal from 0.6 to 0.65
Adjusting target_bg from 95 to 93
Adjusting sens from 35 to 33
Carb Impact: 1.5 mg/dL per 5m; CI Duration: 0 hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0 hours
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":97,"tick":"+3","eventualBG":71,"snoozeBG":71,"predBGs":{"IOB":[97,94,91,88,85,83,80,78,76,75,73,71,70,69,68,68,67,67,67,67,67,68,68,69,70,70,71,71,72,72,73,73,73,73,73,73,74]},"COB":0,"IOB":1.07,"reason":"COB: 0, Dev: 9, BGI: -4.54, ISF: 33, Target: 93; Eventual BG 71 < 93, Snooze BG 71, setting -1.85U/hr, but 30m left and 0 ~ req 0U/hr: no action required"}
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Thu 20 Oct 15:51:03 CEST 2016
Scott Leibrand
@scottleibrand
Oct 20 2016 14:06
and shrinking, no doubt. ;-)
Tim Street
@tim2000s
Oct 20 2016 14:21
Ha. I like that "Pancreas farm"!
Eric
@ecc1
Oct 20 2016 14:38
@SandraK82 Can you see if it works when done manually via openaps use pump set_temp_basal and read_temp_basal? That's how I tested it since I don't have a full openaps loop setup.
Sandra Keßler
@SandraK82
Oct 20 2016 14:44
@ecc1 :
cat test.basal 
{ "temp": "absolute", "rate": 6.4, "duration": 30 }
openaps use pump set_temp_basal test.basal 
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-use", line 63, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-use", line 57, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/home/pi/src/openaps/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 431, in main
    results = self.upload_program(program)
  File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 524, in upload_program
    return self.pump.model.set_temp_basal(**program)
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 222, in set_temp_basal
    result = self._set_temp_basal(**basals)
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 25, in __call__
    self.response = inst.session.query(self.msg, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/decocare/session.py", line 101, in query
    self.execute(command)
  File "/home/pi/src/mmeowlink/mmeowlink/handlers/stick.py", line 226, in execute
    return sender(command)
  File "/home/pi/src/mmeowlink/mmeowlink/handlers/stick.py", line 140, in __call__
    self.upload()
  File "/home/pi/src/mmeowlink/mmeowlink/handlers/stick.py", line 127, in upload
    self.send_params( )
  File "/home/pi/src/mmeowlink/mmeowlink/handlers/stick.py", line 28, in send_params
    payload = bytearray([len(params)]) + bytearray(params)
ValueError: byte must be in range(0, 256)
@ecc1 i have to go for a short time, maybe we can debug later
Eric
@ecc1
Oct 20 2016 15:07
OK, when you get a chance, please see if your /usr/local/lib/python2.7/dist-packages/decocare/commands.py and history.py are the newly patched ones. I suspect they weren't installed. I did python setup.py install in my branch to install the new version, but I'm not a Python expert and maybe that's wrong.
Scott Leibrand
@scottleibrand
Oct 20 2016 15:09
that might not work right if you have a pip-installed version. might be easiest to pip uninstall first
Eric
@ecc1
Oct 20 2016 15:13
Good catch. The maze of twisty little installers always confuses me.
mariano42
@mariano42
Oct 20 2016 15:46
Does anyone know if the edison_wifi script in the wifi troubleshooting portion of the docs would handle getting a pi 3 to switch to a different wifi network when it goes out of range without needing a restart? I am not having the problem that script seems to resolve, but it sounds like resetting the connection would force the pi into finding a new network. It is hard to test it out right now because I won't be out of range on my main network for another 8 hours or so.
Sandra Keßler
@SandraK82
Oct 20 2016 16:05
@scottleibrand @ecc1 i just checked /usr/local/lib/python2.7/dist-packages/decocare/commands.py
it was not there
then I did: sudo pip uninstall decocare and sudo python setup.py develop now the file is missing :/
Scott Leibrand
@scottleibrand
Oct 20 2016 16:06
does openaps use pump still work?
Sandra Keßler
@SandraK82
Oct 20 2016 16:12
looks that way: Starting pump-loop at Thu 20 Oct 18:08:09 CEST 2016: Radio ok, Listening: .No comms detected Profile less than 60m old glucose.json newer than temp_basal.json Temp refreshError, retrying Starting pump-loop at Thu 20 Oct 18:09:35 CEST 2016: Radio ok, Listening: .^[[CNo comms detected Profile less than 60m old glucose.json newer than temp_basal.json Temp refreshed {"carbs":0,"boluses":0,"mealCOB":0} {"ratio":1.4} {"iob":1.513,"activity":0.0259,"bolussnooze":0,"basaliob":1.513,"netbasalinsulin":4.45,"hightempinsulin":5,"time":"2016-10-20T16:09:57.000Z"} {"delta":0,"glucose":117,"short_avgdelta":1.25,"long_avgdelta":0.13} {"duration":24,"rate":3.025,"temp":"absolute"} Adjusting basal from 1.6 to 2.25 Adjusting target_bg from 87.5 to 80 Adjusting sens from 30 to 21.4 Carb Impact: 2.8 mg/dL per 5m; CI Duration: 0 hours Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0 hours determine-basal://text/shell/enact/suggested.json reporting enact/suggested.json {"temp":"absolute","bg":117,"tick":"+0","eventualBG":102,"snoozeBG":102,"predBGs":{"IOB":[117,117,116,116,115,114,112,111,109,107,106,103,101,99,97,95,93,91,90,88,87,85,84,83,81,80,79,78,77,77,76,75,74,74,73,72,72,71,71,70,70,69,69,69,68,68,68,67]},"COB":0,"IOB":1.513,"reason":"COB: 0, Dev: 17, BGI: -2.77, ISF: 21, Target: 80; Eventual BG 102 >= 85, temp 3.025<4.3U/hr","duration":30,"rate":4.3} pump://JSON/set_temp_basal/enact/enacted.json reporting enact/enacted.json {"bg":117,"temp":"absolute","snoozeBG":102,"recieved":true,"predBGs":{"IOB":[117,117,116,116,115,114,112,111,109,107,106,103,101,99,97,95,93,91,90,88,87,85,84,83,81,80,79,78,77,77,76,75,74,74,73,72,72,71,71,70,70,69,69,69,68,68,68,67]},"rate":4.3,"reason":"COB: 0, Dev: 17, BGI: -2.77, ISF: 21, Target: 80; Eventual BG 102 >= 85, temp 3.025<4.3U/hr","COB":0,"eventualBG":102,"timestamp":"2016-10-20T18:11:05.880517","duration":30,"tick":"+0","IOB":1.513} glucose.json newer than pumphistory: Refreshed pumphistory {"carbs":0,"boluses":0,"mealCOB":0} {"ratio":1.4} {"iob":1.548,"activity":0.0259,"bolussnooze":0,"basaliob":1.548,"netbasalinsulin":4.5,"hightempinsulin":5.05,"time":"2016-10-20T16:10:39.000Z"} {"delta":0,"glucose":117,"short_avgdelta":1.25,"long_avgdelta":0.13} {"duration":30,"rate":4.3,"temp":"absolute"} Adjusting basal from 1.6 to 2.25 Adjusting target_bg from 87.5 to 80 Adjusting sens from 30 to 21.4 Carb Impact: 2.8 mg/dL per 5m; CI Duration: 0 hours Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0 hours determine-basal://text/shell/enact/suggested.json reporting enact/suggested.json {"temp":"absolute","bg":117,"tick":"+0","eventualBG":101,"snoozeBG":101,"predBGs":{"IOB":[117,117,116,116,115,114,112,111,109,107,105,102,100,97,95,93,90,88,86,84,82,80,78,76,74,72,71,69,67,66,64,63,61,60,59,58,57,56,55,54,53,52,51,50,49,49,48,47,47,46,46,46,45]},"COB":0,"IOB":1.548,"reason":"COB: 0, Dev: 17, BGI: -2.77, ISF: 21, Target: 80; Eventual BG 101 >= 85, temp 4.3 >~ req 4.2U/hr"} Settings refreshed Pumphistory-24 less than 20m old Completed pump-loop at Thu 20 Oct 18:12:00 CEST 2016
Scott Leibrand
@scottleibrand
Oct 20 2016 16:15
how about openaps use pump set_temp_basal test.basal ?
Sandra Keßler
@SandraK82
Oct 20 2016 16:18
yeah :tada:
openaps use pump set_temp_basal test.basal
{
  "requested": {
    "duration": 30, 
    "rate": 6.4, 
    "temp": "absolute"
  }, 
  "temp": "absolute", 
  "timestamp": "2016-10-20T18:17:41.371868", 
  "rate": 4.3, 
  "recieved": false, 
  "duration": 25
}
Scott Leibrand
@scottleibrand
Oct 20 2016 16:19
hmm
Sandra Keßler
@SandraK82
Oct 20 2016 16:19
with correct max_basal on pump:
openaps use pump set_temp_basal test.basal
{
  "temp": "absolute", 
  "recieved": true, 
  "rate": 6.4, 
  "timestamp": "2016-10-20T18:19:22.649252", 
  "duration": 30
}
Scott Leibrand
@scottleibrand
Oct 20 2016 16:20
ah, much better
Sandra Keßler
@SandraK82
Oct 20 2016 16:21
it seems my prevoius install had failed :)
Scott Leibrand
@scottleibrand
Oct 20 2016 16:22
how does pumphistory look after reading that 6.4 temp?
also should test with something a bit higher too
Sandra Keßler
@SandraK82
Oct 20 2016 16:22
Screen Shot 2016-10-20 at 18.22.23.png
Scott Leibrand
@scottleibrand
Oct 20 2016 16:22
:+1:
Sandra Keßler
@SandraK82
Oct 20 2016 16:29
cat test.basal 
{ "temp": "absolute", "rate": 10.0, "duration": 30 }
openaps use pump set_temp_basal test.basal
{
  "temp": "absolute", 
  "recieved": true, 
  "rate": 10.0, 
  "timestamp": "2016-10-20T18:28:51.411463", 
  "duration": 30
}
openaps use pump read_temp_basal
{
  "duration": 30, 
  "rate": 10.0, 
  "temp": "absolute"
}
looks quite good
Scott Leibrand
@scottleibrand
Oct 20 2016 16:30
cool. and it shows up in NS too?
Sandra Keßler
@SandraK82
Oct 20 2016 16:31
im waiting
had disabled crontab
now waiting for loop to complete
Scott Leibrand
@scottleibrand
Oct 20 2016 16:31
I thought #wearenotwaiting? ;-)
Matthias
@ceben80
Oct 20 2016 16:32
:smile:
Sandra Keßler
@SandraK82
Oct 20 2016 16:33
pushing the limits... ;)
Screen Shot 2016-10-20 at 18.34.15.png
Scott Leibrand
@scottleibrand
Oct 20 2016 16:35
cancel it quick! ;-)
Sandra Keßler
@SandraK82
Oct 20 2016 16:36
Screen Shot 2016-10-20 at 18.36.30.png
just ate something
oki my loop loops with full force, more then 10U/h i will not risk for now :D
Scott Leibrand
@scottleibrand
Oct 20 2016 16:37
that still scares me, but it's your pancreas. :-)
don't forget to comment on the PR please
and thanks for testing it
Sandra Keßler
@SandraK82
Oct 20 2016 16:39
now im running of the src directly as i see.. should i change it back to full install?
Scott Leibrand
@scottleibrand
Oct 20 2016 16:39
if you want to keep doing >6.4 temps, I would leave it like this until it's merged to dev at least
Pete Schwamb
@ps2
Oct 20 2016 16:40
I had a 34U/hr rate going on my test pump. I was freaked out to see it in NS, even knowing it wasn’t hooked up to anything. :)
Scott Leibrand
@scottleibrand
Oct 20 2016 16:41
I bet that makes the cityscape graph almost flat except for that spike :)
Pete Schwamb
@ps2
Oct 20 2016 16:41
yeah
At that rate it’s not much slower than continuous bolusing. :-/ Well, maybe a quarter of the speed, but it’s still a lot of insulin.
Sandra Keßler
@SandraK82
Oct 20 2016 16:45
as i forget regulary to enter carbs and bolus to my pump, i will need up to 10U/h, thats what a normal meal bolus would look like
Saskia
@Missdazzle
Oct 20 2016 16:45
I don´t know if my loop knows anything about divination (a new English word I learned here yesterday), but it definitely is a storyteller (maybe it´s getting old, and old people should tell fairy tales to their grandchildren).
It puts a BG from a finger prick into NS which didn´t happen... :)
BG Prüfung aus der Pumpe.PNG
Wow, I can barely see that picture in between here.
Scott Leibrand
@scottleibrand
Oct 20 2016 16:46
did you enter a 90 into the bolus wizard?
Saskia
@Missdazzle
Oct 20 2016 16:46
Nope
Oh, stop, yes, I did, but then I cancelled it.
Scott Leibrand
@scottleibrand
Oct 20 2016 16:47
ah, yeah, that'll do it
(on some pumps)
Saskia
@Missdazzle
Oct 20 2016 16:47
That is funny!
Thanks for destroying my wonderful picture of a long-grey-bearded loop, though! :joy:
Dana Lewis
@danamlewis
Oct 20 2016 16:48
lol
Sandra Keßler
@SandraK82
Oct 20 2016 16:49
thank you very much! @scottleibrand @ecc1
Scott Leibrand
@scottleibrand
Oct 20 2016 16:49
heh. it still tells made-up stories that it overheard from someone who later said it wasn't true, but it never remembered that part. ;-)
Saskia
@Missdazzle
Oct 20 2016 16:50
Okay, thanks for saving the beard!
Scott Leibrand
@scottleibrand
Oct 20 2016 16:50
lol
Dana Lewis
@danamlewis
Oct 20 2016 17:34

Reposting for the morning crew - anyone want to thumbs up this PR about re-organizing the hardware section of docs?

Here was the “before” of Phase 0 (aka current master): http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/index.html

Here is the “after” of Phase 0 (aka current dev): http://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-0/index.html

And then here is the open pull request to merge these changes to master: openaps/docs#428 - if you review, you can give it a thumbs up or comment with any questions/things that need to get fixed before it gets merged

David Young
@wgs4
Oct 20 2016 18:53
@C-Ville Yes it could be that I accidentally created the /etc/wpa_supplicant.conf. It was blank. Is the correct, default location, supposed to be /etc/wpa_supplicant/wpa_supplicant.conf ?? It is still very strang that having the blank file in the wrong location allowed the system to talk to outside world at my office, but not at my house.?
David
@davidkeddydb
Oct 20 2016 18:55
@wgs4 Yes, the second one is right
Scott Leibrand
@scottleibrand
Oct 20 2016 19:32
technically, I think the right one is whichever one /etc/network/interfaces references. But the latter is where that config file is normally put
John Benjamin
@Bender1061
Oct 20 2016 19:49
So I was looking at a way to do ssh on a edison if I don't have access to the internet. My phones won't do a wifi network if I have the data turned off. Since I don't normally carry a 12 VDC supply with me to make the OTG port on the edison work with my phone. I setup a PirateBox with one of my Raspberry Pi's. So I have an Offline wifi network that will work for checking things like the Logs. Should work when I want to check things when I'm on a boat.
Diabetic_Dude
@diabetic_dude_twitter
Oct 20 2016 19:54
so anyone willing to ship me a mio or any other medtronic infusion set up?
Stewart
@sbalint
Oct 20 2016 19:54
I can confirm setting temp basal/looping works for medtronic canadian veo 754 software 2.7A (no pc connect)!
Dana Lewis
@danamlewis
Oct 20 2016 19:55
nice!
Diabetic_Dude
@diabetic_dude_twitter
Oct 20 2016 19:55
I have the reservoirs
I just want to get set one once before i get all my persecutions changed out from dexcom back to my old medtronic. Will also have to pay 150 to meet my deductible (for durable medical goods)
Dana Lewis
@danamlewis
Oct 20 2016 19:57
@sbalint just strengthened the language then on our compatible pump page: openaps/docs@63424e9
But while we’re all thinking hardware ;) Looking for one more :+1: on the PR (https://github.com/openaps/docs/pull/428) of re-organizing hardware section before moving that to master
@diabetic_dude_twitter check ebay and craiglist, etc. - a lot of people have been able to find sites for reasonable prices online like that
Diabetic_Dude
@diabetic_dude_twitter
Oct 20 2016 19:58
thanks
Darrell Wright
@beached
Oct 20 2016 19:58
@sbalint @danamlewis I am using same pump and submitted a PR on the wiki months ago. Am I missing something
Dana Lewis
@danamlewis
Oct 20 2016 19:59
@beached which wiki? see this commit to show what was in the docs before vs. how I slightly tweaked the language now to confirm: openaps/docs@63424e9
(I just stuck that change into dev, so when someone thumbs up the hardware section PR, that change will get moved to Master)
Darrell Wright
@beached
Oct 20 2016 20:02
@danamlewis not exactly sure any longer. let me see. probably this one linked from Loop wiki https://github.com/openaps/docs/blob/master/docs/docs/walkthrough/phase-0/hardware.md
same
hmmm
Dana Lewis
@danamlewis
Oct 20 2016 20:02
yea I think that was your note from before about a Canadian Veo reported to be loop-able
I just tweaked the wording since we’ve got a second confirmation, is all
Darrell Wright
@beached
Oct 20 2016 20:02
ah ok
this is the confusing part. so many cooks in the kitchen making awesome stuff but it is more difficult to keep up with who did what
I suspect that list also depends on other factors like pump history message support and stuff like that. that will work out though as most of the pumps available getting tested more
Dana Lewis
@danamlewis
Oct 20 2016 20:05
so, here’s where you logged the “issue” of the new pump being an option - and you can see in the thread where I added that language: openaps/docs#340
so my new commit now is changing the language further
but that’s the nice thing about github for docs, even with a lot of cooks you can track how things are added and changed over time
Stewart
@sbalint
Oct 20 2016 20:30
@danamlewis thanks Dana!
Scott Leibrand
@scottleibrand
Oct 20 2016 20:31
@Bender1061 we do something similar with a Hootoo or Edimax travel router, especially when flying or in hotels. (They can also connect to any upstream wifi or Ethernet if available.)
andyhandy
@andyhandy
Oct 20 2016 20:53
hi all - any ideas about this message? thanks
pi@raspberrypi:~/myopenaps $ openaps preflight
pump://JSON/read_clock/monitor/clock.json
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/stick.py", line 911, in <module>
stick = Stick(link.Link(port))
File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocare/link.py", line 23, in init
raise AlreadyInUseException("{port} already in use".format(port=port))
decocare.link.AlreadyInUseException: /dev/serial/by-id/usb-0a21_8001-if00-port0 already in use
Power-cycling USB to fix dead stick
loop went offline (i assume because of carelink connection issues) and i tried to power cycle usb. that didn't work so i rebooted. now this
Dana Lewis
@danamlewis
Oct 20 2016 21:12
looks like still a stick issue
Paul Martin
@Spazholio
Oct 20 2016 21:15
General Dexcom question - with the G6 on the horizon, are there concerns about the availability of the G4 supplies? Has anyone heard anything about them trying to move people towards the G5 so they can phase out the G4?
Dana Lewis
@danamlewis
Oct 20 2016 21:16
G4 is embedded in a lot of devices, so should be around a while. We haven’t heard anything that makes us question that yet, but we may have a chance to ask next week when we see some Dexcom folks at D-Data.
Diabetic_Dude
@diabetic_dude_twitter
Oct 20 2016 21:16
I would expect as long as the tslim uses the G4 we will be fine
Paul Martin
@Spazholio
Oct 20 2016 21:17
Excellent, thanks.
I’ve got everything working the way I like, and IIRC, the G5 is less…cooperative than the G4 is, no? Requires a few differences in setup?
Jason Calabrese
@jasoncalabrese
Oct 20 2016 21:23
G4 forever
I'm expecting everything new to be worse than the G4, but would be very happy to be wrong
Paul Martin
@Spazholio
Oct 20 2016 21:45
I take it decoding the G5 data is fairly different than the G4?
Dana Lewis
@danamlewis
Oct 20 2016 21:46
G5 is easily usable
(i say easily, everyone else did the hardwork decoding ;))
Scott Leibrand
@scottleibrand
Oct 20 2016 21:48
the only problem with the G5 data is it doesn't include raw isig values
but there are also some usability issues with regard to sensor restarts, transmitter lifetime, etc.
so you have to trade that off against the benefit of not having to carry a receiver if your loop has access to Share
Dana Lewis
@danamlewis
Oct 20 2016 21:51
Ok, dev docs merged to master, so hardware section ideally is a lot easier to navigate for people brand-new to OpenAPS. http://openaps.readthedocs.io/en/latest/
Paul Martin
@Spazholio
Oct 20 2016 21:51
Does the loop use raw isig values anywhere?
Dana Lewis
@danamlewis
Oct 20 2016 21:51
no
Scott Leibrand
@scottleibrand
Oct 20 2016 21:52
not in the oref0 master or dev branch (what is documented in the docs). there's some WIP stuff, but IMO we need to turn that off by default before we can merge it.
Jason Calabrese
@jasoncalabrese
Oct 20 2016 22:00
you'd have to configure things to loop with raw
but the openxshareble wiki does show how to enable it using a limit of 150
Paul Martin
@Spazholio
Oct 20 2016 22:01
I think I tried that when I had it physically connected, but got nowhere. And I know raw values aren’t sent to Share, which is primarily where I get my data.
Jason Calabrese
@jasoncalabrese
Oct 20 2016 22:01
yeah, no raw with share
emsamom
@emsamom
Oct 20 2016 22:53
Hi everyone. Brand new adventurer here, getting started. I've confirmed that my old 522 (Paradigm) pump is compatible (and still works!), I found my old carelink and I've just opened my Canakit rasperry Pi. Wish me luck!
Dana Lewis
@danamlewis
Oct 20 2016 22:54
welcome @emsamom!
Jason Calabrese
@jasoncalabrese
Oct 20 2016 23:05
:smile:
Paul Martin
@Spazholio
Oct 20 2016 23:18
:thumbsup:
Paul Martin
@Spazholio
Oct 20 2016 23:39
BTW, it totally makes sense, but once I implemented the new loop, I found that my battery lasts about an hour-to-hour-and-a-half less compared to the older method. Just some anecdotal info.
Dana Lewis
@danamlewis
Oct 20 2016 23:42
battery on your pump?
Tim Howard
@tghoward
Oct 20 2016 23:46
@scottleibrand on the oref0-setup script, I keep stalling at checking oref0 installation Looks like it might be because $(which oref0-dex-is-fresh) is null. Need to trap that?
Scott Leibrand
@scottleibrand
Oct 20 2016 23:51
Yes please. Check whether I already fixed it in the oref0-setup branch of oref0: may only need to cherry-pick over that commit.
Tim Howard
@tghoward
Oct 20 2016 23:54
Yes, I'm in the oref0-setup branch already
Paul Martin
@Spazholio
Oct 20 2016 23:58
@danamlewis No, sorry - battery on my rig.
Dana Lewis
@danamlewis
Oct 20 2016 23:58
interesting @Spazholio what size battery are you using? and what other hardware?
Paul Martin
@Spazholio
Oct 20 2016 23:58
2200mAh, Edison with TI stick (serial).