Check out https://github.com/nielsmaerten/autotune-cloud for the new version of this project.
https://autotune.diabase.app <== Try it out :)
Run oref-autotune as a dockerized HTTP service
This image is based on autotune-docker and is designed to allow you to run oref0-autotune
(docs) without needing to have a full copy of oref0 installed to your system.
Autotune Web allows you to enter the URL to your Nightscout profile, and then runs autotune for you in the cloud.
autotune-docker lets you run autotune on your own machine, without having to install dependencies or go through the setup.
autotune-cloud (this project) adds an HTTP server on top of autotune-docker, making it functionally equivalent to Autotune Web, but with better scalability and faster results. You can still run it yourself without too much setup, or in the cloud on a Kubernetes cluster.
Go into the directory that includes docker-compose.yaml
and run
docker-compose up --build
To run oref0-autotune on your own Nightscout site, send this POST request to the server:
curl -X POST \
'http://localhost:3000?nsHost=https://my.ns.site&startDate=2019-05-25' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Host: localhost:3000' \
-F profile=@/path/to/your/profile.json
The following query parameters are available:
nsHost
: the url to your nightscout sitestartDate
: default=nullendDate
: default=nullstartDaysAgo
: default=1endDaysAgo
: default=nullcategorizeUamAsBasal
: default=false