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

7th
Mar 2017
Lynne Butts
@flutelynne_twitter
Mar 07 2017 00:41 UTC
Got so close! Then when I got to this point, I get: ssh root@edisonhost.local ssh: Could not resolve hostname edisonhost.local: nodename nor servname provided, or not known
I just kept the name edisonhost.
I can ping google through terminal, but not ssh into it. I have closed all terminals. Not sure what to try next.
Should I unplug anything? I still have both cables plugged in.
Andy Sharrow
@dramageek
Mar 07 2017 00:58 UTC
I'm still getting a crash a few times a week. It always seems to be when I forget to turn on BT Tethering on my phone, so probably network related. I thought it was tied into the radio-in-use errors, but I applied the patch to that earlier this week.
Possibly related: Looks like it was throwing BG data is too olderrors all day, though still looping correctly.
Arsenijs
@CRImier
Mar 07 2017 00:58 UTC
You're trying to SSH from Mac to Edison, right? If so, the failure to SSH most likely means the Edison hasn't yet connected to your WiFi. Could you link me the instruction you're following, right where you get to ssh root@edisonhost.local part?
That's to @flutelynne_twitter
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:00 UTC
1-10. Installing packages, SSH keys, and other settings¶
Arsenijs
@CRImier
Mar 07 2017 01:01 UTC
Wait as many lines of action go by in the Terminal window...eventually you will get to a prompt that has your new edisonhost name login. We aren’t going to login right now. Just saving that window in case we need it later.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:01 UTC
Edison is found as a device again, but I closed the other terminals that were open. I typed in the wrong one, and things got confusing.
Yes. I did that, opened a new terminal window, but it did not ssh then.
Arsenijs
@CRImier
Mar 07 2017 01:02 UTC
You do get this login window, right? Can you log in (use the sudo screen thing), enter sudo wpa_cli status in the console and post the output here?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:05 UTC
At first I get a password prompt. I tried “edison” not found. Tried “root”, not found, and tried my computer password. nothing.
sudo screen Password:
type sudo screen first?
Arsenijs
@CRImier
Mar 07 2017 01:08 UTC
You mean, you get the password prompt on your Mac? The steps are like this: You open Terminal on your Mac, run this "sudo screen ......." command, enter your Mac user's password and get connected to the Edison's console.
Then, in the Edison's console that you get, you run the wpa_cli thing.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:09 UTC
sh-3.2# sudo wpa_cli status sudo: wpa_cli: command not found sh-3.2#
Arsenijs
@CRImier
Mar 07 2017 01:10 UTC
You did get to Edison console, right?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:10 UTC
No
Arsenijs
@CRImier
Mar 07 2017 01:10 UTC
You need to do that first, that's what the sudo screen part is for
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:11 UTC
sudo screen brought me to a place to hit the return key, then it shows “sh-3.2#"
sh-3.2#
Arsenijs
@CRImier
Mar 07 2017 01:14 UTC
Hmm. Can you run uname -a?
You're still in your Mac then. Press Ctrl+A, then Ctrl+D and you should get back to where you were before the sudo screen thing.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:16 UTC
ok
Arsenijs
@CRImier
Mar 07 2017 01:17 UTC
Then run sudo screen /dev/tty.usbserial-* 115200, that was the command I was referring to. Sorry, should have made it more clear =)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:17 UTC
Ahhh I was looking for more
katie disimone
@Kdisimone
Mar 07 2017 01:17 UTC
@flutelynne_twitter Yup…I was just getting on to tell you the same
sudo screen /dev/tty.usbserial-* 115200
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:18 UTC
No file found. Terminated screen
katie disimone
@Kdisimone
Mar 07 2017 01:18 UTC
It’s likely that you have a problem with your wifi network. The ssh root@edisonhost.local only works when you have the rig logged onto the same wifi as the computer
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:18 UTC
Should I have both cables plugged in?
katie disimone
@Kdisimone
Mar 07 2017 01:18 UTC
yes
Arsenijs
@CRImier
Mar 07 2017 01:18 UTC
Edison plugged in? Can re-plug it?
katie disimone
@Kdisimone
Mar 07 2017 01:18 UTC
(technically you only need one, but two doesn’t hurt)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:18 UTC
ok
Arsenijs
@CRImier
Mar 07 2017 01:18 UTC
Yep, with wpa_cli status we can see if it's really connected or not, and to which network
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:19 UTC
I triple checked things,
Command not found
katie disimone
@Kdisimone
Mar 07 2017 01:20 UTC
If you want to check whether you rig is on your home network…go ahead and google “how to login to my XXXX router” where xxxx is your brand name of router. For myself, we use a Netgear router and the site is http://192.168.1.1
you can see the connected devices on that admin screen
Arsenijs
@CRImier
Mar 07 2017 01:21 UTC
Yeah, you need to run it once you're connected to Edison - that is, after the sudo screen /dev/tty.usbserial-* 115200 command succeeds, so let's first do that.
Let's skip the "check router" part for now - we can know that through the Edison console, and we'll need that anyway to fix things, so let's get straight to the Edison console.
So, you've re-plugged the Edison, right? What happens if you run "sudo screen /dev/tty.usbserial-* 115200" again?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:24 UTC
I found the number for the edisonhost
katie disimone
@Kdisimone
Mar 07 2017 01:25 UTC
on the router? so it is connected to your wifi?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:25 UTC
Yes. connected. I have a password prompt
katie disimone
@Kdisimone
Mar 07 2017 01:25 UTC
using the ssh command?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:25 UTC
no
katie disimone
@Kdisimone
Mar 07 2017 01:25 UTC
if it’s the sudo command then the password is your computer’s password
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:25 UTC
just the “sudo screen…."
Arsenijs
@CRImier
Mar 07 2017 01:25 UTC
Nice!
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:26 UTC
No such file or directory
Arsenijs
@CRImier
Mar 07 2017 01:26 UTC
So, you get the Edison login prompt?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:26 UTC
no
katie disimone
@Kdisimone
Mar 07 2017 01:26 UTC
can you give a screen shot?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:27 UTC
Lynnes-iMac:~ lynnebutts$ sudo screen /dev/tty.usbserial-* 115200
[screen is terminating]
Lynnes-iMac:~ lynnebutts$ wpa_cli status
-bash: wpa_cli: command not found
Lynnes-iMac:~ lynnebutts$ sudo screen /dev/tty.usbserial-* 115200
Password:
[screen is terminating]
Lynnes-iMac:~ lynnebutts$
katie disimone
@Kdisimone
Mar 07 2017 01:29 UTC
do you ever see a “can’t find a PTY” notice after the cannot find file message?
Arsenijs
@CRImier
Mar 07 2017 01:31 UTC
This is interesting. Can you do ls /dev/tty.usbserial-* and post back what it says?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:31 UTC
I saw it several times earlier today. I reset the SMC, and found my two USBs that work. My edison is found as a device on my mac
ls /dev/tty.usbserial-* ls: /dev/tty.usbserial-*: No such file or directory
Arsenijs
@CRImier
Mar 07 2017 01:33 UTC
Alright, then it's not detected by your Mac now. You're using the USB ports that worked, right?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:33 UTC
Yes.
It is listed under “devices” on the finder
ssh root@edisonhost.local ssh: Could not resolve hostname edisonhost.local: nodename nor servname provided, or not known
Arsenijs
@CRImier
Mar 07 2017 01:40 UTC
Hmm. At this moment, the OTG port of Edison is connected to the Mac (judging by the fact it's available in Finder), but UART port (the one we need) isn't. Could you try re-plugging the particular cable connected to UART port on Edison (maybe even unplug the OTG cable for now), after each replug, run ls /dev/tty.usbserial-* and see if it shows something other than "not found"?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:42 UTC
Still not found
Got it!
Arsenijs
@CRImier
Mar 07 2017 01:43 UTC
How?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:43 UTC
That part at least.
Arsenijs
@CRImier
Mar 07 2017 01:43 UTC
Nice! Now run sudo screen /dev/tty.usbserial-* 115200.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:44 UTC
password? computer one?
Arsenijs
@CRImier
Mar 07 2017 01:44 UTC
Yep
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:45 UTC
blank screen
I’ve been here before
Arsenijs
@CRImier
Mar 07 2017 01:45 UTC
Press Enter
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:45 UTC
edisonhost login:
Arsenijs
@CRImier
Mar 07 2017 01:45 UTC
Nice! Now you need to log in the Edison.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:46 UTC
says login is incorrect
Arsenijs
@CRImier
Mar 07 2017 01:47 UTC
What login/password are you using?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:47 UTC
I just chose “edisonhost” as hostname, and “edison” as password
should I put “root”?
Arsenijs
@CRImier
Mar 07 2017 01:47 UTC
For which login that password was? "root" or "edison"?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:48 UTC
when I chose my hostname, I just used the example.
Arsenijs
@CRImier
Mar 07 2017 01:48 UTC
Yes, try "root"/"edison" (that is, login "root" and password "edison", no quotes)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:48 UTC
Whew! Thanks!
We’re in. But now to see the other problem
Arsenijs
@CRImier
Mar 07 2017 01:49 UTC
Great! Now execute wpa_cli status.
Okay. On your Mac, open another Terminal window and type ssh root@192.168.1.132
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:53 UTC
yes/no do I type “y” or “yes"
Arsenijs
@CRImier
Mar 07 2017 01:53 UTC
"yes"
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:53 UTC
permanently added, and is asking for a password
Arsenijs
@CRImier
Mar 07 2017 01:54 UTC
Password is "edison", as we just succeeded with this one =)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:54 UTC
Great. I also have a mifi and phone
Arsenijs
@CRImier
Mar 07 2017 01:55 UTC
Ahha. Which is ATTFii9jPi - home network, MiFi or phone?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:56 UTC
Home.
I should probably delete that post.
Arsenijs
@CRImier
Mar 07 2017 01:57 UTC
Which one? wpa_cli status output? It doesn't have your password but sure, go ahead.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:57 UTC
Yes. that one.
Arsenijs
@CRImier
Mar 07 2017 01:58 UTC
Just memorize the IP (write it down somewhere or something). Do you understand all the steps we just went through?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 01:58 UTC
I think so, but maybe talk me through how to add the mifi mainly.
It is written down
Arsenijs
@CRImier
Mar 07 2017 01:59 UTC
Okay. can you turn the MiFi on now?
Also, the Terminal window where you ran the "ssh" command - close that, but make sure you have the window with "screen" command.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:01 UTC
Done. Mifi on, and other ssh screen closed
Arsenijs
@CRImier
Mar 07 2017 02:07 UTC
In the window where you ran screen (that has Edison console now) , run wpa_cli scan
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:09 UTC
It just says “OK"
Arsenijs
@CRImier
Mar 07 2017 02:09 UTC
Great! Now run wpa_cli scan_results && wpa_cli list_networks and post the output here
dmdfreak
@dmdfreak
Mar 07 2017 02:12 UTC
Starting to build my openAPS. I'm not super familiar with using putty and I'm having trouble connecting to flash the Edison board. Hate to ask questions already, but could someone give me a hand? Everything is connected correctly.
Arsenijs
@CRImier
Mar 07 2017 02:13 UTC
ATT-WIFI-8968 is your MiFi, correct?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:13 UTC
Yes
Sorry
Arsenijs
@CRImier
Mar 07 2017 02:14 UTC
It's all readable, don't worry =)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:14 UTC
Thanks
Arsenijs
@CRImier
Mar 07 2017 02:16 UTC
Okay, what we would need now is to disconnect from your main router, then it should pick the MiFi automatically. Run wpa_cli disable_network 0
@dmdfreak Can you tell, what's the problem?
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:17 UTC
“OK"
dmdfreak
@dmdfreak
Mar 07 2017 02:17 UTC
I'm in. Figured it out. Ty. Sure I'll have another question soon lol
Arsenijs
@CRImier
Mar 07 2017 02:19 UTC
@flutelynne_twitter By this, we told the WiFi to not connect to your home network, so it acts as if home network wasn't in the range. If you now run wpa_cli status, you should see your MiFi SSID in the output. If not, post the output here.
katie disimone
@Kdisimone
Mar 07 2017 02:19 UTC
@arsenijs Can I ask why you are going through the wpa_cli process? Seems like looking to see if she had a typo on the wpa_supplicant would be pretty straight forward....
Arsenijs
@CRImier
Mar 07 2017 02:20 UTC
"I think so, but maybe talk me through how to add the mifi mainly."
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:20 UTC
I see the ssid as my mifi, and the ip_address as the edison's
Arsenijs
@CRImier
Mar 07 2017 02:21 UTC
Nice! That means it's working, and it's going to connect to MiFi when it's in range.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:22 UTC
Great. I usually connect my phone to the mifi, in the past, to access the RPi2 rig when away.
This should do it?
Arsenijs
@CRImier
Mar 07 2017 02:22 UTC
Run wpa_cli enable_network 0, it should remember about the home network again.
katie disimone
@Kdisimone
Mar 07 2017 02:22 UTC
The instructions have a section for wpa_supplicant network additions. She could just add the mifi like the other networks. My concern is that she likely has a typo still outstanding in her home wifi or another part of supplicant list.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:23 UTC
“OK” @Kdisimone should we try to clear that up, too, or just keep this as is?
Arsenijs
@CRImier
Mar 07 2017 02:23 UTC
Nope, wpa_cli listed all her networks so there wasn't a typo, and we connected it both to the home network and the MiFi.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:23 UTC
@CRImier Thank you so much!!!
Arsenijs
@CRImier
Mar 07 2017 02:23 UTC
You're welcome!
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:24 UTC
Been at this since 1pm. It’s now almost 8:30. Now to get the setup scripts going.
katie disimone
@Kdisimone
Mar 07 2017 02:24 UTC
@flutelynne_twitter now will you know how to add new networks? 😜
Arsenijs
@CRImier
Mar 07 2017 02:24 UTC
Oh, adding is as simple as editing the wpa_supplicant.conf =)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:25 UTC
I hope so. After I get set up, I will put the info into Pages format to retrieve later.
Arsenijs
@CRImier
Mar 07 2017 02:25 UTC
You're right, I didn't exactly tell about adding. Whatever network is in wpa_supplicant.conf, will be used. You specified three networks there, and they all were understood by wpa_cli.
So, whenever you want to add a new network, just follow the instructions about adding networks to wpa_supplicant.conf, like you did.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:29 UTC
Well….bash: line 3: sudo: command not found bash: line 4: sudo: command not found
Thanks. I will.
Or... wait, don't yet.
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:30 UTC
OK
Posted wrong link,sorry =)
Lynne Butts
@flutelynne_twitter
Mar 07 2017 02:31 UTC
No problem. Good thing I am slow...
RedCyclist1
@RedCyclist1
Mar 07 2017 02:59 UTC
Hi gang, trying to add my work guest wifi to my rig until I can get my bluetooth running. I don't have a PW to join it... Can I select psk=""??
Arsenijs
@CRImier
Mar 07 2017 02:59 UTC
Nope, don't use psk=""
Use key_mgmt=NONE instead of psk=...something...
RedCyclist1
@RedCyclist1
Mar 07 2017 03:00 UTC
ok thks...
Arsenijs
@CRImier
Mar 07 2017 03:02 UTC
Can you post the wpa_supplicant.conf file contents, just to check?
You can only post the section with the open network you're adding
RedCyclist1
@RedCyclist1
Mar 07 2017 03:04 UTC
are you saying like this...network={
ssid="Guest"
key_mgmt="NONE"
}
Arsenijs
@CRImier
Mar 07 2017 03:04 UTC
You'd want NONE without quotes, I think
RedCyclist1
@RedCyclist1
Mar 07 2017 03:05 UTC
ok will give it a go
RedCyclist1
@RedCyclist1
Mar 07 2017 03:13 UTC
I will test it tomorrow at work... now I am trying to set up bluetooth... with iphone 6s.. I ran this:

sudo killall bluetoothd

Wait a few seconds, and run it again, until you get bluetoothd: no process found returned. Then start it back up again:

sudo /usr/local/bin/bluetoothd --experimental &

but now I get: sudo: /usr/local/bin/bluetoothd: command not found
Arsenijs
@CRImier
Mar 07 2017 03:14 UTC
Run which bluetoothd and post the output
RedCyclist1
@RedCyclist1
Mar 07 2017 03:16 UTC
/usr/sbin/bluetoothd
That is the output
Arsenijs
@CRImier
Mar 07 2017 03:17 UTC
Then you should run sudo /usr/sbin/bluetoothd --experimental &
RedCyclist1
@RedCyclist1
Mar 07 2017 03:24 UTC
ok I see iphone and pebble on edison but i don't see edison on iphone or pebble?
dmdfreak
@dmdfreak
Mar 07 2017 03:26 UTC
Went through the 10 minutes of flashing and when the command prompt screen said don't unplug for 2 minutes, eventually the putty screen got stuck at "ready to receive application" so I unplugged the Edison and plugged it all back in. When it came up again it said control D so I did and it went through some more screens and reboots. Now it's stuck at "dwc-device dwc request blah blah was not queued to ep6 in bulk." Also shows on the screen "failed to start hostname service" and on many reboots I've seen it say "failed to start kernel"
RedCyclist1
@RedCyclist1
Mar 07 2017 03:28 UTC

@CRImier The last thing I did was this: discoverable on

scan on

agent on

default-agent

dmdfreak
@dmdfreak
Mar 07 2017 03:29 UTC
OK. I got enter and it gave me a login. I used root and Edison and it says I'm on 3.10.17 does that mean I'm good to continue?
RedCyclist1
@RedCyclist1
Mar 07 2017 03:33 UTC
@CRImier this is what is coming up now...
[bluetooth]#
Arsenijs
@CRImier
Mar 07 2017 03:34 UTC
@RedCyclist1 Can you give me a link to the part of the guide you're following now?
@dmdfreak I don't know much about flashing Edison, sorry. The guide is better at it than I am, and I don't have any ideas on what could be wrong =)
The hostname service is supposed to fail at this point, though.
dmdfreak
@dmdfreak
Mar 07 2017 03:36 UTC
OK. Maybe I'm doing it right lol
Thank you
Arsenijs
@CRImier
Mar 07 2017 03:37 UTC
You're welcome. I'd retry the flashing process, though.
And make sure you're following the guide as it says.
dmdfreak
@dmdfreak
Mar 07 2017 03:38 UTC
Just what I was thinking
Arsenijs
@CRImier
Mar 07 2017 03:40 UTC
Did you forget "discoverable on"?
RedCyclist1
@RedCyclist1
Mar 07 2017 03:40 UTC
no
I am getting this:
[CHG] Device C2:F9:64:11:34:1A RSSI: -48
[CHG] Device 57:37:65:58:71:67 RSSI: -70
[CHG] Device C2:F9:64:11:34:1A RSSI: -57
Arsenijs
@CRImier
Mar 07 2017 03:41 UTC
Enter "discoverable on" again, might help
RedCyclist1
@RedCyclist1
Mar 07 2017 03:42 UTC
invalid command
Arsenijs
@CRImier
Mar 07 2017 03:43 UTC
Without quotes? It still says "[bluetooth]#"?
RedCyclist1
@RedCyclist1
Mar 07 2017 03:43 UTC
discoverable on succeeded
yes back to [bluetooth]#
Arsenijs
@CRImier
Mar 07 2017 03:44 UTC
What about now, check if you can see your Edison from other devices
RedCyclist1
@RedCyclist1
Mar 07 2017 03:45 UTC
@CRImier no
sorry heading into a low bloodsugar... brb
RedCyclist1
@RedCyclist1
Mar 07 2017 03:50 UTC
@CRImier When I type in this "trust AA:BB:CC:DD:EE:FF pair AA:BB:CC:DD:EE:FF" Should I put my iphone mac numbers in both sets of letters?
Arsenijs
@CRImier
Mar 07 2017 03:52 UTC
Yep, also, those are supposed to be two separate lines, I think
RedCyclist1
@RedCyclist1
Mar 07 2017 03:52 UTC
ok
Arsenijs
@CRImier
Mar 07 2017 03:52 UTC
First is trust AA:BB:CC:DD:EE:FF
Then pair AA:BB:CC:DD:EE:FF
ig888ack
@ig888ack
Mar 07 2017 03:56 UTC
hey everyone...looks like i'm not the only one having some bluetooth issues tonight :)
RedCyclist1
@RedCyclist1
Mar 07 2017 03:57 UTC
@CRImier It's connected, I typed exit but is not staying connected in the iphone?
Arsenijs
@CRImier
Mar 07 2017 03:57 UTC
It breaks the connection as soon as you type exit?
RedCyclist1
@RedCyclist1
Mar 07 2017 03:58 UTC
It keeps going off and on. We are going outside to test it
ig888ack
@ig888ack
Mar 07 2017 03:59 UTC
I had bluetooth tethering working fine on openaps -> iphone but I just changed over to android and I can't seem to get the tethering option to work. i'm on the page http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/bluetooth-tethering-edison.html#bluetooth-setup and I am at the part where I actually connect to the bluetooth network... sudo bt-pan client AA:BB:CC:DD:EE:FF
it connects just fine for a few seconds but then drops the connection
i'm pretty sure its an issue with my phone not the openaps rig since it was working correctly via iphone
RedCyclist1
@RedCyclist1
Mar 07 2017 04:02 UTC
@CRImier @ig888ack it looks like it is connected... I believe it is toggeling between not connected and connected when it is prioritizing my home network wifi
ig888ack
@ig888ack
Mar 07 2017 04:02 UTC
@RedCyclist1 awesome!
Arsenijs
@CRImier
Mar 07 2017 04:04 UTC
@RedCyclist1 Would be cool to understand whether that's an issue with the phone or with Edison (unfortunately, I can't think of an easy way to determine that.)
ig888ack
@ig888ack
Mar 07 2017 04:05 UTC
correction on my issue...it seem to stay tethered until I issue the sudo dhclient bpnep0 command
once i issue that command it then stays connected for a few seconds and then drops
RedCyclist1
@RedCyclist1
Mar 07 2017 04:08 UTC
@CRImier it has stayed connected now, has been now for last 10 minutes... sooo looking good, I do want it to use wifi when at home and bluetooth at work.. will test in am I guess when I head back in... Quick question... I am on a work phone... is this going to sginificantly increase my data usage?
Arsenijs
@CRImier
Mar 07 2017 04:09 UTC
Hmm, I don't know enough about its function to understand.(I don't have an Edison/Bluetooth setup and didn't read about it yet).
Dana Lewis
@danamlewis
Mar 07 2017 04:09 UTC
no
RedCyclist1
@RedCyclist1
Mar 07 2017 04:11 UTC
@danamlewis that is great news... I still have to complete the questionaire for you Dana...
Dana Lewis
@danamlewis
Mar 07 2017 04:12 UTC
:+1:
dmdfreak
@dmdfreak
Mar 07 2017 04:16 UTC
Flashed
Dana Lewis
@danamlewis
Mar 07 2017 04:16 UTC
:confetti_ball:
dmdfreak
@dmdfreak
Mar 07 2017 04:16 UTC
Reflashed and it says failed to start kernel on the reboots. Is that normal?
RedCyclist1
@RedCyclist1
Mar 07 2017 04:17 UTC
@CRImier you got me on bluetooth... soooo excited! Thk you!
Arsenijs
@CRImier
Mar 07 2017 04:17 UTC
Glad I could help!
Failed to start kernel? Could you post what exactly it says, like, copy-paste the line and 5 lines above and below it?
dmdfreak
@dmdfreak
Mar 07 2017 04:21 UTC
Actually says "failed to start load kernel modules"
Arsenijs
@CRImier
Mar 07 2017 04:21 UTC
Again, copy-paste
Which system are you on? On Windows, it's as simple as selecting text in PuTTY with your mouse - it's automatically "copy"-ed, all that's left is pasting it here
dmdfreak
@dmdfreak
Mar 07 2017 04:24 UTC
Running gitter on the phone. It's now sitting at ready to receive application instead of asking for login info
Arsenijs
@CRImier
Mar 07 2017 04:24 UTC
Oh, understood.
feraridurango
@feraridurango
Mar 07 2017 04:24 UTC
should downloading Jubilinux take 2 hours and be 639MB?
katie disimone
@Kdisimone
Mar 07 2017 04:24 UTC
@ig888ack Someone a few days back had problems with a certain brand of android phone not being able to use BT tethering…try scrolling back through a few days of Gitter or search. It was phone specific
Arsenijs
@CRImier
Mar 07 2017 04:25 UTC
@dmdfreak I don't know enough to tell about it, then. Let's wait until somebody else with Edison flashing experience comes =(
dmdfreak
@dmdfreak
Mar 07 2017 04:25 UTC
Trying to get on gitter from the computer now
feraridurango
@feraridurango
Mar 07 2017 04:27 UTC
hey your doing the same thing I am right now how long did your Jubilinux take to download?
@dmdfreak ^
katie disimone
@Kdisimone
Mar 07 2017 04:28 UTC
@feraridurango It took a very short time for me to download at home.
feraridurango
@feraridurango
Mar 07 2017 04:29 UTC
:(
katie disimone
@Kdisimone
Mar 07 2017 04:29 UTC
@ig888ack This was the link they provided. @mikestebbins and @david-t1 were talking about the difficulties I think. http://techiezlounge.com/enable-tethering-android-6-0-marshmallow/
feraridurango
@feraridurango
Mar 07 2017 04:30 UTC
it seems way to large of a file 639MB?
Dana Lewis
@danamlewis
Mar 07 2017 04:31 UTC
@Sgoldberg89 key_mgmt=NONE
:confetti_ball: @RedCyclist1 :)
dmdfreak
@dmdfreak
Mar 07 2017 04:32 UTC
@feraridurango it took about 10 minutes or so
Oh you mean originally not to the Edison. I did it a few days ago to be ahead of the game. Seemed about normal time though
feraridurango
@feraridurango
Mar 07 2017 04:34 UTC
ok thank you @dmdfreak @Kdisimone
katie disimone
@Kdisimone
Mar 07 2017 04:35 UTC
@feraridurango my jubilinux download is 1.68 GB
feraridurango
@feraridurango
Mar 07 2017 04:36 UTC
yeah I'm doing something wrong
dmdfreak
@dmdfreak
Mar 07 2017 04:37 UTC
Mine is 639mb as well
Zipped
katie disimone
@Kdisimone
Mar 07 2017 04:37 UTC
(yes…mine is the unzipped version, sorry)
dmdfreak
@dmdfreak
Mar 07 2017 04:37 UTC
1.56 gig unzipped
RedCyclist1
@RedCyclist1
Mar 07 2017 04:38 UTC
@danamlewis dumb question.. where can I find definitions for pebble watchfaces... BWP???
Dana Lewis
@danamlewis
Mar 07 2017 04:38 UTC
Bolus Wizard Preview
most of those are probably going to come from NS-related terms
RedCyclist1
@RedCyclist1
Mar 07 2017 04:39 UTC
@danamlewis Duhhhh... thks
Dana Lewis
@danamlewis
Mar 07 2017 04:39 UTC
np!
jmcrawford
@jmcrawford
Mar 07 2017 04:45 UTC
@CRImier Re: creating wpa_supplicant.conf
echo "Enter network name (SSID)"; read SSID ; echo "Enter network passphrase (password)" ; read pass ; echo "{" > /tmp/wpa.txt ; echo " ssid=\"$SSID\"" >> /tmp/wpa.txt ; echo " psk=\"$pass\"" >> /tmp/wpa.txt ; echo "}" >> /etc/wpa_supplicant/wpa_supplicant.conf
Rather simple, no input checking, but would work for most cases
Note, there are some typos in there to prevent me from clobbering my own file...
Arsenijs
@CRImier
Mar 07 2017 04:47 UTC
@jmcrawford Yes, I was thinking about that. However, it still needs to get to the console somehow - either copy-pasted to the console or embedded in the jubilinux image.
jmcrawford
@jmcrawford
Mar 07 2017 04:48 UTC
If someone wanted to redo the image, there's probably a lot of things that could be done. But the existing instructions have people doing a lot of copy/pasting anyway, this would be a simple addition to minimize the typo errors that are common
ig888ack
@ig888ack
Mar 07 2017 04:53 UTC
@Kdisimone thanks for the info...unfortunately I'm on an older phone (Galaxy Note 3) so I only have android ver 5.0 instead of Marshmallow
jmcrawford
@jmcrawford
Mar 07 2017 04:58 UTC
Now that I look at it, the jubilinux image file is an ext4 filesystem as a file. It can be mounted and edited as normal. All we'd need is to make the changes and upload it somewhere for hosting.
Arsenijs
@CRImier
Mar 07 2017 05:00 UTC
Yeah. To be honest, I'm surprised nobody did it by now.
And if you set a build environment for it, you could have an image with all the packages built in (jubilinux guys should have a guide on this, or at least scripts to share).
jmcrawford
@jmcrawford
Mar 07 2017 05:04 UTC
So what sort of changes would you suggest? Some sort of script to set up networking, install required packages?
Arsenijs
@CRImier
Mar 07 2017 05:06 UTC
Whatever users have problems with the most. I'm all for "ease of install and use". If we could get Python on it as a preinstalled package, I could write a quite good first-run script.
With automagically-made decisions etc. =) I'll google about recompiling the image, but I don't have an Edison to test it on, so it's most likely going to be hard to test. So, Bash is a very good path to take - just modify the filesystem and that's it.
jmcrawford
@jmcrawford
Mar 07 2017 05:08 UTC
There's no recompile required - just mount the file:
mount -o loop edison-image-edison.ext4 /mnt
cd /mnt
Arsenijs
@CRImier
Mar 07 2017 05:09 UTC
Not unless you want to install packages, then you do need to recompile the FS image.
Like, debootstrap or something.
For Bash scripts, yes, no recompile required.
RedCyclist1
@RedCyclist1
Mar 07 2017 05:16 UTC
@danamlewis , I saw you were working on a 3dprinter case for your rig... do you have anything that is available?
Dana Lewis
@danamlewis
Mar 07 2017 05:20 UTC
well, I’m not,but talking with folks that are - haven’t seen their beta yet, but there’s some other cool 3D printed cases for explorer board rigs in this list: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/hardware/edison.html#cases
dmdfreak
@dmdfreak
Mar 07 2017 06:25 UTC
finally here on the computer. I can no longer get the edison to show up as a device. The drivers wont load correctly after installing and reinstalling. So I cant get the edison to show up in putty anmore
under device manager its showing as merrifield without any drivers attached
eliotsdad
@eliotsdad
Mar 07 2017 06:43 UTC

Aloha, looking for Bluetooth / Edison help again. Got the phone to pair, and trust, but when verifying the connection I get the error below when running this script:
sudo bt-pan client AA:BB:CC:DD:EE:FF

dbus.exceptions.DBusException: org.bluez.Error.Failed: Input/output error

Scott Leibrand
@scottleibrand
Mar 07 2017 07:25 UTC
Are you replacing the letters with your MAC address?
dmdfreak
@dmdfreak
Mar 07 2017 07:29 UTC
I Think I have everything flashed correctly, but can't get it to pickup my wifi when I run ifup wlan0
Double checked interface and WPA supplicant and both are correct. Including my SSID and password
Scott Leibrand
@scottleibrand
Mar 07 2017 07:31 UTC
You could try scrolling up and trying some of the wpa_cli commands pasted earlier this evening...
Like list_networks, scan, and scan_results
dmdfreak
@dmdfreak
Mar 07 2017 07:32 UTC
OK thank you
Scott Leibrand
@scottleibrand
Mar 07 2017 07:32 UTC
Maybe also look at the output of iwconfig
Which you can also get by just typing wifi
dmdfreak
@dmdfreak
Mar 07 2017 07:34 UTC
How would I do that?
Thank you hehe
Scott Leibrand
@scottleibrand
Mar 07 2017 07:34 UTC
Oh, wait. That won't work yet, sorry.
Just do iwconfig
It'll tell you if it's connected to wifi or not
dmdfreak
@dmdfreak
Mar 07 2017 07:35 UTC
Says no wireless extensions
Scott Leibrand
@scottleibrand
Mar 07 2017 07:36 UTC
That sounds like maybe a syntax error in one of your config files
Maybe paste them here, redacting your passwords?
dmdfreak
@dmdfreak
Mar 07 2017 07:37 UTC
You'll have to tell me how to get them. I'm very green
Oh OK
One minute
network={
ssid="Ours"
psk="password"
}
Scott Leibrand
@scottleibrand
Mar 07 2017 07:40 UTC
Did you remove the first line?
dmdfreak
@dmdfreak
Mar 07 2017 07:40 UTC
If I did it was accidental
Arsenijs
@CRImier
Mar 07 2017 07:40 UTC
Do ifconfig -a.
dmdfreak
@dmdfreak
Mar 07 2017 07:41 UTC
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
this is the first line. sorry
Scott Leibrand
@scottleibrand
Mar 07 2017 07:42 UTC
Ah ok.
And the interfaces file?
(that one looks good)
dmdfreak
@dmdfreak
Mar 07 2017 07:44 UTC
hold on having trouble. sorry

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

Arsenijs
@CRImier
Mar 07 2017 07:50 UTC
Theoretically, should work. Can you paste uname -a?
Oh, and you haven't shown the ifconfig -a output.
dmdfreak
@dmdfreak
Mar 07 2017 07:51 UTC
Linux timsedison 3.10.17-yocto-standard-r2 #7 SMP PREEMPT Thu Feb 26 09:57:06 UTC 2015 i686 GNU/Linux
ill get the other now. sorry
Scott Leibrand
@scottleibrand
Mar 07 2017 07:52 UTC
@arsenijs thx for jumping in. Bed time for me.
dmdfreak
@dmdfreak
Mar 07 2017 07:52 UTC
thanks scott.

root@timsedison:~# uname -a
Linux timsedison 3.10.17-yocto-standard-r2 #7 SMP PREEMPT Thu Feb 26 09:57:06 UTC 2015 i686 GNU/Linux
root@timsedison:~# ^C
root@timsedison:~# ifconfig -a
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:448 errors:0 dropped:0 overruns:0 frame:0
TX packets:448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38752 (37.8 KiB) TX bytes:38752 (37.8 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)

oops copied to much. past my bedtime too but excitement has me lol
dabear
@dabear
Mar 07 2017 08:02 UTC
Hi people :)
dmdfreak
@dmdfreak
Mar 07 2017 08:02 UTC
hello
dabear
@dabear
Mar 07 2017 08:02 UTC
my borrows rileylink has arrived
:D
borrowed*
it came in two pieces, the rilelink it self and the battery with the battery connector
trouble is, which way does the connector fit into the rileylink?? it seems to fit both ways, and I wanna be sure before braking anything :)
dmdfreak
@dmdfreak
Mar 07 2017 08:06 UTC
@CRImier I tried my phone hotspot as well. Same error.
Pete Schwamb
@ps2
Mar 07 2017 08:06 UTC
It will only fit one way, if you have the original battery it shipped with.
dmdfreak
@dmdfreak
Mar 07 2017 08:06 UTC
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
Arsenijs
@CRImier
Mar 07 2017 08:06 UTC
Hmm, it seems the WiFi is really not recognized. I'm new here and I don't know what's to be done if that happens.
Pete Schwamb
@ps2
Mar 07 2017 08:07 UTC
@dabear There is also a rileylink gitter for those types of questions.
Arsenijs
@CRImier
Mar 07 2017 08:07 UTC
Yep, the problem is not with WiFi network config - it seems to be with the WiFi driver, or WiFi hardware.
Or maybe there's a more obvious and simple explanation, but I don't know about it.
dabear
@dabear
Mar 07 2017 08:08 UTC
OK, i'll ask in there thanks :)
dmdfreak
@dmdfreak
Mar 07 2017 08:09 UTC
ok. I think that brings me to an end till tomorrow. I'll see what I can find out when the sun comes up. Thanks for trying! I was begining to wonder if I was going to even get it flashed.
I have a feeling Im going to be told to reflash it
Arsenijs
@CRImier
Mar 07 2017 08:10 UTC
Pretty much. Also, check you're using the right image for it.
dmdfreak
@dmdfreak
Mar 07 2017 08:11 UTC
will do. I better go before Im tempted to start over now and never get any sleep. Thanks again! Really appreciate it
Arsenijs
@CRImier
Mar 07 2017 08:12 UTC
You're welcome!
Tim Street
@tim2000s
Mar 07 2017 08:46 UTC
For those using Enlite, anyone know of any reason why the MDT CGM data is appearing to be stuck at a point in time?
Chris Oattes
@cjo20
Mar 07 2017 09:13 UTC
@tim2000s what do you mean by "stuck at a point in time"?
Tim Street
@tim2000s
Mar 07 2017 09:28 UTC
Appears it was the stuck memory page issue rearing its head again. I was getting the "old by data" error when the get-by alias ran. Setting multiple TBRs cleared the page and we're now running again.
John Sjolund
@sjolundjohn
Mar 07 2017 10:10 UTC

Morning - I installed Autotune on a Amazon AWS server (has worked off my edison just fine).

When I run command, I get this and it stalls. Any experience with this?

ubuntu@ip-172-31-25-89:~/myopenaps$ oref0-autotune --dir=~/myopenaps --ns-host=https://XXX.herokuapp.com --start-date=2017-03-07
Running oref0-autotune --dir=/home/ubuntu/myopenaps --ns-host=https://XXX.herokuapp.com --start-date=2017-03-07 --runs=1 --end-date=2017-03-06
Grabbing NIGHTSCOUT treatments.json for date range...
https://XXX.herokuapp.com/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-03-06T20:00+0100&find\[created_at\]\[$lte\]=2017-03-07T00:00+0100
-rw-rw-r-- 1 ubuntu ubuntu 9842 Mar  7 11:06 ns-treatments.json
It stalls on the last line
Paul Dickens
@thebookins
Mar 07 2017 10:53 UTC
Hi, if anyone is awake, our son is on school camp and openaps is dropping off periodically (no up to date pillbox on NS, and no events in papertrail). A hard reset of the edison seems to kickstart it again, but he's asleep now so not a great option.
Anyone seen this before? We are running bluetooth tethering with his iPhone.
Also, it's not the spidev5.1 error; we are running the dev branch with a crontab fix for this
zekeat09
@zekeat09
Mar 07 2017 12:05 UTC
Hi, i need help again. My edison rig stop working again.

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 52, in call
self.epilog( )
File "/usr/local/bin/openaps-report", line 69, in epilog
super(ReportToolApp, self).epilog( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 75, in epilog
self.create_git_commit( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 99, in create_git_commit
self.repo.git.gc(auto=True)
File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 424, in <lambda>
return lambda args, **kwargs: self._call_process(name, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 873, in _call_process
return self.execute(call,
_kwargs)
File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 687, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(255)
cmdline: git gc --auto
stderr: 'Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.

warning: reflog of 'HEAD' references pruned commits
warning: reflog of 'refs/heads/master' references pruned commits
warning: reflog of 'HEAD' references pruned commits
warning: reflog of 'refs/heads/master' references pruned commits
'

how to solve this problem ?
Chris Oattes
@cjo20
Mar 07 2017 12:47 UTC
@zekeat09 there should be oref0-reset-git (or something similar) that might fix it
zekeat09
@zekeat09
Mar 07 2017 12:51 UTC
@cjo20 How to do ? Mind to guide ? I am very new to openaps ans linux
Just use this command "oref0-reset-git" in edison ?
Chris Oattes
@cjo20
Mar 07 2017 13:06 UTC
zekeat09: in the openaps directory
zekeat09
@zekeat09
Mar 07 2017 13:07 UTC
@cjo20 TQ, will try it
Scorponok
@Scorponok
Mar 07 2017 13:25 UTC
@tim2000s Assuming you're seeing the same problem we are, we can clear the enlite "bg data too old" error by calibrating - I haven't heard it refered to as the "stuck memory page issue" before, is that a known problem?
zekeat09
@zekeat09
Mar 07 2017 13:26 UTC
@cjo20 The "oref0-reset-git" not working.
root@myedison:~/myopenaps# oref0-reset-git
Attempting to fix git corruption. Please wait 15s.
Git repo does not appear to be corrupt.
/usr/local/bin/oref0-reset-git: line 52: 3251 Terminated ( sleep 1 5; killall oref0-fix-git-corruption )
Chris Oattes
@cjo20
Mar 07 2017 13:27 UTC
AFAIK, We don't know exactly what causes the "bg data too old" problem. It seem that recalibrating fix is, as can filling the pump with more data. The pump sends data as a series of packets called "pages", it seems related to when one packet gets filled / the next one starts
@Scorponok ^
zekeat09
@zekeat09
Mar 07 2017 13:35 UTC
@scottleibrand Hi, i wonder /dev/root size will increase daily ? The available size getting smaller...
root@myedison:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.4G 1.2G 144M 90% /
devtmpfs 480M 0 480M 0% /dev
tmpfs 97M 316K 96M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 193M 0 193M 0% /run/shm
tmpfs 481M 16K 481M 1% /tmp
/dev/mmcblk0p7 32M 5.3M 27M 17% /boot
/dev/mmcblk0p10 1.3G 303M 989M 24% /home
Scorponok
@Scorponok
Mar 07 2017 13:42 UTC
@cjo20 interesting, thanks
dmdfreak
@dmdfreak
Mar 07 2017 14:17 UTC
I reflashed because I couldn't get wifi to connect. It did is thing in the command prompt and did wait 2 minutes. Putty screen rebooted a number of times. Now it's sitting at the ready to receive application. I've let it go for maybe 5 minutes but it hasn't changed. Should I keep waiting or is there something I need to do to get it to move forward?
BTW this is a new rig. Edison board from our community.
dmdfreak
@dmdfreak
Mar 07 2017 14:29 UTC
I unplugged it and restarted putty and it started moving again. We will see if that worked.
Geoff Aumaugher
@geoffro10
Mar 07 2017 15:10 UTC
Anyone else notice their carb entries not showing up in NightScout? They haven't been showing for me since running the OpenAPS update script on the dev version as of yesterday afternoon.
peterfulvi
@peterfulvi
Mar 07 2017 15:42 UTC
I just got parts to set up another rig. This one I want to learn how to setup offline. I'm going to set it up while I'm using the other one. Is there any way I can run ns locally on my Edison, I see reference s here and there, can someone if it's possible point me in the right direction, I also want to use pancreabble, and use the watch to send SSH commands to. Any help would be appreciated. Like I said I'm going to be using my original and learn the basics while I set this one up.
jmcrawford
@jmcrawford
Mar 07 2017 15:50 UTC
@zekeat09 Check the size of your .git directory, as well as the size of /var/cache/openaps-ruination. One of these two is often consuming a lot of space.
@dmdfreak That looks like your edison wasn't flashed with Ubilinux, it's still running Yocto.
dan lightner
@danimaniac
Mar 07 2017 16:09 UTC
@peterfulvi I'm right there with you! I am working on my first rig and got the Explorer Board this morning. Here is the setup doc for offline monitoring and hot buttons...but, I don't think it actually eliminates an online NS instance. xDrip will monitor locally (on phone) and send readings to the rig via xDripAPS then from the rig to pump. xDrip uploads info and backloads the online NS instance once a connection is established. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/offline-looping-and-monitoring.html?highlight=xdrip#xdripaps-for-offline-bgs
@peterfulvi Basically, the rig fully operates offline, then updates the online NS instance later. That's my understanding.
glenrob1940
@glenrob1940
Mar 07 2017 16:21 UTC
Troubleshooting help request. On one of my Pi's (which has been running closed loop for about 2 months), I decided to set up a dev version. After the curl stuff, it indicated openAps 2.0 dev. I then ran oref0 setup and enabled autosens and autotune and enabled crontab entries. Everything initially appeared fine, and then during mmtune the pi crashed (ssh window froze, another window running ping showed no route to host). Rebooted, wiped out cron did a killall on openaps and basically the pi appeared to be fine (I could ping google from it and other brief checks succeeded). I reran setup w/o any advanced stuff, and it again died (about 2 minutes into the loop). Should I check that the TI stick os okay in another Pi system first , or should I reflash and start from scratch with the system first.
peterfulvi
@peterfulvi
Mar 07 2017 16:22 UTC
@danimaniac does xdrip work with the enite cgm
dmdfreak
@dmdfreak
Mar 07 2017 16:24 UTC
@jmcrawford I reflashed this morning and now its working. I think you are right. Now im stuck at the visualization stage setting up the changes to nightscout. I made the changes and im trying to look at them through the site and it says my api secret is wrong. but im looking right at it in the portal. I'm confused...
actually it says my site isnt working at all now..
glenrob1940
@glenrob1940
Mar 07 2017 16:28 UTC
In the troubleshooting help request, a third alternative is to start with a reflash of the TI stick. I am a bit concerned about plugging the Ti stick into my other Pi rig in case it is a Ti stick hardware issue with a downside of possibly borking the other Pi rig.
dmdfreak
@dmdfreak
Mar 07 2017 16:29 UTC
i may have found my problem
dmdfreak
@dmdfreak
Mar 07 2017 16:36 UTC
Nightscout is running now. But the openaps shows unknown. The pump pill has nothing and when I click the 3 dots to show openaps purple prediction line I only see the ar2 forecast as a choice
dan lightner
@danimaniac
Mar 07 2017 16:38 UTC
@peterfulvi The doc states "Medtronic CGM users can, by default, automatically loop offline because the rig will read CGM data directly from the pump." I use Dexcom myself.
Scorponok
@Scorponok
Mar 07 2017 16:45 UTC
We use Medtronic - you can loop, but there's no easy way to see the CGM data on your phone or anything, you have to look at the pump
Chris Oattes
@cjo20
Mar 07 2017 16:47 UTC
The only real 'problem' with offline looping is not being able to see basal IOB
fiberfan
@fiberfan
Mar 07 2017 16:55 UTC
@dmdfreak have you tailed the log?
tail -f /var/log/openaps/pump-loop.log
dmdfreak
@dmdfreak
Mar 07 2017 17:02 UTC
no sir. Trying to follow the doc but it i havent seen that come up. ill run it now
tail: cannot open ‘/var/log/openaps/pump-loop.log’ for reading: No such file or directory
tail: no files remaining
katie disimone
@Kdisimone
Mar 07 2017 17:10 UTC
my rig was hung up for awhile today…reboot fixed it, but wondering if anyone has seen similar?
Mar 07 08:54:41 edison1 pump-loop.log:  git.exc.GitCommandError: Cmd('git') failed due to: exit code(255)
Mar 07 08:54:41 edison1 pump-loop.log:    cmdline: git gc --auto
Mar 07 08:54:41 edison1 pump-loop.log:    stderr: 'Auto packing the repository in background for optimum performance.
Mar 07 08:54:41 edison1 pump-loop.log:  See "git help gc" for manual housekeeping.
Mar 07 08:54:41 edison1 pump-loop.log:  fatal: Unable to create '/root/myopenaps/.git/refs/heads/master.lock': File exists.
Mar 07 08:54:41 edison1 pump-loop.log:  If no other git process is currently running, this probably means a
Mar 07 08:54:41 edison1 pump-loop.log:  git process crashed in this repository earlier. Make sure no other git
Mar 07 08:54:41 edison1 pump-loop.log:  process is running and remove the file manually to continue.
Mar 07 08:54:41 edison1 pump-loop.log:  error: failed to run reflog’
Geoff Aumaugher
@geoffro10
Mar 07 2017 17:12 UTC
@Kdisimone Haven't seen that one. I'm having a problem with no carb entries being uploaded to NS. Asked earlier but nobody responded so it must be something borked on my rig again.
katie disimone
@Kdisimone
Mar 07 2017 17:12 UTC
@dmdfreak it sounds like you are following the docs in order. if so, you won’t have a tail to follow until the end of phase 2 setup. keep plugging
@dmdfreak and you won’t see anything on your NS openaps and pump pills until the end of Phase 2….since Phase 2 builds the actual loop and starts the reporting to NS
peterfulvi
@peterfulvi
Mar 07 2017 17:13 UTC
Ok thats what i figured about xdrip. I thought i could pair my pebble to my rig using pancreabble and that would give me a secondary means of monitoring my loop, and also sending it HTML commands as @lukas-ondriga pointed out with that app for pebble watches
katie disimone
@Kdisimone
Mar 07 2017 17:14 UTC
@geoffro10 I am guessing it is something in the dev version. have you looked through the commits list to see what was carb entry related in the updates recently to dev?
dmdfreak
@dmdfreak
Mar 07 2017 17:15 UTC
@Kdisimone thank you. I've managed to fumble through this far but when I got to the visualization part it doesn't seem to guide me as well. I feel a little lost lol
katie disimone
@Kdisimone
Mar 07 2017 17:17 UTC
@dmdfreak well, you should just have a blank NS site basically…you may be getting BGs depending on how you are uploading them. And empty pills for openaps, pump, etc. You have to setup a profile for NS to work as well, so yes…the API secret needs to be entered to make a profile.
once you get through Phase 2, you will have data flowing into your NS site.
dmdfreak
@dmdfreak
Mar 07 2017 17:19 UTC
I had NS setup previously so I am getting numbers. I had to step away for work but I'll be back on it soon and I'll see if I can press on. Thank you so much.
fiberfan
@fiberfan
Mar 07 2017 17:43 UTC
@dmdfreak sorry, i didnt read far enough back to see you were still settings things up. Once your rig is running, tailing the log file is an easy way to monitor it.
Scorponok
@Scorponok
Mar 07 2017 17:49 UTC
@Kdisimone I've seen the git problem before, I am pretty sure it usually fixes itself. But it's possible that rebooting could fix it also
Dana Lewis
@danamlewis
Mar 07 2017 17:50 UTC
Remember for anyone who's updated their rig lately, l will work to bring up your logs: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/oref0-setup.html#step-3-watch-the-logs
JustineAnne
@MicheleJustine
Mar 07 2017 17:59 UTC
Hi, I'm using the Edimax Un7811 wifi adapter with my pi and it keeps dropping the wifi signal a few minutes after plugging it in. The light stops flashing and the pi says the link is down and it's disassociated. I've reloaded the drivers and it shows all modules are loaded correctly. Would someone be able to confirm whether it's my adapter or network that's the problem?
dmdfreak
@dmdfreak
Mar 07 2017 18:03 UTC
No problem @fiberfan
dmdfreak
@dmdfreak
Mar 07 2017 18:16 UTC
ok. back at it...
dmdfreak
@dmdfreak
Mar 07 2017 18:30 UTC

I am here: Setup Steps (using oref0-setup.sh script)¶
Setting up your OpenAPS rig

Install OpenAPS as per the documentation. When running the oref0-setup script, you will be prompted to specify a CGM source. Enter “xdrip” (without the quotes).

Connect your Android phone and your OpenAPS rig

but it doesnt say how to run that script.
Dana Lewis
@danamlewis
Mar 07 2017 18:32 UTC
@dmdfreak are you trying to do Bluetooth? Or run the setup script in general for the first time?
It's described in the setup script section in phase 2: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/oref0-setup.html#oref0-setup-sh-script-with-bluetooth (or right below that for without bluetooth)
dmdfreak
@dmdfreak
Mar 07 2017 18:34 UTC
I'm on phase one and i thought i was supose to connect it to bluetooth.
Dana Lewis
@danamlewis
Mar 07 2017 18:35 UTC
It sounds like you're trying so setup xdrip offline? Or Bluetooth? Either way - i would skip that for now and move on to setting up for the first time in general, and come back and do Bluetooth or anything extra later once you have a basic rig working
Bluetooth etc is optional
dmdfreak
@dmdfreak
Mar 07 2017 18:36 UTC
ahh. ok. so skip the rest of phase 1 and do phase 2.
tynbendad
@tynbendad
Mar 07 2017 18:42 UTC
about how long does the 2000mah battery work with the edison/explorer board, vs the 2500?
dmdfreak
@dmdfreak
Mar 07 2017 18:53 UTC
@danamlewis when it asks the kind of CGM should I put xdrip or G5 for now?
Dana Lewis
@danamlewis
Mar 07 2017 19:04 UTC
Are you going to be using x-drip or G5 to get BGs?
(You can always change it later but put what you're using now)
katie disimone
@Kdisimone
Mar 07 2017 19:04 UTC
@tynbendad the 2000 squeaked us by to bedtime, but not much farther. The 2500 gives us plenty of buffer room until past midnight.
dmdfreak
@dmdfreak
Mar 07 2017 19:07 UTC
@danamlewis I chose xdrip
Tim Street
@tim2000s
Mar 07 2017 19:10 UTC
The moment when you realise the battery on your uploader phone is starting to get worn out by the constant OpenAPS comms. 🙁
tynbendad
@tynbendad
Mar 07 2017 19:12 UTC
@Kdisimone thanks, that's what i was worried about - going for the bigger one sounds advisable
katie disimone
@Kdisimone
Mar 07 2017 19:14 UTC
@tynbendad yeah, much better on the 2500.
John Benjamin
@Bender1061
Mar 07 2017 19:25 UTC
@cjo20 if you get yourself a pebble watch to use pancreabble, you can setup one of the options to show the basal IOB, that works real well and gives you that offline option. Worked perfectly for me when I was on a cruise ship.
Geoff Aumaugher
@geoffro10
Mar 07 2017 19:30 UTC
@Kdisimone Yeah, I looked briefly to see that it was changed 5 days ago. Maybe I need to go compare. I'll check it out more when I get home. Thanks!
Whoops... actually it wasn't that file that changed. It was something else. I think I'm just going to redo it all and start fresh. Gotta get those carbs recorded though so my Autotune isn't messed up!!
dmdfreak
@dmdfreak
Mar 07 2017 19:46 UTC
So it appears I have my openAPS up and running! That is if being able to see openaps and pump info in nightscout means that it is. waiting to see the basal rate change now.
Dana Lewis
@danamlewis
Mar 07 2017 19:47 UTC
See if it's setting temps on the pump. Then you'll know it's working :smile:
dmdfreak
@dmdfreak
Mar 07 2017 19:48 UTC
the logs say it did, but i cant tell that it changed anything when i looked at the pump. the log said it set ip to the same thing I was already set to. lol
Dana Lewis
@danamlewis
Mar 07 2017 19:49 UTC
Hit the escape arrow on the pump and see if it says a temporary basal rate was set
You can also set a manual high temp or low temp and see it cancel that because it's too much or too little for what you need right now
dmdfreak
@dmdfreak
Mar 07 2017 19:50 UTC
esc doesnt say its on a temp basel
Dana Lewis
@danamlewis
Mar 07 2017 19:51 UTC
While you're waiting for it to set temps - I would encourage you to keep reading in the docs, esp more in phase 3 to help you understand what and why oref0 decides things based on the data you provide it.
dmdfreak
@dmdfreak
Mar 07 2017 19:51 UTC
ok. doubled my basal temp to see if it fixes it
and now I can see what a temp looks like on the esc screen. Been a long time since I used a medtronic pump.
I also learned immediately not to log my carbs in xdrip anymore because it double logged them
dmdfreak
@dmdfreak
Mar 07 2017 20:03 UTC
@danamlewis doesnt appear to be making basal changes although the log says it was setting it. But its pulling basal info and insulin left in the pump info so it must be at least connecting to the pump
dmdfreak
@dmdfreak
Mar 07 2017 20:06 UTC
haha! I just saw that in the doc and checked and changed it in the pump
and we have temps!
Dana Lewis
@danamlewis
Mar 07 2017 20:09 UTC
:confetti_ball:
dmdfreak
@dmdfreak
Mar 07 2017 20:09 UTC
now what do I do? LOL
oh
How do I get nightscout to show openaps predictions instead of ar2 forecast? I dont have the choice to change it like it says i should
gregtcm
@gregtcm
Mar 07 2017 20:13 UTC
@dmdfreak Mine didn't show up right away. It might be a matter of waiting until it starts actively looping.
tynbendad
@tynbendad
Mar 07 2017 20:14 UTC
@danamlewis gotta go, but i sent you a pm on fb a few days ago, will move it to here later if you prefer
dmdfreak
@dmdfreak
Mar 07 2017 20:14 UTC
ok. thank you @gregtcm
gregtcm
@gregtcm
Mar 07 2017 20:15 UTC
@danamlewis @scottleibrand 10 hrs into my #OpenAPS loop. So far so good. Thanks so much for all the work you and everyone has put into all of this. I do have a couple suggestions for the docs. I'll try to PR them later today after I get back from work.
Dana Lewis
@danamlewis
Mar 07 2017 20:30 UTC
@gregtcm :confetti_ball: thanks!
@tynbendad ah sorry, was in pending so just seeing it. I would ask here to get ideas about the best way to achieve that - group brainstorm might be best. For clarification are you asking for someone who's running with autosens or without?
dmdfreak
@dmdfreak
Mar 07 2017 20:37 UTC
You were right @gregtcm it just shows up
Andrew Baugh
@baughaw
Mar 07 2017 20:45 UTC
@danamlewis If i see the Mongo DB issue again I will be sure to dig deeper into it. :)
Dana Lewis
@danamlewis
Mar 07 2017 20:47 UTC
@baughaw thx!
Chris Oattes
@cjo20
Mar 07 2017 20:53 UTC
@Bender1061 I don't wear watches. I tend to get round it by SSHing in to the APS and just watching the log.
feraridurango
@feraridurango
Mar 07 2017 20:56 UTC
Hello all!!!!!! I am on the cd jubilinux step of setting up intel Edison .......in my unzipped jubilinux file I do not see the cd jubilinux file listed ? has anyone else run into this
katie disimone
@Kdisimone
Mar 07 2017 21:11 UTC
Are you using a Mac @feraridurango ?
feraridurango
@feraridurango
Mar 07 2017 21:23 UTC
@Kdisimone windows
Tim Street
@tim2000s
Mar 07 2017 22:09 UTC
@cjo20 - @ceben80 & @lukas-ondriga have been working on a solution for offline visualisation. Works nicely too.
dmdfreak
@dmdfreak
Mar 07 2017 22:12 UTC
anyone up for a little help? Trying to switch my rig to bluetooth tether intead of hotspot. Its causing missing readings for my dexcom and causing openaps not to update for 20 minutes sometimes. Soon as I got it back on local wifi both are working great again.
Scott Leibrand
@scottleibrand
Mar 07 2017 22:20 UTC
are you using Dexcom G5 or G4 or ?
dmdfreak
@dmdfreak
Mar 07 2017 22:20 UTC
G5
Scott Leibrand
@scottleibrand
Mar 07 2017 22:21 UTC
sounds like a phone bluetooth problem. are you doing any other Bluetooth besides the tethering and G5? Pebble, or any other devices?
dmdfreak
@dmdfreak
Mar 07 2017 22:22 UTC
Asus watch and headphones
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:22 UTC
is it rooted?
the phone that is
dmdfreak
@dmdfreak
Mar 07 2017 22:22 UTC
The phone is not
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:23 UTC
it is android then I assume
dmdfreak
@dmdfreak
Mar 07 2017 22:23 UTC
Yes sir
Scott Leibrand
@scottleibrand
Mar 07 2017 22:23 UTC
I would try disabling all other BT devices and see if that fixes it or not
dmdfreak
@dmdfreak
Mar 07 2017 22:23 UTC
I did chose xdrip during setup and have it my Bluetooth mac address
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:26 UTC
i would be interested to see what would happen if you chose g5 during set up, but I am no expert
Scott Leibrand
@scottleibrand
Mar 07 2017 22:27 UTC
choosing G5 during setup would allow you to plug the G5 receiver into the rig with USB OTG
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:27 UTC
well that would be a benefit
Scott Leibrand
@scottleibrand
Mar 07 2017 22:27 UTC
if you're not doing that and instead relying on the G5 phone app to upload data to Dexcom and then pull it down from NS, it doesn't really matter which you choose
dmdfreak
@dmdfreak
Mar 07 2017 22:28 UTC
I use the phone only. Don't even have a receiver
Scott Leibrand
@scottleibrand
Mar 07 2017 22:28 UTC
you should probably get one as a backup, but that's another discussion
dmdfreak
@dmdfreak
Mar 07 2017 22:28 UTC
You are probably correct
Scott Leibrand
@scottleibrand
Mar 07 2017 22:28 UTC
pretty sure the FDA doesn't allow Dexcom to sell G5's without a receiver
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:29 UTC
yup I always carry mine in my backpack, it hasnt been used but I still have it
Scott Leibrand
@scottleibrand
Mar 07 2017 22:29 UTC
although I think if you have a G4 receiver they consider that good enough, since you can upgrade it
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:29 UTC
yup
dmdfreak
@dmdfreak
Mar 07 2017 22:29 UTC
I have to wait awhile. I had just replaced my g4 receiver when I switched. Horrible timing on my part
Already passed my g4 receiver on to someone else
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:30 UTC
i just upgraded my g4 reciever
Scott Leibrand
@scottleibrand
Mar 07 2017 22:30 UTC
the G4 share receivers can be software upgraded to G5 (but not downgraded again)
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:30 UTC
yup
dmdfreak
@dmdfreak
Mar 07 2017 22:30 UTC
Oh wow. Wish I knew that before
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:31 UTC
ya that is what I did so I have a reciever I can still buy and have insurance pay for it... (waiting on the G6 now)
dmdfreak
@dmdfreak
Mar 07 2017 22:31 UTC
Resounding to your easier comment about FDA. Pharmacy never asked me lol
Responding*
Good lord my typing is all over the place
Turned everything off. Should I disable LAN temp?
Everything being Bluetooth connections
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:35 UTC
the core temperature monitor?
Elliott
@esteward
Mar 07 2017 22:36 UTC
Any idea what is going on here:
Shoot, having a hard time posting a picture
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:41 UTC
I have a very easy one I think here, I just ran oref0 setup and it is asking if I want to remove my existing crontab. I set it to run bluetooth (for the first time ) I have WPA_cli scan in my crontab and it is working well. If I choose no will it just append my cron jobs?
and should it really mater since I set up the BT????
Dana Lewis
@danamlewis
Mar 07 2017 22:42 UTC
@esteward to resolve that, you'll need to install dev to get the fix for that. (Same process you did last night but follow the dev instructions)
John Benjamin
@Bender1061
Mar 07 2017 22:46 UTC
@diabetic_dude_twitter just hit yes, it will replace that line again, not a problem
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:47 UTC
awesome thanks I chose to remove it and things are fine, I see two connections on my phone
Diabetic_Dude
@diabetic_dude_twitter
Mar 07 2017 22:53 UTC
so now I can remove the connection to my iphone and see how things work with only BT on the phone and wifi at home,,, sweet
thanks for the help I am off to the gym
dmdfreak
@dmdfreak
Mar 07 2017 22:59 UTC
is edison considered an explorer board in regards to setting up oref0?
Scott Leibrand
@scottleibrand
Mar 07 2017 23:02 UTC
the Edison is CPU you buy from Intel. you can put it onto an Explorer board, or a Sparkfun base block, or an Intel breakout board, or an Arduino breakout board...
dmdfreak
@dmdfreak
Mar 07 2017 23:03 UTC
i knew that, just wasnt thinking. sorry
when oref0 asks for the phone mac are they talking about the wifi mac? or asking for the BT mac again?
I'm running the setup again to make sure I didnt answer something wrong the fisr time that might be causing my issues
Scott Leibrand
@scottleibrand
Mar 07 2017 23:17 UTC
we only need BT MACs, not wifi. depending on what exactly you're doing, that could either be the phone's BT MAC, or a receiver MAC for openxshareble
dmdfreak
@dmdfreak
Mar 07 2017 23:18 UTC
it says For BT Tethering enter phone mac id (i.e. AA:BB:CC:DD:EE:FF) hit enter to skip
I ran this cd && ~/src/oref0/bin/oref0-setup.sh --btmac=D0:13:FD:72:0E:37
Scott Leibrand
@scottleibrand
Mar 07 2017 23:23 UTC
if you provided the --btmac= argument properly it shouldn't ask you that question
dmdfreak
@dmdfreak
Mar 07 2017 23:25 UTC
hmm i showed you exactly what i gave it. copied from the doc replacing my mac address
katie disimone
@Kdisimone
Mar 07 2017 23:36 UTC
@scottleibrand Mine still asked for it yesterday too.
entered in the phone’s BT MAC address in the —btmac= part at setup script…still asked me to re-enter it during walkthrough
Scott Leibrand
@scottleibrand
Mar 07 2017 23:40 UTC
hmm, guess I'm misreading the script then
Tim Street
@tim2000s
Mar 07 2017 23:41 UTC
Concur that the script still requires btmac entry in walkthrough, even with --btmac flag.
Scott Leibrand
@scottleibrand
Mar 07 2017 23:41 UTC
it was not designed to do this sort of mixed interactive and command-line setup. we'll need to tweak it a bit to support that
if you do oref0-runagain or otherwise specify all the required arguments, it will use the --btmac= argument, but looks like it reprompts you for it otherwise, which is kind of silly
with the way the script is set up right, now, it'd make more sense to run --btmac=yes or something. running --btmac=AA:BB:CC:DD:EE:FF or --btmac=anythingelse just makes it ask later
Scott Leibrand
@scottleibrand
Mar 07 2017 23:46 UTC
maybe we should have it do something like "You entered --btmac=<whatever>: is that your phone's correct Bluetooth MAC? y/[N]" and not re-prompt if they say yes?
if anyone feels like taking on something like that, a PR would be welcome.
Dana Lewis
@danamlewis
Mar 07 2017 23:48 UTC
:+1:
katie disimone
@Kdisimone
Mar 07 2017 23:54 UTC
That would be fantastic. Lazy me…MAC addresses are a pain to type in.