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

11th
Aug 2015
Rachel Sandlain
@audiefile
Aug 11 2015 01:39
Is there a special format for the profile.json that determine-basal.js expects?
Ben West
@bewest
Aug 11 2015 01:55
I think so, there's an example here:
Rachel Sandlain
@audiefile
Aug 11 2015 02:06
ah that would explain a lot. and that's generated by the get profile plugin?
Ben West
@bewest
Aug 11 2015 02:06
I think there's no such tool yet
would be a nice tool to have
Ben West
@bewest
Aug 11 2015 02:08
ah, indeed :-)
Chris Hannemann
@channemann
Aug 11 2015 02:24
@audiefile since you are going through the setup process of openaps and openaps-js, it would be great if you could document your steps and the clarification you required to make it work.
Then, you could edit the openaps documentation (https://github.com/openaps/docs, http://openaps.gitbooks.io/building-an-open-artificial-pancreas-system/content/ for the dressed-up version) such that future folks have a smoother ride.
This would be especially helpful for openaps-js, as I believe there isn't a ton of documentation there at the moment
Rachel Sandlain
@audiefile
Aug 11 2015 02:32
There is almost 0 documentation on opens-js
I have some notes on what I did and what didn't work. I'm happy to share what I can. I'll try to keep better notes in that regard going forward
Chris Hannemann
@channemann
Aug 11 2015 02:33
Thanks; everything helps
I haven't worked with openaps-js myself, so admittedly some of that particular request is selfish
Rachel Sandlain
@audiefile
Aug 11 2015 02:37
:D No problem.
Ali Mazaheri
@amazaheri
Aug 11 2015 04:12
@audiefile that is correct, you can run getprofie.js once to populate the profile.json I coded that against 722 and Scott added some additional logic to it for 512 or anything <2.1 you need to pre populate some itemns like Sens, etc. as they are not accessible in the older version on firmware
Ali Mazaheri
@amazaheri
Aug 11 2015 04:18
In my loop I have bgtargets.json , profile.json , carbratios.json, isf.json reports once and when I change pump settings and get bgreading.json, clock, current_basal_profile.json, currenttemp.json in the loop and to use with iob.js and determine-basal.js
again all the openaps-js was coded against firmware 2.2A and above and for anything less you need to test it as @bewest did some hacking to have the openaps working with the 512 1.4
HTH
for the loop u also need the pumphistory.json
senttempbasal-Azure.js is an optional module I am using to push the successful commands, iob, etc to Azure SQL and use it for triggering Twilio sms notification and mongo db treatments collection updates and u can use that or change it to post the data to any backend or through NS API
the webapi source code I am using via azure in on my github OpenAPSData but u r not limited to Azure :)
Ali Mazaheri
@amazaheri
Aug 11 2015 04:23
I am running a custom loop.sh but I recommend using Scott's loop.sh which uses aliases and other goodies
As @scottleibrand mentioned please send PR with modification and suggestions so we can continue revising the repo.
Rachel Sandlain
@audiefile
Aug 11 2015 04:42
I can't get the read basal and read settings commands to work with my 712. That's been a stumbling block with using some of the openaps-js stuff.
Right now I'm trying to figure out how I'm going to get around that. I might create my own version of determine-basal. I didn't realize that there were so many plugins available to do that type of work so I had planned to write it anyway.
It would be nice to get the other one working since I'm sure it's more sophisticated than what I'm able to write.
I'm super inexperienced with coding and I'd be scared to inflict my code on someone else, at least for a while!
Documentation is something I should be able to help with once I get more familiar with how things work/should be done
Ben West
@bewest
Aug 11 2015 04:51
ah
the 512 doesn't have the settings command
Ali Mazaheri
@amazaheri
Aug 11 2015 07:09
audiefile I will send you the json ones I created with 722 and u can use that
thats how I am running the loop against 512
timomer
@timomer
Aug 11 2015 08:37
@bewest only just seen this, been great been looking for example json files!! https://github.com/bewest/openaps-example
would you have a isf.json by any chance, really struggling to get my head round its format
Ali Mazaheri
@amazaheri
Aug 11 2015 13:17
@timomer @audiefile I put some sample here
Ali Mazaheri
@amazaheri
Aug 11 2015 13:23
in pumpsetting.json I use the "insulin_action_curve": 3 in the loop
u should be able to get current_basal_profile from 712 by running read_selected_basal_profile
timomer
@timomer
Aug 11 2015 15:46
@amazaheri top stuff!
Ali Mazaheri
@amazaheri
Aug 11 2015 16:15
main credit goes to @scottleibrand and @bewest I am just a small contributor :) feel free to send questions our way :)
and NAte :)
Would be great to see more and more folks going live
Rachel Sandlain
@audiefile
Aug 11 2015 16:25
@timomer it's not called isf.json but its the right format https://github.com/bewest/openaps-example/blob/master/monitor/insulin-sensitivities.json
timomer
@timomer
Aug 11 2015 17:56
thanks @audiefile yep its the same file
Sulka Haro
@sulkaharo
Aug 11 2015 19:18
Hot damn. Our clinic told us Veo is being discontinued and every patient is being moved to MedTronic 640G. Anyone heard of anyone working on the protocol decryption?
Scott Leibrand
@scottleibrand
Aug 11 2015 19:34
Most of us can't even get one yet: it's still not approved in the U.S.
Jason Calabrese
@jasoncalabrese
Aug 11 2015 19:43
just say ok, and keep using your existing pump?
Ben West
@bewest
Aug 11 2015 19:53
@scottleibrand that's my understanding of their plans
err, @sulkaharo damn autocomplete
Sulka Haro
@sulkaharo
Aug 11 2015 20:07
I think we can keep the pump for a while, but the clinic will stop supplying sensors to the old pumps eventually. Finding out details...
Paul Andrel
@stavlor
Aug 11 2015 21:27
@sulkaharo beings that the 640G moves to the 2.4Ghz band not sure, as it changes most of the hardware involved