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

29th
May 2016
garykidd
@garykidd
May 29 2016 01:39
@bewest how do youuse the template tool...apparently not openaps use template
Ben West
@bewest
May 29 2016 01:40
oref0 template -h
oref0 template mint device oref0 for example prints bunch of json
to import it, oref0 template mint device oref0 | openaps import
there are bunch more though
oref0 template mint reports oref0-inputs, oref0 template mint reports medtronic-pump and oref0 template mint alias common
garykidd
@garykidd
May 29 2016 01:45
lot of progress recently
thanks everyone
how much extra work is it to convert progress to date that I;ve made on my RP3 to an edison?
Ben West
@bewest
May 29 2016 02:00
hmmm, in terms of configuring, all the software is the same
in fact
oref0 export-loop will export entire config, everything to a single json file
save it using oref0 export-loop | tee my-backup-config.json
import it later, (on edison with openaps installed) with openaps import my-backup-config.json
JaysonEwer
@JaysonEwer
May 29 2016 02:06
@bewest I'll still need to replicate my chron tab settings if I use the export loop command, right?
Ben West
@bewest
May 29 2016 02:06
that's true, it doesn't do crontab
for that consider crontab -l | tee backup-cron.tab or similar
JaysonEwer
@JaysonEwer
May 29 2016 02:07
Is it possible to add that as one of the files it backs uo?
Up
Ben West
@bewest
May 29 2016 02:07
sure
JaysonEwer
@JaysonEwer
May 29 2016 02:07
Thanks for the workaround command.
Ben West
@bewest
May 29 2016 02:07
if you do above, you can do crontab backup-cron.tab
to import/restore it
I'm thinking about doing a template for crontab as well
maybe oref0 template-helper
since there's a device-helper and alias-helper :-)
JaysonEwer
@JaysonEwer
May 29 2016 02:10
Sweet, thank you. Now I just need to wrap my head around the new Nightscout functionality. My Edison rig is physically ready, I just haven't setup the NS stuff to pull my BGs down to my Edison yet.
Ben West
@bewest
May 29 2016 02:12
nightscout autoconfigure-device-crud :-)
my favorite way of getting help for the openaps use ns shell ... thing is actually to type: nightscout ns -h
r$ nightscout ns -h
Unknown request:
TODO: improve help
openaps use ns shell get entries.json 'count=10'
openaps use ns shell upload treatments.json recently/combined-treatments.json

  -h                                  This message.
  get type args                                  Get records of type from
                                                 Nightscout matching args.

  upload endpoint file                           Upload a file to the Nightscout endpoint.
  latest-treatment-time                          - get latest treatment time from Nightscout
  format-recent-history-treatments history model - Formats medtronic pump
                                                 history and model into
                                                 Nightscout compatible
                                                 treatments.

  format-recent-type ZONE type file              - Selects elements from the
                                                 file where the elements would
                                                 satisfy a gap in the last 1000
                                                 Nightscout records.

  upload-non-empty-treatments file               - Upload a non empty treatments
                                                 file to Nightscout.
  lsgaps tz entries                              - Re-use openaps timezone device
                                                 to find gaps in a type (entries)
                                                 by default.
  upload-non-empty-type type file
  status                                         - Retrieve status
  preflight                                      - NS preflight
vincepf
@vincepf
May 29 2016 02:24
Hello, all. I was referred to this room by some nice folks in the CGM in the cloud FB group. Regarding the specific Medtronic pumps needed for openAPS - It seems that a used pump is the only option. After obtaining said pump, has your Dr. written scripts for pump supplies or have you been self-funding?
Ben West
@bewest
May 29 2016 02:28
some people already had prescriptions for medtronic
essentially just downgrading was easiest option for a lot of people
some people switched, told their doctor about everything, and had them add it to RX for supplies
to my knowledge, those are biggest two groups, not sure I've actually heard of a doctor who was actually against it and did not want to cooperate
vincepf
@vincepf
May 29 2016 02:42
Thank you Mr. West. My 8 yr. old son has a TSlim pump and I'd have to give up on that one to switch to an old Medtronic to execute openAPS for him. Between convincing my wife, and his pediatric endo, I think my odds are pretty long. But kudos and a great many thanks to you and those working on this project. It is and will continue to be a greatly needed gift to many T1Ds.
Paul Martin
@Spazholio
May 29 2016 02:47
I’ve actually got a file on my local laptop that’s just nothing other than useful things that @bewest has said that I need to go back and study. That says something. =)
vincepf
@vincepf
May 29 2016 02:48
@Spazholio I don't doubt that one bit.
Paul Martin
@Spazholio
May 29 2016 02:49
You know what would be a useful tool, @bewest? It’s a tall order, but oref0 find-obsolete. It would find some of the older ways that used to be used, like the iter_glucose calls and non-oref0 ns-status calls that could be replaced with proper oref0 calls.
Lynne Butts
@flutelynne_twitter
May 29 2016 04:28
@bewest would the preferences part be: openaps preferences invoke {"max_iob": 2} JSON <my pump name> {"max_iob": 2} ?
fjungman
@fjungman
May 29 2016 05:54
Noob question, but I'm stuck. I have my OpenAPS generating good suggested.json reports using the hand held dex unit. Now, I want to pull from NS. I have BWP, BASAL, CAGE, IOB, COB pills working for months. Now, when I try to follow the steps you mention above and in the docs (such as 'Requires DEVICESTATUS_ADVANCED="true" to be set'), I don't know what to do here. I added pump and openaps to the enable in App Settings in Azure. Now, I added PUMP_FIELDS in "key" and reservoir battery in "value" under app settings. The pills do not appear, nor is there additional check boxes in the NS settings menu. I've tried a million combinations, but can't crack this nut. One thing is: What does "DEVICESTATUS_ADVANCED="true"" mean? Where does that go and do I use an "=" and quotes around true? I thought no to those questions and that it went in App Settings, but maybe that is my mistake...
Saskia
@Missdazzle
May 29 2016 07:47
@fjungman Try to do the DEVICESTATUS_ADVANCED just like the PUMP_FIELDS.
live4sw
@live4sw
May 29 2016 12:03
Hi all, just saw @bewest tweet on all the new releases. Two questions - is there a good place to see what’s new in each of these versions? In addition, will sudo easy_install -ZU openaps update each of them, or just openaps?
Lynne Butts
@flutelynne_twitter
May 29 2016 15:13
Good morning. When installing cron, do I use: sudo apt-get install gnome-schedule ? And would that be BEFORE changing directory to my directory or after?
GeoffWyche
@GeoffWyche
May 29 2016 15:14
@flutelynne_twitter I'm not an openaps person, but I might be able to help. If the command you are running is "sudo apt-get install gnome-schedule" then it does not matter what directory you are running it from.
Lynne Butts
@flutelynne_twitter
May 29 2016 15:16
@GeoffWyche ok Thank you.
GeoffWyche
@GeoffWyche
May 29 2016 15:16
I don't know if gnome-schedule installs a crotab, but it would seem likely.'
Lynne Butts
@flutelynne_twitter
May 29 2016 15:17
It's listed in cronhowto page.
GeoffWyche
@GeoffWyche
May 29 2016 15:18
looking at the output of 'apt show gnome-schedule', I would guess it installs a crontab, so yes, try 'sudo apt-get install gnome-schedule'
if you want later want to undo it, use 'sudo apt-get remove gnome-schedule'
Lynne Butts
@flutelynne_twitter
May 29 2016 15:19
Thank you! I will save those.
fjungman
@fjungman
May 29 2016 15:28
@Missdazzle thanks, but that still doesn't work. I'm at 0.8.4. Is this only available in the 0.9.0 beta?
Lynne Butts
@flutelynne_twitter
May 29 2016 15:34
@fjungman This works on the 0.9 beta. Right now it is beta 2, but I believe that beta 3 will be released soon. You can search for it on NS FB page...try "grilled cheese" should see something there
C-Ville
@C-Ville
May 29 2016 15:36
does someone has by chance a link to a collection of OpenAPS watchfaces for pebble?
Jason Calabrese
@jasoncalabrese
May 29 2016 15:38
The betas are really just like tags on the dev branch, but I create a branch for them since you can't PR from a tag. The NS dev branch is always the most current. Any help testing before I do a final beta 3 would be great.
@C-Ville urchin cgm is probably what you want, https://github.com/mddub/urchin-cgm
C-Ville
@C-Ville
May 29 2016 15:40
Jason, thank you
Paul Martin
@Spazholio
May 29 2016 15:42
Odd question, but does anyone know the exact size header pins I would need to buy if I wanted to install them onto an Edison breakout board?
live4sw
@live4sw
May 29 2016 15:48

Hey - having a problem with the timestamp on my OpenAPS status in NS. Should have a fairly quick answer, but haven’t been able to figure it out yet. Basically, my status in NS is showing as “1m ago: IOB: 0.49U, Basal IOB 0.47U” even though that is an entry from about an hour ago and I have had my rig off since then.

Here’s the last entry:

    "_id": {
        "$oid": “[removed]"
    },
    "device": "openaps://[removed]",
    "pump": {
        "battery": {
            "status": "normal",
            "voltage": 1.36
        },
        "status": {
            "status": "normal",
            "timestamp": "2016-05-29T14:51:54.000Z",
            "bolusing": false,
            "suspended": false
        },
        "reservoir": 111.4,
        "clock": "2016-05-29T10:52:17-04:00"
    },
    "openaps": {
        "suggested": [
            {
                "msg": "BG data is too old, or clock set incorrectly Sun May 29 2016 10:39:39 GMT-0400 (EDT) vs Sun May 29 2016 10:52:01 GMT-0400 (EDT)"
            }
        ],
        "iob": {
            "netbasalinsulin": 0.55,
            "timestamp": "2016-05-29T14:51:57.000Z",
            "activity": 0.0051,
            "basaliob": 0.479,
            "hightempinsulin": 0.55,
            "bolussnooze": 0,
            "iob": 0.496
        },
        "enacted": {
            "bg": 122,
            "temp": "absolute",
            "snoozeBG": 101,
            "recieved": true,
            "reason": "Eventual BG 101>=100, temp 1.75<0.87U/hr. Setting neutral temp basal of 0.85U/hr",
            "rate": 0.85,
            "eventualBG": 101,
            "timestamp": "2016-05-29T14:47:09.000Z",
            "duration": 30,
            "mealAssist": "Off: Carbs: undefined Boluses: undefined ISF: 40, Target: 98 Deviation: 0 BGI: -1.08",
            "tick": -1
        }
    },
    "created_at": "2016-05-29T14:52:05.237Z”
}
I’ve set my timezone configuration, everything, so I don’t know why my NS site still seems to think this update was just 1m ago, though I would assume it is likely a timestamp issue.
live4sw
@live4sw
May 29 2016 16:11
Manually removing the mongo entries for the rig gets rid of the “stuck at 1m” issue, but that’s not a great solution since that means I can’t use the rig and have to use my original one.
Didie
@elodaille01_twitter
May 29 2016 16:45
@bewest
Bonjour nous commençons tout j
Jason Calabrese
@jasoncalabrese
May 29 2016 16:48
@live4sw maybe you had 1 with future data from before you adjust times/timezones?
Didie
@elodaille01_twitter
May 29 2016 16:51
Oups sorry. .erreur de manipulation. .nous commençons tout juste openaps. .le wifi est configuré sur le Raspberry Pi. .nous ne comprenons pas bien s' il faut mettre de côté ou pas les premières instructions pour configurer le Bluetooth @bewest ..thank you. Sorry we're 'beginner' ;-)
Aie aie aie c'est n'importe quoi ce texte, désolée ce n'est pas du tout ce que j'avais écrit
live4sw
@live4sw
May 29 2016 16:53
@jasoncalabrese That makes sense, but I’m not sure how to check/fix that. I see that the timestamps on my entries are UTC rather than local but that is how my normal rig does it.
Didie
@elodaille01_twitter
May 29 2016 16:54
So sorry..gitter doesn't like french contribution ?
live4sw
@live4sw
May 29 2016 16:57
@elodaille01_twitter Je pense qu’il n’y a pas francophones en OpenAPS, mais je pense que ce sont beaucoup de francophones dans Nightscout en general
pardon my elementary french
Didie
@elodaille01_twitter
May 29 2016 17:00
Ok thank you @live4sw ..i've posted something in french but it becomes super strange lol
No your french is perfect !!
Please, must we make the Bluetooth configuration for the Raspberry (optional ) ?
live4sw
@live4sw
May 29 2016 17:05
Not sure if you are asking if bluetooth is necessary for the Pi, but it’s one option for connectivity. I personally use wifi instead and don’t use bluetooth, I’ve found bluetooth unreliable but others prefer it.
got to go for now
Didie
@elodaille01_twitter
May 29 2016 17:19
Ok thank you Andrew..have you already built yours ?
Do you have already built yours (sorry)
Ben West
@bewest
May 29 2016 18:01
i can sort of read french sort of
ble is required to talk to g4 with share over bluetooth
otherwise, it's optional
PieterGit
@PieterGit
May 29 2016 18:17
@danamlewis @bewest @jasoncalabrese did you happen to be able to discuss the bounty on https://www.bountysource.com/issues/28271255-generic-pump-monitoring I'm happy to let dana claim the $15. otherwise my money will go to bountysource instead of openaps/nightscout
Jason Calabrese
@jasoncalabrese
May 29 2016 18:30
@PieterGit if left a comment on the issue
ryanchen26
@ryanchen26
May 29 2016 18:38
Need confirmation: I got a medtronic 723 with firmware 2.4A 1.1 .... will this work with OpenAPS? Should right?
Ben West
@bewest
May 29 2016 18:40
probably, you can just try it if you have it :-)
ryanchen26
@ryanchen26
May 29 2016 18:41
About to arrange pickup / drive over and get it...I don't have it yet.
Oh, just got confirmation on Google Groups. Awesome.
Paul Martin
@Spazholio
May 29 2016 19:04
@eluhrs - I’m looking at the case you designed here: https://www.thingiverse.com/thing:1525618. Mind if I ask why you have the PowerBoost charger on there? Is it necessary? Is it comparable to: http://smile.amazon.com/Adafruit-Mini-Lipo-Mini-B-Jack/dp/B00SK8J94M?ie=UTF8&psc=1&redirect=true&ref_=od_aui_detailpages00 ?
C-Ville
@C-Ville
May 29 2016 20:26
I have been adventurous and installed 0.1.2-dev on a new pi, to get started I tried to copy old ini files from my currently running loop, now I am having problems with the vendor for timezones, where should/could I go look for changes?
Jason Calabrese
@jasoncalabrese
May 29 2016 20:29
maybe openaps-contrib wasn't installed?
C-Ville
@C-Ville
May 29 2016 20:47
var code = "formatted";
````pi@APSBackup:~/myaps $ openaps vendor add openapscontrib.timezones
No module named openapscontrib.timezones
openapscontrib.timezones doesn't seem to be an importable python module
If it is a python module, try using --path to influence
PYTHONPATH
sorry still trying :-) that is the error message I am getting when trying to set that up from scratch
Ben West
@bewest
May 29 2016 20:51
sudo pip install -U openaps-contrib ?
or if you were using easy_install, before: sudo easy_install -ZU openaps-contrib?
there's no reason to use openaps, dev, btw
I recommend using master, what's released
C-Ville
@C-Ville
May 29 2016 20:55
@bewest thanks, I think on my other pi I do have 0.1.1, could not remember that I had to manually install openaps-contrib.
Tom Boudreau
@TomBoudr_twitter
May 29 2016 21:57
Q for all. I'm stuck on the cron setup. I have "cd ~/tom2_openaps/ && openaps runset" as my command where "runset" is my master openaps alias which i can run manually without a problem. What am i doing wrong?
Scott Leibrand
@scottleibrand
May 29 2016 22:20
check the syntax for cron. you need to define a schedule, by prefacing that with something like */5 * * * *, and you'll also need to specify your PATH and any ENV vars on previous lines
Paul Martin
@Spazholio
May 29 2016 22:27
And can you use a ~ in cron? Thought you had to use absolute paths...
mm22dl
@mm22dl
May 29 2016 22:48
Pretty sure you can't
ryanchen26
@ryanchen26
May 29 2016 23:03
In the docs, the part about pulling bg numbers from Nightscout by adding device "curl"...it feels like there should be a small instruction afterwards for testing this (getting the BG from Nightscout) immediately afterwards.
like... openaps use curl shell
Paul Martin
@Spazholio
May 29 2016 23:17
I think that bit can be replaced by the new nightscout device. @bewest - am I remembering that correctly?
Either way, you’re right - there should be something in there to indicate how to verify that it’s working properly.
Ben West
@bewest
May 29 2016 23:19
yeah, use ns
there's ways to test it and it puts the secret and website in the ini file once and for all
no more finicky environment variables that are sometimes set and sometimes not
This message was deleted
also, working on a tool to help with crontabs: openaps/oref0#126
example:
$ oref0 cron-5-minute-helper
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

*/5 * * * * (cd /home/edison/openaps && time openaps do-everything ) 2>&1 | logger -t openaps-loop
so oref0 cron-5-minute-helper | crontab - would be enough to get it right
it'll take arguments to replace openaps do-everything with other stuff for people who prefer that
Paul Martin
@Spazholio
May 29 2016 23:24
The ns device is just an alias to the nightscout command, right?
Ben West
@bewest
May 29 2016 23:25
hmmm
Paul Martin
@Spazholio
May 29 2016 23:25
As in openaps use ns shell is the same as just running nightscout more or less?
Ben West
@bewest
May 29 2016 23:25
it's a bit more
best way to get help for it is nightscout ns help
$ nightscout ns help
Unknown request:
TODO: improve help
openaps use ns shell get entries.json 'count=10'
openaps use ns shell upload treatments.json recently/combined-treatments.json

  -h                                  This message.
  get type args                                  Get records of type from
                                                 Nightscout matching args.

  upload endpoint file                           Upload a file to the Nightscout endpoint.
  latest-treatment-time                          - get latest treatment time from Nightscout
  format-recent-history-treatments history model - Formats medtronic pump
                                                 history and model into
                                                 Nightscout compatible
                                                 treatments.

  format-recent-type ZONE type file              - Selects elements from the
                                                 file where the elements would
                                                 satisfy a gap in the last 1000
                                                 Nightscout records.

  upload-non-empty-treatments file               - Upload a non empty treatments
                                                 file to Nightscout.
  lsgaps tz entries                              - Re-use openaps timezone device
                                                 to find gaps in a type (entries)
                                                 by default.
  upload-non-empty-type type file
  status                                         - Retrieve status
  preflight                                      - NS preflight
basically, when you run openaps use ns shell ...
it's running nightscout ns $HOSTNAME $API_SECRET ... under the hood
because your host and api secret are the ini
Paul Martin
@Spazholio
May 29 2016 23:27
Hey look, so it is. I set up the ns device, upgraded to the AMA branch so it broke, and now that it’s fixed, I’m getting back to using it. =)
Ben West
@bewest
May 29 2016 23:27
so you can get, upload, all with openaps use ns shell ... exactly same as ns-upload vs ns-get but without the variables and stuff
you can also lsgaps, upload-non-empty-type, etc
this way, everything works via reports all the same way
John Males
@johnmales
May 29 2016 23:53
Hi Ben sorry to trouble you I saw you mentioned earlier a way to export a openaps setup to a json file to setup elsewhere - I can see the openaps-import command but can't see / find the related export command.
Ben West
@bewest
May 29 2016 23:54
oref0 export-loop
John Males
@johnmales
May 29 2016 23:54
thanks :)