Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Does deviation just show the observed increase/decrease in BG over and above what should have happened if basal and carb ratio was correct?
    If I add the net amount of insulin given in the meal period (from when carbs first observed to when deviation reaches 0) using the IOB figure and subtract any remaining IOB when deviations reach 0, I think that could be used to work out the CR - not sure if i'm over complicating it.
    Hi all! When i run autotune (dev) the recommendations log is not shown but every line says ‘/usr/bin/oref0-autotune-recommends-report: line96: bc: command not found’
    (40 lines approx)
    Below is:
    Usage: grep [option]... Patterns [file]
    Any ideas? Thanks!
    When i go to recommendations log in directory all basal u/hr values are empty
    Scott Leibrand
    looks like you don't have a full oref0 install. the unix command bc didn't get installed correctly
    @dansuk deviation is "how much BG is rising or falling beyond what would be expected from insulin activity"
    the expected BG impact of insulin activity is BGI. that vs. the observed (average) delta is deviation
    so when carb absorption is going strong, deviations will be high
    and yes, I think that methodology matches what I was saying
    you could either subtract out IOB (and BG*ISF) when deviations reach zero, or you could try to wait for IOB to decay down to zero and BG to get down to target. I think the latter might be unnecessarily complicated, though, if you're not trying to tune ISF, just CR.
    Peter Schwartz
    At step 2 of the install instructions Do I still have to use the 2nd command if I'm running AndroidAPS
    AS in npm list -g oref0 | egrep oref0@0.5.[5-9] || (echo Installing latest oref0 package && sudo npm install -g oref0) this command?
    Scott Leibrand
    Have you tried autotuneweb?
    Peter Schwartz
    Yes. And the results are far off for me
    Peter Schwartz
    And I have basal tested manually and my rates are correct.
    Radu Neacsu
    Hello, I want to use your repo to build something similar on my server, this way I can use my resources and leave more for others that don't have another alternative. I manage to raise a container but I don't have the UI.
    It is a separate repository for graphics?
    Hi, I try to use autotune, but always get an (401) Unauthorized. Error. I have created a new role in nightscout with all access and added to token url, but this is also not working?
    Been trying fo ra few weeks to get Autotune to work without much look. At first, I was getting an error which I do not know now and now I'm just getting the queue page for over a day and no email sent
    @TheDiabeticWay can you let me know your NS URL and I can look into what’s happened to your jobs?
    @MarkMpn thank you for this!
    Hi, similar to MarkMpn, i don’t receive the autotune result any longer. It used to work fine (and thanks a lot for it) but it stopped a couple of weeka
    My NS profile is https://mae2007.herokuapp.com/ thanks for having a look
    @laloul I can't see any problems here, I can see 6 jobs processed to completion yesterday for you, 5 results were sent to a personal address and 1 to a work address. Can you check spam folders etc?
    I am running Autotune but the starting basals are not correct. I checked NS which lines up with loop
    Could anyone explain why this is occurring and how I can fix it? It seems to be segregated to overnight basals only
    Hi guys, is there a way to use AutotuneWeb with access tokens? Like, my NS url looks like https://[edited].herokuapp.com/?token=readonly-000fff. When I paste that to the AutotuneWeb it gets a 401 Unauthorized error.
    @toxuin Unfortunately not
    Previous discussions and also a github issue have the author saying that it's policy not to process anything but publicly available NS sites.
    Personally I don't see the distinction between providing an open site or providing a read token and URL.
    Fortunately autotune can be run from any Linux machine.
    Hi, I'm new to this and experimenting with autotune. First a basic question: Is autotune taking into account the temp basal changes of the closed loop when optimizing my basal rate ?

    Second issue: I set up oref0 on my ubuntu 18.04 machine but when running the algo, at the end I get:
    CRTotalCarbs: 210 CRTotalInsulin: 21.657 totalCR: 9.697

    TypeError: Cannot set property 'i' of undefined
    at tuneAllTheThings (/usr/local/lib/node_modules/oref0/lib/autotune/index.js:184:32)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-autotune-core.js:67:27)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

    Does anyone know what's going on ?

    Guy Davies
    Hi all, I'm also new here. I've been using autotuneweb to do offline tuning of my insulin dosage for my AAPS setup but I noticed that there was a comment saying that you had to ensure you're using absolute values for TBR (I do) and using the dev branch. I tried downloading the setup and ran the master branch using the recommendations for offline on Mac. I then tried downloading from git and switching to the dev branch for the same scripts but they seem to fail with the following errors.

    ```guyd@guyd-mbp ~/GIT/oref0/bin [dev]
    ± % ./oref0-autotune.sh --dir=~/myopenaps --ns-host=https://guyd-ns.herokuapp.com --start-days-ago=28 !3746
    Running oref0-autotune --dir=/Users/guyd/myopenaps --ns-host=https://guyd-ns.herokuapp.com --start-date=2019-11-13 --end-date=2019-12-10 --categorize-uam-as-basal=false
    Compressing old json and log files to save space...
    Autotune disk usage:
    136K .
    Overall disk used/avail:
    Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
    /dev/disk1s1 466Gi 325Gi 137Gi 71% 3155280 9223372036851620527 0% /
    Grabbing NIGHTSCOUT treatments.json and entries/sgv.json for date range...
    Query: https://guyd-ns.herokuapp.com entries/sgv.json find%5Bdate%5D%5B%24gte%5D=1573614000000&find%5Bdate%5D%5B%24lte%5D=1573700400000&count=1500
    -rw-r--r-- 1 guyd staff 85 11 Dec 15:52 ns-entries.2019-11-13.json
    Query: https://guyd-ns.herokuapp.com treatments.json find%5Bcreated_at%5D%5B%24gte%5D=2019-11-12T06:00+01:00&find%5Bcreated_at%5D%5B%24lte%5D=2019-11-14T18:00+01:00
    -rw-r--r-- 1 guyd staff 85 11 Dec 15:52 ns-treatments.2019-11-13.json
    oref0-autotune-prep ns-treatments.2019-11-13.json profile.json ns-entries.2019-11-13.json profile.pump.json > autotune.2019-11-13.json
    glucoseData = opts.glucose.map(function prepGlucose (obj) {

    TypeError: opts.glucose.map is not a function
    at categorizeBGDatums (/usr/local/lib/node_modules/oref0/lib/autotune-prep/categorize.js:24:36)
    at generate (/usr/local/lib/node_modules/oref0/lib/autotune-prep/index.js:23:30)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-autotune-prep.js:131:27)
    at Module._compile (internal/modules/cjs/loader.js:1128:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:983:32)
    at Function.Module._load (internal/modules/cjs/loader.js:891:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
    Warning: API_SECRET is not set when calling oref0-autotune.sh
    (this is only a problem if you have locked down read-only access to your NS).
    Could not run oref0-autotune-prep ns-treatments.2019-11-13.json profile.json ns-entries.2019-11-13.json```

    the /usr/local/lib/node_modules/oref0/lib/autotune-prep/categorize.js is from the master branch
    Guy Davies
    OK, so I also just re-read the instructions and built the dev branch locally on my Mac but I still get the same errors even with autotune-prep built from the dev branch
    I have brew installed and all the pre-reqs
    Gah, I feel stupid... I had the wrong API_SECRET environment variable
    it seems to be working now for the basic autotune. My next step I was planning was to look at oref0-autotune-daysofweek.sh
    Guy Davies
    but I'm not clear whether that only works on today or whether I can have that look back over the previous month, for example. My goal is to have a weekend profile and a weekdays profile. Within those periods, my requirements are pretty stable but between them there seems to be a significant change, causing me issues over the weekend with lots of low BG.
    Dana Lewis
    @sasoubi yes, it takes into account the temp basals. It looks like that error says there’s an issue with your input profile basal rate - check your Ns profile for typos and make sure none of the basal rates are set to 0.0?
    @guydavies that needs to be updated in docs - you can use master branch now, but looks like you got it sorted
    You can run that option over historical data too
    Guy Davies
    Thanks @danamlewis. Is there somewhere that the new flags for the main oref0-autotune are documented? The oref0-autotune-dayofweek.sh script only seems to take two parameters, dir and ns-host.
    Scott Leibrand
    oref0-autotune-dayofweek.sh is not actively maintained, as very few people are using it. it may need some updates to make it current.
    Guy Davies
    Thanks @scottleibrand. I'll take a look to see if I can make it work and if not seek some more advice here.