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

28th
Oct 2015
Scott Leibrand
@scottleibrand
Oct 28 2015 00:02
If you're only going to do NS and not any of the fancy BI stuff, you can just do pay-go with the free website and not actually get billed.
Then just use a new account with the pass for fancy stuff.
Tim Howard
@tghoward
Oct 28 2015 00:04
lost you at "fancy BI" ?? :smile:
But yes, only NS stuff. With the basal info -- that's key so we can see how openaps is behaving!
Scott Leibrand
@scottleibrand
Oct 28 2015 00:06
PowerBI: what Ali uses for his fancy graphs.
Agreed on NS for viz: need to get that set up this week: maybe while Dana is in D.C.
Tim Howard
@tghoward
Oct 28 2015 00:07
ahh! cool. I'm an R user and would go there for my graphics - someday maybe I can go online in that direction
signing off for the night. Thanks all for the help
diabeticgonewild
@diabeticgonewild
Oct 28 2015 02:01
So how do you set up OpenAPS using oref0, since there is a lack of loop.sh? I am just wondering how interfacing is different. I can probably make a good writeup for docs as I worked in Geek Squad for almost 3 years...
diabeticgonewild
@diabeticgonewild
Oct 28 2015 02:11
I just want some pointers...
Scott Leibrand
@scottleibrand
Oct 28 2015 03:14
You'll want to set up reports and aliases to do everything.
To start with, run use commands that collect all the relevant data, then save them as reports to save that data to files, which you can then use as inputs (via use and then report) to subsequent reports.
Eventually, you'll also want some aliases to run the appropriate reports in the right order, and do error checking.
diabeticgonewild
@diabeticgonewild
Oct 28 2015 03:17
So I basically need to do test reports and when that is verified make a new file with a "program/routine" to run and execute the reports and link the other functions such as determine-basal.js together. Then make a cron job to execute the new file basically, right?! And thanks!
Scott Leibrand
@scottleibrand
Oct 28 2015 03:24
Something like that. Your "program/routine" can actually be an openaps alias.
Or rather a series of them.
Aliases can call other aliases, with bash logic to link them together.
diabeticgonewild
@diabeticgonewild
Oct 28 2015 03:26
Cool! That's awesome! Thank you so much! I need to examine the code!
At least a lot more!
eyim
@eyim
Oct 28 2015 05:51

I just tried upgrading to the latest openaps using sudo easy_install -ZU openaps. Now getting errors like this when trying to init a new directory or even running simple commands. Looks like others are having some similar issues?

Traceback (most recent call last):
File "/usr/local/bin/openaps", line 4, in <module>
import('pkg_resources').run_script('openaps==0.0.7', 'openaps')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 449, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 745, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: mock

Scott Leibrand
@scottleibrand
Oct 28 2015 06:09
Try -ZU setuptools first.
If that doesn't work, try the full install script mentioned above.
eyim
@eyim
Oct 28 2015 06:18
That worked - Thank you Scott
Scott Leibrand
@scottleibrand
Oct 28 2015 17:24
@bewest: I’m seeing 0-IOB again on oref0. looks like the tz() stuff isn’t working: openaps/oref0#9
LadyViktoria
@LadyViktoria
Oct 28 2015 17:26
did i need the python stuff and setup openaps/openaps if i want to test openaps-js or oref0?
Scott Leibrand
@scottleibrand
Oct 28 2015 17:29
yes
LadyViktoria
@LadyViktoria
Oct 28 2015 17:29
:) thank you
Scott Leibrand
@scottleibrand
Oct 28 2015 17:29
use oref0: openaps-js is deprecated
LadyViktoria
@LadyViktoria
Oct 28 2015 17:30
yes i saw a link to loop.sh in oref0
Scott Leibrand
@scottleibrand
Oct 28 2015 17:33
I just removed that from the dev branch last night
with oref0 the paradigm is to make aliases that do everything
see ben's openaps-example for examples
LadyViktoria
@LadyViktoria
Oct 28 2015 17:40
ok
Ben West
@bewest
Oct 28 2015 17:47
@scottleibrand interesting, I think the right solution here is to use the timezone tool
Scott Leibrand
@scottleibrand
Oct 28 2015 17:49
which is what's not working, right?
Ben West
@bewest
Oct 28 2015 17:49
well, I thought I had tested this
Scott Leibrand
@scottleibrand
Oct 28 2015 17:49
I thought it used to be working
Ben West
@bewest
Oct 28 2015 17:49
and saw tz bringing it into local timezone
Scott Leibrand
@scottleibrand
Oct 28 2015 17:49
not sure what changed
but it's doing it on both my pi and my ubuntu server
Ben West
@bewest
Oct 28 2015 17:52
fairly sure that ensuring everything is run through timezone tool first will help
right now calculate-iob is kind of deceptive name because it's also munging timezones, and also aggregating/re-organizing data
we can put it out of the tz business re-using the timezone tool
in oref0 spec/docs we should document that the expectation is that before doing calculations and comparing things, all datetimes need to be 8601 and have valid timezone
I'd also like NS to consider temp iobs
would be nice to re-use the calculator
eszcloud
@eszcloud
Oct 28 2015 18:24
@scottleibrand the internet is not cooperating with me downloading a new image of Jessie. still working on it, but you may not want to wait for me on that PR
Scott Leibrand
@scottleibrand
Oct 28 2015 18:28
@eszcloud k. it looks like it's at least better than the current docs, so I'll probably add a note that you might have to run the script twice and then merge it
Oskar Pearson
@oskarpearson
Oct 28 2015 20:37
Random question of the day: Siobhan has a (minor) allergic reaction to the plasters for the Medtronic sensor units. Does anyone have any suggestions for a hypoallergenic replacement? I saw someone had a template for cutting plasters for the dexcom units
Scott Leibrand
@scottleibrand
Oct 28 2015 20:49
heh, yet another Britishism: we call that "adhesive" instead of "plaster" :)
Ben West
@bewest
Oct 28 2015 20:49
I was very sensitive to that as well
I would get rash from all the medtronic adhesive
Oskar Pearson
@oskarpearson
Oct 28 2015 21:18
South Africanism in this case! :)
That gives me a search term to try at least :)
Scott Leibrand
@scottleibrand
Oct 28 2015 21:19
ah
Dana Lewis
@danamlewis
Oct 28 2015 21:32
oh yea, search for dexcom adhesive allergy, too, to give you more ideas. Some people use various tapes/adhesive underneath the sensor; I've also heard of people using an inhaler to spray on their skin before placing the sensor.
Tim Howard
@tghoward
Oct 28 2015 23:58
oref0 determine-basal is giving me
could not determine last BG time
I'm wondering if this is because I'm pulling data from a MM rather than a dex?
Dana Lewis
@danamlewis
Oct 28 2015 23:59
likely..not sure if anyone has tested with MM?
Tim Howard
@tghoward
Oct 28 2015 23:59
otherwise everything is up to date
Scott Leibrand
@scottleibrand
Oct 28 2015 23:59
you probably have different date fields than it's expecting