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

14th
Jun 2015
diabeticgonewild
@diabeticgonewild
Jun 14 2015 03:27
I'm not sure what you are talking about @bewest specifically. Have you heard of any issues?
Kind of ridiculous but I slept all day and just read your comment...
diabeticgonewild
@diabeticgonewild
Jun 14 2015 03:57
I don't think I have any git directories but I have directories like OpenAPS and decocare on the image
diabeticgonewild
@diabeticgonewild
Jun 14 2015 05:39
Does anyone know what's up with the uS in when the JSON file is decoded?
Weird_JSON_Decode.jpg
Apparently it's normal but I can't make sense out of it and it's annoying me.
Decoding.jpg
Jason Calabrese
@jasoncalabrese
Jun 14 2015 05:55
does that mean it's a unicode string?
Ben West
@bewest
Jun 14 2015 06:02
you're printing the python dicts, as python, not as json
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:12
thanks!
so I'm printing what it's saying in the python language, when it's being decoded.
There's no real way to suppress it but it doesn't really matter all that much... I just need to get working...
Ben West
@bewest
Jun 14 2015 06:53
you can print something else, like the json representation
or the string itself
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:54
Like I have no idea what I am doing. I am just copying code and seeing if it's working. I think I can eliminate the line pprint(d)
I need to look up what it does...
Ben West
@bewest
Jun 14 2015 06:54
pprint "pretty prints" what you give it
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:54
but otherwise I got the JSON file decoded so I can start to do stuff with it...
yeah
I still don't know how to handle all of the JSON stuff but I will learn soon!
I am going to get rid of the pprint line...
thanks!
Ben West
@bewest
Jun 14 2015 06:55
it's done... you handled it
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:55
n00b
Ben West
@bewest
Jun 14 2015 06:55
just need to do whatever you want with the data
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:56
yeah I don't know how to extract like the TempBasal JSON info yet...trying to learn that.
Ben West
@bewest
Jun 14 2015 06:57
yeah, @loudnate had some stuff for that
but basically, you want to cycle through all the ones in the list and get the ones you want in a new list
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:58
This message was deleted
Ben West
@bewest
Jun 14 2015 06:58
oy, text
use gist for text :)
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:58
oh yeah sorry about that. Wasn't thinking!
so nested for loops on top of that?
let me make a Gist
Ben West
@bewest
Jun 14 2015 06:58
you can do nested loops
or do a method for getting returning new list of TempBasals
and use that in a new loop, so you basically filter out the ones that are not interesting
diabeticgonewild
@diabeticgonewild
Jun 14 2015 06:59
yeah I don't do object oriented programming
Ben West
@bewest
Jun 14 2015 06:59
this is pure functional
and data structures
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:03
So basically I have to find the indice of what == 'TempBasal' in my nested for loop and store it
A method sounds easier...
Ben West
@bewest
Jun 14 2015 07:03
def get_interestings (data):
  out = [ ]
  for thing in data:
    if thing['_type'] in ['TempBasal']:
      out.append(thing)
  return out
def do_interesting_thing (data):
  out = [ ]
  for thing in get_interestings(data):
    interest = dict(calculate=data) # do interesting thing here
    out.append(interest)
  return out
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:04
but I don't know how to deal with the 'TempBasal' in the JSON and how to retrieve that information in the first place. But, I can look around
Ben West
@bewest
Jun 14 2015 07:04
usually will be something like this
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:04
ok
Ben West
@bewest
Jun 14 2015 07:04
in this example, get_interestings is a function that iterates through everything
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:04
got it
Ben West
@bewest
Jun 14 2015 07:04
creates a new empty list, and only adds things to it that are "interesting"
maybe TempBasals, maybe other things
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:05
yeah.
Ben West
@bewest
Jun 14 2015 07:05
then, do_interesting_thing uses that to only work with interesting things
do whatever calculations/summaries/reports
do same thing, assign to some out variable, and return that
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:06
yeah. I have some learning to do with respect to python. Not familiar with the syntax but it's not a hard programming language to learn.
I might get an online tutor to help me learn this more "hands on" and "quicker"...
Even though it's all there on the internet
Ben West
@bewest
Jun 14 2015 07:07
I actually like teaching, just come here for help
diabeticgonewild
@diabeticgonewild
Jun 14 2015 07:07
OK :D
You want to meet sometime via Google Hangout on Air so it's more interactive?
Like screenshare and video?
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:09
Once I get through the JSON stuff. I have access to the holy grail. Engineering students love numerical methods.. http://www.amazon.com/gp/aw/d/1107033853/ref=mp_s_a_1_1?qid=1434308730&sr=8-1&pi=AC_SY200_QL40&keywords=numerical+methods+in+engineering+with+python+3&dpPl=1&dpID=51VxDYaQ38L&ref=plSrch old version of book with reviews: http://www.amazon.com/gp/aw/d/0521191327/ref=mp_s_a_1_4?qid=1434308843&sr=8-4&pi=AC_SX110_SY165_QL70&keywords=numerical+methods+in+engineering+with+python+3&dpPl=1&dpID=41h2G79C9IL&ref=plSrch ...I pretty much get it for free. I have access to a digital library for people with print related disabilities and it costs $50 a year but I get access to like 300,000 books the New York Times, the Economist, the Wall Street Journal, and my local newspaper. It rocks!
Bookshare.org is awesome!
Ali Mazaheri
@amazaheri
Jun 14 2015 19:31
@bewest that is correct get_clock specifically. I am still struggling with other commands I opened the issues yesterday (722) to get Basal Profile, looking to secure a 522 or 523. Do you think 2.4 A works ?
read_clock*
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:32
I think my pump runs ver 2.4A...my 522 I mean...let me take a look
Ali Mazaheri
@amazaheri
Jun 14 2015 19:33
thanks @diabeticgonewild
Ben West
@bewest
Jun 14 2015 19:33
oh, did you mean pump versions?
Ali Mazaheri
@amazaheri
Jun 14 2015 19:33
yes, I found one running 2.4A
my 722 is on 2.1A
Ben West
@bewest
Jun 14 2015 19:33
I don't think that should matter, but it's interesting
hmm
hmm
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:34
Yep version 2.4 A 1.1 OB OB
Ben West
@bewest
Jun 14 2015 19:34
well, some of the command problems are packaging problems on our end
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:34
And my pump works so far and it's a 522
Ben West
@bewest
Jun 14 2015 19:34
not sure if there is an openaps git directory somewhere or if there is also a decocare directory
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:34
You're welcome @amazaheri
Ben West
@bewest
Jun 14 2015 19:34
is decocare installed by openaps or by hand on the image you created, @diabeticgonewild ?
Ali Mazaheri
@amazaheri
Jun 14 2015 19:35
I used the image @diabeticgonewild shared (thank you Monica) originally
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:35
I had to install it by hand in the "getting started guide" using the commands you listed cause I had trouble with it not installing the packages
You're welcome
Ben West
@bewest
Jun 14 2015 19:36
ah, ok, we should figure out how to fix the packages
Ali Mazaheri
@amazaheri
Jun 14 2015 19:36
I noticed that decocare was referencing the dev branch
Ben West
@bewest
Jun 14 2015 19:36
they are designed to carefully match versions
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:36
is that causing issues?
Ben West
@bewest
Jun 14 2015 19:36
a little bit, yeah, there are couple ways to fix
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:36
Sorry I'm kind of oblivious...
Ben West
@bewest
Jun 14 2015 19:37
currently master of openaps is installed I believe with master of decocare
Ali Mazaheri
@amazaheri
Jun 14 2015 19:37
on my end yes
Ben West
@bewest
Jun 14 2015 19:37
not sure, it's seems like that might be logical, but actually it's not
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:37
So sorry
Ben West
@bewest
Jun 14 2015 19:37
no worries
it's not a bad thing, it's just a thing that is
it actually does work for most commands
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:37
What can I do to fix it?
I will upload a new image as soon as I can resolve it
Ben West
@bewest
Jun 14 2015 19:38
the issue at hand is the master:master is not quite the right matching/pairing
I've been working on getting decocare's master up to date
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:38
OK
Ben West
@bewest
Jun 14 2015 19:38
but both of them have uploaded versions into pypi, online package tracker
there are couple ways to fix this, just depends on what you guys think about options
if there are already 2 git repos, each with source clones
hmm
the easy way, I think
is easy_install -Z openaps
the registered online packages have gotten updates, they should work
I only update them with working/paired versions there
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:40
OK dumb question so I will need Python 2.7 installed and Git to do that before I install pypi and then issue that command right?
Ben West
@bewest
Jun 14 2015 19:40
yeah, you need git, python, python-software-properties, python-setuptools first
python-setuptools installs easy_install tool
Ali Mazaheri
@amazaheri
Jun 14 2015 19:40
I just ran the easy_istall
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:41
Yeah. Then I have to verify that it all installed properly
Ben West
@bewest
Jun 14 2015 19:41
it might not do anything, claim it's already installed
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:41
I'm going to work on putting a "correct" image up right now.
Chris Hannemann
@channemann
Jun 14 2015 19:41
@amazaheri @bewest I believe there was an issue in decocare with 7xx pump versions at one point, even if the corresponding 5xx version worked fine
Ali Mazaheri
@amazaheri
Jun 14 2015 19:41

Processing openaps
Writing /home/ubuntu/openaps/setup.cfg
Running setup.py -q bdist_egg --dist-dir /home/ubuntu/openaps/egg-dist-tmp-XaL9Bz
Removing openaps 0.0.2 from easy-install.pth file
Adding openaps 0.0.2 to easy-install.pth file
Installing git-openaps-init script to /usr/local/bin
Installing openaps-report script to /usr/local/bin
Installing openaps-enact script to /usr/local/bin
Installing openaps-use script to /usr/local/bin
Installing openaps-device script to /usr/local/bin
Installing openaps-get script to /usr/local/bin
Installing openaps-vendor script to /usr/local/bin
Installing openaps script to /usr/local/bin
Installing openaps-install-udev-rules script to /usr/local/bin
Installing openaps-suggest script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/openaps-0.0.2-py2.7.egg
Processing dependencies for openaps==0.0.2
Finished processing dependencies for openaps==0.0.2

Ben West
@bewest
Jun 14 2015 19:42
ok, it didn't install decocare
hmm
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:42
It's going to take at least a few hours to get the version of Ubuntu in working order with all of the packages installed. Thank you for pointing this out to me 😊
Even though it's unfortunate that people are dealing with my mess ups but I will work on it right now
Ali Mazaheri
@amazaheri
Jun 14 2015 19:43
@diabeticgonewild not unfortunate! its a team work and you are doing awesome work!
Ben West
@bewest
Jun 14 2015 19:43
easy_install -Z https://github.com/bewest/decoding-carelink/tarball/bewest/dev#egg=decocare-0.0.15-dev-1
it's not a bad thing
Fokko Driesprong
@Fokko
Jun 14 2015 19:43
Getting Ubuntu up-and-running should not take too much time
using apt-get all the packages are quickly installed
Ben West
@bewest
Jun 14 2015 19:44
this is how the "sausage gets made"
oh
hmm
hmm
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:44
Yeah I know but I have to get drivers and stuff working too and xclip
And confirm everything's working properly
Or else I'm wasting everyone's time
Ben West
@bewest
Jun 14 2015 19:45
@amazaheri easy_install -Z https://github.com/bewest/decoding-carelink/tarball/bewest/dev#egg=decocare-0.0.15-dev-1 might do something interesting
Ali Mazaheri
@amazaheri
Jun 14 2015 19:45

ubuntu@ubuntu:~$ sudo easy_install -Z https://github.com/bewest/decoding-carelink/tarball/bewest/dev#egg=decocare-0.0.15-dev-1
Downloading https://github.com/bewest/decoding-carelink/tarball/bewest/dev#egg=decocare-0.0.15-dev-1
Processing dev
Writing /tmp/easy_install-qWfbZL/bewest-decoding-carelink-2d58362/setup.cfg
Running bewest-decoding-carelink-2d58362/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qWfbZL/bewest-decoding-carelink-2d58362/egg-dist-tmp-GlQiU6
warning: no files found matching 'CHANGES.*'
Removing decocare 0.0.14 from easy-install.pth file
Adding decocare 0.0.15 to easy-install.pth file
Installing mm-press-key.py script to /usr/local/bin
Installing mm-temp-basals.py script to /usr/local/bin
Installing mm-pretty-csv script to /usr/local/bin
Installing mm-bolus.py script to /usr/local/bin
Installing mm-latest.py script to /usr/local/bin
Installing mm-set-rtc.py script to /usr/local/bin
Installing mm-send-comm.py script to /usr/local/bin
Installing mm-set-suspend.py script to /usr/local/bin
Installing mm-decode-history-page.py script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/decocare-0.0.15-py2.7.egg
Processing dependencies for decocare==0.0.15
Finished processing dependencies for decocare==0.0.15

Ben West
@bewest
Jun 14 2015 19:45
ah
great
have fun
Fokko Driesprong
@Fokko
Jun 14 2015 19:45
(Y)
Ben West
@bewest
Jun 14 2015 19:46
@Fokko and @loudnate and @channemann all put something into this one!
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:46
LOL awesome! Glad that issue is resolved! Thanks all! Still going to make a clean image and do what you guys said to do.
Ben West
@bewest
Jun 14 2015 19:47
yeah, I'd try installing those apt packages, then just trying easy_install -Z openaps
Chris Hannemann
@channemann
Jun 14 2015 19:47
glad to help
Ben West
@bewest
Jun 14 2015 19:47
if that doesn't work, complain :-)
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:47
Got it! :D
Fokko Driesprong
@Fokko
Jun 14 2015 19:49
sudo apt-get install git python python-software-properties python-setuptools
Ali Mazaheri
@amazaheri
Jun 14 2015 19:49
read_bg_targets works! read_selected_basal_profile works! read_basal_profile_std works!
woot! woot!
Awesome! @bewest for president :)
Ben West
@bewest
Jun 14 2015 19:49
if you want bleeding edge, you can do: easy_install -Z https://github.com/openaps/openaps/tarball/master#egg=openaps-master-1 or something similar I think
Chris Hannemann
@channemann
Jun 14 2015 19:49
Awesome! Those were the same commands I was struggling with.
@amazaheri That's on a 722, correct?
Ali Mazaheri
@amazaheri
Jun 14 2015 19:49
722 2.1A
Chris Hannemann
@channemann
Jun 14 2015 19:50
Great. I'm 723 2.4A
Ben West
@bewest
Jun 14 2015 19:50
I just started building up database of how different models behave differently
up until very recently it's all been "smaller/larger"
Chris Hannemann
@channemann
Jun 14 2015 19:50
I think that's a great idea, @bewest
Ben West
@bewest
Jun 14 2015 19:50
so do please keep keen eye for these things
Ali Mazaheri
@amazaheri
Jun 14 2015 19:50
@bewest is converting a Windows/Novell old fart into Linux/Python cool kid :)
Ben West
@bewest
Jun 14 2015 19:51
actually, we need some windows experience :-)
Ali Mazaheri
@amazaheri
Jun 14 2015 19:51
after I am done I should try this with Turbo Pascal and Turbo Vision
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:51
Should I do the "bleeding edge" or "standard install"?
Just want a vote...I can do both...
Ben West
@bewest
Jun 14 2015 19:51
if you have one of those nextlinks, it'd be great to use usbspy or similar to get usb transcript from carelink on nextlink
standard
recommend standard for now
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:51
Got it. Will do
Ben West
@bewest
Jun 14 2015 19:52
we'll make a lab/wiki somewhere for updating/latest
soon this will go into next release anyway :-)
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:52
yeah, eventually. As long as people can do their work, it's all good.
Ben West
@bewest
Jun 14 2015 19:53
this way, the whole thing will update correctly with: easy_install -Z openaps
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:53
that will be awesome!
Ali Mazaheri
@amazaheri
Jun 14 2015 19:53
I am also working on a reporting solution, currently I post the data to Azure SQL and use Power BI for some cool reporting. I built a custom webapi running on azure to feed SQL Azure.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 19:55
Yeah that sounds awesome! I just downloaded a book called Python Networking Programming Cookbook, and I have access to all of the O'Reilly media books...so I have a lot to work off of.
What's Power BI?
Lots and lots of ideas
Ali Mazaheri
@amazaheri
Jun 14 2015 19:59
great tool for Self service BI
powerbi.com
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:00
cool
that looks awesome.
I just booted the image. Have to install a bunch of packages and updates...
Ali Mazaheri
@amazaheri
Jun 14 2015 20:02
here is an example
its work in progress as soon as I am done I can share with
Ben West
@bewest
Jun 14 2015 20:03
@danamlewis will love the neutral origin for iob I think
Ali Mazaheri
@amazaheri
Jun 14 2015 20:03
she did!
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:04
wow!
Ben West
@bewest
Jun 14 2015 20:04
rate/acceleration is salient concept as well, would be nice to vis that
Ali Mazaheri
@amazaheri
Jun 14 2015 20:04
cool!
we can have so many views and dashboards etc.
Ben West
@bewest
Jun 14 2015 20:05
these would be good openaps pugins
plugins, so it'd update everytime openaps runs
Ali Mazaheri
@amazaheri
Jun 14 2015 20:05
thumbs up!
I just need to convert the webAPI piece to NodeJS
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:05
to visualize that, you would just do like a line interpolation of the rate/acceleration, using whatever numerical technique, and integrate that.
Ali Mazaheri
@amazaheri
Jun 14 2015 20:05
so everyone can use it
Ben West
@bewest
Jun 14 2015 20:05
or python
Ali Mazaheri
@amazaheri
Jun 14 2015 20:05
:)
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:05
Then you can get the total IOB activity to date
Ben West
@bewest
Jun 14 2015 20:06
whichever is easier
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:06
so the rate/acceleration is more tangible
and you can see the actual displacement caused by it
Ali Mazaheri
@amazaheri
Jun 14 2015 20:06
I am newbie to both :) @diabeticgonewild I will work with you on the reporting piece
mind blown!
Chris Hannemann
@channemann
Jun 14 2015 20:07
question on that install you just did, @amazaheri
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:07
yeah. I have been working on making IOB based on glucose infusion rate graphs, of Novolog...going to do it for apidra and humalog...let me link the post....but it's very close in shape to the MM 530G IOB
Chris Hannemann
@channemann
Jun 14 2015 20:07
It looks like it can't find the file?
Ali Mazaheri
@amazaheri
Jun 14 2015 20:07
I cant believe my son is watching Jurassic World alone with his frined thanks to Nightscout and I am here cracking some NodeJS stuff :)
hmmm
I didn't get that error
Chris Hannemann
@channemann
Jun 14 2015 20:08
I'm on an RPi, not a straight Ubuntu system
But I don't think that's it
Ali Mazaheri
@amazaheri
Jun 14 2015 20:08
I agree
i am actually
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:09
@diabeticgonewild :point_up: June 11 2015 11:44 PM
Ali Mazaheri
@amazaheri
Jun 14 2015 20:09
planning to do a RPi image tomorrow
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:09
that's awesome your kid has some freedom!
Ali Mazaheri
@amazaheri
Jun 14 2015 20:09
so far no spike!
lol
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:09
one thing to work on, is being able to remotely change his insulin dosages...so it causes less interruption in school and stuff...that might be a good idea
Ali Mazaheri
@amazaheri
Jun 14 2015 20:09
i so want to hack the t:slim :(
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:09
But it depends on how old your kid is and how independent he is
and I may be crossing boundaries by mentioning that...
Ali Mazaheri
@amazaheri
Jun 14 2015 20:10
nah
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:10
I have a backup t:slim
Ali Mazaheri
@amazaheri
Jun 14 2015 20:10
i do have one too but its completely blocked
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:10
If you want to borrow it, it's up for grabs...
?
Ali Mazaheri
@amazaheri
Jun 14 2015 20:10
i believe Ed Domiano's team got a special firmware for Bionic P project
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:10
yeah
the bluetooth chip is disabled
And I checked out FCC.gov and there's not much about the bluetooth chip on there. However, I do know the ARM board used...so you could use a prototyping board and try...but it may be a crapshoot
Fokko Driesprong
@Fokko
Jun 14 2015 20:13
LOL, you have your sources of data to get to know the devices.
Ali Mazaheri
@amazaheri
Jun 14 2015 20:14
clap:
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:14
Look I can google anything and I have my way of finding out things. This sounds terrible, but I could find dirt on anyone if I wanted to, but I have better things to do like #WeAreNotWaiting
Like I can find almost anything
It's a skill
Ali Mazaheri
@amazaheri
Jun 14 2015 20:14
he he
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:16
Like the very rare autoimmune disease I have (a form of autoimmune autonomic neuropathy that was initially blamed on my diabetes)...I found that one out when I was in the ER Googling on my phone...but I was suspicious that it wasn't diabetes-related for a really long time...even initially...but I didn't know what it could be.
and like, they think that all of the autoimmune diseases I have (including 2 rare autoimmune neuropathies) could be linked by a single antibody that is only available in a research lab at this point of time....that was found on Google...
This is a patent app but it's not related to #WeAreNotWaiting. https://www.google.com/patents/US20140377883?dq=anti+peripherin+antibody&hl=en&sa=X&ved=0CCsQ6AEwAmoVChMI1JKku4CQxgIVw1qICh18BAhJ (there are people who don't want to see patent apps due to IP concerns)
That's the syndrome that they think I might have...I have T1D and I have all of the antibodies for thyroid disease too (subclinical hypothyroidism), and 2 rare autoimmune neuropathies...
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:21
Like I tested positive for and I have abnormal levels of the ganglionic nicotinic acetylcholine receptor antibody, which causes autoimmune autonomic ganglionopathy, and they think that it might have even caused the autoimmunity related to my diabetes...like the autonomic neuropathy for me started at age 5 but it wasn't extremely obvious.
Fokko Driesprong
@Fokko
Jun 14 2015 20:23
Good thing you found out yourself, and not solely rely on the medical professionals! :clap:
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:23
There's really only one lab in the country that tests for it. The Mayo Clinic Medical Laboratories, and there's all kinds of "nice" stuff I have to worry about. Like the antibody I have is considered a marker for autoimmune encephalitis http://www.mayomedicallaboratories.com/test-catalog/Clinical+and+Interpretive/61510
I had to. It was crazy. I was getting hospitalized every 2 weeks or so for low blood pressure and it was "blamed on my diabetes" and I was 22 years old and I had like the "worst case of it" my cardiologist had ever seen. There was nothing they could do for me. They got desperate. I let the cat out of the bag about what I had Googled and they read a report from a neurologist who tested me in his autonomic lab and he examined me and like my pupils would prematurely redilate when exposed to light in a dark room (which is a unique feature of my disease--I also have dilated pupils the vast majority of the time...they're huge) and that was how endocrine knew it wasn't diabetes-related.
I also thought that the test was not going to come out positive, knowing my luck, cause only 40-50% test positive for those antibodies....but I did.
Like if you have unmanageable orthostatic hypotension, there is now a drug that costs like $3500 a month that is "orphan drug status" that doctors can now prescribe that may help. But I was like maxed out on 2 meds to raise my blood pressure and I still would end up in the hospital for "crises"
and all they can really do is pump you full of fluids when you are like that.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:29
They really didn't know what to do with me. They were relieved when they found out. I almost never take medicine to raise my blood pressure now, but I do have problems sometimes. But that was my worst problem, by far and it's significantly better.
Fokko Driesprong
@Fokko
Jun 14 2015 20:35
Hang in there, they will find medicine. Most of the time having a lower blood-pressure is not bad at all. Rather a bit too low than on the high side.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:37
It's like having ridiculously high resting pulse rates like 130-170 and like it getting worse upon standing up and like almost passing out from your blood pressure dropping and "going blind" cause blood flow to your head is being cut off cause the signal to tell the blood vessels in your legs to constrict is not working properly. Like even getting up to go to the bathroom when you are like that is dreadful. It makes you into a couch potato.
I'm way different now...I'm not like that at all anymore...
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:44
According to my endo, autonomic neuropathy is the worst complication to have too, cause there's no treatment for it, really. But, I do have a treatable form of it and mine isn't diabetes-related. But, she's probably right
Like having autonomic neuropathy, your body can't regulate bodily functions in general, so it's like a balancing act gone wrong and you are kind of always walking on a tightrope cause your body is out of control. It's stressful.
Fokko Driesprong
@Fokko
Jun 14 2015 20:56
Sounds exhausting! Diabetes already requires a lot of attention, having such symptoms beside diabetes takes some heavy discipline!
Are you able to attend college?
diabeticgonewild
@diabeticgonewild
Jun 14 2015 20:58
Not right now. Hoping the immunosuppression will work though. Was diagnosed with autonomic neuropathy at age 18 and have been attending college on and off, but I attained "senior" (final year) status at age 23 so I did pretty well with it and I did well academically. But, I had to transfer out of the school I was going to cause it just wasn't going to work out.
I'm hoping to go back in the fall, with some more accommodations maybe.
I go to school online now.
Yeah so I connected my Pi to the USB port of my PS4 and it shut off. Now the filesystem is corrupt :P
Fokko Driesprong
@Fokko
Jun 14 2015 21:02
Here in Holland we have a saying, badly translated like; Studying is not a competition. Like it is not how fast you'll finish it, it isn't about the grades (general speaking), but is it about the knowledge (academically and personally) that you gain from it.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 21:03
So going to reinstall
Fokko Driesprong
@Fokko
Jun 14 2015 21:03
LOL
Sony crap
diabeticgonewild
@diabeticgonewild
Jun 14 2015 21:03
Yeah, that's cool!
haha you don't like Sony?
Fokko Driesprong
@Fokko
Jun 14 2015 21:04
I dislike closed source. When I bought my last laptop I directly installed Linux. :smile:
diabeticgonewild
@diabeticgonewild
Jun 14 2015 21:05
That's cool!
Fokko Driesprong
@Fokko
Jun 14 2015 21:16
Time to go to bed. Got to love the time-zone differences, probably tomorrow 100+ unread meassages :+1:
diabeticgonewild
@diabeticgonewild
Jun 14 2015 21:27
LOL Good night!
diabeticgonewild
@diabeticgonewild
Jun 14 2015 21:36
@amazaheri Do you mind if I install wicd instead of network-manager? It's GUI-like and it's nicer. I have used it before, and it is much more intuitive, and you can connect to nonbroadcasting SSID networks a lot easier.
I used the command line network-manager for the blind and visually impaired, and I will be creating an image with that too for them. But, I just want your opinion.
I have used wicd before. It's awesome
Either way, I am backing up the image so I can make 2 copies so there is a wicd and a network-manager version for WiFi configuration, so you can choose between the two, but I like wicd way, way better...
Tim Howard
@tghoward
Jun 14 2015 21:51
I'm brand new to openaps (and first time posting here). I hope someone has a sec for some very very basic guidance.
So I've got openaps installed and can connect to a MM 522 -- excellent. But I'm confused about moving beyond the command line. It seems like one could be scripting in python or JS, and I've been trying to figure out the next step in python, but I'm not sure about how to make the calls. If, say I wanted to call "openaps use pump scan", from within the script, would you call
from openaps import uses
uses.all_uses("pump522 scan")
or
subprocess.check_output(['python','openaps use pump522 scan'])
or something like that... neither of those calls work, by the way....
Tim Howard
@tghoward
Jun 14 2015 22:01
I guess I would be extremely grateful if someone just pointed me in the right general direction or tell me I'm barking up the completely wrong tree.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 22:02
You use bash shell scripts and you execute the python or JS scripts that way, using cron jobs
Tim Howard
@tghoward
Jun 14 2015 22:03
@diabeticgonewild fabulous, that's what I needed. Thanks!
diabeticgonewild
@diabeticgonewild
Jun 14 2015 22:04
You're welcome. Don't hesitate to ask more questions. We're always happy to help.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 22:44
OK disregard the wicd stuff wicd-curses cursed me, or something...Like I have installed it twice and used a new image (that I backed up prior to installing wicd tools) and it freezes up and it never happened before....so just going to use standard network-manager like I was doing before....how annoying
I an also installing a bunch of javascript packages like NodeJS and AngularJS as I just talked to somebody and got that request
Nathan Racklyeft
@loudnate
Jun 14 2015 22:58
@tghoward your subprocess call needs to break each arg into its own string in the list.
Scripting openaps from Python is something I'm thinking about as well, but shell commands can be called from a variety of languages so that will always be an option.
I shared my example project to the group last week, but I'll link it for you again as an example of using subprocess. https://github.com/loudnate/rpi-naterade
Tim Howard
@tghoward
Jun 14 2015 23:21
@loudnate thank you for sharing it again. I'll look through for your subprocess calls. Yes, I had some attempts with all args separate in the list, it is good to know that's the way to do it.
diabeticgonewild
@diabeticgonewild
Jun 14 2015 23:58
Yeah so I connected to a hidden wifi network no problems with network-manager...so I basically wasted time cause I was "messing around". But right now I am adding like JS packages to Ubuntu, per a request :D