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

18th
Jun 2016
Paul Martin
@Spazholio
Jun 18 2016 00:02
@gera3d I’ve got a Carelink stick that’s just sitting here gathering dust. Send me your address in a private message, and it’s yours.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 00:09
Now that's what I call saving cash for batteries good on you @Spazholio
Paul Martin
@Spazholio
Jun 18 2016 00:12
I’ve gotten so much in such a small time from this group, it’s only right to give back when I can. =)
Dana Lewis
@danamlewis
Jun 18 2016 00:15
:)
Sarah Hodson Grady
@shgrady
Jun 18 2016 00:16
Oh geeze wish I had seen the first link, I bought the amazon one.
Paul Martin
@Spazholio
Jun 18 2016 00:16
When?
As in, how long ago?
I ask because you might be able to return it. Amazon is VERY good about that sort of thing.
And it never hurts to ask ‘em. =)
Sarah Hodson Grady
@shgrady
Jun 18 2016 00:19
Oh, it arrived Wednesday, good idea, getting antsy to get all the pieces at this point.
Paul Martin
@Spazholio
Jun 18 2016 00:20
If you have a Mac, it’s very possible that the Carelink won’t be compatible, and you didn’t know that when you purchased it. Just sayin’.
Scott Leibrand
@scottleibrand
Jun 18 2016 00:30
tricksy
David Cintron
@loudestnoise
Jun 18 2016 00:35
I return stuff to Amazon all the time. They don't even care about reasons. The only thing that makes the difference is if you check don't want or no longer needed they'll sometimes charge you a few bucks to ship back, but normally they'll even cover that. And I just have it credit my account because let's be honest I'm gonna be buying from Amazon again
Paul Martin
@Spazholio
Jun 18 2016 00:39
Bingo. And it’s reusable. It’s not like it’s a CD that you’ve opened, ripped, and are returning. This is absolutely re-sellable in the condition that you have it in. I have no desire to scam anybody, and I truly feel that this works out for all parties involved.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 00:40

OpenAPS is probably responsible for depleting the aging stock of carelink sticks and paradigm 722 pump battery covers.

Scott Leibrand
@scottleibrand
Jun 18 2016 00:40
heh
Paul Martin
@Spazholio
Jun 18 2016 00:41
Holy inadvertent (?) Markdown, Batman!
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 00:41
Ouch that's big letters ( bad iOS app)
Scott Leibrand
@scottleibrand
Jun 18 2016 00:41

gitter iOS app sucks ;-)

that one deserves it ;-)
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 00:42
Well at least we know that bug wasn't squashed in the update yesterday
Ben West
@bewest
Jun 18 2016 00:42
it's markdown, it's fine :-)
Scott Leibrand
@scottleibrand
Jun 18 2016 00:42
hashtags should override markdown though :)
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 00:42
I feel like I just yelled fire in a crowded room
Scott Leibrand
@scottleibrand
Jun 18 2016 00:43
NO, YOU JUST FORGOT TO TURN CAPS LOCK OFF IN AN EMAIL
Ben West
@bewest
Jun 18 2016 00:43
it'd be useful to be stricter about space in #foo and # foo
Paul Martin
@Spazholio
Jun 18 2016 00:44
True story - caps and the “Reply All” function absolutely destroyed the mail servers at Disney for many hours one day. =)
It would have been amusing, had I not been on that particular team at the time.
Jarred Yaw
@jyaw
Jun 18 2016 01:14

my ns-carbs alias isn't returning anything to carbhistory.json... any thoughts on what I might be missing?

ns-carbs ! bash -c "curl -m 30 -s \"$NIGHTSCOUT_HOST/api/v1/treatments.json?find[created_at][\$gte]= date -d \"6 hours ago\" -Iminutes &find[carbs][\$exists]=true\" > monitor/carbhistory.json; exit 0"

when I put the web address in it seems to filter appropriately and the first results are standalone NS carb treatments and boluswizard carbs, perhaps there's something else wrong with the syntax?

Sarah Hodson Grady
@shgrady
Jun 18 2016 01:25
MEDITECH requires all caps in almost half the fields, so half the staff always emails in all Caps, I feel like I am getting yelled at all day, everyday, thank goodness for phrase expander flips mine off automatically outside the system.
apabari
@apabari
Jun 18 2016 01:41
@bewest - I removed my crontab (crontab -r) and this is what I see now...
edison@EdisonAPS:~/openaps$ oref0 cron-5-minute-helper edison@EdisonAPS:~/openaps$ crontab -l no crontab for edison
Brandon Faloona
@bfaloona
Jun 18 2016 01:48
Anyone know how to get better help from nightscout status -h ? I'm not sure how to get status with that tool.
Ben West
@bewest
Jun 18 2016 01:49
nightscout ns -h
Brandon Faloona
@bfaloona
Jun 18 2016 01:49
Right now it shows usage: [ 'node', '/usr/local/bin/ns-status' ] <clock.json> <iob.json> ...
Ben West
@bewest
Jun 18 2016 01:49
that one is a bit weird, running nightscout autoconfigure-device-crud sets up an ns device that calls nightscout ns $host $secret $* under the hood
@apabari try sudo npm install git://github.com/openaps/oref0.git'#dev'
$ oref0 cron-5-minute-helper
SHELL=/bin/bash
PATH=/home/bewest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/bewest/.cabal/bin:/home/bewest/.cabal/bin

*/5 * * * * (cd /home/bewest/Documents/loop-new-style && time openaps do-everything ) 2>&1 | logger -t openaps-loop
$ oref0 cron-5-minute-helper openaps my-special-thing
SHELL=/bin/bash
PATH=/home/bewest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/bewest/.cabal/bin:/home/bewest/.cabal/bin

*/5 * * * * (cd /home/bewest/Documents/loop-new-style && time openaps my-special-thing) 2>&1 | logger -t openaps-loop
there's a summary of ns help here as well openaps/docs#129
This message was deleted
it calls ns-status under the hood
gah
openaps use ns shell status monitor/clock.json oref0-monitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
something similar to that, it calls ns-status with all the args under the hood
Brooke Armstrong Pazoles
@bpazoles
Jun 18 2016 01:55
Hi all. I'm using a new account on here. Just wanted to give a heads up. Successfully closed looping since Monday now! :)
Brandon Faloona
@bfaloona
Jun 18 2016 01:55
Congrats @bpazoles !
Ben West
@bewest
Jun 18 2016 01:55
:sparkles: :clap:
Andy P
@NowhereMan_81_twitter
Jun 18 2016 01:57
Congratulations, @bpazoles !!
Brooke Armstrong Pazoles
@bpazoles
Jun 18 2016 01:57
Thanks!!
Paul Martin
@Spazholio
Jun 18 2016 01:58
:thumbsup:
Brooke Armstrong Pazoles
@bpazoles
Jun 18 2016 01:58
All thanks to @Pazoles of course.
Andy P
@NowhereMan_81_twitter
Jun 18 2016 02:05
@bewest That didn't seem to make a difference... but I just tried something I should have tried ages ago. I just ran crontab -e on my pi, which is working, and copied the script directly into the Edison. And... it works!
Thank you for all of your responses, @bewest :)
Ben West
@bewest
Jun 18 2016 02:05
:-)
Andy P
@NowhereMan_81_twitter
Jun 18 2016 02:07
Silly question... is there a way to take an image, or a backup, of the Edison? I accidentally 'fried' my first one -- would love to have a backup of the whole setup, so if I fry it again, I can just reflash it with my own image and be up and running again
Ben West
@bewest
Jun 18 2016 02:07
yes
one, is you can take backup of loop using oref0 export-loop
save it using like oref0 export-loop my-backup.json and copy the file somewhere safe
that's just for all the loop config
for the entire sd card, shut down the pi
take the sd card out, and pop it in your laptop or sdcard reader
you can use dd or similar commands to copy the whole thing
Dana Lewis
@danamlewis
Jun 18 2016 02:11
@bpazoles :)
@NowhereMan_81_twitter you're earning street cred left and right :)
Brandon Faloona
@bfaloona
Jun 18 2016 02:14
@bewest How can I validate that my monitor/glucose.json report is correct? I'm pulling BG from nightscout, so I don't know if I configured it right.
pi@openaps-lp:~/openaps-lp-01 $ openaps report show nightscout/glucose-raw.json --ini
[report "nightscout/glucose-raw.json"]
oper = get
device = ns
use = shell
remainder = entries.json count=288
reporter = JSON

pi@openaps-lp:~/openaps-lp-01 $ openaps report show monitor/glucose.json --ini
[report "monitor/glucose.json"]
use = rezone
reporter = JSON
astimezone = True
date = timestamp dateString start_at end_at created_at system_time display_time
adjust = missing
timezone = 
device = tz
input = nightscout/glucose-raw.json
Ben West
@bewest
Jun 18 2016 02:14
looks ok
try head nightscout/glucose-raw.json
we're interested in looking at the dateString field in particular
hmmm, you might want to use entries/sgv.json count=288 instead, that will search for just sgv records
Brandon Faloona
@bfaloona
Jun 18 2016 02:19
glucose-raw.json looks like:
pi@openaps-lp:~/openaps-lp-01 $ head nightscout/glucose-raw.json 
[
  {
    "direction": "Flat", 
    "trend": 4, 
    "dateString": "2016-06-17T22:03:46.000Z", 
    "sgv": 103, 
    "device": "share2", 
    "date": 1466201026000, 
    "_id": "5764741d7741fa6c36baaad4", 
    "type": "sgv"
Paul Martin
@Spazholio
Jun 18 2016 02:20
That looks right. Same as mine, at least.
Ben West
@bewest
Jun 18 2016 02:21
no glucose?
Paul Martin
@Spazholio
Jun 18 2016 02:21
Nope.
Entries from my CGM have a glucose field, but not my NS stuff.
…and I just realized you might be talking to @bfaloona and not me. =)
Brandon Faloona
@bfaloona
Jun 18 2016 02:23
"type" is the last field in that file. no "glucose" field.
Paul Martin
@Spazholio
Jun 18 2016 02:34
@bewest Upgraded to dexcom_reader#dev. Have the noise field now, thanks. Is it normal for it to always be 1? Or does that mean there’s no noise, or that the CGM is just stupidly accurate, or…?
Scott Leibrand
@scottleibrand
Jun 18 2016 02:41
@NowhereMan_81_twitter I'm not aware of anyone doing full image backups of the Edison. It's probably easier to just back up the OpenAPS bits like Ben said, but if you want a full image I'm sure you can google for how to image an Edison.
Paul Martin
@Spazholio
Jun 18 2016 02:52
http://www.instructables.com/id/BackupRestore-Intel-Edison/?ALLSTEPS <— looks like you could get a SD reader + OTG cable, and dulpicate the instructions here.
To be honest though, personally I’d just back up the your openaps install, and reinstall the Edison from scratch if needed.
Brandon Faloona
@bfaloona
Jun 18 2016 03:01
@Spazholio Does your nightscout/recent-missing-entries.json look like mine too?
pi@openaps-lp:~/openaps-lp-01 $ openaps report show nightscout/recent-missing-entries.json --ini
[report "nightscout/recent-missing-entries.json"]
oper = format-recent-type
use = shell
reporter = JSON
device = ns
remainder = tz entries nightscout/glucose-raw.json
json_default = True
Paul Martin
@Spazholio
Jun 18 2016 03:02
Very similar.
[report "nightscout/recent-missing-entries.json"]                                                                                                                                                                                                                                                                     
oper = format-recent-type
use = shell
reporter = text
json_default = True
device = ns
remainder = tz entries monitor/glucose.json
Looks like our reporter is different. Unsure whose is right. Probably yours.
Brandon Faloona
@bfaloona
Jun 18 2016 03:04
Well, mine is crashing! :)
Paul Martin
@Spazholio
Jun 18 2016 03:05
How? What error do you get?
You have to click the link to see the full Traceback
Paul Martin
@Spazholio
Jun 18 2016 03:06
Hey neat. I get that too. It’s not a report I use often, so I hadn’t noticed.
Brandon Faloona
@bfaloona
Jun 18 2016 03:09
Here I was assuming it was required for updating nightscout. I guess I'll pull it out of my workflow, and log a bug. Thanks for the help!
@Spazholio Do you have openaps status being sent to nightscout?
Aside from nightscout, notifications, and the command line, how to folks monitor openaps? I'm thinking about a screen for simple status messages, and a power button.
Brandon Faloona
@bfaloona
Jun 18 2016 03:16
Of course, I'm also thinking of a BLE Lapel Pin that glows Green/Yellow/Red and then Flashes for emergencies, but... one step at a time.
Jarred Yaw
@jyaw
Jun 18 2016 03:16
Pebble watch... the urchin watch face is really nice for viz without having to open up the whole website deal on your phone. That's what I use mostly
Brandon Faloona
@bfaloona
Jun 18 2016 03:18
I keep hearing good things about the pebble. Will check it out.
Paul Martin
@Spazholio
Jun 18 2016 03:19
Pebble isn’t two-way, is it?
Jason Calabrese
@jasoncalabrese
Jun 18 2016 03:22
You can set temp targets and enter carbs from the Pebble via Nightscout
Also about the noise, it will normally be 1, there was a lot more noise before the 505 update, but you'll still probably see some 1's and 2's
Around compressions is when I normally see it
Paul Martin
@Spazholio
Jun 18 2016 03:26
Ok, cool. http://www.nightscout.info/wiki/labs/interpreting-raw-dexcom-data <— that’s what I’m looking to get. More data == good.
Thanks.
Jason Calabrese
@jasoncalabrese
Jun 18 2016 03:27
You also usually see the dexcom switch to using filtered data when there's noise
Paul Martin
@Spazholio
Jun 18 2016 03:29
And since I use share, it might be a moot point.
Still….more data == good.
Brandon Faloona
@bfaloona
Jun 18 2016 03:33
First bug! Feeling thankful for this community. openaps/openaps#101
Dragan Maksimovic
@dm61
Jun 18 2016 05:20
@bfaloona , openaps use ns shell format-recent-type tz entries nightscout/glucose-raw.json expects bg entry field glucose in the json file, while I think you probably have sgv instead in your glucose-raw.json
Brandon Faloona
@bfaloona
Jun 18 2016 07:17
@dm61 Thanks!
PieterGit
@PieterGit
Jun 18 2016 07:54
How does the xdrip beta for dexcom g5 communicate from phone to cgm. Does it use BLE, or USB OTG? Does that support raw sensor values as well?
Jason Calabrese
@jasoncalabrese
Jun 18 2016 09:07
It's ble to the transmitter, I haven't tried it but I think it's getting raw
Dave Ewall
@daveewall
Jun 18 2016 13:36
@scottleibrand Just to follow-up, after a bunch of digging through code, I found two issues... I was missing the carb-ratios.json, so it wasn't in my profile, and it couldn't calculate the COB, so the mealCOB was null, so that 's fixed. However, I had to remove the duplicate code check in lib/meal/history.js. It was seeing a carbs and a bolus entries at the same time, and killing the carbs entry, so it would never show up for calculations later in the code. Without that duplicate code check, it's working properly:{"carbs":90,"boluses":9,"mealCOB":33}
Maybe you can shed some light when you have a chance, maybe I'm doing something else wrong.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 13:48
A question on BLE. Is there any dev going on for an BLE OpenAPS monitor/HUD for off grid use. This way without internet I could use a mobile phone to connect, view, and see status of OpenAPS on phone no internet required just a local BLE Network between phone and RPi/Edison? I’ve seen the pebblewatch BLE display is there anything in the mobile phone space? We T1D's are teatherd to so many things, it would be nice to not have to rely on the internet. This is why I really am excited about @loudnate ’s Loop/Naterade App everyting on your phone, and all you carry around is a RileyLink (Almost Holygrail).
JaysonEwer
@JaysonEwer
Jun 18 2016 13:52
To
ryanchen26
@ryanchen26
Jun 18 2016 14:39
Anyone else's Nightscout site not updating? A Facebook posted mentioned that it might be due to mongo lab: Maintenance on free Sandbox servers fleet-wide We are bringing Sandbox databases down across our fleet for anywhere from 2-60 minutes sometime in the next two weeks in order to perform required maintenance.
Chris Oattes
@cjo20
Jun 18 2016 14:57
I was having some problems last night. I restarted the nightscout instance on azure and it fixed it though
I think my transmitter might be dying :/ 2 sensors in a row that have been really dodgy. The rest of the box has been fine.
It randomly stopped updating my pump graph for about 30 minutes earlier. Then 15 minutes after it came back it shot up to 17 mmol (I'm actually 11mmol) and now it's getting "weak signal" again
Scott Leibrand
@scottleibrand
Jun 18 2016 15:03
@daveewall are you using master/dev, or AMA? I wonder if you also need to break out of the loop rather than just killing the carbs entry. but if you're on AMA, you could just pull the latest: @sulkaharo added a fix to deduplicate them. (Or you could back-port his fix to dev if you're not on AMA yet)
Milos Kozak
@MilosKozak
Jun 18 2016 15:04
noticed the same. mlab issues caused ns stopped working and had to be restarted
Dave Ewall
@daveewall
Jun 18 2016 15:35
@scottleibrand I'm using the AMA branch, and just updated it to the latest this morning before finding the issue.
live4sw
@live4sw
Jun 18 2016 15:39
@ryanchen26 my nightscout site was out last night, I fixed by rebooting it (I’m on Heroku)
Dave Ewall
@daveewall
Jun 18 2016 15:39
After looking at the most recent commit in the AMA branch, it seems that this addition was an issue for me. The issue i had yesterday must have just been the problem with the missing carb ratios. So I'm thinking the most recent commit to AMA introduced a bug.
Scott Leibrand
@scottleibrand
Jun 18 2016 15:41
ok, can you open a github issue and paste in the details as well?
might also want to confirm that you've reverted/reset your previous fix and are only using sulka's change, not both
ryanchen26
@ryanchen26
Jun 18 2016 15:49
Restart on azure. Thanks!
ryanchen26
@ryanchen26
Jun 18 2016 16:13
Anyone no the reason why after running $ wpa_cli scan_results that I can't see the iPhone hotspot I've turned on?
Paul Martin
@Spazholio
Jun 18 2016 16:16
Are you on the iPhone hotspot screen?
ryanchen26
@ryanchen26
Jun 18 2016 16:16
sure
Paul Martin
@Spazholio
Jun 18 2016 16:17
You have to be on the Personal Hotspot screen, have it turned on, and keep the phone on or it won’t see it.
If you are….then I don’t know.
But I think I saw that when using the GUI’s WiFi selector before. It was peculiar.
Lynne Butts
@flutelynne_twitter
Jun 18 2016 16:18
@ryanchen26 do you mean the red bar that usually shows up when hotspot is on? Mine does not show that, either.
Matt Pressnall
@logichammer
Jun 18 2016 16:21

@scottleibrand , @jasoncalabrese , @sulkaharo I see that this got implemented:
openaps/oref0#133
I just watched my loop right after carbs were added to the pump and first pass got it right on NS and second pass doubled the carbs. I'm 95% certain that it is happening / duping because of openaps ns-meal-carbs.

My question is why would anyone ever need to get carbs from NS? Shouldn't you always just get them from the pump? Or is this to pass along historical carb data to other devices that would go beyond what the pump stores? Seems unlikely. I just want to understand. I'll upgrade my AMA code as well. Thanks!

ryanchen26
@ryanchen26
Jun 18 2016 16:21
Oh! I see it. Not sure why...I can't imagine why having the screen on would make a difference but there it is.
Lynne Butts
@flutelynne_twitter
Jun 18 2016 16:25
@ryanchen26 What is your step by step for that? Maybe I've been doing something wrong.
Didie
@elodaille01_twitter
Jun 18 2016 16:40
Hello
In NIghtscout website
blob
Where find the data to inform ?
Jim is CrushingT1D
@CrushingT1D
Jun 18 2016 16:45
@logichammer some folks might want to be able to add carbs remotely. For example a child who is att school.
Paul Martin
@Spazholio
Jun 18 2016 16:51
@ryanchen26 It’s security, I believe. It only allows the hotspot to be discoverable when you have it on and are actively using it so no one else can just use your data/connection. Once you’re connected, you can close that window.
Didie
@elodaille01_twitter
Jun 18 2016 16:55
Someone can help me ?
Paul Martin
@Spazholio
Jun 18 2016 16:59
@elodaille01 What’s the question? Which data are you looking for, specifically?
Didie
@elodaille01_twitter
Jun 18 2016 17:00
blob
this
Paul Martin
@Spazholio
Jun 18 2016 17:01
Do you know your ISF?
Didie
@elodaille01_twitter
Jun 18 2016 17:01
glucides data
Paul Martin
@Spazholio
Jun 18 2016 17:02
Ok, so it looks like that’s your carb ratio. Do you know your carb ratio? Generally, you’d get that from your pump.
Didie
@elodaille01_twitter
Jun 18 2016 17:04
No i don't know my ISF
Paul Martin
@Spazholio
Jun 18 2016 17:05
Which pump do you have?
Didie
@elodaille01_twitter
Jun 18 2016 17:06
Medtronic
554
Paul Martin
@Spazholio
Jun 18 2016 17:08
Ok, I have a 722, and I’m not quite sure if they’re the same. On mine, I go into the Bolus menu, then the Bolus Wizard Setup, then the Review Settings menu. Can you do that?
Dana Lewis
@danamlewis
Jun 18 2016 17:11
@logichammer some of us don't want to button press on the pump ;)
Didie
@elodaille01_twitter
Jun 18 2016 17:15
@Spazholio I see that Thank you for your information
Paul Martin
@Spazholio
Jun 18 2016 17:30
You’re welcome. Hope it helps.
Lynne Butts
@flutelynne_twitter
Jun 18 2016 17:38
@Spazholio Hi. So if my rig can work offline, would I even need a hotspot? If I understand correctly, wouldn't that be only if I want to view it on Nightscout? Also, would that mean that I do not have to activate the hotspot before I leave my home wifi?
Still so new to all of this.
Paul Martin
@Spazholio
Jun 18 2016 17:39
Depending on how you have it set up, I believe that’s right. I pull my data from NS all the time, with data from my CGM used as a backup.
Lynne Butts
@flutelynne_twitter
Jun 18 2016 17:40
Ok. Thank you. But I could still run my phone as a hotspot after I leave my home wifi?
Dana Lewis
@danamlewis
Jun 18 2016 17:40
Yes
Lynne Butts
@flutelynne_twitter
Jun 18 2016 17:41
Great! Thank you. Long day today.
Dana Lewis
@danamlewis
Jun 18 2016 17:41
But it's okay if you don't activate it right away, just when you want it
If your loop is set up to run offline, it keeps running, and hotspot is just to see what it's doing
Lynne Butts
@flutelynne_twitter
Jun 18 2016 17:42
That is so good to know! I am bringing two extra batteries: one for my phone, and one to possibly charge the connected-to-pi one.
Dana Lewis
@danamlewis
Jun 18 2016 17:44
:)
Lynne Butts
@flutelynne_twitter
Jun 18 2016 17:45
I hope I have the night part figured out. I plugged in the pi, and suspended my carelink stick from the back of a chair nearer to where I place my pump. It worked last night.
Dana Lewis
@danamlewis
Jun 18 2016 17:46
Awesome!
Matt Pressnall
@logichammer
Jun 18 2016 18:04
@CrushingT1D & @danamlewis , want to make sure I understand: in both of your cases, someone is entering a bolus into the pump but NOT carbs into the pump? But they are getting added via NS. Correct? If there are easier ways of doing things, I am all for it!
Sulka Haro
@sulkaharo
Jun 18 2016 18:04
@logichammer the nightscout data could be carb corrections (which are useful for the loop) or additional pen boluses
Matt Pressnall
@logichammer
Jun 18 2016 18:04
@sulkaharo ! Ah! We don't do that currently but maybe we should
Let the pump detect that her BG is climbing but a carb correction makes sense...thanks! Wanted to understand how this was working...
Sulka Haro
@sulkaharo
Jun 18 2016 18:05
we didn't mark carb corrections down for a while but then noticed the the loop correcting AND carb corrections sometimes resulted in a high
Matt Pressnall
@logichammer
Jun 18 2016 18:06
Very nice usage...We start to play with this...going to implement your dedupe addition today...thanks for that!!!
Sulka Haro
@sulkaharo
Jun 18 2016 18:06
Back porting to dev or adopting AMA?
Dana Lewis
@danamlewis
Jun 18 2016 18:07
Yes. I bolus on the pump but do carb entry elsewhere :) @logichammer
Ditto for carb corrections
Sulka Haro
@sulkaharo
Jun 18 2016 18:07
I realized today that depending on source data, it's possible the deduping might remove a bolus if an event also contains carbs. In process of fixing
Matt Pressnall
@logichammer
Jun 18 2016 18:08
We're on AMA so doing an AMA update... @sulkaharo , I think there is a pebble app / watchface to enter carbs...do you use that and if so, what is it.
Sulka Haro
@sulkaharo
Jun 18 2016 18:09
Search for "CarePortal" in pebble app store
Matt Pressnall
@logichammer
Jun 18 2016 18:09
@danamlewis, thanks...want to understand how people are doing their care / the reasons...want to make sure we are making the best choices.
Dana Lewis
@danamlewis
Jun 18 2016 18:09
:)
Matt Pressnall
@logichammer
Jun 18 2016 18:09
Yes, that's what I saw...thanks!
Sulka Haro
@sulkaharo
Jun 18 2016 18:09
Yeah, I use Urchin and the Careportal Pebble app - removes the need for additional screens most of the time
Matt Pressnall
@logichammer
Jun 18 2016 18:10
Like to spend as much time NOT connected to a computer...and love using the pebble for monitoring / we can use for updates easy enough.
I hear you there!
Sulka Haro
@sulkaharo
Jun 18 2016 18:10
Just implemented support for temp targets into the Careportal app; in process of being merged to mainline
Matt Pressnall
@logichammer
Jun 18 2016 18:11
Sweet...we don't play with temp targets too much yet but it makes sense for doing sports, etc...nice to know we are already set there and being able to do from a watch would be badass.
Matt Pressnall
@logichammer
Jun 18 2016 18:17
@sulkaharo , just reread your comment about removing a bolus contains carbs...that sounds like a meal bolus. Sounds like I should maybe wait until it has been corrected. Or is it fairly edge case? Thanks!
Paul Davis
@SirBinky
Jun 18 2016 18:33
@scottleibrand been looking at the guide through docs. You guys say it needs a bit of rewriting etc. I suggested the cgm change there was a few pump commands that could have been <my_pump_name>'s which i can contribute. But the main thing for me so far (only 90% of phase 2) was the preflight guide is before 90% of the phase two guide and i had no idea what it meant. So ignored it, started on the oref0 tools mostly got that then relooked at preflights and understood it much better. As the enacting stage is with held would it not make more sense to position the preflight warnings before the enact part but after the oref0 instructions?
@scottleibrand Also could you help me with the enact part. I've looked at ben west's example github and searched previous advice here. And I'm feeling I'm missing some key information. I understand you have the enact/suggested.json and the guide says "Which pump command could be used to enact a new basal temp, if necessary, and what inputs should that command take? Where should these inputs come from?
How could a decision be made whether a new basal temp should be sent to the pump or not? What should enact do in the cases when no new temp basal is suggested?"
Paul Davis
@SirBinky
Jun 18 2016 18:43
@scottleibrand I think the pump command should be set_temp_basal and the input should come from enact/suggested.json the output file should be enact/enacted.json so you can review what commands were sent to the pump. I think the alias should be $openaps alias add enact "report invoke enact/suggested.json enact/enacted.json"
@scottleibrand but i don't understand how to set conditions for enact for the scenarios the walk through says.
Sulka Haro
@sulkaharo
Jun 18 2016 18:47
@logichammer you should be fine if you primarily use data from the pump. This could happen if you have a record in nightscout that has the exact same timestamp as a pump record, which doesn't exist in the pump. So pretty theoretical
Paul Davis
@SirBinky
Jun 18 2016 18:52
sorry is anyone else can chime in suggest ideas/actions please do
*if
Jarred Yaw
@jyaw
Jun 18 2016 19:28

@scottleibrand @jasoncalabrese any reason why curl commands from my pi straight to the .json will be successful, but any queries come back with no response... (I've checked both of these queries in a browser)
This successfully returns the entire .json file:

curl -m 30 -s "https://ns-url/api/v1/treatments.json"

This returns nothing on my pi, but the browser shows what I expect...

curl -m 30 -s "https://ns-url/api/v1/treatments.json?find[created_at][$gte]=2016-06-18"

(This just started yesterday about the time I did a git pull and a sudo install -g for oref0)

seems like that last bit might just be a coincidence
Jarred Yaw
@jyaw
Jun 18 2016 19:33
@sulkaharo thanks for working temp targets on the careportal app! That will be very useful.
Matt Pressnall
@logichammer
Jun 18 2016 20:04
Perfect, @sulkaharo ! Going to do the upgrade tonight...thanks for all your work on this!
Sulka Haro
@sulkaharo
Jun 18 2016 20:13
Let's just all contribute where we can. ;)
Please note though - if you manually duplicate entries, it'll screw things up if you sync from multiple sources
Ben West
@bewest
Jun 18 2016 20:15
@jyaw I see the issue there, you need to add -g to turn off curl's globbing feature
Sulka Haro
@sulkaharo
Jun 18 2016 20:16
In potentially dangerous ways - if you use bolus wizard AND then manually enter a corresponding entry using CarePortal, the loop might put you low and your absorption rate analysis will go off
Jarred Yaw
@jyaw
Jun 18 2016 20:17
@bewest Ah that would explain the blobbing errors when I took out -s... testing...
Ben West
@bewest
Jun 18 2016 20:17
it's a legacy feature, if you're at cern or somewhere, and you want to grab article-[0-100].txt, curl will fetch 100 urls
similar to how ls would try to glob the file
if you look at -v you'll see what happens
-g turns off that feature
openaps use ns shell get does that for you
Jarred Yaw
@jyaw
Jun 18 2016 20:21
Oh so I can just do the "use" and not bother with curl string syntax?
Ben West
@bewest
Jun 18 2016 20:21
yup
it creates url from the args: openaps use ns shell get $endpoint $params
so openaps use ns shell get treatments.json "find[created_at][$gte]=2016-05-16" or similar should do the trick
you can set uh NIGHTSCOUT_DEBUG=1 I believe to get debug output
in environment
Jarred Yaw
@jyaw
Jun 18 2016 20:23
Awesome! Thanks! The -g was the issue, just tested
Ben West
@bewest
Jun 18 2016 20:23
there might be an even easier syntax
Jarred Yaw
@jyaw
Jun 18 2016 20:23
Will transition to the other method, much more readable
Ed Nykaza
@ed-nykaza
Jun 18 2016 21:55
I apologize if this is not the right forum to ask this question, and if not, could some one point me to the right forum…I am getting ready to set up the openAPS with a Dexcom G5. I assume I need to update the Dexcom G4 receiver so that it will read the G5 data, but want to be sure before I update the receiver. Also, in the process of updating the receiver it is asking for an authorization code. Does anyone know the process of getting this authorization code. The Dexcom instructions aren’t very helpful. Thanks!
Ben West
@bewest
Jun 18 2016 22:00
https://gist.github.com/bewest/85ff1a8cb76ece1a8d0369361d854328 this is a nifty tool that can turn eg iob.json into a timeseries data
it analyzes last 100 changes to named file and produces time series data from it, this version assumes the named file is expected to be an object
Lynne Butts
@flutelynne_twitter
Jun 18 2016 22:47
Damn. Wifi dongle on pi just shut itself off somewhere. It worked until I got to the gig
Well. Finally at least it is looping had lost any connectivity for over 45 min. Looks like it will at least loop. Thanks
Scott Leibrand
@scottleibrand
Jun 18 2016 23:41
@ed-nykaza if you don't plan to ever use G4 transmitters again, then yes, you'll want to upgrade your G4 receiver to G5. It's a one-way process. Dunno about the auth code.
Robert Cook
@racook
Jun 18 2016 23:53
Hi - After a hiatus of several months, I'm back to set up OpenAPS, and I see that the Edison version has come along, so I'll go with that one instead. The docs online refer to the "ERF Stick" which seems to be discontinued. Is there an alternative that will work with the same/similar firmware available?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 18 2016 23:56
I had to contact
@ed-nykaza I contacted Dexcom support. Tell them that you need auth code it is unique to your receiver. They sent me mine in 24hrs.