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

24th
May 2015
Ben West
@bewest
May 24 2015 00:14
:-)
Matthias Granberry
@mgranberry
May 24 2015 00:25
Grr. I just spent 2h trying to figure out why a Google Places location filter wasn't working, only to find out by decompiling code that the constructor that takes a filter doesn't actually do anything with it. I'm sensing a "low-usage" API/service here.
diabeticgonewild
@diabeticgonewild
May 24 2015 01:54
Guys check out diabeticgirlproblems on Twitter. It's pretty funny at least to me
diabeticgonewild
@diabeticgonewild
May 24 2015 02:45
So annoyed. Amazon doesn't host direct links to uploads, and I had uploaded over half of the 7.4 GB file on Amazon Cloud Drive. Of course I didn't realize I had Google Drive through school with 10 TB (yes terabytes!) of space so yay for freeloading. But I am not going to sleep until it's all uploaded. It's for my sanity.
diabeticgonewild
@diabeticgonewild
May 24 2015 03:00
Or insanity. Or sanity. I really don't know.
diabeticgonewild
@diabeticgonewild
May 24 2015 03:34
Happy dance! It uploaded to my school's server super fast (it's managed by my school, not Google)! All 7.4 GB!
diabeticgonewild
@diabeticgonewild
May 24 2015 04:37
I tested the (hopefully) accessible image I uploaded to Google. I'm sure I am going to have to make modifications, though. I freshly installed it to the micro SD card using Win32 Disk Imager. Then I ran it and connected it to ethernet and remotely accessed it via SSH. Then I connected it to a WiFi network that was secured with the SSID broadcasted. Then I went to the OpenAPS project I created, added my pump, read data off of my pump.
My last big sanity check is seeing if the image that I uploaded to Google Drive is the same and works in the same way as the image I just tested.
I am going to try to write a step by step guide tonight as I am too excited to sleep. Remember this is intended for people who would otherwise have trouble accessing the Pi.
They are doing accessing the Pi remotely via SSH on a computer with a screen reader already installed, such as Windows with JAWS (Job Access with Speech), Mac OS X with VoiceOver, or iOS with VoiceOver
Ben West
@bewest
May 24 2015 05:13
got my raspberrypi :-)
got avahi-daemon installed
now I can ssh pi@raspberrypi.local
diabeticgonewild
@diabeticgonewild
May 24 2015 05:15
yeah I didn't do that. I couldn't set it up without messing up!
Ben West
@bewest
May 24 2015 05:15
apt-get install avahi-daemon
that's it
there's no config
diabeticgonewild
@diabeticgonewild
May 24 2015 05:15
oh, I didn't know that
Ben West
@bewest
May 24 2015 05:16
I had to run apt-get upgrade, apt-get update to get the package info
diabeticgonewild
@diabeticgonewild
May 24 2015 05:16
I can make mods to the image later on. I need to write a guide for the VIs that are going to use the image.
Yeah, no biggie, but thanks for mentioning that!
Ben West
@bewest
May 24 2015 05:17
now trying sudo easy_install -Z openaps
diabeticgonewild
@diabeticgonewild
May 24 2015 05:17
But I am going to try to go to sleep. I feel relieved though as I am pretty sure I got it work decently for them so they can hit the ground running
Ben West
@bewest
May 24 2015 05:18
I think users should run openaps init themselves
diabeticgonewild
@diabeticgonewild
May 24 2015 05:19
Well, I can fix that next time

Link generated for sharing via Google: https://drive.google.com/file/d/0BwpZZGUdo-RWLTdIb3RQaUgwbVE/view?usp=sharing

Permalink generated for sharing via a generator: http://goo.gl/5cSA3P?gdriveurl

Permalink for direct download: http://goo.gl/xAXakc?gdriveurl

It's like a 7.4 GB image...
Ben West
@bewest
May 24 2015 05:19
if the image just have everything installed, it's fine to share
diabeticgonewild
@diabeticgonewild
May 24 2015 05:19
it has everything installed, minus the pump with the serial and stuff like that and adding the Dexcom, etc, etc
like the VIs can add WiFi via the Command Line/Terminal easily
Ben West
@bewest
May 24 2015 05:20
yeah, seems fine to share
dunno what the problem would be
diabeticgonewild
@diabeticgonewild
May 24 2015 05:20
it's so they can SSH remotely to the Pi so they can use the screen reader installed on the computer they are SSHing with
they can't install a screenreader on the Ubuntu image, on top of a screen reader on the computer they are SSHing with...
it is a mess...
Ben West
@bewest
May 24 2015 05:21
ah, need to run git config
diabeticgonewild
@diabeticgonewild
May 24 2015 05:21
?
oh you
got it
Ben West
@bewest
May 24 2015 05:21
new installs need to set git user name and email
pi@raspberrypi ~ $ openaps init bewest.openaps
Initialized empty Git repository in /home/pi/bewest.openaps/.git/

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident  <pi@raspberrypi.(none)> not allowed
diabeticgonewild
@diabeticgonewild
May 24 2015 05:22
yeah I put mine down...I don't care if somebody messes with my account honestly
Ben West
@bewest
May 24 2015 05:22
you should not distribute your email set there
it's supposed to be either the user themselves
diabeticgonewild
@diabeticgonewild
May 24 2015 05:23
yeah
Ben West
@bewest
May 24 2015 05:23
or some "machine" name, openaps-machine@openaps.org or something not real
diabeticgonewild
@diabeticgonewild
May 24 2015 05:24
yeah, well I have work to do...obviously
next revision, which will be soon...
I'm not to worried about it right now. So far I have got two VIs really interested. One of them is extremely excited
Ben West
@bewest
May 24 2015 05:25
nice I've everything installed
diabeticgonewild
@diabeticgonewild
May 24 2015 05:25
:D
I think I am going to take some Opium...help me get sleepy...nice huh?
Ben West
@bewest
May 24 2015 05:26
pi@raspberrypi ~/bewest.openaps $ sudo openaps-install-udev-rules 
installed /etc/udev/rules.d/80-medtronic-carelink.rules
installed /etc/udev/rules.d/80-dexcom.rules
pi@raspberrypi ~/bewest.openaps $
the openaps-install-udev-rules script installs udev rules for you
diabeticgonewild
@diabeticgonewild
May 24 2015 05:27
very nice!
Ben West
@bewest
May 24 2015 05:27
you'll probably want that included, it only needs once
diabeticgonewild
@diabeticgonewild
May 24 2015 05:28
got it. Saved it to my txt file so that I won't forget it.
I am going to try to do a "clean" install tomorrow...and update the image....
This message was deleted
This message was deleted
This message was deleted
diabeticgonewild
@diabeticgonewild
May 24 2015 05:33
This message was deleted
I thought I was private messaging LOL! Bedtime for me!
Pete Schwamb
@ps2
May 24 2015 05:35
This message was deleted
Ben West
@bewest
May 24 2015 05:38
good night :-)
diabeticgonewild
@diabeticgonewild
May 24 2015 05:41
good night!
diabeticgonewild
@diabeticgonewild
May 24 2015 06:11
The driver for the WiFi on that image uses this driver: http://www.tp-link.com/lk/products/details/?model=TL-WN725N it's like 10 bucks on Amazon...not bad
But need to go to bed...
diabeticgonewild
@diabeticgonewild
May 24 2015 11:32
Storm at my house. Power just went out. Just got sent a tornado warning on my phone. Going to be a stormy morning...
Holger Sanft
@holgi13
May 24 2015 12:02
@diabeticgonewild be careful - we saw the force of US Tornados
in german TV :-|
diabeticgonewild
@diabeticgonewild
May 24 2015 23:38
Oh I live south of that.... :D
Nevermind there was one south of me. Just saw on twitter...
Matthias Granberry
@mgranberry
May 24 2015 23:43
@ps2 I looked a bit at the datasheet for CC1111. Without actually testing the device, it looks like there is a tristate mode for non-ADC inputs. It should be possible to set the proper flags and consume almost 0 current for the voltage divider until the device actually uses it. I couldn't find what the resistance is for the pin in tristate mode from the datasheet, but that usually means it's "quite high"
Pete Schwamb
@ps2
May 24 2015 23:45
Ok, thanks! I’ll definitely try that out in the next rev; adding two resistors isn’t too bad at all. My circuit (that failed) had like 10 additional components.
Matthias Granberry
@mgranberry
May 24 2015 23:48
It might be possible to do something with the internal pulldown to cut one out, but I don't know how it's wired in and you don't want to let magic smoke out
Ben West
@bewest
May 24 2015 23:49
hehe
Pete Schwamb
@ps2
May 24 2015 23:49
Hah, they seal the smoke in pretty good; haven’t blown one yet (knock on wood).
Matthias Granberry
@mgranberry
May 24 2015 23:51
I'm amazed at what a lot of modern devices can withstand. I hooked the power/ground wrong on an AVR device and disconnected it when it smelled funny, only to find that it still worked after getting too hot to touch
anyone who says they're low-current obviously hasn't plugged 'em in backwards.
Ben West
@bewest
May 24 2015 23:52
lol
hmm, I have lots of memories of whisps of blue smoke as a youth
it's part of what drove me into software, partly why I'm so hesitant now
Pete Schwamb
@ps2
May 24 2015 23:53
Yeah, I’ve had similar results. I read all these warnings about handling these devices, and I’m wearing socks on carpet, smearing solder paste around, heating parts till they smoke, and making all kinds of electrical mistakes, but somehow still get stuff to work. :)
Ben West
@bewest
May 24 2015 23:53
lol
Matthias Granberry
@mgranberry
May 24 2015 23:54
yep. I've melted leads off of chips and just green-wired other pins onto the board and been fine
that's why I like routing all the IO pins out to a test point too.
Pete Schwamb
@ps2
May 24 2015 23:54
But when it doesn’t…. gah. Was telling Ben about the 1 bit printf I have to resort to when debugging firmware/circuits.
i.e. a LED
Matthias Granberry
@mgranberry
May 24 2015 23:54
lol
Ben West
@bewest
May 24 2015 23:55
yeah, having way to test quickly with enough info is key
anyone besides me digging into the contour nextlink protocol?
I've had little bit of success... the device has a very very simple protocol, but it's very finicky/modal
don't quite understand getting in/out of modes repeatedly/cleanly
pulled everything into new repo: https://github.com/bewest/bayer-medtronic-interface
Pete Schwamb
@ps2
May 24 2015 23:58
I always find dealing with usb to be a big headache. Part of why I went the BLE route.
Ben West
@bewest
May 24 2015 23:58
the usb handling itself seems ok
it's just groking what this thing expects in terms of the modes
it doesn't seem to follow the previous spec... although it's close