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

20th
Jan 2015
diabeticgonewild
@diabeticgonewild
Jan 20 2015 04:13

This is pretty much what I have done for an AR model for BG prediction. This is the links to the functions.
https://gist.github.com/diabeticgonewild/48d0e7e7cb9af5ceba57
This is a step up from pseudocode, as I have not tested the code hardcore. It is bound to have both compile-time and runtime errors.

It uses numerical methods so it's likely heavy computation.

diabeticgonewild
@diabeticgonewild
Jan 20 2015 04:34
And I am still finding obvious errors to my code.... :(
diabeticgonewild
@diabeticgonewild
Jan 20 2015 05:36
is there any way to get the numeric.js library into NS GitHub? That would be important for BG prediction, as I also need to implement the Extreme Learning Machine (ELM) which will require SVD, most likely. The library is here: http://www.numericjs.com/
I likely need to use numeric.js to do my work efficiently, and I am just pointing that out.
diabeticgonewild
@diabeticgonewild
Jan 20 2015 05:43
This looks nice for singular value decomposition, in JS. https://github.com/xionluhnis/node-svd
kenstack
@kenstack
Jan 20 2015 16:44
Cjo20
I put up a newer version with a few bug fixes of
@cjo20
Chris Oattes
@cjo20
Jan 20 2015 18:22
@kenstack cool, thanks for letting me know.
@kenstack Can I suggest that you don't create a new file for each change, so then git can show the differences between one version and the next?
Dana Lewis
@danamlewis
Jan 20 2015 19:31
@diabeticgonewild, found an email notification about something from you but don't see it here. Deleted maybe? Wasn't sure what the q was?
Something about correction basals from the loop?
kenstack
@kenstack
Jan 20 2015 19:46
@cjo20 sure can do
diabeticgonewild
@diabeticgonewild
Jan 20 2015 22:50

@danamlewis , I didn't send an email notification, unless gitter automatically did.

The old AP algorithm that I did back in like 2011 basically did correction basals, and it wasn't applied in real-time, so I had to sum the "correction basals" into a single bolus, which is an "illegal operation". Is that what you were looking for?

I haven't had a very productive day, fwiw. I need to finish up the AR stuff ASAP.

Dominik Stefan
@DominikStefan
Jan 20 2015 23:23
Does anyone know if any other smartwatches other than the Pebble work with Nightscout (ie, Basis Peak, etc)?
Ben West
@bewest
Jan 20 2015 23:29
not yet
think their are some ios and android watch/wearable stuff floating around
how does basis work? bluetooth? ant?
Dominik Stefan
@DominikStefan
Jan 20 2015 23:36
basis uses "Bluetooth Smart" technology
"Bluetooth Smart indicates a low energy-only device which requires either a Smart Ready or another Smart device in order to function."
Ben West
@bewest
Jan 20 2015 23:42
nifty
is there any code on github that also works with it?
so trick would be to take that and have it fetch the /pebble endpoint