Skip to content

Random collection of things related to OpenAPS / oref0

Notifications You must be signed in to change notification settings

sulkaharo/oref0-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oref0 tools

This is Sulka's repository of tools used with the oref0 closed loop artificial pancreas and Nightscout

Installation

git clone git@github.com:sulkaharo/oref0-tools
cd oref0-tools
npm install

Nightscout statistics

The bin/get-nightscout-stats.js tool runs map-reduce jobs on your Nightscout database and spits out CSV files for importing to a spreadsheet for visualisation.

Usage:

node bin/get-nightscout-stats.js insulincorrections -u databaseuser:password@8host:port/databasename -c datacollectionname

Note the script is finicky about being pointed to the right collection. If you point it to a wrong collection, it'll just display empty results.

Available commands:

insulincorrectionsreturns average number of insulin corrections given / week. Data is provided for both the entire 24 hour period as well as averages for day and night time (treatment events where insulin > 0 and carbs = 0).

carbcorrections is similar to insulincorrections, but for carb corrections (treatment events where carbs > 0 and insulin == 0)

glucose2 exports the weekly glucose distribution numbers as shown in Nightscout distribution statistics; needs to be pointed to the collection that contains your gluose data

About

Random collection of things related to OpenAPS / oref0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published