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

13th
Oct 2015
Matthias Granberry
@mgranberry
Oct 13 2015 00:00
https://github.com/square/duktape-android looks interesting for embedding openaps-js on Android.
Scott Leibrand
@scottleibrand
Oct 13 2015 00:11
nice
Peter Miller
@ochenmiller
Oct 13 2015 01:18
@oschumac , right now I've connected the wixel via USB. I posted an early sketch of this at (https://github.com/ochenmiller/wixelpi_uploader) a year ago, lots of updates since. I'll find time to update shortly.
@oschumac, next step is to connect wixel via the UART onboard the RPi to save some power.
Peter Miller
@ochenmiller
Oct 13 2015 01:38
Took the Hank the Pank on a road trip today, and results were good. Need to get it talking to pebble via iphone though, as it's a little unnerving not to have access to the logs when it's completely off the network. On the bright side, it was working completely off network!
Dana Lewis
@danamlewis
Oct 13 2015 01:38
:D
Peter Miller
@ochenmiller
Oct 13 2015 01:39
We are fortunate that our son is used to carrying a rather large diabetes kit - so another 3/4 pounds doesn't bum him out. Still, I'm looking forward to miniaturizing the whole affair.
@danamlewis and @scottleibrand, are you getting data out of the RPi to the pebble when you're not on a network?
Dana Lewis
@danamlewis
Oct 13 2015 01:46
@ochenmiller only if you plan ahead to make your pi hotspot
not super ideal/easy for on the go when you're coming in/out of a network
diabeticgonewild
@diabeticgonewild
Oct 13 2015 01:48
You can always use two Edimax adapters, and configure one to connect to hotspot, and one to be an access point.
Peter Miller
@ochenmiller
Oct 13 2015 01:49
I was thinking of always hanging the pi off an iphone for networking - but even with our jailbroken iphones I'm not seeing a way for the phone to pull data from the RPi via WiFi.
@diabeticgonewild - interesting idea
diabeticgonewild
@diabeticgonewild
Oct 13 2015 01:49
That's what the access point mode is for.
About a few weeks ago, I posted something on how to do that.
Peter Miller
@ochenmiller
Oct 13 2015 01:50
@diabeticgonewild, thanks, I'll look for it.
diabeticgonewild
@diabeticgonewild
Oct 13 2015 01:51
I would search for "mode" or something like that...
Rachel Sandlain
@audiefile
Oct 13 2015 01:56
aren't there ssh apps for iPhone? I've used my android as a hotspot then JuiceSSh to ssh in and check things out when I need to
diabeticgonewild
@diabeticgonewild
Oct 13 2015 01:59
Yeah but if you lose mobile access then hotspot mode is gone
Chris Oattes
@cjo20
Oct 13 2015 02:13
@ochenmiller you can work out the ip address of the rpi
I've got a non-jailbroken iphone, Ifound an iphone app that lets me ping ip-addresses. Which let me work out the IP of the pi
from there you can access it via ssh/web browser/etc
Dana Lewis
@danamlewis
Oct 13 2015 02:18
@cjo20 Don't you have to have connection ahead of time though? If you're off network?
Scott Leibrand
@scottleibrand
Oct 13 2015 02:28
if you're hotspotting, your Pi will always have the same 172.20.10.x address
diabeticgonewild
@diabeticgonewild
Oct 13 2015 03:27
You still have to be hotspoting though
Matthias Granberry
@mgranberry
Oct 13 2015 03:51
iPhones do multicast DNS. You can install avahi-daemon and connect to hostname.local or hostname.local. depending on how the resolver works.
diabeticgonewild
@diabeticgonewild
Oct 13 2015 04:01
Ahavi-daemon is preinstalled on Raspbian and you can connect via pi@raspberrypi.local, but hotspot needs to be up still.
Jason Calabrese
@jasoncalabrese
Oct 13 2015 05:22
@mgranberry duktape looks good, seems like that or something like ionic/phonegap, would be nice to hook into other apps like xdrip
Ben West
@bewest
Oct 13 2015 06:12
think my pi is overheating in my bag
I've never seen any equipment work when it's this warm, actually
Dana Lewis
@danamlewis
Oct 13 2015 06:15
Mine has gotten quite warm inside a bag before, but not sure if that's ever contributed to issues.
Ben West
@bewest
Oct 13 2015 07:00
oy, I've got quite a bit of work cut out for myself now between changing serial numbers and upgrading my own stuff
Ben West
@bewest
Oct 13 2015 08:28
based on what I'm seeing here...
when it gets warm, git becomes corrupted
I bet your git corruption issues are due to overheating
well, bit preliminary for that
for me, the two definitely seem to be linked
hmmmm
or not
Ben West
@bewest
Oct 13 2015 08:36
ah, fixed
that was very odd though
I think it overheated
Lori
@LoriLori
Oct 13 2015 08:39
you can use "sync" command after git
it will flush disk cache, make sure everything is written
Ben West
@bewest
Oct 13 2015 08:39
I can see in the reflog the last one is corruptted
Lori
@LoriLori
Oct 13 2015 08:39
or mount sd in no write cache
Ben West
@bewest
Oct 13 2015 08:39
the last contents in the file are garbage
Lori
@LoriLori
Oct 13 2015 08:40
sync is linux command not git
Ben West
@bewest
Oct 13 2015 08:40
yeah, it's good point, should add sync in several places
I think it's there actually
ah, I'm using flush in python to similar effect
hmmm wonder if sync would have helped here
Lori
@LoriLori
Oct 13 2015 08:41
see no reason why it shouldn't help
Ben West
@bewest
Oct 13 2015 08:41
looks like stuff made it into files
oh... myabe not
the last line in reflog was garbage
and bunch of loose blobs
but checkout was fine
hmmm
Chris Oattes
@cjo20
Oct 13 2015 09:16
danamlewis: sorry, I went to bed. Connection to what ahead of time?
Matthias Granberry
@mgranberry
Oct 13 2015 13:50
@jasoncalabrese what do you mean "hook into other apps like xDrip"? Do you mean have a separate app that listens to xDrip information without the network or do you mean an extension to xDrip that processes data on its own?
Alex
@SuicidalTissue
Oct 13 2015 15:14
http://puu.sh/kIPvn/6d9ddd972d.png Am I installing it wrong? Tried using easy_install and still getting the same message.
Ben West
@bewest
Oct 13 2015 18:02
ah
sudo apt-get install python-setuptools
Ben West
@bewest
Oct 13 2015 18:37
the pump I got, the radio/range is much,much.... worse
Ben West
@bewest
Oct 13 2015 18:44
whoah, gil's profile updated to say he works at medtronic diabetes now
oh, maybe he added it to his history
heh, he worked on adding cgm to the 522
Dana Lewis
@danamlewis
Oct 13 2015 18:51
@bewest hm, guess I should test the range on the 522/523 we're getting from a local to see how it compares. Maybe my current one is rotten compared to everyone else's, since everyone else seems to manage with one carelink by the bed?
Matthias Granberry
@mgranberry
Oct 13 2015 19:00
Why not get a USB male->female extension and run it under the sheets if it's an issue?
John Males
@johnmales
Oct 13 2015 19:07
@bewest the radio range is what I have really been struggling with my sons 554. The care link usb literally has to be on top of the pump to be reliable. When you are trying to figure out how this all works the frequent connection errors don't help.
Ben West
@bewest
Oct 13 2015 19:13
OR, I messed up the serial number
and it's fine
;-)
Chris Oattes
@cjo20
Oct 13 2015 19:14
@johnmales I'm not seeing the same with 554 range. I'm good up to a couple of feet
John Males
@johnmales
Oct 13 2015 19:23
Hmm I think I will need to be a little more systematic about this. I will try different USB sticks. I will look at the orientation of the pump and the sticks to see if there is anything I can do to optimize this.
Matthias Granberry
@mgranberry
Oct 13 2015 19:31
I'm a little shocked that range is so variable. I know they were aiming for a limited range in the design, but it seems a little ridiculous.
Oliver Schumacher
@oschumac
Oct 13 2015 19:52
@ochenmiller , That is supercool your repo. Maybe there is the posibility to update. if you have i little time. I want the same solution connect the wixel directly to rpi. I do have an Intel Edison with an connected wixel via uart. The com is working propperly. So i like to do so with rpi. Actually i do overnight's with openaps and rpi using xdrip data dowload from mongo. Next step is making a mobile rig with wixel.
How old is your son?
Chris Oattes
@cjo20
Oct 13 2015 19:54
I leave my 554 on my bed frame, and put my pi with carelink on the floor on the other side of my bedside table, and I don't have communications problems with it
Similarly, during the day I can have the pi on one side of my desk and my pump on the other
Dana Lewis
@danamlewis
Oct 13 2015 20:10
@mgranberry I have tried everything from under the sheet in the middle, on the side, etc. but will lose connectivity if I roll over. With this pump I seem to need one on headboard in middle of bed and one under on the side of the bed. That's why per ben's update I'm planning to test another 522, maybe mine is one with more limited range than everyone else's?
Oliver Schumacher
@oschumac
Oct 13 2015 20:15
@ochenmiller I use an simple python webserver for diag. So you can get pebble.json directly from pi. Also possible would be install a node with cgm_monitor on it. But maybe that would consume a lot of power from a mobile rig. But simple python webserver is a good start. To get a system status.
Alex
@SuicidalTissue
Oct 13 2015 20:22
@bewest Setup tools are already installed, tried this on 3 machines on ubuntu/debian/mac and all resolve in the same issue: http://puu.sh/kJ9qe/1c21325bfc.png
Ben West
@bewest
Oct 13 2015 21:30
sudo python setup.py install?
hmm
what branch is that?
why not just sudo easy_install openaps-contrib
it should be available from easy_install without needing git
John Males
@johnmales
Oct 13 2015 21:33
@danamlewis do you use a separate rpi for each care link? Also when you are setting up a new rpi do you clone the sd card or set each one up by cloning the appropriate got repositories?
Dana Lewis
@danamlewis
Oct 13 2015 21:34
@johnmales yes, have 4 raspberry pis :) 2 that (90% of time) stay home at bedside always, and 2 for mobile and dev work. Have done both ways - cloned SD, but also set up individually.
Key if you have multiples is make sure they're running same repos/versions, so they wouldn't be giving conflicting recommendations if they both happen to be in range (haven't seen any issues there).
Peter Miller
@ochenmiller
Oct 13 2015 21:35
@oschumac, son is 16. Almost 5 years a T1. Bright as a button, handsome, and the apple of my eye!
@oschumac, interesting to hear that you've got wixel and edison via UART working together. The Carelink stick has a serial connection between the USB chip and the microprocessor. I think it wouldn't be impossible to bypass the USB and also connect that to the edison too. Final challenge would be that I hear the python libraries won't install on edison.
Peter Miller
@ochenmiller
Oct 13 2015 21:42
@oschumac, the rest of the "special sauce" for my wixel to RPi is about creating cal records based on MBG and/or records from share. I'll post all the scripts to github.
Regarding positioning of RPi near bed, I'm considering mounting in on the ceiling above. Unless we're sleeping on top of the pump, that seems the best angle to have straight line for RF on average.
Peter Miller
@ochenmiller
Oct 13 2015 21:47
@bewest, I saw you post a few days ago that you'd made the interaction with your pump far more efficient, and gotten your loop to run in under a minute. Are your improvements posted anywhere at this point? Or can you give hints to replicate?
Oliver Schumacher
@oschumac
Oct 13 2015 21:50
@ochenmiller Sounds good. My Son is 6 years so PRI mobile is not realy the same for me. I don't see him carry a rig. But i need a mobile solution.
Alex
@SuicidalTissue
Oct 13 2015 21:53
@bewest Nope, still not working on multiple instances: http://puu.sh/kJg8X/a8b9e8fc24.png
Oliver Schumacher
@oschumac
Oct 13 2015 21:54
Python will work on edison. No prob i think. I have an wifi wixel python working on edison. jamorham/python-usb-wixel-xdrip is an interresting repo. The only change was USBtty to uarttty. But still no decocare working on edison.
Scott Leibrand
@scottleibrand
Oct 13 2015 21:58
@ochenmiller @bewest said it's in the dev branch. Hopefully he'll post the magic URL for easy_install -ZU. :-)
Oskar Pearson
@oskarpearson
Oct 13 2015 22:06
On the note of Edisons, carelink, USB and more:
I've spent a lot of time trying to get the Carelink to work on the Edison. Probably in the region of multiple days. The primary problem is that the Edison is USB 3, and there are known problems with the Carelink on USB 3
The Edison kernel doesn't currently support the latest kernels
The Intel forum moderators have said that a kernel upgrade is coming sometime soon, but haven't given any dates.
I've tried (unsuccessfully) to forward-port the Edison patches to the latest kernels. The Intel patches are a mess.
I've also tried back-porting the USB fixes to the original Edison kernels. Again without success (cherry-picking the specific patch)
Someone that knows the ins-and-outs of kernel development / the USB layer may do a better job. But I've been compiling and patching kernels since 1995 and after a few days decided it really wasn't likely to succeed until the Intel guys sorted things out
Let them deal with their funky hardware requirements and rejected patches :)
I've changed focus to instead try and get a USB CC1111-based wireless device trying to talk to the pumps
Oskar Pearson
@oskarpearson
Oct 13 2015 22:12
I can also now say that the Ciseco SRF stick does not work with any of the known firmwares I've found, and after some chatting to the Ciseco guys on IRC it seems like they can't give us much guidance.
(at least at the moment... it may change...)
I've now bought the TI CC1111EMK868-915 device. I've had much more success flashing it (eg: I got rfcat to work, and some success on mmcommander)
I'm going to be testing that for range and reliability next
Dana Lewis
@danamlewis
Oct 13 2015 22:16
wow, thanks for all the work & updates @oskarpearson!
Oskar Pearson
@oskarpearson
Oct 13 2015 22:16
I'm going to try and proceed with bewest/decoding-carelink#135 there.
Sure @danamlewis... It'd be great if I actually had some successful output!
So far I've got a list of things that haven't worked. I'm keen to have something that actually does work! :)
Dana Lewis
@danamlewis
Oct 13 2015 22:17
Well, sharing your knowledge prevents other people from replicating work, so still consider it a success, even if it's not what you were hoping for! @oskarpearson
"I have not failed. I've just found 10,000 ways that won't work." - Thomas Edison.
:)
Oskar Pearson
@oskarpearson
Oct 13 2015 22:18
That's pretty much how I feel right now :) Thanks!
Ben West
@bewest
Oct 13 2015 22:42
it's in the setup.py:
I could use some help keeping this kind of doc up to date
maybe some one can write a tool that just spits out the right right url for a version
      'http://github.com/compbrain/dexcom_reader/tarball/master#egg=dexcom_reader-master',
      'https://github.com/bewest/dexcom_reader/tarball/master#egg=dexcom_reader-0.0.7-dev-1',
      'https://github.com/bewest/decoding-carelink/tarball/master#egg=decocare-master',
      'https://github.com/bewest/decoding-carelink/tarball/dev#egg=decocare-0.0.18-dev-1',
Tim Howard
@tghoward
Oct 13 2015 22:52
@danamlewis I've been stuck on rpi.md with trying to get my phone to talk to the RPi (never had problems with my 'pooter). I'm almost there (just connected via ssh and now need to see if the RPi can see it as a hotspot) and once I figure out these details I'll try to update the doc. Scott snuck in a few tweaks to rpi.md (good! I'm slow!), but it would be easier for me if you could accept his pull request before I go back to editing - so I can pull down the updated master. At least I think that's the easiest way to move forward, right?
Tim Howard
@tghoward
Oct 13 2015 23:09
Actually, thinking more about it, I can continue on my merry way and then do a rebase and clean up before submitting a PR. So no rush.
Dana Lewis
@danamlewis
Oct 13 2015 23:32
Ya, sounds good!