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

26th
Sep 2015
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:08
See this is what I got so far for the intro. Still have to reread through it eventually again, probably multiple times. It looks a lot cleaner. @danamlewis you do communicate concisely, relative to the amount of text you write. However, there are key words that sometimes you previously used that you replace with another word that could have been used instead to convey ideas and reinforce the approach. But you do write very well.
I am trying to avoid long paragraphs cause this is heavily formatted, just in general.
Ben West
@bewest
Sep 26 2015 00:40
just got off phone with medtronic
Ali Mazaheri
@amazaheri
Sep 26 2015 00:40
do tell
d21
:)
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:41
yeah, that's cool.
Ben West
@bewest
Sep 26 2015 00:41
only available pumps in US are x23 and x30g
that's it
the post-recall x23s
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:41
That sucks.
Chris Oattes
@cjo20
Sep 26 2015 00:42
@bewest what were you hoping for?
Ben West
@bewest
Sep 26 2015 00:42
well, no, but good to get information verified
they've been trained to avoid talking about any other pump
as if they don't exist, even
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:42
just talking to the low level staff?
Chris Oattes
@cjo20
Sep 26 2015 00:42
haha
Ben West
@bewest
Sep 26 2015 00:42
yeah
he wanted to know what command was missing etc
reviewed with me how basal schedules work and how you can have up to 8....
Chris Oattes
@cjo20
Sep 26 2015 00:43
so you can't get 554's over there?
Ali Mazaheri
@amazaheri
Sep 26 2015 00:43
lol
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:43
nope, not in 'murica
Ben West
@bewest
Sep 26 2015 00:43
gently explained that it's a static rate, whatever is
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:43
I edited this and it now looks a little bit better.
Ben West
@bewest
Sep 26 2015 00:45
suggested googling openaps
went through how it works
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:45
LMAO
Ali Mazaheri
@amazaheri
Sep 26 2015 00:45
hahahaha
Ben West
@bewest
Sep 26 2015 00:45
he said, oh that seems pretty cool
Ali Mazaheri
@amazaheri
Sep 26 2015 00:45
he he he
Ben West
@bewest
Sep 26 2015 00:45
was nice conversation
just lowered my expectations
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:45
hahahaha!
damn
Ben West
@bewest
Sep 26 2015 00:47
was nice call
I sent him an email with all my questions ahead of time
Ali Mazaheri
@amazaheri
Sep 26 2015 00:47
now that is over, can I have a RileyLink pls
:)
Ben West
@bewest
Sep 26 2015 00:49
said he had planned on reading a book tonight
and decided he had just changed his plans to reading openaps website
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:50
@danamlewis what cables do you use to connect the CareLink stick? Long/short/whatever, or whoever else can answer
LMAO!
Chris Oattes
@cjo20
Sep 26 2015 00:50
@diabeticgonewild male to female USB
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:51
Yeah I don't read. My parents told me before I started college that I could do nursing, teaching, or engineering, but I was pressured to do engineering, but it was definitely an aquired love.
I know, but if I could get a specific rec...well I guess I can look on Amazon myself. :D
Chris Hannemann
@channemann
Sep 26 2015 00:52
@diabeticgonewild this is the one I use for my CL stick; it's a bit specific as it allows me to do a wrap-around and fit in the case I use: http://www.amazon.com/gp/product/B00ZQVADNM
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:52
I could pick those majors cause I don't read
cool
thanks @channemann
Chris Hannemann
@channemann
Sep 26 2015 00:52
np
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:53
The hardware page definitely needs cleaning. I am focusing on cleaning and having everything follow a convention, then I am going to add stuff. Like the "glossary" only covers T1D stuff not technical computer stuff
Like people do need to know the difference between a bash shell script and a daemon, why the GUI is used instead of command line, etc.
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:54
best way to get wifi setup on the pi is to edit the conf on the sd card?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:54
Those right angled cables work better.
@jasoncalabrese if using Mac or Windows an open source Ext4 extension handler
like a piece of software that handles ext4 partitions
Linux can natively handle it.
Chris Oattes
@cjo20
Sep 26 2015 00:55
@jasoncalabrese I used the gui, far easier than the config files
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:55
I need to work on the install process too.
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:55
think I need the adapter to read the small sd card
Chris Oattes
@cjo20
Sep 26 2015 00:55
@jasoncalabrese what distro do you have?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:55
You can get a USB to micro SD adapter
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:55
just got the default canakit
just picked the first one in the list
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:56
Windows software for ext4 partitions: http://www.ext2fsd.com/
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:56
using a mac
Chris Oattes
@cjo20
Sep 26 2015 00:56
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:56
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:56
but could use my linux box too
Chris Oattes
@cjo20
Sep 26 2015 00:56
you don't need to play around wityh mounting it
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:56
yeah, came with a card
think it was preinstalled
Chris Oattes
@cjo20
Sep 26 2015 00:57
then hook it up to a monitor and use the gui, just to get the wifi setup
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:57
Linux is more convenient in some ways. I need to improve the install process by adding that info and taking screenshots.
Chris Oattes
@cjo20
Sep 26 2015 00:57
it's so much easier than playing around with command line stuff for wifi
Ben West
@bewest
Sep 26 2015 00:57
not sure screenshots are good
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:58
wasn't thinking of plugging it in to a screen, but guess that is easy
diabeticgonewild
@diabeticgonewild
Sep 26 2015 00:58
Sometimes also @jasoncalabrese when running raspi-config the file etc/network/interfaces gets rewritten and you can't SSH back in. So you have to plug the SD card back into the computer, access the Ext4 partition, and rewrite the files.
It gets rewritten sometimes upon reboot.
startx loads the GUI for Raspbian
so you can do WiFi config
Chris Oattes
@cjo20
Sep 26 2015 00:59
@jasoncalabrese it's easier than screwing around with wifi configs :P I spent a good 10-15 mins trying to get it to connect using the config files. Plugged it in to a monitor, had it sorted in under 2 mins :P
Jason Calabrese
@jasoncalabrese
Sep 26 2015 00:59
I'm fine with ssh once it's on the network
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:00
Yeah but just know after you reboot after running raspi-config you may need to recreate etc/network/interfaces and maybe even boot a couple of times to confirm that it didn't rewrite again out of neuroticness....
Jason Calabrese
@jasoncalabrese
Sep 26 2015 01:00
that will be my project tonight
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:00
yeah it's not bad.
Ben West
@bewest
Sep 26 2015 01:01
I used some wpa_foo tool
it prints the right config so you can | tee -a /etc/wpa_supplicant.conf or whatever
Jason Calabrese
@jasoncalabrese
Sep 26 2015 01:02
remember some of that from way back when I was using gentoo
Ben West
@bewest
Sep 26 2015 01:02
iwlist scan or something prints all the ssids
wpa_passphrase
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:03
Just do startx. Convenient and fast. I did get used to command line though.
Dana Lewis
@danamlewis
Sep 26 2015 01:06
@diabeticgonewild re all commentary on docs, PR PR PR :) so people can see your edits and rationale in context to what's there now.
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:07
K I guess I will start doing it now. Better now than never.
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:15
Ok so how do you make a repo a fork? I can't make a PR until this is forked from openaps/docs. https://github.com/diabeticgonewild/docs
Chris Oattes
@cjo20
Sep 26 2015 01:16
you didn't do what I said to do when you were looking to set this up?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:17
I tried
Jason Calabrese
@jasoncalabrese
Sep 26 2015 01:17
think I'd rather see minimal docs with the basic step, and have the notes/commentary somewhere else
maybe just a good outline
Chris Oattes
@cjo20
Sep 26 2015 01:17
https://github.com/openaps/docs go to that page, click "fork" then follow the instructions on that page
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:18
I would agree on a good outline...
Chris Oattes
@cjo20
Sep 26 2015 01:19
you should have said that at the time
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:19
I did
I have tried everything. I have worked at this for hours. Don't blame this on me.
Chris Oattes
@cjo20
Sep 26 2015 01:20
Got it now.
Once I ditched `Git Bash` for `Windows Command Line` things got a lot simpler....crazy
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:20
I am using Git Bash right now. I am stressed out from this.
Dana Lewis
@danamlewis
Sep 26 2015 01:21
Try using GitHub, i follow the green buttons as Ben says
Jason Calabrese
@jasoncalabrese
Sep 26 2015 01:21
don't be stressed over this
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:21
I can't it won't merge.
Ben West
@bewest
Sep 26 2015 01:21
forking is a github only thing
Jason Calabrese
@jasoncalabrese
Sep 26 2015 01:21
not a big deal
Ben West
@bewest
Sep 26 2015 01:21
the way to fork on github is to find the fork button
Chris Oattes
@cjo20
Sep 26 2015 01:21
the buttons on the site won't fork it for her because she already has a fork
Ben West
@bewest
Sep 26 2015 01:21
that's the only way to manage forks
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:22
Yeah
Oh
Chris Oattes
@cjo20
Sep 26 2015 01:22
which is in some weird state where she can't manage to merge it properly
Ben West
@bewest
Sep 26 2015 01:22
you can also do something special locally
you can have multiple "repos" from github in a single checkout
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:22
I think this can do it
Chris Oattes
@cjo20
Sep 26 2015 01:22
she needs to modify the remote origin path
Ben West
@bewest
Sep 26 2015 01:22
dont' modify it
just add another
git remote add authors git....
you can add any number ;-)
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:23
don't understand the syntax of that command...
Ben West
@bewest
Sep 26 2015 01:25
there's always help git remote add -h
Chris Oattes
@cjo20
Sep 26 2015 01:25
I think what she wants is probably
git remote rename origin upstream
git remote add origin git@github.com:diabeticgonewild/docs.git
Ben West
@bewest
Sep 26 2015 01:25
right
upstream is great name
Chris Oattes
@cjo20
Sep 26 2015 01:25
upstream is what most of the guides use
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:26
I get fatal: remote upstream already exists
upon entering the first command
Chris Oattes
@cjo20
Sep 26 2015 01:26
what is the output of git remote -v
Ben West
@bewest
Sep 26 2015 01:26
git remote -v
this is good learning, the openaps commands all work this same way
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:27
This message was deleted
ss.jpg
Hahaha accidentally uploaded my school schedule that I am not currently enrolled in
Pete Schwamb
@ps2
Sep 26 2015 01:27
@bewest, while I find your “big bag” in the pump theory fascinating, I think there is a simpler answer for the behavior you see. :)
Ben West
@bewest
Sep 26 2015 01:28
big bag
which behavior?
Chris Oattes
@cjo20
Sep 26 2015 01:28
@diabeticgonewild so how have you tried to do the PR?
Ben West
@bewest
Sep 26 2015 01:28
I'm very intrigued
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:29
I can't because I don't have a fork
Chris Oattes
@cjo20
Sep 26 2015 01:29
read the question again
Pete Schwamb
@ps2
Sep 26 2015 01:29
The pump is normally in a cycle where it only periodically turns on RX (since doing RX takes energy). The “power on” command has to be sent many times, to hit one of those RX windows. When the pump finally receives the power on command, it turns RX on for the duration specified.
Ben West
@bewest
Sep 26 2015 01:29
oh capictor
ah
Pete Schwamb
@ps2
Sep 26 2015 01:30
yeah. :)
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:30
I cleaned up some of the documentation...
Ben West
@bewest
Sep 26 2015 01:30
so it's used for priming/rewind maybe?
Pete Schwamb
@ps2
Sep 26 2015 01:30
When you issue a power on command, it’s really sending a 100 or so packets out.
Chris Oattes
@cjo20
Sep 26 2015 01:30
@bewest or changing the battery
some settings aren't battery-backed (like the clock)
which is why you get A21 (I think) if you leave the battery out too long
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:31
I feel like throwing my computer against a wall.
Chris Oattes
@cjo20
Sep 26 2015 01:32
@diabeticgonewild try git push -u origin master
Ben West
@bewest
Sep 26 2015 01:32
@diabeticgonewild I'm having trouble seeing the picture, is it possible to paste the output of git remote -v?
oh, what's this shell stuff are you in middle of merging somehow?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:33
Not in Git Bash. You can click on the pic.
unless you are on mobile.
Chris Oattes
@cjo20
Sep 26 2015 01:33
git remote -v looks right
Ben West
@bewest
Sep 26 2015 01:33
you have two remotes pointing to your docs fork
idea is to have remote upstream pointing at your docs fork
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:34
it says to fetch first. Gave me an error @cjo20
Ben West
@bewest
Sep 26 2015 01:34
and a second remote, origin pointed at your main repo
what was your orinal repo?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:34
diabeticgonewild/docs_messedup
the one I want to PR is diabeticgonewild/docs
Chris Oattes
@cjo20
Sep 26 2015 01:35
@bewest in that output, origin is pointing at her diabeticgonewild/docs repo, upstream is pointing at the openaps/docs repo
Ben West
@bewest
Sep 26 2015 01:35
git remote add authored https://github.com/diabeticgonewild/docs_messedup.git
right, but this repo is actually docs_messedup, right?
Chris Oattes
@cjo20
Sep 26 2015 01:35
no
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:36
yeah
Ben West
@bewest
Sep 26 2015 01:36
oh
ok
this is the only way to create a fork in github, git doesn't know anything about this thing called "forks", it's a github invention
Chris Oattes
@cjo20
Sep 26 2015 01:38
@bewest she can't because she already has a fork, docs_messedup.git, which github will just take her to when she clicks it
Ben West
@bewest
Sep 26 2015 01:38
oh great
then do what I said earlier
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:38
yeah jacked up
ok the 'add authored` or whatever?
Ben West
@bewest
Sep 26 2015 01:38
git remote add author https://github.com/diabeticgonewild/docs_messedup.git
er fork
git remote add fork ...
Chris Oattes
@cjo20
Sep 26 2015 01:39
that repo has different changes and isn't up-to-date with openaps/docs
Ben West
@bewest
Sep 26 2015 01:39
it's ok
we'll solve that shortly
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:39
it worked...no errors
Ben West
@bewest
Sep 26 2015 01:39
first thing is to get a single checkout with 3 remotes
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:39
but I think docs_messedup.git is my old repo
Ben West
@bewest
Sep 26 2015 01:39
it's fine
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:39
actually I know it is, so
Ben West
@bewest
Sep 26 2015 01:39
that's the acutal fork right?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:39
yeah
crazy you know this...must have had "fun" on git
Ben West
@bewest
Sep 26 2015 01:40
ok, can you give me git remote -v again?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:41
ss3.jpg
Sorry it's a screenshot
Ben West
@bewest
Sep 26 2015 01:41
yeah, prefer for text to be text
ok
git fetch fork
git fetch upstream
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:42
both worked
Ben West
@bewest
Sep 26 2015 01:42
everything we're about to do will work :-)
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:42
cool!
Ben West
@bewest
Sep 26 2015 01:42
git checkout -b forked_master fork/master
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:43
didn't work
docs: need merge
Ben West
@bewest
Sep 26 2015 01:43
ah
git merge --abort
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:43
docs/Hardware/hardware.md: needs merge
Ben West
@bewest
Sep 26 2015 01:44
at this point I'm going to assume all your work is saved in git
you've already commited everything, and we can restore everything from history
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:44
stupid but I saved it in github.com
Ben West
@bewest
Sep 26 2015 01:44
no worries
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:45
says docs appears as both a file and directory
I made the mistake of naming the repo the same name as the directory
or other way around
Ben West
@bewest
Sep 26 2015 01:45
git checkout -f -b forked_master fork/master
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:45
and so it created another directory named docs
Branch forked_master set up to track remote branch master...
Ben West
@bewest
Sep 26 2015 01:46
great
git checkout -b forked/wip/older-edits
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:47
switched to new branch
Ben West
@bewest
Sep 26 2015 01:47
great
git push -u fork forked/wip/older-edits
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:48
branch forked set up to track
branch forked/.... set up to track
Ben West
@bewest
Sep 26 2015 01:49
ok let me pause here and let me understand what we're trying to do
you want content from your docs (origin) to be able to go into PR for upstream?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:50
it's already forked now
I have a fork on the diabeticgonewild/docs page!
Ben West
@bewest
Sep 26 2015 01:51
I know
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:51
oh
PR for upstream aka openaps/docs
Ben West
@bewest
Sep 26 2015 01:51
where is the work you want to propose to openaps/docs?
it's on your github currently?
in your docs repo?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:52
in readme.md and /docs/Hardware/hardware.md on github.com/diabeticgonewild/docs
yeah
not hardware
Ben West
@bewest
Sep 26 2015 01:52
ok
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:52
I ****ed up
Ben West
@bewest
Sep 26 2015 01:52
git fetch docs
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:52
I meant /building-a-system/system.docs
Ben West
@bewest
Sep 26 2015 01:53
the files don't matter for this part
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:53
worked
just tired
Ben West
@bewest
Sep 26 2015 01:54
git checkout -b dgw/wip/improvements docs/master
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:55
branch dgw/.... set up to track...
Ben West
@bewest
Sep 26 2015 01:55
git push -u fork dgw/wip/improvements
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:56
`branch dgw/... set up to track remote branch dgw/.../improvements
Ben West
@bewest
Sep 26 2015 01:57
to reset your master to match the upstream master
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:57
Thank you so much! I owe you! <3 !
Ben West
@bewest
Sep 26 2015 01:57
git checkout -b upstream_master upstream/master
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:57
switched to new branch upstream_master
Ben West
@bewest
Sep 26 2015 01:57
git push -f -u fork upstream_master:master
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:59
branch upstream_master set to track remote branch master from fork by rebasing
diabeticgonewild
@diabeticgonewild
Sep 26 2015 01:59
Yay! Thank you so much! :D
Ben West
@bewest
Sep 26 2015 01:59
now last thing
to catch up your prior work...
this part may not work and is optional if your satisfied
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:00
yeah?!
Ben West
@bewest
Sep 26 2015 02:00
but yeah, let's try it
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:00
k
Ben West
@bewest
Sep 26 2015 02:00
git checkout forked/wip/older-edits
git checkout -b older-edits/rebased
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:01
switched to branch forked
switched to a new branch older-edits/rebased
Ben West
@bewest
Sep 26 2015 02:01
git rebase upstream_master cross fingers
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:01
LOL!
it failed to apply a patch. I will learn this as I go....
Thank you so soooooo much!
Ben West
@bewest
Sep 26 2015 02:03
you can use git diff to see if it's worth repairing or not
right now you are in odd state and should get out of it
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:03
k
Ben West
@bewest
Sep 26 2015 02:03
git rebase --abort to return to somthing normal
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:03
cool!
Ben West
@bewest
Sep 26 2015 02:03
followed by git checkout dgw/wip/improvements to get you back to your main working area
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:04
k did that
I owe you!
Ben West
@bewest
Sep 26 2015 02:04
so git show should show you the last change you made on github
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:04
yeah that's awesome!
Ben West
@bewest
Sep 26 2015 02:04
you can only do PRs with docs_messedup repo
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:05
oh
Ben West
@bewest
Sep 26 2015 02:05
because "fork" is a github flag, has nothing to do with git
git knows nothing about forks
diabeticgonewild
@diabeticgonewild
Sep 26 2015 02:05
k
Put in a new PR! openaps/docs#14
I need to go to the grocery store. I am super tired. Thank you @bewest and @cjo20 !
Dana Lewis
@danamlewis
Sep 26 2015 02:10
W
Woot!
Ben West
@bewest
Sep 26 2015 03:59
it temped me
nifty
it untemped me
Scott Leibrand
@scottleibrand
Sep 26 2015 04:04
:-)
Ben West
@bewest
Sep 26 2015 04:04
30 seconds....
here goes
diabeticgonewild
@diabeticgonewild
Sep 26 2015 04:07
Am I missing something?
Dana Lewis
@danamlewis
Sep 26 2015 04:08
@diabeticgonewild , @bewest Is testing his loop
diabeticgonewild
@diabeticgonewild
Sep 26 2015 04:08
Awesome!
Ben West
@bewest
Sep 26 2015 04:31
hah, got rid of the ugly error at the end if there's no recommendation too
Ben West
@bewest
Sep 26 2015 04:50
looks like transferring through the body is not going to work
Ben West
@bewest
Sep 26 2015 05:21
@danamlewis what bg targets are you working with?
Scott Leibrand
@scottleibrand
Sep 26 2015 07:56
110-120
Ben West
@bewest
Sep 26 2015 07:56
ah ok
I think it's my max_iob
it's at 0
so even though I'm ticking upward pretty strongly it's exceeding max iob
Scott Leibrand
@scottleibrand
Sep 26 2015 07:57
yep, that's default safe mode
we have it at 2
Ben West
@bewest
Sep 26 2015 07:57
is it json doc?
or just literal on command
Scott Leibrand
@scottleibrand
Sep 26 2015 07:58
max_iob.json
just the one value.
Ben West
@bewest
Sep 26 2015 08:00
hmm
or is it in profile?
ah, indeed, it's get-profile that does it
Scott Leibrand
@scottleibrand
Sep 26 2015 08:02
Ya
If max_iob.json exists get-profile will use it. Otherwise 0.
Ben West
@bewest
Sep 26 2015 08:05
there we go
now it basals
Scott Leibrand
@scottleibrand
Sep 26 2015 08:11
:-)
Ben West
@bewest
Sep 26 2015 08:13
interesting it chose to max basal to 2.0 though
it'll probably cancel that soon
Scott Leibrand
@scottleibrand
Sep 26 2015 08:14
Not unless you start dropping.
What's your max_iob?
with a max basal of 2 it will take quite a while to get much IOB.
Ok, back to bed for me. Have a good night.
diabeticgonewild
@diabeticgonewild
Sep 26 2015 16:56
Damn gut pain. I will admit that I am high right now due to drugs. 😁😜
Also set up a Nightscout site: diabeticgonewild.herokuapp.com ...but I don't have it running right now. If you want to use a custom URL do you do that through Heroku settings? Also, is there any configuration that is not published in the Labs section of Nightscout.info that any of you may recommend?
I am also getting an Apple Watch for Christmas! (I'm not religious, but family is semi-religious...) I have been waiting almost a year to get one!
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:01
Or since it came out. J/K...see I'm high. No shame in admitting to that either.
Oh nvm I know how to use a custom URL. It's not in Heroku. You set a server setting in the new custom URL to redirect from the Heroku App website for my custom NS configuration in my case...well there is multiple ways of doing that. But yeah I am high😉
Ben West
@bewest
Sep 26 2015 17:39
cgm gave me ??? the moment I hopped into bed
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:41
did you ever turn raw on?
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:42
That sucks big time, but at least you picked up on it.
Ben West
@bewest
Sep 26 2015 17:42
no, was going to start looking at the NS plugings
need a way to see what's happening from bed
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:43
Does OpenAPS use RAW values or Filtered values? Either way I think that option should be added, even to the reference design and to the openaps/docs page. Could be a safety feature either way you go.
Probably uses filtered...
Ben West
@bewest
Sep 26 2015 17:43
NS was blaring alarms all night, it turns out if several alarms stack up, dismissing the latest won't clear all he alarms from the original PC
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:44
So it's a networking issue...
Ben West
@bewest
Sep 26 2015 17:44
no
enable=rawbg
?
time to turn on iob cob rawbg
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:45
yeah
ENABLE="iob cob rawbg basal bwp"
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:46
So does OpenAPS system have the option to use rawbg
Ben West
@bewest
Sep 26 2015 17:46
ah, basal
no
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:46
I'm probably going to pull bg from NS
like others do for share
Ben West
@bewest
Sep 26 2015 17:46
yeah, that's what I'm doing
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:47
I think that would be a good idea, given that sensor age could be added to the OpenAPS setup and used as a guide
That's a good idea @jasoncalabrese and @bewest
Ben West
@bewest
Sep 26 2015 17:47
I added curl + json as single 'device'
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:47
but first need to mess with the pi, don't feel like hooking it up to a tv or mess withthe sd card
Ben West
@bewest
Sep 26 2015 17:47
nah, don't do that ;-)
I used the serial/console cable
they usb cable that breaks out to serial pins
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:48
I'm also thinking about using the BG predictions from PredictBGL using RestAPI
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:48
not sure I have that
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:48
But that's a side thing.
Ben West
@bewest
Sep 26 2015 17:48
3 pins gives you console access
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:48
the kit came with a hdmi cable,but that would mean find a usb keyboard too
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:48
There really isn't a need for a console cable for the Raspberry Pi for what we are doing.
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:49
wish it would start it's own wifi network on boot or something
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:49
How far did you get along in the setup @jasoncalabrese ? Just curious...
Ben West
@bewest
Sep 26 2015 17:49
the console cable allows you to do everything without a monitor, keyboard, or mouse
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:49
I think there is a script somewhere deep in the Internet that lets you configure WiFi without boot.
Somewhere deep in the Internet
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:50
funny how the little things get in the way
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:50
Trying to find it... Googling script raspbian wifi boot with some success
But I am high from drugs right now. Not going to lie
Ben West
@bewest
Sep 26 2015 17:51
wpa_passphrase is the command, and you simply wpa_passphrase "My Network" "my netwokr passphrase" | tee -a /etc/wpa_supplicant/wpa_supplicant.conf
that's the simplest and quickest way by far
Jason Calabrese
@jasoncalabrese
Sep 26 2015 17:51
took it out of the box then put in the pile of old pumps RileyLinks, and then went back to the easy to play with NS stuff
Ben West
@bewest
Sep 26 2015 17:52
I had to remove xserver,gui, gnome and bunch of other unneeded stuff to free enough space to use the device
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:52
Too bad it isn't included in NOOBS...a script like that
Ben West
@bewest
Sep 26 2015 17:52
wpa_passphrase ?
it came on my rpi by default
[device "ns-glucose"]
fields = 
cmd = bash -c
vendor = openaps.vendors.process
args = (curl -s bewest.labs.diabetes.watch/api/v1/entries.json"?type=sgv" | json   -e "this.glucose = this.sgv"  )
this allows eg openaps use ns-glucose shell to fetch latest glucose from Nighscout and transform it to the format openaps can use
there's a way to type it into shell using openaps add device ns-glucose process \"bash -c\" ......
but lot of special escaping required
easier to put in foo.sh in general
diabeticgonewild
@diabeticgonewild
Sep 26 2015 17:56
@jasoncalabrese check this out, particularly the second post. Looks like you can configure WiFi with NOOBS using an additional script. I know it's a lame excuse but I am too high to cleanly add this to openaps/docs Right now:
Ben West
@bewest
Sep 26 2015 17:56
I really like this one though:
See that
This is probably what you want: https://github.com/procount/noobsconfig/
But too high right now to make the docs cleaner!
Ben West
@bewest
Sep 26 2015 17:58
check-recommendation-and-enact = ! bash -c "json -f 02.diyps/diyps.json && test -n \"$(json -f 02.diyps/diyps.json duration rate | tr -d ' ')\" && (echo \"OK\" && openaps enact ) || echo \"No recommendation to send\""
this alias runs as openaps check-recommendation-and-enact
but it only runs openaps enact if there is a recommendation in that file ;-)
so no ugly python errors if it's not a recommendation
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:00
Still looking for something more specific that does the trick
Even though that theoretically works
Bingo! For Raspbian (not NOOBS) images! https://github.com/shamiao/raspi-wifi-blindscript
But Windows only
I think...damn impulsivity
Ben West
@bewest
Sep 26 2015 18:02
the right way to do this, and the simplest way is what I just described
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:02
Nah you need Linux.
Ben West
@bewest
Sep 26 2015 18:02
@bewest
wpa_passphrase is the command, and you simply wpa_passphrase "My Network" "my netwokr passphrase" | tee -a /etc/wpa_supplicant/wpa_supplicant.conf
that's the simplest and quickest way by far
one liner
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:03
What? Console cable?
Ben West
@bewest
Sep 26 2015 18:03
no scripts to copy/install
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:03
Sorry I am slow...
But I do have a (lame) excuse
Ben West
@bewest
Sep 26 2015 18:04
man wpa_passphrase
I'll just order that
but drags things out
maybe I should use the hdmi cable
Ben West
@bewest
Sep 26 2015 18:05
yeah, that cable
it's worth having that cable
anything goes wrong, this guarantees console access with nothing else
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:05
I just hate "stuff". I like being free from "physical things" and "bulk"
Ben West
@bewest
Sep 26 2015 18:06
right usb cable vs keyboard + mouse + monitor + power
so one thing instead of 3 or 4
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:06
Seriously ordering something with 1.5 stars?!
I would never do that!
Hence headless install...
Less things to mess up or get In the way
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:13
Didn't notice the 1.5 stars and all the comments that said it didn't work
Losing interest in the pi
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:20
I have looked at other boards and the Pi seems most versatile given form factor and features.
The problem with the Intel Edison is that it is not a full Linux kernel and it doesn't have full UART for USB so like things don't work always with USB
But I am starting to get sleepy: a side effect from being high on downers...but it's comfortable but I don't want to sleep. 😌
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:25
Hdmi cable works
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:25
I think if I find decent configuration scripts to bypass console cables and other wires and stuff we could be better off. I need to work on and improve that.
Ben West
@bewest
Sep 26 2015 18:27
this is the one I recommend http://www.adafruit.com/product/954
one liner gets ssh/wifi access
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:29
ADA fruit is so slow to ship
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:29
Actually I just bookmarked this page, as it is useful for various wifi configurations...just scroll down the page. It's super useful but I don't know how to concisely include it yet for OpenAPS and docs...I get fearful of "digital hoarding" : https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=116023
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:30
Got it installing something with the HDMI cable, keyboard and mouse
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:30
Give me a sec, @jasoncalabrese ...let me look on Amazon for you. It may take me some time but I am good at finding things on Amazon.
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:31
This might be enough to get it going
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:31
Actually this is the console cable sold by Adafruit on Amazon: 1.5 stars— JBtek Raspberry Pi USB Programming and Debug Cable https://www.amazon.com/dp/B00ETOCRZY/ref=cm_sw_r_awd_2rUbwbQCA23KV
https://www.amazon.com/dp/B00ETOCRZY/ref=cm_sw_r_awd_2rUbwbQCA23KV
This is 4.5 starts and works on Windows/Mac: JBtek® WINDOWS 8 Supported Debug Cable for Raspberry Pi USB Programming USB to TTL Serial Cable https://www.amazon.com/dp/B00QT7LQ88/ref=cm_sw_r_awd_GsUbwbG35MC4V
https://www.amazon.com/dp/B00QT7LQ88/ref=cm_sw_r_awd_GsUbwbG35MC4V
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:32
2015-09-26 11.31.43.jpg
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:32
Awesome!
Ali Mazaheri
@amazaheri
Sep 26 2015 18:38
@jasoncalabrese thats a tasty looking raspberry!
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:42
Looks like you have a Wii U! Honestly I want one for the nostalgia of playing Nintendo games!
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:43
ok, got it on the network and can ssh to it
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:43
Or I could just use one of my Pis as a gaming console.
So now you can go headless!
But yeah I need to work on the docs. Find a script that works...
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:44
yeah, going to shut it down and see if it gets back on the network
diabeticgonewild
@diabeticgonewild
Sep 26 2015 18:47
:D
Chris Oattes
@cjo20
Sep 26 2015 18:50
@jasoncalabrese did it remember?
Jason Calabrese
@jasoncalabrese
Sep 26 2015 18:59
yeah
but something not right with the repos
Err http://mirrordirector.raspbian.org wheezy/main armhf Packages
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Chris Oattes
@cjo20
Sep 26 2015 19:00
can you ping, say, google?
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:02
yeah, can ping google
but something with the deb repos isn't right
Chris Oattes
@cjo20
Sep 26 2015 19:02
It's not resolving here
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/Release.gpg  Could not resolve 'mirrordirector.raspbian.org'
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:03
do you need the special os?
can't just use ubuntu
?
Ben West
@bewest
Sep 26 2015 19:04
I think mine was running ubuntu by default
Chris Oattes
@cjo20
Sep 26 2015 19:04
raspbian is set up with the correct drivers etc. automatically. I don't know what they have done that is different to a base ubuntu
I suspect it has been stripped down somewhat
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:06
saw someone say that an apt-get upgrade will fix it
maybe the os on the sd card is just old
Ben West
@bewest
Sep 26 2015 19:06
yeah
apt-get update first
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:07
and pointing to repos that s gone
update didn't fix it
Ben West
@bewest
Sep 26 2015 19:07
but if the repo itself is gone... yeah
Scott Leibrand
@scottleibrand
Sep 26 2015 19:09
Their mirror is down. I had to change my /etc/apt/sources.list
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:14
ok, thats working
diabeticgonewild
@diabeticgonewild
Sep 26 2015 19:16
Yeah I really need to do a practice NOOBS install and a Raspbian install to improve the docs, particularly finding install scripts that work...
Chris Oattes
@cjo20
Sep 26 2015 19:16
the docs that I used were fine for the install, they all just worked
diabeticgonewild
@diabeticgonewild
Sep 26 2015 19:17
Yeah but to make improvements. I am glad they worked well for you! :D
I just want to make them better...also need to add info about backing up images and stuff. I have a list of things to do...
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:19
everything installed
diabeticgonewild
@diabeticgonewild
Sep 26 2015 19:19
Yay! :D +1
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:19
going to go out for a bit, will plugin the carelink later and see if I can talk to the pump
diabeticgonewild
@diabeticgonewild
Sep 26 2015 19:20
Awesome!
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:35
pi@raspberrypi ~/my-openaps $ openaps use black model
"522"
had to try that before going out
Ben West
@bewest
Sep 26 2015 19:36
:-D
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:48
pi@raspberrypi ~/my-openaps $ openaps use black status
{
  "status": "normal",
  "bolusing": false,
  "suspended": false
}
first I had status error, but after setting the time it changed to normal
all the other commands work with files?
Scott Leibrand
@scottleibrand
Sep 26 2015 19:52
Everything can be run with use without files, but to do anything programmatically you'll use report, which outputs to json files.
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:52
right just want to make the pump do something
set a basal or something
Ben West
@bewest
Sep 26 2015 19:53
the use commands are all for interactive use
report commands curry the args for automated use
idea is you play around interactively with the use commands
copy/paste the tail args to the report add commands
script against that
automate against that, anyway
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:54
was trying openaps use black set_temp_basal "0.525"
Ben West
@bewest
Sep 26 2015 19:54
use alias to group things
ah
ok, the write commands do take a file describing the "program"
the "program" for this is { "rate": 0.525, "duration": 30 }
so you can pipe it in ...
echo '{ "rate": 0.525, "duration": 30 }' | openaps use black set_temp_basal -
Jason Calabrese
@jasoncalabrese
Sep 26 2015 19:56
assert temp in [ 'percent', 'absolute' ], "temp field <{0}> should be one of {1}".format(temp, ['percent', 'absolute' ])
Scott Leibrand
@scottleibrand
Sep 26 2015 19:57
Add "temp": "absolute"
Ben West
@bewest
Sep 26 2015 19:57
ah
echo '{ "rate": 0.525, "duration": 30, "temp": "absolute" }' | openaps use black set_temp_basal -
Ali Mazaheri
@amazaheri
Sep 26 2015 19:58
and if u try Bolus @scottleibrand will give you a negative point :)
Scott Leibrand
@scottleibrand
Sep 26 2015 19:58
Or you can create a requestedtemp.json with that content and openaps use black set_temp_basal requestedtemp.json
that's more like what you'll do later with reports.
No demerits for use bolus, just if you add bolus to a report. ;-)
Ali Mazaheri
@amazaheri
Sep 26 2015 19:59
lol
Scott Leibrand
@scottleibrand
Sep 26 2015 19:59
I with iPhone had backticks.
Oh, it does
hold down ' key
Hmm, does this not work?
ah good.
Jason Calabrese
@jasoncalabrese
Sep 26 2015 20:01
says it requested the temp, but don't see anything on the pump
Ben West
@bewest
Sep 26 2015 20:03
big difference with raw
looks like one packet is dropping every hour or so
and dexcom hates it
Scott Leibrand
@scottleibrand
Sep 26 2015 20:04
Did it say received: true?
Ben West
@bewest
Sep 26 2015 20:04
check the temp type
if it's set to percent on the pump it won't do anything
Scott Leibrand
@scottleibrand
Sep 26 2015 20:04
Yeah, your pump has to be in absolute mode
Jason Calabrese
@jasoncalabrese
Sep 26 2015 20:11
ah, that must be it, I'll try that later
Ben West
@bewest
Sep 26 2015 20:15
blob
Ali Mazaheri
@amazaheri
Sep 26 2015 20:16
WTF! milky way?
did u change the sensor?
Ben West
@bewest
Sep 26 2015 20:18
not yet
need to recruit someone
the thing is, the sensor site itself is fine
it's sticking on great, no fraying...
the data there is workable
You're killing me @bewest
Ben West
@bewest
Sep 26 2015 20:20
hehehe
that's what dexcom says
Scott Leibrand
@scottleibrand
Sep 26 2015 20:20
Ben: if I can do it one-handed you can too.
Ben West
@bewest
Sep 26 2015 20:20
mmm
guess I really don't like doing it
Scott Leibrand
@scottleibrand
Sep 26 2015 20:22
It's probably mostly the anxiety
Ben West
@bewest
Sep 26 2015 20:22
well, yeah, there's a huge needle device thingy
it goes better if I have a few drinks first
but it's a little early
Scott Leibrand
@scottleibrand
Sep 26 2015 20:22
The actual needle poke is almost painless though.
Ben West
@bewest
Sep 26 2015 20:23
almost, 86% of the time
Scott Leibrand
@scottleibrand
Sep 26 2015 20:23
Once you convince yourself it won't be that bad it should go better. ;-)
Ben West
@bewest
Sep 26 2015 20:23
then there are the times when there's blood leaking out, the times when it hurts real good, etc
or more often
the times it takes 20 minutes to get it out
Scott Leibrand
@scottleibrand
Sep 26 2015 20:24
If you take them out after 2 weeks they just fall right out.
Ben West
@bewest
Sep 26 2015 20:25
no, I mean during the install
Scott Leibrand
@scottleibrand
Sep 26 2015 20:25
Are you doing it upside down for the gravity assist?
Ben West
@bewest
Sep 26 2015 20:26
I observe that the easiest and most relaxing way to do it is with a helper
I drank some water and massaged the site and we're back :-)
Ali Mazaheri
@amazaheri
Sep 26 2015 20:29
even with good sensor it creeps out sometimes like last night
Capture1.PNG
Chris Oattes
@cjo20
Sep 26 2015 21:24
so if i've cloned openaps-js, is it meant to be installed somehow? or do I just need to put the path to the cloned directory in my openaps commands?
Scott Leibrand
@scottleibrand
Sep 26 2015 21:27
Use sudo npm install -g ./ from the openaps-js directory.
Chris Oattes
@cjo20
Sep 26 2015 21:27
will that also install the ns-upload.sh script?
Jason Calabrese
@jasoncalabrese
Sep 26 2015 21:27
Always thought the global installs were bad
Scott Leibrand
@scottleibrand
Sep 26 2015 21:28
You can skip if you would rather put them in your path manually.
Not sure I ever added ns-upload.sh to the package.
That one I just run directly since it's .sh instead of .js.
JamOrHam
@jamorham
Sep 26 2015 21:38
@diabeticgonewild The arietta uses a full linux kernel http://www.acmesystems.it/arietta and just creates a network interface via usb if you plug it in to a pc. It is tiny cheap, has usb host ports, gpio etc. Uses arm debian distribution just like the raspberry pi. I love the pi but if I wanted something tiny/portable I would use the arietta. Is it suitable for this type of project?
Ben West
@bewest
Sep 26 2015 21:38
I like the intel edison
I have 3
Chris Oattes
@cjo20
Sep 26 2015 21:39
I was tempted by one of those
Ben West
@bewest
Sep 26 2015 21:39
arietta looks like it might work
would take a fair amount of work I think...
it has no i/o or breakout boards?
JamOrHam
@jamorham
Sep 26 2015 21:40
@bewest not sure what you mean, it has serial, usb, gpio, pwm, 1 wire
Ben West
@bewest
Sep 26 2015 21:40
it has pins for that
there's only one usb port, and it's for power I think
JamOrHam
@jamorham
Sep 26 2015 21:41
no it has 3 usb host mode ports
Ben West
@bewest
Sep 26 2015 21:41
oh, only socket is for sd card
JamOrHam
@jamorham
Sep 26 2015 21:43
you can't just plug in to it but its quite easy to solder headers and work with breadboard etc. Would need some soldering skills for interfacing usb etc but it just depends what the requirements of the project are
Ben West
@bewest
Sep 26 2015 21:43
right
if you're comfy with all that
I think I'm using 3.16 on my laptop
enumeration is somewhat flaky, but works most of time
JamOrHam
@jamorham
Sep 26 2015 21:47
I just thought I would mention it again as I see discussions about alternatives to raspberry pi and I find it very similar to work with at a software level. It uses 60 mA idle - not sure how that compares to pi
Chris Oattes
@cjo20
Sep 26 2015 21:51
@scottleibrand which openaps command does ns-upload need the output from?
This message was deleted
Ben West
@bewest
Sep 26 2015 21:54
it takes pump-history
Scott Leibrand
@scottleibrand
Sep 26 2015 21:57
Ya
Chris Oattes
@cjo20
Sep 26 2015 21:59
is that an openaps use command?
Ben West
@bewest
Sep 26 2015 21:59
yeah, there are several
openaps use pump iter_pump_hours would be suitable
Jason Calabrese
@jasoncalabrese
Sep 26 2015 22:05
Crazy idea, would be interesting to try the system on myself with real insulin, probably wouldn't have a line as flat as Dana
Ben West
@bewest
Sep 26 2015 22:06
sure, with basal set to 0U?
or find some saline?
Jason Calabrese
@jasoncalabrese
Sep 26 2015 22:08
Will probably just carry the pump without a cartridge
John Males
@johnmales
Sep 26 2015 22:08
Hey is there any issue with using a R Pi 1 instead of 2? Apart from it being slower of course.
diabeticgonewild
@diabeticgonewild
Sep 26 2015 22:11
Awesome @jamorham !
@bewest if you have a needle phobia due to the pain of insertion, you should use LMX5 (it's stronger than LMX4) cream. It numbs you up well for things like this and it's not too expensive. You just put a big blob of it on an hour before insertion and cover it up with Opsite Flexifix. You can even use a sharpie (alcohol swabs remove the permanent ink) to mark where you put on the cream. It numbs me up pretty well. I get infusions for immunomodulatory treatment and due to poor IV access I have a port in my chest that they use. It doesn't hurt bad the insertion but I want to be completely comfortable. So I use LMX5 on top of my port before they access it.
diabeticgonewild
@diabeticgonewild
Sep 26 2015 22:17
LMX 5 (it says anorectal—but it's just stronger version of LMX 4 which is intended for skin): http://www.amazon.com/gp/aw/d/B002XMQJVW/ref=mp_s_a_1_1?qid=1443305766&sr=8-1&pi=SY200_QL40&keywords=lmx+5&dpPl=1&dpID=41Xw9oA6YUL&ref=plSrch
But you really should use stuff like that if insertion bothers you. You will be a lot more comfortable and it helps you tolerate things like CGM better just overall.
Chris Oattes
@cjo20
Sep 26 2015 22:24
The output of ns-upload doesn't seem to match the format that nightscout wants. Nightscout wants 'date' to be a unix timestamp in milliseconds since epoch, the output of ns-upload.sh shows it being passed as a datestring
I'm passing it the output of iter_glucose_hours
Scott Leibrand
@scottleibrand
Sep 26 2015 22:36
ns-upload is for pumphistory not glucose.
John Males
@johnmales
Sep 26 2015 22:38
Just just checking you create the hash of API_SECRET with md5sum?
Chris Oattes
@cjo20
Sep 26 2015 22:39
sha1sum
John Males
@johnmales
Sep 26 2015 22:40
ok thanks
Scott Leibrand
@scottleibrand
Sep 26 2015 22:40
rpi 1 is fine. We use both.
John Males
@johnmales
Sep 26 2015 22:41
great I have a few rpi 1's around which otherwise aren't being used
Scott Leibrand
@scottleibrand
Sep 26 2015 22:49
Only beef I have with mine is they shipped with an older default config missing stuff like colored bash prompts and stuff. ;-)
Chris Oattes
@cjo20
Sep 26 2015 22:58
@scottleibrand how do you upload glucose?
Scott Leibrand
@scottleibrand
Sep 26 2015 22:59
Dexcom share. ;-)
should be easy enough to modify ns-upload to do that. Just hasn't been done yet AFAIK.
Ben West
@bewest
Sep 26 2015 22:59
just make another one
it's very simple bash
pipes via json tool to reformat things
Chris Oattes
@cjo20
Sep 26 2015 23:00
Doesnt ns expect the same data format for dates regardless of the type of recrod?
Ben West
@bewest
Sep 26 2015 23:00
yes
date should be ms epoch
I'm getting my glucose from NS
date should be ms epoch, dateString should be iso8601
it'll be something like
Chris Oattes
@cjo20
Sep 26 2015 23:03
yeah, I've got it working
John Males
@johnmales
Sep 26 2015 23:06
with the cron entries for API_SECRET and NIGHTSCOUT_HOST are they @reboot? ie @reboot set API_SECRET="<hashedkey>"
@reboot set NIGHTSCOUT_HOST="<xyz>.azurewebsites.net"
Ben West
@bewest
Sep 26 2015 23:08
$ crontab -l

SHELL=/bin/bash
PATH=/home/bewest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

*/5 * * * * (cd ~/Documents/foo && openaps do-everything) 2>&1 | logger -t openaps-loop
it'd be like SHELL and PATH
John Males
@johnmales
Sep 26 2015 23:08
ok
John Males
@johnmales
Sep 26 2015 23:22
My rpi doesn't recognise json as a command? What package do I install?
Chris Oattes
@cjo20
Sep 26 2015 23:22
npm install json
you might have to install a newer version of json
Ben West
@bewest
Sep 26 2015 23:22
sudo npm install -g json
Chris Oattes
@cjo20
Sep 26 2015 23:23
err, newer version of nodejs, sorry
I had to, following instructions here: http://joshondesign.com/2013/10/23/noderpi
Chris Oattes
@cjo20
Sep 26 2015 23:38
@bewest hopefully this looks vaguely sensible openaps/openaps-js#32
John Males
@johnmales
Sep 26 2015 23:39
@cj020 did you need to modify something to upload glucose values?
Chris Oattes
@cjo20
Sep 26 2015 23:39
@johnmales yes, see the pull request I just linked
Ben West
@bewest
Sep 26 2015 23:40
ah
close, I think
Chris Oattes
@cjo20
Sep 26 2015 23:41
what did I get wrong?
Ben West
@bewest
Sep 26 2015 23:41
what does the type wind up being?
hmm
so to show up in NS
Chris Oattes
@cjo20
Sep 26 2015 23:41
{
    "name": "GlucoseSensorData",
    "date_type": "prevTimestamp",
    "_tell": 4,
    "sgv": 182,
    "date": 1443310020000,
    "packet_size": 0,
    "op": 91,
    "dateString": "2015-09-27T00:27:00+0100",
    "type": "medtronic"
  },
Ben West
@bewest
Sep 26 2015 23:41
oh
hmm
so here
type: 'sgv'
device: 'medtronic'
Chris Oattes
@cjo20
Sep 26 2015 23:42
I don't know if it's just that the NS app doesn't actually care
Ben West
@bewest
Sep 26 2015 23:42
maybe device: "openaps://medtronic/pump/cgm"
NS app cares that type: "sgv"
Chris Oattes
@cjo20
Sep 26 2015 23:43
for reports?
Ben West
@bewest
Sep 26 2015 23:43
yes
the reports uses the REST API to get data out
the REST api assumes if you want a glucose value incuded in NS it should be type: 'sgv'
device can be anything, like 'share', 'xdrip', 'medtronic', etc...
but type should be sgv
Scott Leibrand
@scottleibrand
Sep 26 2015 23:49
Do you have a diff handy against ns-upload? I'm on mobile.
Ben West
@bewest
Sep 26 2015 23:49
it's a new script
Scott Leibrand
@scottleibrand
Sep 26 2015 23:50
I know, but not sure it needs to be.
Ben West
@bewest
Sep 26 2015 23:50
for now it probably should be
different thing altogether
or maybe split 2 into 3
even better
probably shouldn't reformat AND send
then there can be only one for sending
Chris Oattes
@cjo20
Sep 26 2015 23:51
@bewest what would you tag the records that don't have sgv data as? "pumpdata"?
scottleibrand @scottleibrand reserves comment until seeing a diff
hmmm
yeah, I would it so sgv gets set only for the glucose ones
Chris Oattes
@cjo20
Sep 26 2015 23:52
5,6c5,6
< HISTORY=${1-pumphistory.json}
< OUTPUT=${2-pumphistory.ns.json}
---
> HISTORY=${1-glucosehistory.json}
> OUTPUT=${2-glucosehistory.ns.json}
11,14c11,14
<   #json -e "this.dateString = this.timestamp + '$(TZ=TZ date +%z)'" | \
<   json -e "this.dateString = this.timestamp + '$(date +%z)'" | \
<   json -e "this.type = 'medtronic'" | \
<   json -e "this.date = this.date ? this.date : new Date(Date.parse(this.dateString)).getTime( )" \
---
>   json -e "this.dateString = this.date + '$(date +%z)'" | \
>   json -e "this.date = new Date(this.dateString).getTime();" | \
>   json -e "this.type = (this.name == 'GlucoseSensorData') ? 'sgv' : 'pumpdata'" | \
>   json -e "this.device = 'openaps://medtronic/pump/cgm'"
16d15
<
Ben West
@bewest
Sep 26 2015 23:52
yeah, the curl part should be it's own script
yeah, I like that a lot
nice
hmm
not quite
or is it
"dateString": "2015-09-27T00:27:00+0100",
is correct format
nice
Ben West
@bewest
Sep 26 2015 23:58
should decocare change what it does instead? maybe put comment in saying # decocare v0.0.17
or add it to device somewhere
Chris Oattes
@cjo20
Sep 26 2015 23:58
what do you mean should decocare change what it does?