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

8th
Jan 2016
Ben West
@bewest
Jan 08 2016 00:00
need some ble adapters
Scott Leibrand
@scottleibrand
Jan 08 2016 00:01
wonder if you could use openxshareble while using the same BT radio for tethering to an iPhone
Ben West
@bewest
Jan 08 2016 00:02
it's a little slow
Jason Calabrese
@jasoncalabrese
Jan 08 2016 00:04
I need to order some little hubs, any recommendations?
Pete Schwamb
@ps2
Jan 08 2016 00:04
Yeah, that’s definitely a downside of BLE. Tough to get good throughput.
Ben West
@bewest
Jan 08 2016 00:04
I like my octopus thing with the hub on the end of a long cable
but I'm looking for some pre-made for now
Ben West
@bewest
Jan 08 2016 00:16
@channemann is there issue with dexcom_reader?
Ben West
@bewest
Jan 08 2016 00:36
yeah, I like being able to stretch out my cable and hang it off my lamp at night
I think it's a 3 foot cable
served me long time now, 5 years I think
Ben West
@bewest
Jan 08 2016 00:57
ok, testing first full loop with ble
Scott Leibrand
@scottleibrand
Jan 08 2016 00:58
:+1:
Ben West
@bewest
Jan 08 2016 01:08
cords are cut
:-)
nifty
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:08
awesome
Ben West
@bewest
Jan 08 2016 01:08
now to make it upload mqtt to protobuf
Scott Leibrand
@scottleibrand
Jan 08 2016 01:08
I would love to see the current setup documented before you add stuff
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:09
every time I order stuff I realize there's more to order, need some ble dongles
Scott Leibrand
@scottleibrand
Jan 08 2016 01:10
I think next week might be a focus-on-BLE week for me. :)
Ben West
@bewest
Jan 08 2016 01:10
the setup I'm using as-is requires two receivers
Scott Leibrand
@scottleibrand
Jan 08 2016 01:10
already have two BLE adapters
Ben West
@bewest
Jan 08 2016 01:10
still working on getting it to something reasonable worth sharing
Scott Leibrand
@scottleibrand
Jan 08 2016 01:10
what are the two receivers doing?
Ben West
@bewest
Jan 08 2016 01:11
one is cabled into ns-uploader rig
Scott Leibrand
@scottleibrand
Jan 08 2016 01:11
we have two Share receivers, but will want to keep one paired with Share app
Ben West
@bewest
Jan 08 2016 01:11
I changed one openaps instance to get glucose from ble instead of NS
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:11
could post to share from the pi like xdrip does
Ben West
@bewest
Jan 08 2016 01:11
it uploads treatments to NS when it can
so if I turn of NS uploader, then I get no glucose in NS all of a sudden
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:12
using the pi as the full uploader would be nice
phone just for data
Scott Leibrand
@scottleibrand
Jan 08 2016 01:12
I would probably want a Pi getting glucose from ble if available, and if not fail back to NS. I'm already doing that fallback based on whether CGM is plugged in.
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:13
yeah a 3 way fall back
cable, ble, and ns
Scott Leibrand
@scottleibrand
Jan 08 2016 01:13
actually I have three-way already: first checks local CGM, then checks an rsync'd file, then checks NS
Ben West
@bewest
Jan 08 2016 01:13
yeah, need gossip/election for that
Scott Leibrand
@scottleibrand
Jan 08 2016 01:14
the rsync thing was a hack to allow looping to continue on both Pi's when restarting the Share receiver that powers NS
Ben West
@bewest
Jan 08 2016 01:14
also assumes all modes have ability for both sides
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:14
think you can just do it in order
Scott Leibrand
@scottleibrand
Jan 08 2016 01:14
I'm not sure we need elections
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:14
yeah
seems easier than that
Ben West
@bewest
Jan 08 2016 01:14
"find the pump"
"find the dexcom"
want to handle both independently, right?
Scott Leibrand
@scottleibrand
Jan 08 2016 01:15
why not just have each Pi independently try to talk to Dex and pump?
if they step on each other, a 2 minute penalty-box on preflight fail works nicely
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:16
if I can make the pi0 a full uploader, sending openaps to school should be soon
Ben West
@bewest
Jan 08 2016 01:16
somewhere, you need to agree where the aggregation happens, where the logic happens, and how/where to store the results
Scott Leibrand
@scottleibrand
Jan 08 2016 01:16
you could either try to talk to Dex with BLE and then fall back to something connectivity based, or check the connected BG is up to date and if not try BLE
Ben West
@bewest
Jan 08 2016 01:16
yeah, easy for now is make openaps full uploader
it's needed anyway :-)
Scott Leibrand
@scottleibrand
Jan 08 2016 01:16
agreed on that
how does the Share handle multiple Pi's trying to talk over BLE?
ignores the second one if one is already paired?
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:17
will only pair with one
Scott Leibrand
@scottleibrand
Jan 08 2016 01:17
first one or last one to try?
or do you have to forget the paired one on the Share receiver?
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:18
yeah
Scott Leibrand
@scottleibrand
Jan 08 2016 01:18
k
so only that Pi is configured to get BG via BLE
all others check for plugged-in Dex, then check NS
Scott Leibrand
@scottleibrand
Jan 08 2016 01:19
in between I would do my rsync thing probably
openaps vendor add openxhareble
openaps device add share openxshareble
openaps use share configure SM...
openaps use share iter_glucose_hours 4
Scott Leibrand
@scottleibrand
Jan 08 2016 01:20
what is SM... ?
Ben West
@bewest
Jan 08 2016 01:21
works same way as everything else
it's your serial number
Scott Leibrand
@scottleibrand
Jan 08 2016 01:21
k
why the dx-formatter?
Ben West
@bewest
Jan 08 2016 01:21
I run it through tz tool and json tool to reformat to oref0
Scott Leibrand
@scottleibrand
Jan 08 2016 01:21
where do you use that?
Scott Leibrand
@scottleibrand
Jan 08 2016 01:22
ah, so openxshareble output format is different from dexcom-reader format then?
Ben West
@bewest
Jan 08 2016 01:22
used here get-share-glucose = report invoke monitor/share-glucose.json monitor/share-glucose-zoned.json monitor/glucose.json
no, it's exactly the same
but everything needs to be zoned correctly
my NS records are already zoned
Scott Leibrand
@scottleibrand
Jan 08 2016 01:23
ok, so just this.dateString = this.display_time to make it NS-happy?
Ben West
@bewest
Jan 08 2016 01:23
[report "monitor/glucose.json"]
device = dx-format-oref0-glucose
use = shell
reporter = text
json_default = True
input = monitor/share-glucose-zoned.json
remainder = []
it's also a quick stub at what NS will need as well
just needs type and sgv
Jason Calabrese
@jasoncalabrese
Jan 08 2016 01:24
and filtered/unfiltered and cals and mbg and and
but seems like it's just needs to be setup
Ben West
@bewest
Jan 08 2016 01:25
I found it was easy to openaps device add my-new-tool-stub process "bash" "-c" "echo \$1 \$2" "--" and then modify it from there
that allows you to transition from one-liner in bash, to storing it, somewhere to see if it'll work with other scripts, then to moving it into a tool suite somewhere
openaps use my-new-tool shell hello world would print hello world
nifty tool might make that whole process itself a oneliner
a nice command/tool
nifty thing is while openaps is downloading the data, the bluetooth icon shows on the receiver
the icon disappears most of the time
Tim Howard
@tghoward
Jan 08 2016 01:30
@bewest quick question: how might I go figuring out next step to solving the decocare problem noted here:
openaps/openaps#70
feel like I'm running on borrowed time on that one
Ben West
@bewest
Jan 08 2016 01:31
ah
can you do mm-send-comm.py tweak ReadHistoryData --page 0 --save?
replace --page 0 with other pages if you like
it'll save a ReadHistoryData-page-0.data file
I'd like that, or output of xxd on the file, or paste the output of the mm-send-comm.py tool anywhere in github
Tim Howard
@tghoward
Jan 08 2016 01:33
well ... error is long gone from pumps memory. So, next time it rears its head, you are saying?
Ben West
@bewest
Jan 08 2016 01:33
how long gone?
less than 3 months?
try --page 28
or --page 5
I think most people only look at first 2 pages with openaps
Tim Howard
@tghoward
Jan 08 2016 01:34
Ben West
@bewest
Jan 08 2016 01:35
that's mm-latest.py
mm-latest.py is a precursor to openaps
to save pages of data, use mm-send-comm.py tweak ReadHistoryData --page 5 --save
the tweak command means you can change the parameters... in this case you are changing the parameter that controls which page is selected using the --page 5 switch
the --save command saves the raw data from the pump
it's the only tool that does these things :-)
mm-latest only looks at recent data by default
Tim Howard
@tghoward
Jan 08 2016 01:38
that dump from mm-latest does have the error (ran it the day it was happening)
Ben West
@bewest
Jan 08 2016 01:38
hmm, might be able to increase the duration argument to get more data, several weeks worth
oh
Tim Howard
@tghoward
Jan 08 2016 01:40
Pump isn't here right now, but when it returns I can try to get more data ..
Note I also got the minimed carelink export as a csv and posted that too, per Nate's instructions
Ben West
@bewest
Jan 08 2016 03:32
I did see that
diabeticgonewild
@diabeticgonewild
Jan 08 2016 09:04
damnit I keep getting an error because one of the JSON files won't create a file
It's with this command
openaps report add settings/profile.json text get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
There's something wrong with Openaps because I verified that it was correct (the command)
and I have a directory called settings
I get this which is a hint something is wrong added get-profile://text/shell/settings/profile.json
The //text/shell is wrong
and a file isn't made
diabeticgonewild
@diabeticgonewild
Jan 08 2016 09:15
The file isn't made, which causes the error
diabeticgonewild
@diabeticgonewild
Jan 08 2016 09:20
@cjo20 had the same error, due to something not installing properly on openaps, but I used the install from source and it didn't produce error messages
Daniel Bjørnbakk
@danibjor
Jan 08 2016 09:23
Would it be possible to use a Contour NextLink as the gateway between the pump and the RPI? Cannot find the USB stick, but we have a couple gluco meters and I could spare one for communication
Oskar Pearson
@oskarpearson
Jan 08 2016 11:04
Welcome, @danibjor By USB stick you mean the carelink stick, right? Currently the Contour devices aren't working yet - though there's been some progress on them.
Chris Oattes
@cjo20
Jan 08 2016 11:05
I think the contour devices transmit data to the PC in a different format to the carelink, if I'm remembering correctly
Oskar Pearson
@oskarpearson
Jan 08 2016 11:05
There are alternatives being worked on, but they currently require quite technical skills - writing firmware and so forth to hardware devices. https://github.com/oskarpearson/mmeowlink and https://github.com/oskarpearson/mmeowlink/wiki/photos-and-descriptions has info
Daniel Bjørnbakk
@danibjor
Jan 08 2016 11:08
Yes, I was talking about the CareLink USB stick
Some guy ment the Contour NextLink had two way communication with the pump, but if it's not tested yet - some research have to be done
(if I where to go that route)
Scott Leibrand
@scottleibrand
Jan 08 2016 15:34
@diabeticgonewild what happens when you try to invoke that report? What about when you run oref0-get-profile manually?
Dana Lewis
@danamlewis
Jan 08 2016 15:35
@cjo20 @oskarpearson @danibjor I’m also not sure Contour meters can do temp basal rates. That would be the biggest differentiator for compatibility with a closed loop.
Matthias Granberry
@mgranberry
Jan 08 2016 17:55
which stick works best to communicate w/ MDT pumps now? Ability to work with Android is a plus.
Jason Calabrese
@jasoncalabrese
Jan 08 2016 18:02
think carelink stops working with Lolipop due to kernel not supporting legacy usb devices
Matthias Granberry
@mgranberry
Jan 08 2016 18:03
@TC2013 you have some familiarity with this. Any recommendation on carelink/alternatives?
I thought that was a kernel bug, and probably fixed for marshmallow
Jason Calabrese
@jasoncalabrese
Jan 08 2016 18:03
maybe, I think the CC1111 works but don't know for sure
better range too
Matthias Granberry
@mgranberry
Jan 08 2016 18:07
it looks like the CC1111 dongle operates as a CDC ACM device, which is a good sign
it takes custom firmware?
mmcommander, right?
Mark Wilson
@mddub
Jan 08 2016 18:14
anyone ever seen iter_pump_hours returning dates with the wrong year (2000)?
pi@markpi:~/markps $ openaps use pump read_clock
"2016-01-08T10:09:39"
pi@markpi:~/markps $ openaps use pump iter_pump_hours 1 | head
[
  {
    "_type": "TempBasalDuration",
    "duration (min)": 0,
    "_description": "TempBasalDuration 2000-01-08T10:08:29 head[2], body[0] op[0x16]",
    "timestamp": "2000-01-08T10:08:29",
    "_body": "",
    "_head": "1600",
    "_date": "1d480a4810"
  },
everything about my loop is still running fine, but with these timestamps my temps stopped showing in nightscout
Rachel Sandlain
@audiefile
Jan 08 2016 18:18
There was a y2k16 bug. sudo easy_install -ZU openaps should resolve it
Dana Lewis
@danamlewis
Jan 08 2016 18:20
Are you live looping? @mddub
Your IOB will be miscalculated as a result of the time error
Mark Wilson
@mddub
Jan 08 2016 18:20
@danamlewis yeah, just finished my second night
Dana Lewis
@danamlewis
Jan 08 2016 18:20
Awesome :)
Jason Calabrese
@jasoncalabrese
Jan 08 2016 18:20
congrats @mddub
Mark Wilson
@mddub
Jan 08 2016 18:21
my first night was at the end of 2015, and then my ACT button stopped responding
i think it was from the humidity of honduras/florida (and being my very old pump)
i took it out of the damprid yesterday*, didn't check the date, suggestions were fine all day
figured out why temps weren't in ns this morning, fixed date, now iobs are indeed wrong
Jason Calabrese
@jasoncalabrese
Jan 08 2016 18:22
@mgranberry yes, cc1111 works with write enabled version of mmcommander, I haven't used it yet, but have a cc1111 on order
Mark Wilson
@mddub
Jan 08 2016 18:23
thanks @audiefile, that fixed it :D
(@danamlewis i guess by "running fine" i meant "not crashing", but iob being stuck at 0 wasn't fine)
Rachel Sandlain
@audiefile
Jan 08 2016 18:46
Glad it was such an easy fix @mddub
John Males
@johnmales
Jan 08 2016 18:49
Hi all, I’m trying to work on meal assist. I note the oref0 meal command, usage: [ 'node', '/usr/local/bin/oref0-meal' ] <pumphistory.json> <profile.json> <clock.json> [carbhistory.json] - how do I generate the carbhistory.json report required for this?
Mark Wilson
@mddub
Jan 08 2016 18:49
IMG_2491.JPG
watchface teaser
Jason Calabrese
@jasoncalabrese
Jan 08 2016 18:50
custom endpoint?
Mark Wilson
@mddub
Jan 08 2016 18:52
yep
using a very very dumb script to make a compact summary for now
scp it to my web server at the end of the loop
Scott Leibrand
@scottleibrand
Jan 08 2016 18:53
@mddub we have found that a loop with IOB amnesia is still way better than no loop at all, but it results in more oscillating less-flat BGs (though usually still in range)
@johnmales:
openaps alias add ns-meal-carbs '! bash -c "egrep -q carbs.:0, monitor/meal.json && curl -s \"$NIGHTSCOUT_HOST/api/v1/treatments.json?find\[created_at\]\[\$gte\]=`date -d \"3 hours ago\" -Iminutes`&find\[carbs\]\[\$exists\]=true\" > monitor/carbhistory.json && oref0-meal monitor/pumphistory-zoned.json settings/profile.json monitor/clock-zoned.json monitor/carbhistory.json > monitor/meal.json; return 0"'
Mark Wilson
@mddub
Jan 08 2016 18:54
@scottleibrand it was an interesting thought experiment/troubleshooting experience this morning
didn't see any temps in ns, but pretty flat bg all night
first thought maybe i just had a good night (happens maybe half the time)
tig enact/enacted.json, nope, it did stuff
see all these 2015-12-30 dates in pumphistory from last time the pump was on, assume setting right date will fix it, have breakfast/bolus
John Males
@johnmales
Jan 08 2016 18:56
thanks @scottleibrand :)
Mark Wilson
@mddub
Jan 08 2016 18:57
see it high-temping with iob of 0 at breakfast
start to worry the wrong date was giving iob 0 all night but it somehow reacted to sgv oscillations correctly anyway
lots of red herrings, glad i got it sorted out
at one point it did occur to us (me + irene, my girlfriend) that sgv would be a much stronger signal than the small amounts of iob it was missing
Mark Wilson
@mddub
Jan 08 2016 19:03
it was also confusing because openaps crashes loudly when the dexcom is set to the wrong timezone
Scott Leibrand
@scottleibrand
Jan 08 2016 19:03
Yep. We've had IOB calculations return zero before, so we have at least a week of data showing SGV is sufficient to get decent results overnight. Wouldn't trust it with meals though.
Dana Lewis
@danamlewis
Jan 08 2016 19:03
Glad you got it sorted, too. I think I'm going to email out to openaps-dev in case anyone else was in progress but didn't see Gitter yet
Scott Leibrand
@scottleibrand
Jan 08 2016 19:04
Good idea.
@mddub much more dangerous to operate on incorrect BG than incorrect IOB
When IOB is way off, the avgdelta vs. expected delta comparison (based on incorrect insulin activity) means it refuses to do bad things because the inputs don't agree.
Mark Wilson
@mddub
Jan 08 2016 19:12
yeah, as i step through these layers of safeguards, i gain a lot more appreciation for the whole system
Scott Leibrand
@scottleibrand
Jan 08 2016 19:13
:-)
Mark Wilson
@mddub
Jan 08 2016 19:13
it's one thing to understand their logic and see them during normal operation, another to see how they work for edge cases
i almost feel like there should be a docs page of drills
"okay, set your pump time to be completely wrong. watch your suggestions for the next 4 hours. what happened? why?"
like those never-gonna-need-them-but-glad-when-you-do skills you learn for scuba certification
Dana Lewis
@danamlewis
Jan 08 2016 19:15
:) PR something like that into the docs. The suggested cases for "make sure you check x y z" are a couple of sentences, would love for someone to flesh out more
Yup
Mark Wilson
@mddub
Jan 08 2016 19:16
(speaking of which, G4 transmitters** are good to at least 70 feet of saltwater)
Dana Lewis
@danamlewis
Jan 08 2016 19:16
In what type of container? And transmitter won't transmit under water will it?
Ah. Yea :)
Mark Wilson
@mddub
Jan 08 2016 19:17
sorry, typo; meant transmitter
yeah, waves move differently through air and water
i couldn't even get signal to a receiver next to my pool while i was home
but diving, the receiver always picked the G4 signal back up as soon as i got back on the boat
Dana Lewis
@danamlewis
Jan 08 2016 19:19
Because of water under transmitter , I found it read but high and wonky for an hour after I got out of water
Did you see that at all?
Saw it both scuba and surface snorkeling
Mark Wilson
@mddub
Jan 08 2016 19:20
i don't think so. it did read high because i was high for some of the dives (protip: don't trust any diabetes scuba protocol from any doctor, diver, or even other t1d)
but i wrapped it a few times around in vetrap to keep it mostly sealed off
plus it was under a 3mm wetsuit
Dana Lewis
@danamlewis
Jan 08 2016 19:25
Yea, yours probably stayed dryer than mine did, just did 2 wetsuits
Mark Wilson
@mddub
Jan 08 2016 19:28
numbers were definitely wonky but i don't know how much to attribute to saltwater and how much to scuba/watersports being generally unfriendly to people on pumps and cgms
Dana Lewis
@danamlewis
Jan 08 2016 19:33
I think it's any water in general under the contacts of the transmitter.
Mark Wilson
@mddub
Jan 08 2016 19:36
i've had that happen a handful of times after showering, but only when the transmitter "feet" weren't completely secure in the plastic
have you seen the same thing?
Dana Lewis
@danamlewis
Jan 08 2016 19:44
I've never had a transmitter not sit completely, and don't see it for showers - usually from submersion for long time in hot tub, pool, ocean
Matthias Granberry
@mgranberry
Jan 08 2016 19:44
@danamlewis I see high BGs after showers sometimes, and water is almost always present under the transmitter. It may have something to do with removing the flow limiters in the shower head.
I pop off the transmitter and put a finger over the sensor and blast it with an air compressor and it starts reporting correctly again
if you're not careful the little black conductive rubber pads will get blasted away, though
Mark Wilson
@mddub
Jan 08 2016 19:47
@mgranberry you don't mess around
i just used alcohol and air-drying for a few minutes
Dana Lewis
@danamlewis
Jan 08 2016 19:49
I just wipe it On a towel, haha
(The transmitter)
Mark Wilson
@mddub
Jan 08 2016 19:50
okay, after manually transposing bad dates from the pump, here's my second night of looping
night-2.png
Scott Leibrand
@scottleibrand
Jan 08 2016 19:52
Interesting. Which branch of oref0? Master or dev?
Mark Wilson
@mddub
Jan 08 2016 19:52
master
i'll wait until i have my wings before i go to the bleeding edge
Scott Leibrand
@scottleibrand
Jan 08 2016 19:52
Good plan.
Mark Wilson
@mddub
Jan 08 2016 19:52
why, what do you notice?
Matthias Granberry
@mgranberry
Jan 08 2016 19:52
@mddub brute force works :) I figure if I muck something up Dexcom will replace it for me.
Scott Leibrand
@scottleibrand
Jan 08 2016 19:53
All high-temps, fewer and longer-lasting than we see now with dev
Paul Andrel
@stavlor
Jan 08 2016 19:54
heh whats this thing you call master live life on the edge: :)
Scott Leibrand
@scottleibrand
Jan 08 2016 19:54
;-)
Dana Lewis
@danamlewis
Jan 08 2016 19:54
:p
Peter Miller
@ochenmiller
Jan 08 2016 20:36
@mddub, congrats!
Tony Zarro
@tzarro
Jan 08 2016 21:07
getting a weird error today...loop kept coming back with "No CGM Data", so I tracked it back through aliases to the very beginning...not even the basic "openaps use cgm iter_glucose 1" command is working, but the error message references the pump which has thrown me for a loop...any ideas?
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.0.9', 'openaps-use')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 745, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1670, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/EGG-INFO/scripts/openaps-use";, line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/cli/init.py", line 40, in call
self.configure_parser(self.parser)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/EGG-INFO/scripts/openaps-use";, line 31, in configure_parser
available = devices.get_device_map(self.config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/devices/init.py", line 21, in get_device_map
for device in Device.FromConfig(vendors, conf):
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/devices/device.py";, line 64, in FromConfig
device.read(config=config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/devices/device.py";, line 33, in read
self.extra.fields.update(dict(extra.items(self.section_name( ))))
File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: u'device "pump"'
Scott Leibrand
@scottleibrand
Jan 08 2016 21:11
you have an error in your openaps.ini
it might have been truncated or something
Tony Zarro
@tzarro
Jan 08 2016 21:12
ah, ok
Jason Calabrese
@jasoncalabrese
Jan 08 2016 21:12
missing pump.ini ?
Scott Leibrand
@scottleibrand
Jan 08 2016 21:13
or that
Tony Zarro
@tzarro
Jan 08 2016 21:13
weird, its there but there is no data in it now
wonder how that could happen...
Scott Leibrand
@scottleibrand
Jan 08 2016 21:13
power interrupted while it was updating it
back before oref0 I used to have this:
loop.sh:# sometimes openaps.ini gets truncated
loop.sh:openaps report show > /dev/null || cp openaps.ini.bak openaps.ini
but haven't had an issue recently
I think ben fixed openaps to write updates atomically
so not sure how yours got truncated
that was also before pump.ini was a thing
Tony Zarro
@tzarro
Jan 08 2016 21:15
ah, gotcvha
gotcha, even
Ben West
@bewest
Jan 08 2016 21:16
openaps/dexcom_reader#2 solves the problems with sensor records
openaps/openaps#77 adds sensor record capability to openaps
eyim
@eyim
Jan 08 2016 21:18
Raw data - ahh nice!
Scott Leibrand
@scottleibrand
Jan 08 2016 21:18
:+1:
Tony Zarro
@tzarro
Jan 08 2016 21:20
so my openaps.ini file was fine, the only problem was the empty pump.ini file.
Pete Schwamb
@ps2
Jan 08 2016 21:21
I’m not quite sure what net opinion I should have when considering these two facts: #1) openaps doses insulin by reading files off of a frequently corrupted filesystem. #2) it seems to handle those issues fine?
Tony Zarro
@tzarro
Jan 08 2016 21:22
that leads to this question: sometimes I must unplug my battery pack while the Pi2 is headless, so I have no good way to shut it down to avoid write issues...any ideas on how to minimize this?
Ben West
@bewest
Jan 08 2016 21:22
is it running ssh?
I often put it on my phone's hotspot and ssh to it
in future, I'm looking at adding a bidirectional communication system
so we can start telling it what to do, a bit
still leaning towards mqtt, largely because it will continue to be the most independent/flexible
@ps2 hehe, it's mostly fine, partly because git is doing a lot of the sanitizing/boilerplate/tracking stuff
Paul Andrel
@stavlor
Jan 08 2016 21:33
21:30:23 up 1397 days, 03:15:26, load average: 0.04, 0.03, 0.03 dare i reboot it !?!?
Tony Zarro
@tzarro
Jan 08 2016 21:36
yes, running ssh
I've actually connected to it over my phone before, haven't thought of that for handling shutodwns
shutdowns/reboots
Dana Lewis
@danamlewis
Jan 08 2016 21:37
@tzarro At one point @cjo20 Gave a lot of good suggestions,
The easy one is ssh and do that way
Scott Leibrand
@scottleibrand
Jan 08 2016 21:37
Or get a Tecknet battery so you can switch wall power to it without turning the Pi off.
Jason Calabrese
@jasoncalabrese
Jan 08 2016 21:38
@bewest to use raw we'll need to merge the sensor and egv records?
Dana Lewis
@danamlewis
Jan 08 2016 21:38
I tend to not bother, but I always carry a backup sd card that's ready to go in case my shut down by power run down corrupts it while on the go.
This tends to happen more w all day travel, less of a big deal for normal go to work type schedule.
Tony Zarro
@tzarro
Jan 08 2016 21:39
all good ideas...
thanks!
Jason Calabrese
@jasoncalabrese
Jan 08 2016 21:40
and we'll need to get the cals too
Chris Oattes
@cjo20
Jan 08 2016 21:49
tzarro: you can put a webserver on the pi that has a "reboot" or "shutdown" button, which uses exec to call a shell script to perform the appropriate action. Probably a security hole you can drive a bus through though. Does mean that you can just bring up a webbrowser on your phone and reboot it
Toby Canning
@TC2013
Jan 08 2016 21:53
So, I hooked up a RileyLink (the cc1110 part of it) to an intel edison using Oskar's repo, mmeowlink. I've been running a loop for the last few hours on our test pump which is located 20 feet away and through a solid wall. Yay!
Dana Lewis
@danamlewis
Jan 08 2016 21:53
Niiiiice!
Rachel Sandlain
@audiefile
Jan 08 2016 21:55
Sweet!
Toby Canning
@TC2013
Jan 08 2016 21:55
@jasoncalabrese @mgranberry The carelink works with our Android 5.02 Moto G
Scott Leibrand
@scottleibrand
Jan 08 2016 21:59
@TC2013 sweet! what is the connection between the edison and RL cc1110?
Toby Canning
@TC2013
Jan 08 2016 21:59
UART
So, we can do this on the Pi fast, but I wanted it on the edison because a 2000mah battery can run this for 20 hours (Oskar's testing)
Ben West
@bewest
Jan 08 2016 22:01
great, so you're using rileylink firmware?
Toby Canning
@TC2013
Jan 08 2016 22:01
Yes, the subg_rfspy dev branch
Pete has a "no ble" firmware that must be loaded on the ble
There are no accurate directions yet, but I'll write something up soon
Scott Leibrand
@scottleibrand
Jan 08 2016 22:04
:+1:
Dana Lewis
@danamlewis
Jan 08 2016 22:04
Thx @TC2013
Toby Canning
@TC2013
Jan 08 2016 22:04
Do you have your RileyLink fixed?
RLs
Dana Lewis
@danamlewis
Jan 08 2016 22:05
Fixed. Not used yet. Left them at home and finally heading back after 6 weeks away :)
Toby Canning
@TC2013
Jan 08 2016 22:05
Wow!
When do you get home?
Dana Lewis
@danamlewis
Jan 08 2016 22:05
Late tonight PT
Toby Canning
@TC2013
Jan 08 2016 22:06
Safe travels then
Dana Lewis
@danamlewis
Jan 08 2016 22:06
Thx! Thankful for offline openAPS with as much traveling as I'm doing :)
Ben West
@bewest
Jan 08 2016 22:06
ah, I see the new repo now
Toby Canning
@TC2013
Jan 08 2016 22:08
I'm running the RL off its power supply, but @ps2 is going to look at the schematics for how we should hook up 3.3v power from the Pi/Edison. Once I get that, I'll upload directions
Jason Calabrese
@jasoncalabrese
Jan 08 2016 22:13
the range from the RL would better than a normal cc1111 right? since it has a better antenna
Ali Mazaheri
@amazaheri
Jan 08 2016 22:21
Nice!
Pete Schwamb
@ps2
Jan 08 2016 22:54
@TC2013 I think hooking +3.3v up to the "Target Voltage Sense” pin and gnd on the cc-debug header is the best option, especially since you already have a connector hooked up there.
Jason Calabrese
@jasoncalabrese
Jan 08 2016 23:52
pi zero worked first try
2016-01-08 15.49.10-1.jpg
using sd card from a pi B
dougtakeuti
@dougtakeuti
Jan 08 2016 23:52
@scottleibrand, do you remember the formatting issue related to Medtronic cgm? It had been solved by @loudnate. @oskarpearson just pointed me to https://github.com/loudnate/openaps-glucosetools and https://github.com/loudnate/openaps-mmhistorytools. It would be good to document those.
Scott Leibrand
@scottleibrand
Jan 08 2016 23:53
Yes, please. :-)
If you can fork the docs and add something about it, we can merge it right in.
Just submit a pull request from your repo to the dev branch.
dougtakeuti
@dougtakeuti
Jan 08 2016 23:57
Ok, I'll do it once I test everything.