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

30th
Jan 2016
Matthias Granberry
@mgranberry
Jan 30 2016 00:00 UTC
@scottleibrand :thumbsup: I like being able to shut it down and take a snapshot easily too.
Thomas Emge
@ThomasEmge
Jan 30 2016 00:08 UTC
@mgranberry that is on heroku?
Jason Calabrese
@jasoncalabrese
Jan 30 2016 00:09 UTC
I've been using digitalocean since I started with NS, except for a short time on aws
Matthias Granberry
@mgranberry
Jan 30 2016 00:11 UTC
@ThomasEmge digitalocean
Scott Leibrand
@scottleibrand
Jan 30 2016 00:12 UTC
I have mine set up to backup automatically without having to shut it down or do anything manually
it cost $2/mo extra, but gets you automatic weekly backups
they keep the last 4 for easy restore
Thomas Emge
@ThomasEmge
Jan 30 2016 00:13 UTC
I see a hosting switch this weekend. What about the database?
Scott Leibrand
@scottleibrand
Jan 30 2016 00:14 UTC
mongo on the same droplet
I actually upgraded at some point to the $10/mo one to run everything, but could probably get by with the $5/mo one now that I'm indexing mongo properly. :)
can always upgrade pretty painlessly
Jason Calabrese
@jasoncalabrese
Jan 30 2016 00:16 UTC
1 NS instance and mongo is OK on the $5 size, but of you need more than 1 NS instance you really need the $10 or at least setting up some swap
Thomas Emge
@ThomasEmge
Jan 30 2016 00:20 UTC
and I wanted to tackle to openxshareble this weekend...now I am relocating NS :sweat_smile:
Jason Calabrese
@jasoncalabrese
Jan 30 2016 00:21 UTC
heroku is easy and you can stay with mongolab
more options with digitalocean, but then you're spending time setting up a linux box
Scott Leibrand
@scottleibrand
Jan 30 2016 00:22 UTC
yeah, I would start with heroku
unless you need a linux box for other stuff
Thomas Emge
@ThomasEmge
Jan 30 2016 00:31 UTC
hmm, heroku the hobby version...I somehow do like Azure, and upgrading should be fairly straight forward as well. Thanks....closing in on my 72 hrs of looping, and I have only broken one USB cable so far ;)
Dana Lewis
@danamlewis
Jan 30 2016 00:32 UTC
impressive @ThomasEmge :)
Jim Matheson
@jmatheson
Jan 30 2016 01:45 UTC
congrats @JaysonEwer !
JaysonEwer
@JaysonEwer
Jan 30 2016 01:53 UTC
Thanks @jmatheson! Did you get you TI yet? I really need to get one. I want a brick and mortar store I can pick one up.
Jim Matheson
@jmatheson
Jan 30 2016 02:05 UTC
My TI stick is set to arrive monday. It was in SF at 5:30am today but i guess they need to be there at 4am to make it on the truck for the day. #firstworldproblems
my edison will be here tomorrow though. Is there Edison setup instructions documented anywhere yet? poked around a bit but have not come across anything.
JaysonEwer
@JaysonEwer
Jan 30 2016 02:10 UTC
Nice
I haven't seen any documented steps either.
Jim Matheson
@jmatheson
Jan 30 2016 02:50 UTC
@jasoncalabrese I’ve been having some hotspot troubles too. Between that and my Ble troubles with the G5 (dropping) it’s a bit frustrating so far.
Jason Calabrese
@jasoncalabrese
Jan 30 2016 03:00 UTC
ti udb steps here: https://github.com/oskarpearson/mmeowlink/wiki/TI-USB-stick, lots more on that wiki
Jim Matheson
@jmatheson
Jan 30 2016 03:31 UTC
yea - i’ve been staring at that page all day :)
Thomas Emge
@ThomasEmge
Jan 30 2016 06:19 UTC
done - 72 hrs and continuously running. Home, work, soccer practice, and shopping. I guess I am reading start iteration 2 and shrink the components.
Scott Leibrand
@scottleibrand
Jan 30 2016 06:20 UTC
:-)
did you fill out Dana's form and get your number yet?
Dana Lewis
@danamlewis
Jan 30 2016 06:23 UTC
Good grief people, you keep make me updating slide decks every few hours ;)
Aka, yay @ThomasEmge ! #OpenAPS is now (n=1)*32
Congrats :)
Thomas Emge
@ThomasEmge
Jan 30 2016 06:24 UTC
just filled it out...
Dana Lewis
@danamlewis
Jan 30 2016 06:24 UTC
Yup, you're official now!
Scott Leibrand
@scottleibrand
Jan 30 2016 06:24 UTC
lol
Thomas Emge
@ThomasEmge
Jan 30 2016 06:28 UTC
thank you guys, it has been quite the journey so far.
Dana Lewis
@danamlewis
Jan 30 2016 06:30 UTC
:) :+1:
Three folks started looping on the 26th, I'm curious now to go back and see if there's a day of the week that people tend to start looping on more than others :) or if there's any other pattern or insight hidden in start data
Aaron Michelson
@Aaybob
Jan 30 2016 06:41 UTC
set_temp_basal : format(duration) TpyeError: assert duration % 30 is 0
I'm assuming set_temp_basal works with some cgm readings and not with other. To only execute set_temp_basal when it will work I'm trying this and I think its wrong. How might I change this code? ! bash -c "openaps loop: cat enact/suggested.json && grep -q duration enact/suggested.json && openaps use pumpbuilding set_temp_basal enact/suggested.json"
Dana Lewis
@danamlewis
Jan 30 2016 06:42 UTC
Is your pump set to do temp basals in % or absolute amounts?
Aaron Michelson
@Aaybob
Jan 30 2016 06:42 UTC
set temp basal as U/H
shows when i navigate the pump menu
Scott Leibrand
@scottleibrand
Jan 30 2016 06:44 UTC
cat enact/suggested.json
(paste that please)
Aaron Michelson
@Aaybob
Jan 30 2016 06:46 UTC
okay it shows {"temp":"absolute","bg":153,"tick":-2,"eventualBG":104,"snoozeBG":120,"reason":104 is in range no temp required
Scott Leibrand
@scottleibrand
Jan 30 2016 06:47 UTC
you'll want to define a report to do your enact, something like: openaps report add enact/enacted.json JSON pumpbuilding set_temp_basal enact/suggested.json, and then updated your enact code to do openaps report invoke enact/enacted.json instead of the openaps use pumpbuilding set_temp_basal
try grep -q duration enact/suggested.json && echo true || echo false
the grep -q duration enact/suggested.json should prevent it from trying to enact that particular suggested.json. the assert duration error you go indicates it did try to enact something, though, so I'm having you check the logic of that code with simple true / false output
Aaron Michelson
@Aaybob
Jan 30 2016 06:59 UTC
Maybe its working now....log file shows No CGM data.
{"temp"...no temp to cancel"}
Preflight ok
{same}
sometimes No CGM data.
the grep returns false
I have a temp basal set by OpenAPS now
last log entry has the "enact" output
and I'm not getting the error message in the log now...
not sure what I changed....was trying to simplify PREFLIGHT
Aaron Michelson
@Aaybob
Jan 30 2016 07:21 UTC
OMG the time flies when I work on this....too many late nights but Automatic Pancreas seems to be working now. yes this'll be my third night with it working for sure....last night I had a level at 130 which is outside my pump setting of 120 I was running OpenAPS cron but had 6,000 lines of logfile after work today...woke up late. Got an android phone in the mail so with a couple connectors can set up NightScout.
Scott Leibrand
@scottleibrand
Jan 30 2016 08:00 UTC
@sulkaharo just refactored meal-assist a bunch. Much happier with the algorithm now, but will need to test it more. You're welcome to test as well if you want, as long as you're watching it.
It now does the simulated extended bolus as an adjustment to what it thinks the current baseline basal is, and then overlays on that whatever it would normally do.
also changed it to always issue the current basal as a temp if nothing else is needed
It's amazing how much better we can do when range is no longer an issue. :-)
Matthias
@ceben80
Jan 30 2016 09:53 UTC
Good morning - I have a Medtronic pump 754 but this device is not listed in the hardware list. Any chance to use the 754 for APS?
Sulka Haro
@sulkaharo
Jan 30 2016 09:54 UTC
@scottleibrand oh cool, will do. And yes, I'm watching the loop pretty carefully
Oskar Pearson
@oskarpearson
Jan 30 2016 10:19 UTC
@scottleibrand Is https://gist.github.com/scottleibrand/63a8541397378bf9f4b8 the best guide for setting up meal assist?
Aaron Michelson
@Aaybob
Jan 30 2016 11:11 UTC
Would someone suggest something please?
Log file:
PREFLIGHT OK: loop: enact:
PREOK: loop:
PREOK: no CGM Data: last suggested.json(maybe loop)
repeat 5 times
PREOK: loop: enact:
PREOK: No CGM Data: last suggested.json(maybe loop
): enact with error Pump has no "model"
That last repeats indefinitly as
No CGM Data: suggested.json (old): enact with err
dougtakeuti
@dougtakeuti
Jan 30 2016 11:21 UTC
@scottleibrand even tough I used sudo chown -R pi.pi ./and I there is no sudo anywhere, everytime the loop runs it generates reports that are root. I'm considering a fresh start. Is that too drastic/unnecessary?
@Aaybob what do you have in your monitor/glucose.json report?
Aaron Michelson
@Aaybob
Jan 30 2016 11:23 UTC
@juliatakeuti I don't know..i'm just looking at log files
dougtakeuti
@dougtakeuti
Jan 30 2016 11:25 UTC
why don't you check it to figure the no CGM data message?
Aaron Michelson
@Aaybob
Jan 30 2016 11:39 UTC
no CGM data reveals that first "gather" fails, next execute of openaps "preflight" fails. So I need a way to get "openaps report invoke model.json" to stop failing. There is some code I took out about resetting wifi. maybe i should try putting that back?
could I get some examples of "preflight" alias. the one in the docs is logic flawed.
dougtakeuti
@dougtakeuti
Jan 30 2016 11:53 UTC
@Aaybob Be aware these are the words of a noobs. I used preflight = ! bash -c "rm -f monitor/clock.json && echo -n \"PREFLIGHT \" 2>/dev/null && openaps report invoke monitor/clock.json 2>/dev/null >/dev/null && grep -q T monitor/clock.json && echo OK 2>/dev/null || ( mm-stick warmup || oref0-reset-usb; echo FAIL 2>/dev/null ; exit 1 )" following a suggestion I saw here. Apparently clock is better than model to check communications. Whenever I had problems with model it was related to the range of the carelink stick.
Aaron Michelson
@Aaybob
Jan 30 2016 12:11 UTC
suhweet. thanks @juliatakeuti and that's working to restore the carlink? and its not canceling the wifi link......uh oh, I had a heck of a time getting back onto wifi when I had that oref0-reset-usb command
which steps did you use to make wifi re establish....there was some setup at the beginning but I didn't do any of it because I couldn't figure that part out and it never seemed to work. which commands make that go?
I'm leaving my pump by the carelink till i get that figured out
dougtakeuti
@dougtakeuti
Jan 30 2016 12:43 UTC
@Aaybob I don't recall comms failing more than a couple of times so I don't have much experience with oref0-reset-usb. I think I remember wifi coming back ok on one occasion. When I configured wifi I used Path 3 as described in the docs, Phase 1.3, directly editing the file /path/to/sd/card/etc/network/interfaces.
JaysonEwer
@JaysonEwer
Jan 30 2016 13:47 UTC
@ThomasEmge , Congratulations!
Aaron Michelson
@Aaybob
Jan 30 2016 14:16 UTC
I hate that I'm so illogical that I cant use git
error: The following untracked working tree files would be overwritten by merge: pumpbuilding.ini Please move or remove them before you can merge.
Rachel Sandlain
@audiefile
Jan 30 2016 15:42 UTC
@ceben80 does that pump have a pc connect option? I think it would be under utilities
If it does, it will NOT work unfortunately
Scott Leibrand
@scottleibrand
Jan 30 2016 17:08 UTC
@juliatakeuti yeah, maybe you should. Just create a new openaps working directory and get it all set up: don't blow away your old directory until you have the new one working better.
Scott Leibrand
@scottleibrand
Jan 30 2016 17:49 UTC
Matthias: does your 754 have a PC Connect menu somewhere in the menus (Utilities I think)? If so, it won't work with OpenAPS, and you'll have to use your 512.
To use a 512, you'll need to manually generate the json files that would otherwise be generate by running the reports that the 512 doesn't support. @audiefile or @amazaheri have done that, and can probably give you more details.
Matthias
@ceben80
Jan 30 2016 18:58 UTC
Thanks so far, looks good to me with my 754 (2.6A), I was able to run serveral openaps commands. @audiefile @scottleibrand What do you mean with "PC connection option" ?
Scott Leibrand
@scottleibrand
Jan 30 2016 19:05 UTC
If you go into your pump menu on an OpenAPS-incompatible pump, somewhere (perhaps under utilities) there's a menu called PC CONNECT. if that is present, it indicates your firmware is too new to set temp basals with OpenAPS
Matthias
@ceben80
Jan 30 2016 19:05 UTC
@audiefile @amazaheri I would be happy got some more details information regarding manual json file generation for pump 512/712 - thanks
Scott Leibrand
@scottleibrand
Jan 30 2016 19:06 UTC
per https://github.com/openaps/docs/blob/master/docs/getting-started/hardware.md, 554/754 with 2.6A or lower should work, though.
Matthias
@ceben80
Jan 30 2016 19:07 UTC
@scottleibrand - yes great, looks perfect in the hardware list :+1:
that may be all you need
Matthias
@ceben80
Jan 30 2016 19:11 UTC
To be honest....I never have seen a PC connect menu somewhere in the 712, but I will try to figure that out
Just check the 712 firmware - 3.2A
Dana Lewis
@danamlewis
Jan 30 2016 19:14 UTC
The 712 will work
But the PC connect menu on a 723 or later pump is what denotes that the pump will not be able to have commands written
Matthias
@ceben80
Jan 30 2016 19:17 UTC
Great, but as said, would great if somebody could provide detailed info regarding json file generation for the 712. I have had problems with some commands.
and the 712 or 554 will not have a PC CONNECT menu if they work with OpenAPS, so sounds like you're good there
Matthias
@ceben80
Jan 30 2016 19:20 UTC
Thanks. I've already seen that . Then I'll have to gather more experience first to understand...
Yes, I have the pump in my hand, nothing to find...
Due to the fact I have the 712 and 754 I will probably choose the 754.
Dana Lewis
@danamlewis
Jan 30 2016 19:24 UTC
:+1:
Scott Leibrand
@scottleibrand
Jan 30 2016 19:25 UTC
@ceben80 did you see the link to https://gist.github.com/amazaheri/033b85760156054dd858 ?
Matthias
@ceben80
Jan 30 2016 19:28 UTC
Yes Scott, but first I must understand this stuff as I set up my devices today and only run a few command to find out whether the device can communicate or not.
I think the next days will bring clarity for me in this amazing project but I am highly motivated!
Dana Lewis
@danamlewis
Jan 30 2016 19:30 UTC
:+1: Reading the docs start to finish and getting a general understanding before you dive in is a great plan, will save you headaches down the road :)
Rachel Sandlain
@audiefile
Jan 30 2016 19:36 UTC
:+1: For the 712 I recommended trying every command to see which run and which don't. (i have a list but not with me atm) there is an example repo (Ben West's I beleive) that has an example of every report. For the ones you need but can't automate, copy the file and make any needed changes.
Matthias
@ceben80
Jan 30 2016 19:37 UTC
Yes , but often the enthusiasm is so great that you want to try many things without reading :smile: Unfortunately, I was so stupid and have posted an SN here (apologize for that, you mentioned that in your doc). gitter support (I have open an request) had got that sorted out.
Rachel Sandlain
@audiefile
Jan 30 2016 19:37 UTC
But for sure read through all the docs first. Then read again but try things as you go.
Matthias
@ceben80
Jan 30 2016 19:38 UTC
Thanks @audiefile
Dana Lewis
@danamlewis
Jan 30 2016 19:38 UTC
:+1:
Matthias
@ceben80
Jan 30 2016 19:40 UTC
But I'm only a few days here and I'm actually very happy with the result for me as an bloody APS beginner
Dana Lewis
@danamlewis
Jan 30 2016 19:42 UTC
Hopefully no additional blood required other than fingersticks for CGM calibration though ;)
Matthias
@ceben80
Jan 30 2016 19:48 UTC
Oh yes - Nice that it's a chatroom here, otherwise I would have risked bloody lips when posting my damn SN :smile:
Matthias
@ceben80
Jan 30 2016 19:56 UTC
@all for the last hour - I'd say goodbye for now , my wife needs my attention :wink:
Jason Calabrese
@jasoncalabrese
Jan 30 2016 20:06 UTC
it's probably so buried that it's basicly deleted
Ali Mazaheri
@amazaheri
Jan 30 2016 20:57 UTC
@ceben80 I believe @danamlewis already refrecened the gist for the json needed for x12 :)
Matthias
@ceben80
Jan 30 2016 21:01 UTC
@amazaheri great, will find that, hopefully :smile:
Ali Mazaheri
@amazaheri
Jan 30 2016 21:02 UTC
hold on
PieterGit
@PieterGit
Jan 30 2016 21:05 UTC
i got a question on: "Make read_bg_targets only ever return data in mg/dL, not mmol/L". I currently see openaps upload it in mg/dL format. But my nightscout is in mmol/L modus. Do I need to use nightscout in mg/dL format?
Ben West
@bewest
Jan 30 2016 21:06 UTC
This message was deleted
This message was deleted
oh
sorry
PieterGit
@PieterGit
Jan 30 2016 21:08 UTC
it uploads records like this: {
"_type": "CalBGForPH",
"_description": "CalBGForPH 2016-01-30T21:36:06 head2, body[0] op[0x0a]",
"timestamp": "2016-01-30T21:36:06+01:00",
"_body": "",
"_head": "0a8c",
"amount": 140,
"_date": "0664357e10",
"eventType": "<none>",
"glucose": 140,
"glucoseType": "Finger",
"notes": "Pump received finger stick.",
"medtronic": "mm://openaps/mm-format-ns-treatments/CalBGForPH",
"created_at": "2016-01-30T21:36:06+01:00",
"enteredBy": "openaps://medtronic/754"
},
but it seems nightscout thinks this is mmol/L (or I don't understand it)
Ben West
@bewest
Jan 30 2016 21:09 UTC
ah, ok
that's a bug and should be logged/tracked
yup that's a gap in the current tools
issue here is reverse though
the pump-history, the bg stuff seems to always be in mg/dL
I think....
hmmm
you might be able to fix
by adding ?units=mg/dL to your NS endpoint, hmmm
that way ns knows the incoming data is in mg/dL (and outgoing is in mmol)
PieterGit
@PieterGit
Jan 30 2016 21:11 UTC
i'll have a try. should I open an openaps issue for this?
Ben West
@bewest
Jan 30 2016 21:11 UTC
hmmm, oref0
or openaps
yeah
either one
it could be argued that a patch to mm-format-ns-treatments should handle this maybe
I'd love more eyeballs on this
PieterGit
@PieterGit
Jan 30 2016 22:39 UTC
i can confirm that @bewest option to adding units in NS endpoint works, see proposed fix in openaps/oref0#62
Ben West
@bewest
Jan 30 2016 23:46 UTC
try adding it in the device add step
if uploading to treatments.json, you can do treatments.json?units=mg/dL