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

15th
Jun 2016
Dragan Maksimovic
@dm61
Jun 15 2016 00:14
@kstdennis , thanks; I've managed to find the contents of those folders from the yocto image that are apparently missing in the ubilinux image. Apparently lots of steps to go through, however. Have you managed to get BLE working on Edison/ubilinux?
kstdennis
@kstdennis
Jun 15 2016 00:17
no, I'm still waiting for the edison to arrive. I'd like to see it working though
I'm running an open loop currently. Thanks again for your pointers.
in TuD.
Dragan Maksimovic
@dm61
Jun 15 2016 00:28
I now have Edison/ubilinux + TI stick working, which is nice; for portability and lower power, however, I'd prefer to just BLE tether to iPhone whenever I'am away from home. I think I'll just get another Edison, keep yocto on it, and put yet another rig together :smile:
eyim
@eyim
Jun 15 2016 00:32
@Spazholio Paul - I used Weaved to access my Pis. Very easy to set up and use which is important for a non-tech person like myself. However, it won't work for Edison with the custom Debian. I believe it works with Yocto. When it didn't work with the Edison's, that is when I went to the reverse tunnel stuff that Scott and Jason use
Paul Martin
@Spazholio
Jun 15 2016 00:33
Well, that’s silly. I suppose I know what I’ll be looking at later on. There’s no reason it shouldn’t work with Ubi as well.
Chris Oattes
@cjo20
Jun 15 2016 00:34
@scottleibrand this isn't ready for a pull request yet, but I was wondering if you'd be interested in the sort of changes I made here https://github.com/openaps/oref0/compare/dev...cjo20:dev (mianly trying to make it easier for me to see what is going on at a glance)
eyim
@eyim
Jun 15 2016 00:35
Here is the discussion on it. They haven't made any progress:
http://forum.weaved.com/t/problems-installing-on-debian-ubilinux-on-the-edison/886
Paul Martin
@Spazholio
Jun 15 2016 00:41
Shame they don’t just have a source package that can be compiled.
Scott Hanselman
@shanselman
Jun 15 2016 00:46
Hey folks...listen to my tail of sadness
I've got three loops here, all ready to test. Edison, Pi, and a NateLoop on in iPhone
Been doing all my testing with the 2.4a firmware on a pump. I have 3 pumps, but just one is 2.4a.
However I hadn't put insulin it in yet.
IT WON'T PRIME. A33 error. I'm screwed.
:(
I have a newer 2.5. I wonder if someone in the world would trade.
Paul Martin
@Spazholio
Jun 15 2016 01:10
I have nothing to offer other than condolences. That really sucks. However, you could likely sell yours for a good bit on CL or MedWOW, and make the pain of getting a new compatible pump slightly less. =/
Scott Hanselman
@shanselman
Jun 15 2016 01:14
So sell the 2.5? I gotcha. Good point.
What a tragedy.
This is a brick, I guess. To the trash.
Dana Lewis
@danamlewis
Jun 15 2016 01:18
@bfaloona welcome!
@shanselman no
Send it to @jaylagorio so he can learn from it
Paul Martin
@Spazholio
Jun 15 2016 01:20
:thumbsup:
Scott Hanselman
@shanselman
Jun 15 2016 01:29
@jaylagorio DM me your address and it's in the mail
Dana Lewis
@danamlewis
Jun 15 2016 01:30
Thanks @shanselman!
Matt Pazoles
@Pazoles
Jun 15 2016 01:41
Noticed earlier today that the pump doesn't issue a new temp basal if it's within +/-0.1 of the required basal rate, which is a bit too large of a step for @PazolesBrooke_twitter. Just wondering if anyone knows the reasoning behind that unit/any reason why reducing that to +/- 0.05 would be a bad idea?
Dana Lewis
@danamlewis
Jun 15 2016 01:45
Might be related to how much it can execute as a half hour temp based on pump ability to granularity dose
Paul Martin
@Spazholio
Jun 15 2016 01:45
@bewest Remind me - what field in JSON is the “raw” data from the Dexcom? I thought it was the “unfiltered” field, but now I think I might have been wrong.
I think I might see why I’m not seeing the data I expect to in NS.
Lynne Butts
@flutelynne_twitter
Jun 15 2016 02:40
With bitbucket, I chose "I have an existing project", but do I take each command line and put that in my openaps directory through the terminal? Or import it from another site?
Jason Calabrese
@jasoncalabrese
Jun 15 2016 02:49
@bewest, what's the format to add the mac address for openxshare ble? The format like CC:64:BE:73:12:28 doesn't seem to work
when it was failing I saw it picking up the other receiver, only seems to be a problem now when the other receiver isn't in a connected state
Jason Calabrese
@jasoncalabrese
Jun 15 2016 02:54
Ben West
@bewest
Jun 15 2016 03:02
openaps use cgm configure --mac E8:37:9C:DB:FC:BD
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:03
I was hoping to just edit the file and add that 1 line since I'm remote and don't want other side effects
Looked like it would just be mac = ...
I'll try it in a different dir
Ben West
@bewest
Jun 15 2016 03:08
it is
but I think it's upper case maybe
that's all the command does, it doesn't have any side effects
Paul Martin
@Spazholio
Jun 15 2016 03:15
Ok, some weirdness - for the last 1-2 hours, out of nowhere, communications with my pump seem to have died. Pretty much nothing in the monitor directory will populate, but everything in the settings directory will. So it can’t enable anything. I haven’t touched anything, and have reset everything since. Any thoughts or places to start looking?
I mean, it’s pulling pumphistory-24h.json and can’t pull clock.json. clock.json comes first in the loop, so it’s failing there, but then succeeding later on?
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:18
thanks, that seems like it's working and I guess adding it manually I must have added some extra whitespace or something since I was getting Failed to find UART device! before and now it works using configure
Paul Martin
@Spazholio
Jun 15 2016 03:26
The monitor/temp_basal.json should be pulling from the pump, and indicating what the current temp basal is…right?
If so, then why is it pulling completely incorrect data? I haven’t been able to loop for 2 hours, so I’m at my “regular” 1.8u/hr. But my monitor/temp_basal.json is reporting:
{
  "duration": 0, 
  "rate": 5.4, 
  "temp": "absolute”
}
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:28
maybe it's not getting refreshed? try the use manually
Paul Martin
@Spazholio
Jun 15 2016 03:28
That’s what I’m doing.
I make sure the file is deleted, then I invoke the report manually.
I’ve safely rebooted the rig as well as the pump. I’m kinda out of ideas.
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:30
openaps use pump read_temp_basal
Paul Martin
@Spazholio
Jun 15 2016 03:30
(pi) [pancreas: ~/openaps] $ openaps use pump read_temp_basal
{
  "duration": 0, 
  "rate": 5.4, 
  "temp": "absolute"
}(pi) [pancreas: ~/openaps] $
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:31
duration 0
Paul Martin
@Spazholio
Jun 15 2016 03:31
I don’t follow. Is it reading my LAST temp basal rate?
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:31
I see:
{
  "duration": 18,
  "rate": 0.0,
  "temp": "absolute"
}
that might just be the last temp basal
so if it it's duration 0 is might have been from a while ago
Paul Martin
@Spazholio
Jun 15 2016 03:32
According to my NS, my last temp basal was 2.625u.
Dragan Maksimovic
@dm61
Jun 15 2016 03:37
What your temp basal according to your pump?
Paul Martin
@Spazholio
Jun 15 2016 03:38
Wait, hang on. I’m nested in alises. I think I found the issue. Possibly some cruft leftover from my adventures in openxshareble...
@bewest I swear your select function used to work even if one of the files didn’t exist, but it doesn’t seem to anymore. I think that’s why it’s tanking. Did that get touched/worked on the last time you updated code by any chance?
Ben West
@bewest
Jun 15 2016 03:44
I think it never did work with a non-existing file
like 98% sure
Paul Martin
@Spazholio
Jun 15 2016 03:45
I swear I tested that. Then again, I could be misremembering. Oh well.
@jasoncalabrese That’s what it was. I was attempting to pull some data from a file that didn’t exist. Which I swear wasn’t a problem a little while ago. Oh well, it’s resolved now. Appreciate the assistance though. (just posted this in the wrong channel, sorry about that)
Scott Leibrand
@scottleibrand
Jun 15 2016 03:46
@cjo20 I like it. Feel free to keep refactoring everything that's unclear like that. If you get into more complicated refactoring (or refactoring code with poor test coverage), feel free to add more unit tests to capture the intended behavior and make sure the refactor doesn't change anything.
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:46
so many channels
Paul Martin
@Spazholio
Jun 15 2016 03:46
Wanna take a guess what my temp basal is set to now? =)
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:46
@Spazholio running openxshareble in a separate loop really helped me, I have a couple scripts to help with the timing
0?
Paul Martin
@Spazholio
Jun 15 2016 03:47
5.4
That’s the weird part. The openaps use pump read_temp_basal should be pulling directly from the pump, right? So…I’m stumped.
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:48
yeah, the use doesn't look at any of the reports
still seeing duration 0?
Paul Martin
@Spazholio
Jun 15 2016 03:48
I have no idea how it got that 5.4 then. Nor why that’s the EXACT temp basal set now, now that it’s working.
Jason Calabrese
@jasoncalabrese
Jun 15 2016 03:48
what if you set a new temp on the pump, does it change?
you only have 1 pump?
Paul Martin
@Spazholio
Jun 15 2016 03:49
Correct.
Duration is 28, btw.
And I tried running openxshareble in a separate loop, but that didn’t help. The process would get stuck, and just hang, and never pull the data. But it would never kill the process. I’d definitely be interested in seeing how you have yours set up though.
I noticed that when manually issuing the commands. Every once in a while, it would just hang.
Ben West
@bewest
Jun 15 2016 03:54
it shouldn't be too hard to patch it with a loose/non-strict mode that works even with non-existant files
would be good firsttimer thing
Paul Martin
@Spazholio
Jun 15 2016 03:55
I’d actually be happy to do that. Which specific file handles that?
I don’t have the structure of your codebase down yet, and short of grep -rin “select” . at the root, I don’t know where it is. =)
kstdennis
@kstdennis
Jun 15 2016 03:56
@bewest did you get openxshareble actually pulling data from a g5/g4?
glad @Spazholio mentioned this. I've been wanted to try and figure out something to break the dependancy on usb (and conserve some battery).
Ben West
@bewest
Jun 15 2016 03:59
so something like os.path.exists check if it's in non-strict mode
Paul Martin
@Spazholio
Jun 15 2016 04:00
Just so you’re aware, it was NOT a replacement for NS or directly wiring the CGM. It wasn’t stable enough, but that could have been due to something I was doing wrong, I fully admit.
Ben West
@bewest
Jun 15 2016 04:00
@kstdennis openxshareble gets data from G4 with share
kstdennis
@kstdennis
Jun 15 2016 04:00
that's awesome.
is the G5 communication different?
Ben West
@bewest
Jun 15 2016 04:02
very
Paul Martin
@Spazholio
Jun 15 2016 04:03
I have to head out, but @bewest - thank you for pointing me at the specific code. Now I just need to brush up on my Python. =) Also, not to beat the horse too hard, but I’d like to revisit pulling raw data from the CGM later on. If I understand right, that should be doable with oref0_glucose even with a wired Dexcom. And once I do that, and upload the data, I should see additional info in NS, and I never did. If I’m misunderstanding something, please correct me. I never saw anything new with openxshareble or wiring the Dexcom.
Ben West
@bewest
Jun 15 2016 04:04
I don't think you'd see anything new
Paul Martin
@Spazholio
Jun 15 2016 04:04
Oh? No white dots to indicate “noise” or other raw stuff?
Ben West
@bewest
Jun 15 2016 04:05
it would depend on nightscout itself as well as uploading calibrations as well
Paul Martin
@Spazholio
Jun 15 2016 04:05
http://www.nightscout.info/wiki/labs/interpreting-raw-dexcom-data <— that is where I was getting my info from.
Ben West
@bewest
Jun 15 2016 04:06
NS won't show raw without a calibration in last 2 days I think
Paul Martin
@Spazholio
Jun 15 2016 04:06
I have the rawbg enabled, as well as the setting enabled in the NS page options.
Hmm. I calibrate twice a day. At least.
Ben West
@bewest
Jun 15 2016 04:06
but it's not going into NS
oref0_glucose only gets raw and sensor records
noise field is missing
that's another great first-timer
Paul Martin
@Spazholio
Jun 15 2016 04:07
Ok, what would I need to do differently to facilitate that? iter_calibrations?
Ben West
@bewest
Jun 15 2016 04:07
it needs to be reformatted the way NS likes it
Paul Martin
@Spazholio
Jun 15 2016 04:08
Point me at that file as well, and I’ll look into it. =)
Do you have example input that NS likes? The reason I was misunderstanding was that I didn’t know I needed noise - I had no “known good” input to compare against. That might be something interesting to add…somewhere in the docs.
Ben West
@bewest
Jun 15 2016 04:10
here's for the select issue openaps/openaps-contrib#5
Paul Martin
@Spazholio
Jun 15 2016 04:11
Very cool, thanks.
Ben West
@bewest
Jun 15 2016 04:12
not sure where noise comes from, is that attribute of the egv record actually?
Paul Martin
@Spazholio
Jun 15 2016 04:12
I don’t know, but the output of openaps use cgm iter_calibrations is…well, I didn’t think I could be scared by JSON. I was wrong.
kstdennis
@kstdennis
Jun 15 2016 04:29
lol
Scott Hanselman
@shanselman
Jun 15 2016 05:00
@danamlewis :) re: sparkfun board
Ben West
@bewest
Jun 15 2016 05:17
@Spazholio I just put a new nightscout_calibrations use into dev on openaps
also updated dexcom_reader's dev to include noise by default
kstdennis
@kstdennis
Jun 15 2016 05:19
@bewest were there reliability isssues reconecting with the dexcom api while using the share2nightscout-bridge? Do you know if it has been used with openaps at all?
awesome work, btw.
Ben West
@bewest
Jun 15 2016 05:24
it's possible to use share2nightscout-bridge to put cgm data from share into NS, then use openaps use ns shell get entries.json to fetch it from NS
not sure if that was your question (and thanks :-))
dana and scott use share that way I think
Scott Leibrand
@scottleibrand
Jun 15 2016 05:26
yes
although we use an older method to download it from NS
kstdennis
@kstdennis
Jun 15 2016 05:27
with the ns hop and not just pulling down to the openaps host?
Scott Leibrand
@scottleibrand
Jun 15 2016 05:27
I don't know of anyone pulling directly from share to openaps
Ben West
@bewest
Jun 15 2016 05:27
it'd be possible to run the bridge as a local daemon, yes, I don't know of anyone doing this
Scott Leibrand
@scottleibrand
Jun 15 2016 05:28
NS has built in share bridge functionality
so you don't have to run share2nightscout-bridge manually
kstdennis
@kstdennis
Jun 15 2016 05:29
ah that's nice.
Ben West
@bewest
Jun 15 2016 05:29
ah, yeah, it's builtin/shipped with Nightscout itself :-)
kstdennis
@kstdennis
Jun 15 2016 05:29
lol
@scottleibrand has it been reliable pulling from ns?
Scott Leibrand
@scottleibrand
Jun 15 2016 05:30
yes, very
kstdennis
@kstdennis
Jun 15 2016 05:30
and you're having ns pull direct from the dexcom api?
Scott Leibrand
@scottleibrand
Jun 15 2016 05:30
correct
kstdennis
@kstdennis
Jun 15 2016 05:31
very cool.
one more question, with Iphone and receiver or just the iphone as the dexcom receiver?
@scottleibrand
Scott Leibrand
@scottleibrand
Jun 15 2016 05:33
we're using G4
kstdennis
@kstdennis
Jun 15 2016 05:33
ah
does this method work with the G5? Ben had mentioned earlier the communication is done much differently.
i wonder if the data is still available from the api with the same auth method and what not.
Scott Leibrand
@scottleibrand
Jun 15 2016 05:36
yeah, it will be identical once the data is uploaded to Share
so if you let the iOS app do the uploading, it all works the same
kstdennis
@kstdennis
Jun 15 2016 05:36
awesome.
thanks for all the work and info.
Martin Haeberli
@mhaeberli
Jun 15 2016 06:39
With help from @Spazholio , just got bridge working from Share to Nightscout. Not OpenAPS yet... Hope soon ...
Chris Oattes
@cjo20
Jun 15 2016 10:18
@Pazoles The pump only has 0.1u granularity when you get over 10u/hr basal, so it can't guarantee that it can set anything smaller than that. I'm working on some code that matches the available basal increments for x23/x54 pumps - I might be able to add in some code that takes in to account you have different increments available at lower basal rates
It might just be a case of replacing the "if (new_basal > (old_basal + 0.1))" with "if (round_basal(new_basal) != round_basal(old_basal))"
Jason Wittmer
@jbwittmer
Jun 15 2016 10:39
OK, I looped my son for the first time last night until 3am when I had to head to the airport. Ran from 9p - 3a and worked perfectly to bring him down from 200 post-swim meet and plateaued at 115 (all without my intervention). Amazing. Around 3am (I was up anyway) something weird happened and I'm curious if anyone has any insight. He rolled over and pulled the Carelink stick out of the USB extension cord. I had rubber banded the Carelink stick to his pump and stuck it inside his underwear as we don't have a clip for the 722 I'd bought. Around this same time (I don't exactly know the sequence of events), the 722 just shut down completely. Dead screen. No response. I changed the battery. No response. It was quite warm from having been right against him. I left it alone, even put it in the fridge for a while with the battery out. Eventually it rebooted but I had to reset the time. So, any ideas why the pump would suddenly go dead and then not wake up for a while? Think it was too hot? Something to do with the Carelink stick coming disconnected? No relationship at all? Obviously I've got a lot more testing to do but I'm very curious if someone has seen anything similar prior.
Jason Wittmer
@jbwittmer
Jun 15 2016 10:50
airplane doors closing now. I'll check back in a few hours and see if anyone has ideas. Thanks.
Chris Oattes
@cjo20
Jun 15 2016 10:52
I've not had any problems with a pump getting too hot, even when it's been underneath me under a heavy duvet
John Males
@johnmales
Jun 15 2016 11:49
@jbwittmer I’ve not seen this at all, whilst looping or not.
Paul Martin
@Spazholio
Jun 15 2016 12:41
@bewest re: nightscout_calibrations and noise bit - thanks! Naturally, I have some questions, but I'll wait on those for a bit, until you're around.
John Males
@johnmales
Jun 15 2016 12:47
Anyone notice how crontab -e and crontab -r have very different consequences, when “e" and “r" are next to each other on the keyboard? Thank goodness for scrollback buffers in the terminal.
Paul Martin
@Spazholio
Jun 15 2016 12:47
Many...many times.
Dana Lewis
@danamlewis
Jun 15 2016 13:05
@jbwittmer is it possible that the carelink stick pressed buttons on the pump when he rolled onto it?
Paul Martin
@Spazholio
Jun 15 2016 13:07
@johnmales 10 * * * * /usr/bin/crontab -l > /home/pi/crontab.backup <-- it's saved me more than once.
Jason Wittmer
@jbwittmer
Jun 15 2016 13:30
@danamlewis I suppose it's possible. Not sure if that could have caused a problem or not. What I can't figure out is why it wouldn't reboot with battery change initially but would after leaving battery out for 20 min or so. Reinforces my desire to get another 722 or 522 or otherwise for backup in case this means the pump is going bad. Bought from Craigslist and had worked well in testing to this point.
Chris Oattes
@cjo20
Jun 15 2016 13:30
hmm, do people have their bolus wizard set to target a range, or just a single value?
Jason Wittmer
@jbwittmer
Jun 15 2016 13:31
On the point of the Carelink, reinforces my desire to get a TI stick up and running.
Colin Lennon
@colinlennon
Jun 15 2016 13:32
@cjo20 I've got it set to a single value (6.0 mmol/L). It has crossed my mind too whether a limited range is better or not
Dragan Maksimovic
@dm61
Jun 15 2016 14:34
@jbwittmer was there anything in the Alarm History on the pump?
David Cintron
@loudestnoise
Jun 15 2016 14:36
That’s my biggest fear. Destroying my insulin pump somehow in my sleep. At least with my OmniPod if the pod is damaged, I just replace it, but with my precious 722 that’s a different story. Guess it’s only since using OpenAPS I feel this way. When I used the 722 years ago, I’m sure I thought, “Oh Medtronic will replace it if I break it”.
Although I should have also told myself (pump replacement dependent upon warranty status, Insurance coverage, the weather outside and current healthcare situation)
loudestnoise @loudestnoise goes back to reading @mikestebbins article on OpenAPS
Jason Wittmer
@jbwittmer
Jun 15 2016 14:42
@dm61 good question. I'll check when I get back home.
Sarah Hodson Grady
@shgrady
Jun 15 2016 15:05
@cjo20 I have mine set to 100mg/dL, for regular use, don't think I would expand it for looping, watching to see if others have opinions.
live4sw
@live4sw
Jun 15 2016 15:09
I target 100 during the day, 115 during the night
Lynne Butts
@flutelynne_twitter
Jun 15 2016 15:09
@cjo20 I do 110-120 all day
Dana Lewis
@danamlewis
Jun 15 2016 15:15
I highly recommend a higher target than you would manually correct to for when you start looping. you can do something like 130-130, or a 130-140 range. I wouldn’t recommend any wider range, because people then tend to expect the loop to be doing more than it is able to with such a wide range.
with a 130-130 for example, just know you’re going to get more oscillation in temp rates. Not a bad thing, but some people get really suspicious about how much the loop is making changes. (Doesn’t bother me, in my case, the more the better for fine tuning)
live4sw
@live4sw
Jun 15 2016 15:17
@danamlewis Makes sense - I spent a while at 140 and 130 targets before gradually moving down to where I am now (four months in)
Dana Lewis
@danamlewis
Jun 15 2016 15:17
:+1:
Chris Oattes
@cjo20
Jun 15 2016 15:17
I need to get my head around why it makes some of the decisions it makes. Sometimes it seems to make them based on the top of the range, other times the bottom (based on what is uploaded to the nightscout pull)
Sarah Hodson Grady
@shgrady
Jun 15 2016 15:18
honestly, I think mine is that way just to make the math super easy, my correction factor is 1 unit to 40, so if I was 110 and my pump wanted me to take .10 instead of .25 I would know it thought I had .15 IOB, but I also consider running a flat 65 as a comfortable thing to do if not exercising, running that high on average (140) sounds a little nauseating?
Chris Oattes
@cjo20
Jun 15 2016 15:19
being flat at 140 would be an improvement for me
I also need to get determine-basal outputting mmol/l
Sarah Hodson Grady
@shgrady
Jun 15 2016 15:21
@cjo20 I used to be that way too, but now am debilitating sick at 180, feel pretty bad at 160. The book "Sugar-Surfing" was life changing for me.
Paul Martin
@Spazholio
Jun 15 2016 15:38
I'm pretty sure I lived a few years where ~250 was normal to me.
(yeah, I know, I know)
David Cintron
@loudestnoise
Jun 15 2016 15:41
@shgrady Big fan of Dr. Ponder’s. I actually saw him once as a patient before he moved to North Texas and his new practice would only allow him to see pediatric patients
He was all about doing telemedicine. The plan was I would see him once or twice in person in Houston, TX, and the rest would be follow up via Skype and such
Sarah Hodson Grady
@shgrady
Jun 15 2016 15:45
That is pretty neat, I like my endo, but I feel like we were debating forever (and I have celiac so my diet is veggies and meat) why my carb counting was never right.
Paul Martin
@Spazholio
Jun 15 2016 15:45
Lots of meat will convert to glucose. Thank you doctors for never telling me that.
"Lots of meat" meaning "large quantities" not "many different kinds".
Sarah Hodson Grady
@shgrady
Jun 15 2016 15:50
I was under the impression my HbA1c was a result of slip ups, nobody ever told me to wait for the bend, I was told when switching from Regular to Humalog that I could bolus when I ate now, rising to 200 after was normal....no wonder I did not like to eat
live4sw
@live4sw
Jun 15 2016 15:52
I love Sugar Surfing too. Not life-changing for me, but the best diabetes book I've ever read.
Brooke Pazoles
@PazolesBrooke_twitter
Jun 15 2016 15:59
I'm also a Dr. Ponder fan. I only recently read Sugar Surfing and like many others say I was mostly already doing what he suggests, more or less. But I love his attitude about diabetes and it's really helpful to have a guide of sorts.
@Spazholio I can't believe how long I went without knowing about the protein glucose conversion. It's absurd!
@live4sw I couldn't agree more.
Sarah Hodson Grady
@shgrady
Jun 15 2016 16:04
Probably 15 new concepts for me, but I was also deeply gripped with shame. Self-reinforcement of good behaviors first empowerment I have had in 27 years. My new endo was anti-shame but had not given me the tools I needed, I was still stuck in 4 shots a day, fewer if you don't eat mentality baked in since I was young, even though I had pump and CGM.
Paul Martin
@Spazholio
Jun 15 2016 16:31
Could not sort temptargets_data. Optional feature temporary targets disabled. <-- I have a 3 hour temp target currently set. What would prompt that message to show? What needs to be present in which file in order for it to function properly?
kstdennis
@kstdennis
Jun 15 2016 17:11
@jbwittmer I've managed to lock up the 722 with snow (basals were fine, but no button access), but not heat. I wonder if it locked up during communication with the carelink. The 722 has some sort of memory or capacitor keeping a small charge that hangs around after battery removal. I think 20 minutes was enough time to run out the charge.
Scott Leibrand
@scottleibrand
Jun 15 2016 17:22
@Spazholio that usually means it got nothing. Check order of arguments and contents of files?
Paul Martin
@Spazholio
Jun 15 2016 17:23
I'm not certain which file it needs, and what needs to be in that file. Everything else is running smoothly, so nothing obvious was jumping out at me.
monkeymankjb
@monkeymankjb
Jun 15 2016 17:28
I would like to implement OpenAPS with my Medtronic pump. I'm not interested in a closed loop, only open commands to obtain battery and carb on board in Nightscout. I have a 530g, I realize that it doesn't have remote capabilities, does this preclude all commands?
Ben West
@bewest
Jun 15 2016 17:32
@monkeymankjb actually all the read commands work just the same
@monkeymankjb this is a detail that is often getting lost, the newer pumps such as 530g are equally supported by decocare/openaps, they simply cannot do temp basal and other "write"/command-control commands
all the other stuff reading data from the pump is supported just the same
it should be possible to use openaps as a unified uploader to NS for glucose and pump data
monkeymankjb
@monkeymankjb
Jun 15 2016 17:34

@bewest that was my theory and hope

so setup as the other pumps in docs or some other method?

Ben West
@bewest
Jun 15 2016 17:34
yeah, same stuff
you'll just skip the set_temp_basal part, and don't need to do determine-basal
Dana Lewis
@danamlewis
Jun 15 2016 17:35
feel free to PR something in if you have ideas on how to make it more clear for proceeding with the intention of only doing open looping
Ben West
@bewest
Jun 15 2016 17:35
everything else is exactly the same
monkeymankjb
@monkeymankjb
Jun 15 2016 17:35
@bewest thanks so much
there's a PR open that could use additional feedback/contributions as well as several open issues cross linked into that
Dana Lewis
@danamlewis
Jun 15 2016 17:37
@bewest I’m thinking about something higher level and somewhere else in the docs
most people who are thinking open loop only won’t go there/get that far into the weeds
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:38
@bewest For bitbucket, after choosing 'I have an existing project' do I take each command line and put it in the pi terminal?
Ben West
@bewest
Jun 15 2016 17:39
yes
@danamlewis not sure I understand... I think it's easiest to frame it as monitor, predict, control, monitoring should be the first thing, predicting should add oref0, and control should be enabling set_temp_basal
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:40
Great! Thank you!
Ben West
@bewest
Jun 15 2016 17:40
so everything actually builds on the prior
Sarah Hodson Grady
@shgrady
Jun 15 2016 17:40
@flutelynne_twitter sorry to interrupt, I missed why you are using bitbucket instead of github (I have only ever done so when I needed to keep certain things private)?
Ben West
@bewest
Jun 15 2016 17:40
the determine-basal, set_temp_basal step is one minor change to enable closing the loop, everything else is exactly the same
Dana Lewis
@danamlewis
Jun 15 2016 17:41
@bewest it needs to be expressed in very plain language at the top of the docs to explicitly say: you can follow this path if you are going to open loop in addition to if you plan to close the loop.
that’s not very clear right now and we are getting more questions. it’s also not very clear for what people need to skip or do differently, because that’s not what the docs were done for originally
so they need to be reviewed with this user mindset in mind
logistically for the in the weeds sections, I agree about flow. But I’m talking top level plain language.
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:45
@shgrady I am new at all of this, and the github one looked confusing. Any thoughts?
Ben West
@bewest
Jun 15 2016 17:50
it's fine, they are both the same
Sarah Hodson Grady
@shgrady
Jun 15 2016 17:50
@flutelynne_twitter no I probably need to review the documentation. I am new to this too, just have 10 reasons I use Github unless I have to use Bitbucket.
Ben West
@bewest
Jun 15 2016 17:50
they both offer private repos, I think bitbucket offers free private repos
so for people that are new to using these kinds of tools and this is their first account, they probably don't have a paid account on github
Paul Martin
@Spazholio
Jun 15 2016 17:51
@scottleibrand Looks like my get-bg is the "old and busted" version. Checked out your AMA setup.sh and I see that it's fairly different. I'll see what's going on there. Although, I can't help but notice that you're using rsync in there for some reason?
Ben West
@bewest
Jun 15 2016 17:51
but it doesn't matter at all, both github and bitbucket serve the same purpose
the steps are even basically identical
Sarah Hodson Grady
@shgrady
Jun 15 2016 17:51
@bewest when you are talking to non-programmers, the difference in ease of use makes a big dif
Ben West
@bewest
Jun 15 2016 17:52
sure, I prefer github personally
but others observed that they didn't have an account on either platform yet
and to get a private repo on github you have to pay, and on bitbucket you don't
so for large swatch of new people, bitbucket will actually be easier, lower burden
Sarah Hodson Grady
@shgrady
Jun 15 2016 17:52
gotcha, I just still cannot figure out Bitbucket
Ben West
@bewest
Jun 15 2016 17:52
but it truly does not matter
David Cintron
@loudestnoise
Jun 15 2016 17:53
@flutelynne_twitter I might ask if you’re only setting up this backup because it was recommended somewhere on the docs, or if you actually want to put your openaps repository online
I know you recently made backups or were working on backing up your microSD card
the only real benefit as I can see of backing up the git repository to Bitbucket or Github is well if you care about that sort of thing
or if you want to have an additional copy
and I’m not one to argue against having multiple backups
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:54
ok Just paying for the private repo doesn't automatically have it backed up?
David Cintron
@loudestnoise
Jun 15 2016 17:55
no, you would have to essentially learn more about how Git works
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:55
I didn't make the card copies yet, and wanted to backup before anything might happen to it.
David Cintron
@loudestnoise
Jun 15 2016 17:55
and commit changes
not saying you can’t learn
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:56
I just got a TI stick, but that is looking intimidating right now. Have to ponder that a while. Just not sure what to do. I was going to have a local computer shop do the sd card copy. I'm that chicken. bawk bawk
@loudestnoise so just pay the $ and it is there?
David Cintron
@loudestnoise
Jun 15 2016 17:57
I’m sure you thought the same thing about openaps at first
about it being intimitdating
I sure did
Lynne Butts
@flutelynne_twitter
Jun 15 2016 17:58
Yes, that's is true, and still is somewhat.
@shgrady I did, and that kinda scared me. Especially when it says to be careful about...
Ugh. Now it froze up on the part about entering my bitbucket password. It won't let me enter anything.
Sarah Hodson Grady
@shgrady
Jun 15 2016 18:01
I think this is the beauty of linux, you can copy a system, for windows they do this whole "fog" image thing I don't understand, thats why you can edit a document and change a setting.
Ben West
@bewest
Jun 15 2016 18:01
it's letting you enter, it's just not printing it
you can enter password, and it won't show it
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:02
ok, but there is no other prompt for $
Ben West
@bewest
Jun 15 2016 18:02
when you hit enter it'll take the password
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:03
Of course, that did it! was i supposed to enter the directory first?
cd /path/to/my/repo
after I already put in myopenaps directory?
Ben West
@bewest
Jun 15 2016 18:04
yes, cd to your directory
if you're in your openaps directory, it's fine
GeoffWyche
@GeoffWyche
Jun 15 2016 18:05
Please note: be very very careful with the 'dd' command. Its nickname is 'disk destroyer'
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:05
I am in my directory already
@GeoffWyche should I exit and be fine just paying the monthly github fee? No problem if so.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jun 15 2016 18:07
@flutelynne_twitter is there a reason you need a comercial account for github. there is no fee if you are working on public projects
GeoffWyche
@GeoffWyche
Jun 15 2016 18:07
No, it's fine... just be careful when typing the command. It will not care if it is wiping your computer. It just moves data from one place to another.
Sarah Hodson Grady
@shgrady
Jun 15 2016 18:07
Can someone help me understand why she needs a repository if she is not customizing the code?
David Cintron
@loudestnoise
Jun 15 2016 18:08
Yeah, that’s what I’m trying to help her figure out. The docs do reference using Github or Bitbucket, but I think it’s in regards to making a copy or backup of your repo
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:08
Ugh. maybe I better just exit, and not take any other chances!
David Cintron
@loudestnoise
Jun 15 2016 18:08
I think mastering the copy of the microSD card would be better for @flutelynne_twitter
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:09
Just re-reading the docs, and noticing what Dave said, too. Thanks, I guess a copy will have to be the way to go.
Sarah Hodson Grady
@shgrady
Jun 15 2016 18:10
speaking of, since I don't know much either, and nobody corrected my assertion of Linux earlier...I can copy to any 8GB micro sd right, it does not need to be a NOOBs or does it?
David Cintron
@loudestnoise
Jun 15 2016 18:10
Yes, you’re copying an image of your card, so it includes openaps plus all of your linux install
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:11
Another question. I have a second carelink stick, and it can read my pump to the medtronic site for reports. Can that be changed out or used on my second RPi2 with the copied sd card, no problem?
Sarah Hodson Grady
@shgrady
Jun 15 2016 18:11
I got a house full and only one spare NOOBs thanks @loudestnoise
David Cintron
@loudestnoise
Jun 15 2016 18:12
Yeah, I bought two 8GBs from Amazon when I first started, but I think I might buy a couple more just for fun and safety. I have a GoPro, so I know microSD cards are sometimes prone to fail
better safe than sorry
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:13
@shgrady I bought a 16G at bestbuy (one of the suggested docs brand) and formatted that. I also have a 32G with the second pi2 arriving today. But I guess my original 8G is all that will be on the 16 and 32. If I understand right, I would have been fine with just the 8G.
Paul Martin
@Spazholio
Jun 15 2016 18:13
@scottleibrand When you get a moment, can you walk me through the get-bg that's in your AMA setup.sh? I'm trying to follow it, but I think I'm missing some of the logic. It appears as though it pulls the info from NS, but if it can't, then it pulls from the CGM. However, my monitor/glucose.json always has CGM data in it since using your get-bg despite having access to NS. And then you use rsync for the CGM data, whereas you just use cp for the NS data. Help? =)
David Cintron
@loudestnoise
Jun 15 2016 18:14
@flutelynne_twitter I just buy the 8GB because they’re cheap. I think I paid $7 for them on Amazon
Yeah, $6.75 currently for Sandisk 8GB microSD
but a 32GB is only $7.99, so could quadrouple my size for $1 and some change
@flutelynne_twitter Do you have a Mac? I can walk you through each step if you want help doing the copying of the cards. I could probably do Windows too, just would have to use a different computer
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:21
I have a gig I have to get reeds ready for this evening. My husband is already giving me stares like "what are you doing now, instead of..." look. I may take you up on that tomorrow if the offer still stands. Thank you.
Paul Martin
@Spazholio
Jun 15 2016 18:21
@scottleibrand Ok, I think I've sussed some of it out. However, the part where it says && this.glucose > 30 seems to be a little wonky, as the two elements that would otherwise be reported look a little different - they don't have a "glucose" entry, but they DO have a "sgv" entry.
Scott Leibrand
@scottleibrand
Jun 15 2016 18:21
@Spazholio rsync -tu allows me to only copy the file if it's newer
David Cintron
@loudestnoise
Jun 15 2016 18:22
@flutelynne_twitter Sure, tomorrow is fine.
Gig? Are you a musician?
all my musician friends refer to their work as gigs :musical_note:
Paul Martin
@Spazholio
Jun 15 2016 18:23
Hmmm, ok. I can see that. What about the "glucose" vs. "sgv" thing?
Scott Leibrand
@scottleibrand
Jun 15 2016 18:26
I wrote that for dexcom data, which populates glucose. you might want to change it to sgv depending on data source
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:27
@loudestnoise yes. Playing sax and flute tonight. Sometimes I think the word gigs is overused. Especially in our area. People that do free jobs are callings theirs a gig. So we just say jobs.
David Cintron
@loudestnoise
Jun 15 2016 18:28
Fun! I’m a multinstrumentalist of sorts. I know @bewest is quite talented at the keys
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:28
@loudestnoise just lost our wifi at home, so good thing I had already shutdown the pi and we didn't start working on the copy. Thanks
David Cintron
@loudestnoise
Jun 15 2016 18:28
:+1:
Lynne Butts
@flutelynne_twitter
Jun 15 2016 18:30
@loudestnoise yes. Ben sounded good on his interview. Cool that you are a musician too.
Sarah Hodson Grady
@shgrady
Jun 15 2016 18:31
@flutelynne_twitter yeah, work keeps giving me 200GB ones so I have a pile of the 8gb that originally came with various devices, but I think I would be comfy with just keeping my backup on a more dependable form of storage.
Paul Martin
@Spazholio
Jun 15 2016 18:31
I mean, MOST of my items have "glucose" in them, it's just that some of them don't. Odd. And whenever I run openaps get-bg using the one that you provided as-is (no modifications), if my CGM is disconnected, then it fails, as it's always trying to pull the CGM data, even with getting from NS succeeds. If I'm reading the bash logic correctly, it shouldn't do that UNLESS the NS data stuff fails, right?
Scott Leibrand
@scottleibrand
Jun 15 2016 18:34
do you rm monitor/* in your loop?
but you're correct, if the NS download works it is supposed to stop there
Paul Martin
@Spazholio
Jun 15 2016 18:35
I do. My loop's suspended while I dig in, but monitor/glucose.json does not currently exist.
Now, this bit: json -c \"minAgo=(new Date()-new Date(this.dateString))/60/1000; return minAgo < 10 && minAgo > -5 && this.glucose > 30\" always returns [].
Since that's being piped to grep -q glucose and it's empty, would that return a FALSE? Because it never moves the ns-glucose.json to 'monitor/glucose.json`...
I think if I switch it from using this.glucose to this.sgv it might work properly...
Paul Martin
@Spazholio
Jun 15 2016 18:40
Yeah, that seems to do the trick. All items seem to have sgv in them, but only MOST of them have glucose. Hmm.
And offhand, do you know where in the output of everything I'd see the impact that setting up temptargets properly would show? I know what the error message looks like, but no idea what I'm supposed to see if it's actually working (other than the lack of an error message).
Paul Martin
@Spazholio
Jun 15 2016 18:49
Well, it looks like it's setting my target down to 79, so I suppose that's how I know. =)
Scott Leibrand
@scottleibrand
Jun 15 2016 18:52
:-)
Thacher
@thacherT1D
Jun 15 2016 19:06
Okay... so I am able to read both my dexcom and my pump (woot woot!) I am using a G5 receiver connected via USB and 522 pump -- looking at the WIP docs, I am able to see data as show in the "Check that you can communicate with your Dexcom receiver" section with $ openaps use <my_dexcom_name> iter_glucose 1 but not with the directions in the earlier "Glucose Data
Test ability to get data" section, where using openaps use cgm oref0_glucose --no-raw --hours 2.0 returns an empty array for me... do I need to worry about the empty array right now or is moving forward with the setup returning data as it is okay?
David Cintron
@loudestnoise
Jun 15 2016 19:09
I think it should return values when running that
what version of openaps do you have?
openaps —version
Paul Martin
@Spazholio
Jun 15 2016 19:29
Also, try getting rid of the --no-raw just to see if it's pulling ANYTHING.
I'm also not sure if it works with G5. I have a G4, and it does, but I know that in some respects, the G5 is a little different.
Thacher
@thacherT1D
Jun 15 2016 19:30
openaps version 0.1.5
when I remove --no-raw I get a python overflow error
OverflowError: Python int too large to convert to C long
Paul Martin
@Spazholio
Jun 15 2016 19:33
...huh. That's something.
Thacher
@thacherT1D
Jun 15 2016 19:34
right? it's like all or nothing...
Paul Martin
@Spazholio
Jun 15 2016 19:35
I'm gonna tag @bewest to see if he has any insight.
David Cintron
@loudestnoise
Jun 15 2016 19:39
G5 doesn’t have RAW, so you have to use that for G5
@thacherT1D what does openaps use cgm GetFirmwareHeader give you?
I remember having to use openaps use cgm config but I’m not sure what that does actually
(pi @ raspberrypi): ~/openaps
⇢  openaps use cgm config --G5
{
  "model": "G5"
David Cintron
@loudestnoise
Jun 15 2016 19:44
maybe that tells it that it’s a G5?
looks like it just returns the info about the model, but maybe it also changes a flag so it knows you’re using a G5?
I know this is still kind of bleeding edge. It was only recently added to openaps. Previously you had to use @loudnate’s special bits to get a G5 working.
Thacher
@thacherT1D
Jun 15 2016 19:49
Get firmware Header returns this:"DexBootVersion": "3",
"BLESoftwareVersion": "1.0.0.76/1.0.1",
"RFVersion": "1",
"ApiVersion": "3.0.0.0",
"ProductName": "Dexcom G5 Mobile Receiver",
"SoftwareNumber": "SW10617",
"TestApiVersion": "2.10.0.0",
"BLEHardwareVersion": "HW003C",
"SchemaVersion": "1",
"ProductId": "G5MobileReceiver",
"PortVersion": "4.6.4.62",
"FirmwareVersion": "4.0.1.030",
"BLEDeviceAddress": "4711A42842F4"
I used openaps use cgm config --G5
Dragan Maksimovic
@dm61
Jun 15 2016 19:51
@thacherT1D , good progress :+1: I do not think you necessarily need oref0_glucose, so you can just move on. What you did with G5 looks good to me.
Thacher
@thacherT1D
Jun 15 2016 19:51
great -- thanks!
Ben West
@bewest
Jun 15 2016 19:59
youc an use oref0_glucose --no-raw
with G5
there might be an issue with needing both a count and a time spec
Ben West
@bewest
Jun 15 2016 20:05
if you're using dev, that is
David Cintron
@loudestnoise
Jun 15 2016 20:13
openaps use g5 oref0_glucose --no-raw returns readings for me without —hours 2.0 or anything else, but I’m not using dev AFAIK
whereas g5 is my dexcom device name :)
it cracks me up when I think about the dexcom naming. G4 to G5, what’s next dexcom mac pro?
or would it be “Now I’m feeling so fly like a G6"
Hristina Dimova
@xpucuto
Jun 15 2016 20:35
I have a question about OpenAPS algorithm ??? At the moment my Bg is 5mmol my target for the night is 7 , I have iob -0.72 iob and basal iob -1.2 . If I am below target why it is giving me temp basal of 1.2 ? Doesn't it have to wait my bg to raise to the target or at least closer before setting temp basal different of 0 ? :(
Scott Leibrand
@scottleibrand
Jun 15 2016 20:37
what is the delta and avgDelta?
and what does the reason say?
Hristina Dimova
@xpucuto
Jun 15 2016 20:40
Delta is +0.2 but I can't see addition Info as my pi doesn't want to connect to the wifi and it's not updating the web site
Now I saw it .
Hristina Dimova
@xpucuto
Jun 15 2016 20:46
Is there an easy way to upload apicture from the mobile version ?
Scott Leibrand
@scottleibrand
Jun 15 2016 20:47
not easily. I usually post it to dropbox and paste in the dropbox link
I would guess that -0.72U is more than enough to get you back up to 7, and 1.2U/hr is your normal basal, so it's saying "looks like we've already done enough, so let's just let your normal basal run for now"
or, if 1.2 is higher than your normal basal, it's looking at the eventualBG being way higher than target due to all the negative IOB, and trying to reduce that slightly now that you're rising again
Hristina Dimova
@xpucuto
Jun 15 2016 20:51
1.2 is my current basal right now , so now I get it .
Dana really have the best advice about setting higher targets :) I did it but did t know why
Now all makes sense . Thanks Scott :beer:
David Cintron
@loudestnoise
Jun 15 2016 20:54
Using OpenAPS has made me re-think trying to squeeze an extra week out of a dexcom sensor. I’m watching my BGs jump up and down and what my loop is doing in response. I just went from 0u for 30m to 2.8u for 30m in the span of 10 minutes
I’m at 13 days on this sensor at the moment
Dana Lewis
@danamlewis
Jun 15 2016 20:55
@xpucuto :)
@loudestnoise yep. I used to do 3, then down to 2 about the time I started looping…now I’m averaging a week and a half
I have zero patience for crappy sensor data
David Cintron
@loudestnoise
Jun 15 2016 20:56
Yeah, and now loop just ran again and now it’s back to 0.5u
I don’t blame the loop
silly sensor
Dana Lewis
@danamlewis
Jun 15 2016 20:56
poor loop, you’re putting it through the ringer
David Cintron
@loudestnoise
Jun 15 2016 20:58
I luckily have great insurance, so I just crossed my deductible for the calendar year so it’s 100% on DME for the rest of the year :+1: :+1: :+1: :+1: :+1: :+1:
now if I could just find someone who wants to trade OmniPod pods for QuickSet infusion sets & reservoirs
even great insurance doesn’t want to pay for supplies for two pumps and I had just done a new Personal Diabetes Manager and 3month order of pods before starting OpenaAPS
If money was no matter I’d use the two G5 transmitters they send me and start the 2 hour warmup on a new sensor while the other sensor was ending its 7 days
Dana Lewis
@danamlewis
Jun 15 2016 21:04
even doing a soak for 12-24 hours (using a dead transmitter for protection if you have one) makes a big difference in quality once you turn a sensor on
Scott Leibrand
@scottleibrand
Jun 15 2016 21:04
Have you looked at modding a dead transmitter to be rechargable? not sure if that works with g5 or just g4
Hristina Dimova
@xpucuto
Jun 15 2016 21:04
@loudestnoise if you do t find anyone to swap the pod for quicksets in the states let me know . I will be able to swap them . Here omnipods are hard to find .
David Cintron
@loudestnoise
Jun 15 2016 21:05
will do
Tim Street
@tim2000s
Jun 15 2016 21:05
Currently the recharge mod is only G4. They're looking at G5.
David Cintron
@loudestnoise
Jun 15 2016 21:06
Yeah, I’ve only seen people do that for G4 transmitters. If someone figures out G5 I’d be down to give it a whirl
Dana Lewis
@danamlewis
Jun 15 2016 21:07
@loudestnoise you can still do the soak with a G5
or an old G4
David Cintron
@loudestnoise
Jun 15 2016 21:07
soak?
like drink lots of water?
Dana Lewis
@danamlewis
Jun 15 2016 21:07
no
put in a new sensor the day before your next one ends
put an old transmitter on it just for protection
gives your body time to “soak” it, so when you “start” the sensor, you have a lot better accuracy straight away
cuts out much of the first day nonsense a lot of people see
David Cintron
@loudestnoise
Jun 15 2016 21:08
well that sounds fun
is that what you do?
Dana Lewis
@danamlewis
Jun 15 2016 21:08
yep.
12-24 hours is my sweet spot, but even 6 hours helps
i see a big difference when I pre”soak” vs when one falls out/rips out and I immediately place a new one and restart it immediately
David Cintron
@loudestnoise
Jun 15 2016 21:09
I will give that a try. Since I’m gonna probably give this session a quit tonight or tomorrow. I think I have a dead G4 I could use
although I’ve never removed a transmitter while still connected to sensor on my body
Dana Lewis
@danamlewis
Jun 15 2016 21:10
it’s easy. do it gently-ish though so you don’t break the plastic arms
David Cintron
@loudestnoise
Jun 15 2016 21:10
Yeah, that was my next question
Dana Lewis
@danamlewis
Jun 15 2016 21:10
and if you do break an arm off it, then you just put a strip of tape on top to keep it anchored
no biggie
David Cintron
@loudestnoise
Jun 15 2016 21:11
Nice, I’m definitely gonna try that out. No one likes the first day wobbles
Dana Lewis
@danamlewis
Jun 15 2016 21:11
:+1:
that, plus showing people how to get out of prime on medtronic pumps, are my money makers (i.e. if I had a dollar…) ;)
David Cintron
@loudestnoise
Jun 15 2016 21:12
Oh geez, well maybe I’ll have to do it next time. My iPhone just went from day 13 jumpy jump to ???
Dana Lewis
@danamlewis
Jun 15 2016 21:12
DRINK
now it’s time for that time of soak ;)
or not. at day 13 if I get ??? there’s no getting it back
David Cintron
@loudestnoise
Jun 15 2016 21:13
so you hydrate for ??? and soak for new sensors. I love it
Dana Lewis
@danamlewis
Jun 15 2016 21:14
yep
it’s my goal to infuse the English language with Dana-isms
not really. but it’s funny how many words we make up and convince other people to use
Toby Canning
@TC2013
Jun 15 2016 21:18
@bewest Does this ./ddms/deviceportreader/MM512.java:24: private static final int CMD_POWER_CTRL = 93; command turn the radio off. I tried testing it, but I could not get it to function as a manual command.
What I'm trying to do is shut the pump radio off after each loop to save power.
Greg Scull
@komby
Jun 15 2016 21:20
Ok, I rely on this loop too much. I can honestly say that I am stressed out we are going camping and will not have access to nightscout UI. Building a tethered rig from an old pi this week but no UI for it :(
Ben West
@bewest
Jun 15 2016 21:21
@TC2013 that command turns the radio ON
Dana Lewis
@danamlewis
Jun 15 2016 21:21
couple of options - pancreabble to watch; or make the pi a hotspot so you can connect to it @komby
Toby Canning
@TC2013
Jun 15 2016 21:21
@bewest So, no off?
Dana Lewis
@danamlewis
Jun 15 2016 21:21
ssh’ing into the pi at least allows you to see what it’s doing
Ben West
@bewest
Jun 15 2016 21:21
not sure
I think there is an off and I might have used it once maybe
you can change the number of minutes the radio is on for though
so you can set it to eg 1 minute
Greg Scull
@komby
Jun 15 2016 21:22
I was thinking I have a small LCD monitor that has hdmi (12V) I might tap into the trailer power and tail the log file for it
Toby Canning
@TC2013
Jun 15 2016 21:23
I'm looking for a more elegant way to manage it
Maximize efficiency...
:)
Ben West
@bewest
Jun 15 2016 21:23
yeah, so if you do minutes = 1 it will turn off after a minute
default used to be 10 minutes, so that'd be on 1/10th of the time
David Cintron
@loudestnoise
Jun 15 2016 21:24
@komby see, what you need is a speaker attached to your rig and you play an audio file when the loop runs that plays a trumpet noise and informs you of the basal change
Ben West
@bewest
Jun 15 2016 21:24
these days, the default is 3
so it should only be on for 3 minutes now
Toby Canning
@TC2013
Jun 15 2016 21:25
Do you have time for a quick call?
Ben West
@bewest
Jun 15 2016 21:25
sure :-)
Toby Canning
@TC2013
Jun 15 2016 21:25
thanks, calling now
Greg Scull
@komby
Jun 15 2016 21:25
@loudestnoise OMG I am pretty sure my wife would kill me
David Cintron
@loudestnoise
Jun 15 2016 21:25
@TC2013 you’re in HTX?
oh wait, yes duh, we’re talking on Twitter
Toby Canning
@TC2013
Jun 15 2016 21:26
Yes, Spring
Near 249 and 8
David Cintron
@loudestnoise
Jun 15 2016 21:26
I was like THERE’S ANOTHER GUY IN Houston. I need to tell the other guy!
My family is 249 @ Spring Cypress
well we need to make #OpenAPSHTX meetup happen at some point for sure
although maybe not that hashtag...
Dana Lewis
@danamlewis
Jun 15 2016 21:29
pics or it didn’t happen ;)
kstdennis
@kstdennis
Jun 15 2016 21:29
lol
@danamlewis are you all back east or up in the bay?
Dana Lewis
@danamlewis
Jun 15 2016 21:31
My home airport is Seattle. we have people all over the US and world - check out this page :) https://github.com/openaps/docs/wiki/Where-in-the-world-is-%23OpenAPS%3F
kstdennis
@kstdennis
Jun 15 2016 21:31
nice! ty.
Dana Lewis
@danamlewis
Jun 15 2016 21:32
::is waiting for @CrushingT1D to do a mashup of where in the world is Carmen San Diego with where in the world is OpenAPS loopers::
kstdennis
@kstdennis
Jun 15 2016 21:32
^^ +1
would love to see an LA meetup someday. :)
Dana Lewis
@danamlewis
Jun 15 2016 21:33
recruit some loopers, make it happen! :)
Toby Canning
@TC2013
Jun 15 2016 21:33
@loudestnoise Ha! Your family and I are neighbors then! I was being way general with my location, but I live in the Glenloch subdivision
kstdennis
@kstdennis
Jun 15 2016 21:34
have to close the loop first, but then sure.
Dana Lewis
@danamlewis
Jun 15 2016 21:34
:)
Toby Canning
@TC2013
Jun 15 2016 21:35
Since you know where I live now, are you willing to pick and place and time that splits the difference for us? @loudestnoise
David Cintron
@loudestnoise
Jun 15 2016 21:44
You a coffee drinker?
Ben West
@bewest
Jun 15 2016 21:44
@kstdennis nah, don't wait ;-) I attended several meetups without having mine fully set up yet
kstdennis
@kstdennis
Jun 15 2016 21:47
I've got some folks in san diego and irvine which are within driving range. we'll make it a Souther Cali meetup.
Dana Lewis
@danamlewis
Jun 15 2016 21:47
@amazaheri is in Irvine and @jasoncalabrese is in San Diego ;)
kstdennis
@kstdennis
Jun 15 2016 21:50
Thanks :) I wonder how many are working on rigs in the area as well.
have to look over the other list...
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 21:51
@danamlewis you are testing my age based knowledge.
that thing hit stride when i was a couple years too old to pay attention
Dana Lewis
@danamlewis
Jun 15 2016 21:55
Hehe
You're YouTube savvy though
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 21:58
I am too busy googling to see if there are any clues to when this faster acting insulin is coming out.
David Cintron
@loudestnoise
Jun 15 2016 21:58
@CrushingT1D aren’t you in paradise right now?
shouldn’t you be sipping low carb marguaritas or something?
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 21:59
Nor cal margaritas? Thats a good idea
It is officially noon in one min :)
jaylagorio
@jaylagorio
Jun 15 2016 21:59
Could someone point me to the latest walk-through or draft that needs someone to go through it? I'm going to be starting my loop soon and if I can take notes on anything that needs changing I'd like to help.
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 22:00
Nice @jaylagorio
This is my substitute for reading a book on the beach
jaylagorio
@jaylagorio
Jun 15 2016 22:01
@CrushingT1D Yeah, only took me this long to get a compatible pump! I've had everything else for a while now.
If there are docs that need validation and maybe PRs I'm happy to do it
BTW, The Nightscout Foundation got a driver signing cert so the CareLink USB stick you gave me has an official driver that works for virtually all Windows platforms
I put it up Sunday
Where's paradise?
Dana Lewis
@danamlewis
Jun 15 2016 22:02
@Jaylagorio check out @bewest wip branch, notes on that would be great
@jaylagorio Also did you connect with Hanselman about the pump he's willing to mail you?
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 22:03
Nice!
jaylagorio
@jaylagorio
Jun 15 2016 22:03
He's next on my list of people to talk to today, thanks for sending him my way!
bewest-dev-w-dana branch?
He has a bunch of branches
Dana Lewis
@danamlewis
Jun 15 2016 22:04
No sorry. Look in openAPS, theres a branch that's wip
jaylagorio
@jaylagorio
Jun 15 2016 22:04
4 have "wip" in the name
Dana Lewis
@danamlewis
Jun 15 2016 22:04
On my phone so less helpful and more confusing ;)
That one! Bat signal worked ;)
Ben West
@bewest
Jun 15 2016 22:05
openaps/docs#134
jaylagorio
@jaylagorio
Jun 15 2016 22:05
Thanks!
Dana Lewis
@danamlewis
Jun 15 2016 22:05
:)
Paul Martin
@Spazholio
Jun 15 2016 22:05
@bewest Curious - how do you handle development on the codebase? Do you have a dev rig that you do everything on? I’m looking at making some of those code changes you were suggesting last night, but don’t have a dev rig set up yet, and was just going to tinker with my live rig. Do I have to stop using pip and start using the ~/src directory again?
jaylagorio
@jaylagorio
Jun 15 2016 22:05
I'll start out with that one probably this weekend and ask any questions as I progress. Thanks!
Dana Lewis
@danamlewis
Jun 15 2016 22:06
@Spazholio danger will robinson
Ben West
@bewest
Jun 15 2016 22:06
@Spazholio I use my laptop
Dana Lewis
@danamlewis
Jun 15 2016 22:06
Recommend dev setups of some sort
Ben West
@bewest
Jun 15 2016 22:06
@Spazholio I also have 4 - 5 pis with different OS's versions of things
Dana Lewis
@danamlewis
Jun 15 2016 22:06
Sounds good thanks @jaylagorio
Ben West
@bewest
Jun 15 2016 22:06
I also have 2 edisons
Paul Martin
@Spazholio
Jun 15 2016 22:06
@danamlewis I like to live on the edge. Just maybe not that much on the edge. =)
Ben West
@bewest
Jun 15 2016 22:06
at any given point in time, I'm lucky if one of them is working
ryanchen26
@ryanchen26
Jun 15 2016 22:06
I'm right on the edge of install my TI Stick. I'm trying to create the 90-mmeowlink.rules file but when I try to save it give me "permission denied."
Ben West
@bewest
Jun 15 2016 22:07
I'm finding people are taking advantage of the flexibility I've allowed in the design and even asking for more :-D
you should be able to use your mac osx laptop to develop everything just fine
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 22:08
I did all my dev on my live rig. Was not optimal at all and caused me downtime
Ben West
@bewest
Jun 15 2016 22:08
it mostly works on windows, too but couple of issues using logging module that causes things to choke
Paul Martin
@Spazholio
Jun 15 2016 22:08
I forget - what’s the steps to deploy from ~/src? I just got used to pip. =)
Ben West
@bewest
Jun 15 2016 22:08
is it in the readme?
Paul Martin
@Spazholio
Jun 15 2016 22:08
We have a readme?!
cough
Hang on, I’ll check.
David Cintron
@loudestnoise
Jun 15 2016 22:10
@bewest don’t you mean macOS?
:wink2:
scottleibrand @scottleibrand looks for a large trout
ryanchen26
@ryanchen26
Jun 15 2016 22:11
Nevermind, needed to add sudo first.
Scott Leibrand
@scottleibrand
Jun 15 2016 22:11
sudo procure-trout
sudo apply-trout @loudestnoise
Ben West
@bewest
Jun 15 2016 22:13
sudo teach-howto-fish -R *
Dana Lewis
@danamlewis
Jun 15 2016 22:14
Hehe
Scott Leibrand
@scottleibrand
Jun 15 2016 22:14
Error: infinite recursion
David Cintron
@loudestnoise
Jun 15 2016 22:14
I’m not familiar with those commands
I regularly try sudo makemeasandwich though
Scott Leibrand
@scottleibrand
Jun 15 2016 22:14
sudo teach how-to make-stuff-up @loudestnoise
Ben West
@bewest
Jun 15 2016 22:16
you need to use openaps use invalid shell argument
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 22:18
reminds me i need to get back on building that bot
Paul Martin
@Spazholio
Jun 15 2016 22:18
@loudestnoise That’s a real thing now: https://www.npmjs.com/package/makemeasandwich
David Cintron
@loudestnoise
Jun 15 2016 22:18
@Spazholio no…………...
from Jimmy John’s! I love JJs!
Paul Martin
@Spazholio
Jun 15 2016 22:19
Yup. =)
Jim is CrushingT1D
@CrushingT1D
Jun 15 2016 22:19
Sudo murseless -t now norcal-margarita
Scott Leibrand
@scottleibrand
Jun 15 2016 22:19
@Spazholio awesome! :)
Ben West
@bewest
Jun 15 2016 22:19
wow, this is such a missed opportunity for dominos
David Cintron
@loudestnoise
Jun 15 2016 22:19
too bad all the locations near work won’t deliver to me
I did order Domnios from my Pebble once
and called an Uber from my brother’s Amazon Echo
the future is now
Ben West
@bewest
Jun 15 2016 22:24
openaps use seemless make --me --favorite sandwich --esm delivery --with-ama
Dana Lewis
@danamlewis
Jun 15 2016 22:26
:)
Chris Oattes
@cjo20
Jun 15 2016 22:30
argh, yesterday I got lots of cases where it was saying "Set basal to 0.83u", which the pump can't do. Today, after implementing proper ratios that actually follow what the pump does, it hasn't recommended I set anything other than my max basal or 0. So I haven't been able to see the change I made so that it takes out the +/-0.1 variation either
Paul Martin
@Spazholio
Jun 15 2016 22:32
@bewest Ever run into this? error: Installed distribution setuptools 1.1.6 conflicts with requirement setuptools>=17.1
Ben West
@bewest
Jun 15 2016 22:34
hmm yes
Dana Lewis
@danamlewis
Jun 15 2016 22:34
For anyone who is worried about flying: https://twitter.com/danamlewis/status/743209906610704386
Paul Martin
@Spazholio
Jun 15 2016 22:35
This is when setting up openaps. Apparently it’s because my python might be what I get from Xcode. Should I use brew to install python? I’m mildly concerned about having two separate installs...
Chris Oattes
@cjo20
Jun 15 2016 22:37
@danamlewis you should see how many pancreases you can get through security before they say anything
Dana Lewis
@danamlewis
Jun 15 2016 22:38
I think six is my current count, in addition to 4 battery packs and an anker charging port with 5 cords, etc.
jaylagorio
@jaylagorio
Jun 15 2016 22:38
As someone who caries a metric ton of electronics, some of which looks weird, through airport security pretty often - OpenAPS would be one of the least weird things in my bag.
Paul Martin
@Spazholio
Jun 15 2016 22:38
They didn’t have an issue with that many battery packs? I’m almost surprised about that. =)
jaylagorio
@jaylagorio
Jun 15 2016 22:39
I recently took what will become the physical setup through airport security in my carry on twice just last week.
Chris Oattes
@cjo20
Jun 15 2016 22:39
Yeah, 101ml water is too much, but a load of lipos which will happily explode are fine :P
Dana Lewis
@danamlewis
Jun 15 2016 22:42
@jaylagorio yea. They are very used to seeing electronics and it's not a surprise to them
But I know people who haven't traveled yet with their rigs are nervous so trying to provide data points of reassurance
Paul Martin
@Spazholio
Jun 15 2016 22:45
@bewest Ok, I installed openaps locally, but I recall that you said you added something to the dev version of dexcom_reader. So, how do I install the dev version of one particular package that gets pulled in?
ryanchen26
@ryanchen26
Jun 15 2016 22:45
for wait-for-silence where you enter the port path... would that be something like ttyACM0?
jrussell88
@jrussell88
Jun 15 2016 22:46
@bewest Have you seen this unfinished project? A micro insulin pump and android control for GBP 375 - but without a reservoir.
Ben West
@bewest
Jun 15 2016 22:47
@Spazholio that's the branch, you can do git checkout dev
Paul Martin
@Spazholio
Jun 15 2016 22:48
Of openaps?
jrussell88
@jrussell88
Jun 15 2016 22:48
re openPumps
Paul Martin
@Spazholio
Jun 15 2016 22:49
Sorry, I pulled the git repo for openaps, and then ran sudo python setup.py develop which pulled in all the requisite packages. Unless I was supposed to do something different…?
Ben West
@bewest
Jun 15 2016 22:50
which ever project you want dev version of, that refers to the branch
so which ever project you want dev (probably all of them if you want to make edits) you'll want to git checkout -b dev dev or similar
@jrussell88 what's it called?
Paul Martin
@Spazholio
Jun 15 2016 22:52
Right. So if I checkout the dev version of openaps, does it pull in the dev version of everything else? I never installed dexcom_reader - it got pulled in when I installed openaps so I don’t have a source tree for dexcom_reader to switch to the dev version of...
ryanchen26
@ryanchen26
Jun 15 2016 22:53
Nevermind, I got it: port is /dev/ttyACM0 . TI Stick works, sweet. Took so long because I had a bad cc debugger.
Matt Pazoles
@Pazoles
Jun 15 2016 22:53
Hey @cjo20 - thanks for that tip about rounding, much appreciated!
Ben West
@bewest
Jun 15 2016 22:55
it's just for every source tree you want to work on
if you install a source tree and do the develop steps, it generally prefers that
for a dependency like dexcom_reader where you don't have a source tree, you can use pip again, same way
Chris Oattes
@cjo20
Jun 15 2016 22:56
@Pazoles I think this commit actually fixes the issue, but I coded it and haven't looked at it since, so that commit may have bugs in it cjo20/oref0@84c2290
Ben West
@bewest
Jun 15 2016 22:56
I doubt it overwrote the dev version though if you had it installed prior
Paul Martin
@Spazholio
Jun 15 2016 22:58

Well, I switched openaps to dev, and re-ran the setup script, and got:

Using /usr/local/lib/python2.7/site-packages/dexcom_reader-0.1.10-py2.7.egg
Searching for decocare==0.0.29
Best match: decocare 0.0.29
Processing decocare-0.0.29-py2.7.egg
decocare 0.0.29 is already the active version in easy-install.pth
Installing mm-bolus.py script to /usr/local/bin
Installing mm-decode-history-page.py script to /usr/local/bin
Installing mm-latest.py script to /usr/local/bin
Installing mm-press-key.py script to /usr/local/bin
Installing mm-pretty-csv script to /usr/local/bin
Installing mm-send-comm.py script to /usr/local/bin
Installing mm-set-rtc.py script to /usr/local/bin
Installing mm-set-suspend.py script to /usr/local/bin
Installing mm-temp-basals.py script to /usr/local/bin

When I cd into /usr/local/lib/python2.7/site-packages/dexcom_reader-0.1.10-py2.7.egg and run git branch -a I’m only showing master - there’s not even a dev version available. So…am I good?

Sorry, not trying to be pedantic, I just want to make sure I’ve got everything I need properly installed to do some development.
Ben West
@bewest
Jun 15 2016 23:00
the system location isn't a git repo
you can use pip to install dexcom_reader dev
sudo pip install -U git+git://github.com/openaps/dexcom_reader.git@dev
similar for decocare, although decocare is currently up to date
Paul Martin
@Spazholio
Jun 15 2016 23:02
Ok. What does that do to the installed version? And will it get overwritten if I run sudo python setup.py develop in the openaps directory (for some reason) at a later date?
Chris Oattes
@cjo20
Jun 15 2016 23:15
@Pazoles Sorry, that comment isn't correct. 0.05u/hr is a scale of 20. But the way the pump actually works for basal rates is 0.025u/hr increments up to 1u, 0.05u/hr increments from 1u to 10u and 0.1u/hr increments from 10u+
sbromo
@sbromo
Jun 15 2016 23:16
Have we found a workaround for the Medtronic 523/723 pump? I'm on Phase 1, and when I say "$ openaps use <mypumpname> model", I get an error message that says "attempting to use a port that is not open"
I have a 523 with 3.0 B firmware
Dana Lewis
@danamlewis
Jun 15 2016 23:22
@sbromo does your pump have PC connect under the utilities menu?
(And what country
Is your pump from?)
Also make sure you are not pasting the $
Paul Martin
@Spazholio
Jun 15 2016 23:23
@danamlewis If I’m noticing myself going lower than I expect after doing everything “right” and my DIA is set to 3, would it make sense to set it to 4? I think it would, but I wanted to run it past someone else first...
Dana Lewis
@danamlewis
Jun 15 2016 23:24
Is this a multiple instance noticing, or a single time?
Paul Martin
@Spazholio
Jun 15 2016 23:25
Ehhh, it’s in between, really. It’s not ALL the time, but it’s more than once.
Dana Lewis
@danamlewis
Jun 15 2016 23:25
(I ask because I have all kinds of things like hydration, sleep deprivation, and lack of meals that impacts me so weed out any of those first)
Paul Martin
@Spazholio
Jun 15 2016 23:25
And to add to it, I think I have delayed stomach emptying a lot of the time. But that would generally result in the opposite of what I’m seeing here.
Dana Lewis
@danamlewis
Jun 15 2016 23:25
The other thing is if it same timeish every day, might be basal related
Paul Martin
@Spazholio
Jun 15 2016 23:25
Hooray, diabetes!
Dana Lewis
@danamlewis
Jun 15 2016 23:26
Yea :/
Hashtag complicated
Paul Martin
@Spazholio
Jun 15 2016 23:26
Oooh, good call. I’ll take better note of that.
sbromo
@sbromo
Jun 15 2016 23:27
@danamlewis hi! Yes, it says PC Connect. I'm in the US.
(And we've already learned the hard way not to copy the $!) :-)
Dana Lewis
@danamlewis
Jun 15 2016 23:28
Sooooo....not what you're looking for news. That pump is too modern :/ you'll be able to read data from it but not write temp basal commands to it
Paul Martin
@Spazholio
Jun 15 2016 23:30
However, the error you’re seeing attempting to use a port that is not open seems to indicate that your communications device isn’t set up properly. What are you using?
sbromo
@sbromo
Jun 15 2016 23:33
Ah i see. I am pretty sure i have an old 522 somewhere, so i will start over with that one.
Dana Lewis
@danamlewis
Jun 15 2016 23:33
:+1:
Most people get angrier when they hear that. Thanks for not hurting the messenger!
sbromo
@sbromo
Jun 15 2016 23:35
@Spazholio my dad put together the hardware, so all i know is it is the raspberry pi 2 kit. Is that enough information?
Paul Martin
@Spazholio
Jun 15 2016 23:35
Unfortunately, no. We’d need to know what you’re using to attempt to talk to the pump - TI stick, Carelink stick, etc. Once we know that, we’d need to dig into the software setup a bit.
@bewest Does this command look right to you? I’m running it on my primary rig, and getting an error. openaps use tz select raw-ns/ns-glucose-zoned.json raw-cgm/glucose-zoned.json --date “dateString"
sbromo
@sbromo
Jun 15 2016 23:36
Oh! We didnt have the carelink plugged in! Maybe thats the problem!
Paul Martin
@Spazholio
Jun 15 2016 23:37
That’ll certainly affect things. =)
Ben West
@bewest
Jun 15 2016 23:37
yeah, if it's from ns, you might need --astimezone as well
because NS already has a timezone, and you want to adjust it
normally, device data has no timezone and needs to be added
Dana Lewis
@danamlewis
Jun 15 2016 23:37
Heh. @sbromo
sbromo
@sbromo
Jun 15 2016 23:37
@Spazholio good to know for when we try again with the 522!
Ben West
@bewest
Jun 15 2016 23:37
so --astimezone allows shifting the zone appropriately
sbromo
@sbromo
Jun 15 2016 23:38
@danamlewis haha! I said we were new at this!
Paul Martin
@Spazholio
Jun 15 2016 23:38
Negative. Same error. Also, I’m doing it on my zoned files. Error is AttributeError: 'NoneType' object has no attribute ‘read’ and both files do indeed exist.
Dana Lewis
@danamlewis
Jun 15 2016 23:38
@sbromo :)
Ben West
@bewest
Jun 15 2016 23:39
think I'd need to see the command and the error
Paul Martin
@Spazholio
Jun 15 2016 23:39
(pi) [pancreas: ~/openaps] $ openaps use tz select raw-ns/ns-glucose-zoned.json raw-cgm/glucose-zoned.json --astimezone --date "dateString"
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-use", line 57, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/__init__.py", line 298, in main
    if spec.includes(get(elem)):
  File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/__init__.py", line 264, in get
    return parse(item.get(args.date))
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 1164, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 552, in parse
    res, skipped_tokens = self._parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 671, in _parse
    l = _timelex.split(timestr)         # Splits the timestr into tokens
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 188, in split
    return list(cls(s))
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 184, in next
    return self.__next__()  # Python 2.x support
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 177, in __next__
    token = self.get_token()
  File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 93, in get_token
    nextchar = self.instream.read(1)
AttributeError: 'NoneType' object has no attribute 'read'
Ben West
@bewest
Jun 15 2016 23:39
ah, parsing date
do both files have a field called dateString?
it's trying to get the field called dateString and parse the date from that
oh, sorry, selectdoesn't take --astimezone
either way, --date is controlling which field is being parsed as date, and it looks like it's coming up as None and not able to be parsed
Paul Martin
@Spazholio
Jun 15 2016 23:56
They both have a dateString field. =/
If I do it on the raw-ns file by itself, I get that error. If I do it on the raw-cgm file, I get TypeError: can't compare offset-naive and offset-aware datetimes which I’ve seen before. I don’t know what that means, but figured more info couldn’t hurt.
Ben West
@bewest
Jun 15 2016 23:58
that means there are records in the raw-ns file that don't have a dateString
cat raw-ns/ns-glucose-zoned.json | json -a dateString
the cgm file needs to be zoned