/tp_autotune

Primary LanguageJavaScriptMIT LicenseMIT

tp_autotune - because naming things is hard.

The goal of this project total hack is to take data from Tidepool and make it usable by the Autotune feature from oref0. It currently does this in probably the worst ways possible (if it works at all), but it has very lofty dreams of someday becoming a genuinely useful thing.

This comes with no warranty nor guarantee of accuracy, efficiency, or... well anything really.

This tool currently assumes that you have a json dump of your Tidepool data (using command-line-data-tools or the like) AND have the Docker image pazaan/oref0 installed. You can use the -d/--no-docker flag to use a globally installed copy of oref0 instead of the Docker image.

Usage (if you dare):

yarn tune --start-date <YYYY-MM-DD> --end-date <YYYY-MM-DD> --source <path to `json` dump>

This will generate a lot of files in a data directory that vaguely mirror the files that would be generated by oref0-autotune and, if you're very very lucky, will spit out the proper output from Autotune.

TODO:
  • Fetch Tidepool data (only required data by type and date)
  • Launch Docker container at start and execute against it/shut it down at end instead of running lots of single commands