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

21st
Oct 2016
Tim Howard
@tghoward
Oct 21 2016 00:02

arrrgh, stuck with this again (wasted too much time yesterday on it as well)

mmeowlink.vendors.serial_interface.AlreadyInUseException: /dev/ttyMFD2 already in use

agetty is stealing my serial port

lsof /dev/ttyMFD2
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
agetty  408 root    0u   CHR  4,130      0t0 1168 /dev/ttyMFD2
agetty  408 root    1u   CHR  4,130      0t0 1168 /dev/ttyMFD2
agetty  408 root    2u   CHR  4,130      0t0 1168 /dev/ttyMFD2
Tim Howard
@tghoward
Oct 21 2016 00:07
sigh. I think it is time for really starting fresh with a full jubilinux re-install.
Paul Martin
@Spazholio
Oct 21 2016 00:15
@danamlewis Did you do that texting-to-control-openaps thing using IFTTT? If so, is there documentation on it, or is it a work-in-progress, proof-of-concept thing at this stage?
Dana Lewis
@danamlewis
Oct 21 2016 00:16
@logichammer started docs on IFTTT integration :) https://github.com/openaps/docs/blob/master/docs/docs/walkthrough/phase-4/ifttt-integration.md that’s mostly pebble + alexa, but will be easy for you to do Siri/DO Button stuff for phone once you get the basics set up
Tim Howard
@tghoward
Oct 21 2016 00:17
@scottleibrand sorry I can't parse out exactly the goal of that line (line 203 in oref0-setup) to be able to trap the null at this time. I'll keep it on my list though. :worried:
fiberfan
@fiberfan
Oct 21 2016 00:30
@emsamom With the setup script, setup was very easy for me (looping for a week now). When things don't work as expected, great support is available here.
emsamom
@emsamom
Oct 21 2016 00:40
Thanks @fiberfan - I've finished the raspberry pi setup and am starting to look at nightscout. Not bad for my first evening!
Dana Lewis
@danamlewis
Oct 21 2016 00:41
:+1:
@emsamom we just changed phase 0 docs around a bit, so would love feedback if there was anything confusing about moving through that section
fiberfan
@fiberfan
Oct 21 2016 00:45
Nightscout is easy to deploy to Azure or Heroku after you create a fork. Scroll down until you see the Nightscout icon and text. Just below that are the deploy to buttons. I don't remember seeing them in the Nightscout.info setup guide. When I switched from Azure to Heroku I used the Heroku one and found it very slick.
Should be scroll down on the github page until you see :sigh:
emsamom
@emsamom
Oct 21 2016 00:48
@danamlewis there were a couple things I took notes on - I'll do a PR!
Dana Lewis
@danamlewis
Oct 21 2016 00:51
Awesome!
emsamom
@emsamom
Oct 21 2016 01:03
Bit confused on Nightscout usage with DexcomG5 - is the Nightscout bridge sufficient to drive the loop even though it doesn't include raw data or noise?
Dana Lewis
@danamlewis
Oct 21 2016 01:06
Yes
Will require wifi or hotspot though
emsamom
@emsamom
Oct 21 2016 01:06
thanks!
Darrell Wright
@beached
Oct 21 2016 01:28
glad I got my pump order in. 630g just released in canada
hope I can still get a 754
garykidd
@garykidd
Oct 21 2016 01:31
don't really care all that much but never got any notice of refund for shipping on explorer board. I'm taking it there's no tel support to call?
Dana Lewis
@danamlewis
Oct 21 2016 01:32
Morgan is traveling internationally right now, so there’s a few shipping refunds in process. When he gets back in two weeks can check on status of those if they’re still not processed.
garykidd
@garykidd
Oct 21 2016 01:33
I'd be happy to trade it for quicker delivery...looking forward to it.
Darrell Wright
@beached
Oct 21 2016 01:42
How far along is the Omnipod work coming?
Need to think about a plan b
David Young
@wgs4
Oct 21 2016 01:44

@danamlewis This paragraph in the updated documents is awesome. It REALLY helps me understand things.

italics As you go through the steps to run the loop, the longer-term data is collected in the “settings” directory, with file names indicating what sort of data they contain. The data representing what is going on right now is in the “monitor” directory, and the recommendation for what should change goes in the “enact” directory. To close the loop, you will have added a “cron” script, which just directs the computer to do something at a certain time interval.

garykidd
@garykidd
Oct 21 2016 01:45
silly question...are the 723s all newer than 722s?
Darrell Wright
@beached
Oct 21 2016 01:48
@garykidd I don't know but not silly, they are just labels for the modes, not really in an order it seems
Dana Lewis
@danamlewis
Oct 21 2016 01:48
@beached omni is not anywhere near reality
Darrell Wright
@beached
Oct 21 2016 01:48
@danamlewis here's hoping they'll still sell me a 754
Dana Lewis
@danamlewis
Oct 21 2016 01:49
@wgs4 cool. that’s actually an old paragraph ;) that was buried, but I kept it because I was worried people wouldn’t understand what the setup scripts were doing!
garykidd
@garykidd
Oct 21 2016 01:49
@beached I'm assuming that the 754 is still loopable then?
Darrell Wright
@beached
Oct 21 2016 01:49
@garykidd yeah. the 754 in canada is what I use now and has been great
@garykidd see what I mean about ordering of models. the 630g is newer than the 754CML
garykidd
@garykidd
Oct 21 2016 01:51
I just got a 723 today...so will have to try it....my 715 and 712 didnt work very well with mmtune..was able to come up with a solution...but it kinda defeated the purpose of mmtune...so we'll see
roger that
I'm wondering how often other may...or may nothave to poke their rigs with a reboot to ge tthem rollling again?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 01:53
is the clockset script setup by oref0-setup? or in some other docs?
Dana Lewis
@danamlewis
Oct 21 2016 01:53
@garykidd what kind of rig are you talking about poking? and how often are you rebooting? (and what kind of reboot?)
garykidd
@garykidd
Oct 21 2016 01:56
maybe like once a day I run into an issue where rig becomes unreposnive...maybe its associated with xfer from BT connected hotspot to home wifi not always predictable...like a couple times I lost wifi connection over night...and it never started up again...that part is still frustrating for me. Using an RPi3 right now....have a couple of edisons...but havent been able to ge tthem off the ground on account of issues with 'editors' via screen through imac......
so who has an alexa?
David Young
@wgs4
Oct 21 2016 01:57
@danamlewis As I continue to read the hardware section, wow this is sooo much better.
Dana Lewis
@danamlewis
Oct 21 2016 01:57
I’ve got an alexa - really nice for entering carbs :D while hands full prepping food in the kitchen + setting modes
@wgs4 hooray! :) :) This re-org has been on my list for a long time, glad it’s useful already
David Young
@wgs4
Oct 21 2016 01:57
@danamlewis ok now your just showing off lol
with the alexa
Dana Lewis
@danamlewis
Oct 21 2016 01:58
About the Alexa? Well, technically it’s Scott’s Alexa, but I’m the primary user ;)
garykidd
@garykidd
Oct 21 2016 01:58
nahhh...it's half yours technically...
Dana Lewis
@danamlewis
Oct 21 2016 01:58
heh ;)
garykidd
@garykidd
Oct 21 2016 01:59
hmmm...alexa, order me an Alexa please...
Darrell Wright
@beached
Oct 21 2016 02:00
The product placement for alexa in Mr. Robot wasn''t that bad. Actually added to the character development
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:02
is oref0-set-system-clock.sh normaly run from a cron, or some other method
Dana Lewis
@danamlewis
Oct 21 2016 02:03
even if you don’t have an alexa, IFTTT is awesome for pebble watch easy entry in the same categories; plus makes DO Button widget for iphone in the notification center awesome.
garykidd
@garykidd
Oct 21 2016 02:05
hmmm...echo dot or echo? thoughts?
David Young
@wgs4
Oct 21 2016 02:16
pi@rpi ~/myopenaps $ openaps-report invoke monitor/cgm-glucose.json
cgm://JSON/iter_glucose_hours/monitor/cgm-glucose.json
monitor/cgm-glucose.json  raised  Python int too large to convert to C long
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, 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-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
    output = task.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/openaps/vendors/dexcom.py", line 498, in main
    for item in self.dexcom.iter_records(self.RECORD_TYPE):
  File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/readdata.py", line 300, in iter_records
    for x in reversed(xrange(start, end)):
OverflowError: Python int too large to convert to C long
Should I get better results from that command?
garykidd
@garykidd
Oct 21 2016 02:20
echo dot arriving saturday...w/ 15 seconds to spare for making sat delivery...
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:21
I thought when the edision boots without network it doesn't have time, but seems to preserve time from before even with a halt
Paul Martin
@Spazholio
Oct 21 2016 02:27
I love the idea of an Echo-type device (purchased or made from a Pi) but having something that’s listening to me 24/7 has always just felt creepy.
Pete Schwamb
@ps2
Oct 21 2016 02:30
The utility of it quickly overcomes the creepy feeling, in my experience.
Paul Martin
@Spazholio
Oct 21 2016 02:32
I just don’t know what I’d use it for primarily. Unless it could control my rig, TV, Kodi (HTPC), and PS4 all at once?
Pete Schwamb
@ps2
Oct 21 2016 02:32
But yeah, they're probably listening to me belt out hootie and the blowfish when nobody's home. ;)
Darrell Wright
@beached
Oct 21 2016 02:33
If you have an rpi apparently you can integrate with the amazon API's to do alexa like stuff
with crapier mic's
Pete Schwamb
@ps2
Oct 21 2016 02:34
"Alexa, what's 37 times 2.5 / 2?" (Dealing with odd servings per package)
Darrell Wright
@beached
Oct 21 2016 02:34
i hear the mic's on alexa are amazing
cassknox
@cassknox
Oct 21 2016 02:34
Screen Shot 2016-10-20 at 7.30.22 PM.png
can anyone tell me what that arrow means on my ns?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:37
that a dexcom direction of None
different from non-computable
cassknox
@cassknox
Oct 21 2016 02:38
okay so meaning what exactly?
my numbers are not changing?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:38
I'm not sure, it's kind of rare
cassknox
@cassknox
Oct 21 2016 02:39
how is that different than just a flat/straight arrow?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:39
if it's a g4 the raw data might be interesting
cassknox
@cassknox
Oct 21 2016 02:39
okay, just thought it was peculiar and worth asking.
i'm on a G5
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:39
via the share bridge?
cassknox
@cassknox
Oct 21 2016 02:40
yes
do you think it could be due to an older sensor?
(i'm running on almost 3 weeks)
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:40
it might be more common with the share bridge
it's code 0, so I'm wondering if it could get defaulted to that in some case
cassknox
@cassknox
Oct 21 2016 02:41
hmm okay interesting
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:41
but with the g5 you're blind
David Young
@wgs4
Oct 21 2016 02:42
Is this the command that should generate the profile.json ?
Is this something that must be created manually depending on the version of your pump?
pi@rpi ~/myopenaps $ openaps-report invoke settings/profile.json
get-profile://text/shell/settings/profile.json

module.js:340
    throw err;
          ^
Error: Cannot find module '/home/pi/myopenaps/settings/settings.json'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/pi/src/oref0/bin/oref0-get-profile.js:95:29)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
reporting settings/profile.json
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:42
with the g4 we have the sensor data and cal records with sub records so you can really know whats going on
cassknox
@cassknox
Oct 21 2016 02:42
i have another question for you, and i know it comes down to personal preference and all that, but if my warranty is almost up, would you recommend going back to G4 or sticking with G5?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:43
depends on how much you like the smaller footprint of the g5
without the receiver
but its really hard and expensive to get close to 100% uptime with the g5
cassknox
@cassknox
Oct 21 2016 02:44
it's nice but not super important to me
yeah thats what i was talking about with ben and chris
I'm thinking about going back to G4
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:44
I like having multiple receivers going, being able to overlap receivers, have new sensor going with a 2nd transmitter to decide when to switch, etc
but you could say I'm going to far, probably wouldn't do that if it was for my self
cassknox
@cassknox
Oct 21 2016 02:45
yeah, they told me how you guys have some 9 or so receivers strategically placed around the house
emsamom
@emsamom
Oct 21 2016 02:46
Setting up Nightscout share bridge (G5 with Heroku) - is there an easy way to confirm I have my share account and password correct? Not seeing data pull through yet and that seems to be the logical debug starting point.
cassknox
@cassknox
Oct 21 2016 02:46
i think its awesome! you're doing it right @jasoncalabrese
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:46
if you used the deploy to heroku button you should also have papertrail going and could watch the log
I'm not using wixels, but you can really get whole house coverage with that
emsamom
@emsamom
Oct 21 2016 02:49
The build log shows success... but when I check the mlab DB collection I have 1 profile but no entries...
cassknox
@cassknox
Oct 21 2016 02:49
really? hmm that would be pretty great. Ben and I are currently working on getting my rig online at work, without being able to get on the wifi
emsamom
@emsamom
Oct 21 2016 02:51
ah - I found papertrail, overwhelming amount of log data!
what does the callout to Share look like?
is it the websocket.update?
Oct 20 19:24:45 emilyaps app/web.1: WS: running websocket.update
Oct 20 19:24:45 emilyaps app/web.1: delta calculation indicates no new data is present
Oct 20 19:25:44 emilyaps app/web.1: tick Fri Oct 21 2016 02:25:44 GMT+0000 (UTC)
Oct 20 19:25:45 emilyaps app/web.1: Load Complete:
Oct 20 19:25:45 emilyaps app/web.1: profiles:1
Oct 20 19:25:45 emilyaps app/web.1: all buckets are empty
Paul Martin
@Spazholio
Oct 21 2016 02:52
@cassknox If you don’t mind my asking, why can’t you get on the wifi at work?
cassknox
@cassknox
Oct 21 2016 02:53
@Spazholio our work wifi is super super protected
i wish it was easier
Paul Martin
@Spazholio
Oct 21 2016 02:54
Ah, I get that. I had to jump through some hoops since we don’t use WPA, but rather Cisco PEAP. Took forever to figure out the right settings.
cassknox
@cassknox
Oct 21 2016 02:55
but I've requested another Ethernet port under my desk and IT will be installing it soon (hopefully!)
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:55
@emsamom while you're watching papertrail, restart the app
you should see some info about the share bridge
that it's enabled, etc
emsamom
@emsamom
Oct 21 2016 02:56
restart the heroku app? does that mean redeploy it?
cassknox
@cassknox
Oct 21 2016 02:57
@Spazholio wait, that may be the same way ours is setup, can i ask how you figures that out?
Paul Martin
@Spazholio
Oct 21 2016 02:58
Just had to put the right settings in the /etc/wpa_supplicant/wpa_supplicant.conf file. Give me a moment...
Jason Calabrese
@jasoncalabrese
Oct 21 2016 02:59
@emsamom you can set a dummy config setting to get heroku to restart the app
Paul Martin
@Spazholio
Oct 21 2016 03:00
@cassknox
network={
        ssid=“SSID”
        key_mgmt=WPA-EAP
        pairwise=CCMP TKIP
        group=CCMP TKIP
        auth_alg=OPEN
        eap=PEAP
        identity=“USERNAME”
        password=“PASSWORD”
        phase2="auth=MSCHAPV2"
}
Now, for some odd reason that only associates me to the wifi AP. I have to run sudo dhclient wlan0 manually to actually pull a DHCP address.
I have a script that I run every minute to see if I have an IP, and if not, re-run that command. It works very well.
cassknox
@cassknox
Oct 21 2016 03:02
okay, ill have to give it a try when i go in tomorrow and see if i can get it to work
Thank you for sharing!
Paul Martin
@Spazholio
Oct 21 2016 03:03
No problem! Feel free to hit me up tomorrow if you need/like - I think I have some links squirrelled away somewhere that guided me to those settings.
cassknox
@cassknox
Oct 21 2016 03:04
Okay awesome, I'll let you know how it goes :+1:
Paul Martin
@Spazholio
Oct 21 2016 03:04
Either way, let us know? Now you got me all curious. =)
emsamom
@emsamom
Oct 21 2016 03:05
@jasoncalabrese thanks! here is the issue: Oct 20 20:03:58 emilyaps app/web.1: Dexcom bridge not enabled
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:05
do you have bridge in your ENABLE setting?
emsamom
@emsamom
Oct 21 2016 03:06
no - I have "careportal rawbg"
cassknox
@cassknox
Oct 21 2016 03:06
@Spazholio yes, I definitely will! (I may enlist Ben's help... but we'll see how it goes!)
either way, excited to give it a try
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:07
add bridge to that
and when you get openaps going you're want to add a bunch
emsamom
@emsamom
Oct 21 2016 03:08
@jasoncalabrese NOW I'm getting an error message I expect :) Oct 20 20:06:58 emilyaps app/web.1: Message: 'Replay of bad password to SSO account gave invalid password error. AccountId=bf72fa9a-b7cb-43ec-aca2-39c26673923f',
so that is bad share username/pwd I think.....
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:09
might be something else, these are all the settings available for the plugin https://github.com/nightscout/cgm-remote-monitor#bridge-share2nightscout-bridge
it should be using the username/password sharer, not the sharee
emsamom
@emsamom
Oct 21 2016 03:19
@jasoncalabrese thank you so much! Nightscout is UP!
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:20
:smile:
Paul Martin
@Spazholio
Oct 21 2016 03:23
Does anyone know of any watchfaces that show the current temp basal setting? I’m a huge fan of the simplicity of the “CGM in the Cloud” (https://apps.getpebble.com/en_US/application/543bfff4ecc29b79790001de?query=CGM%2520in%2520the%2520Cloud&section=watchfaces) and the Nightscout watchface (https://apps.getpebble.com/en_US/application/543bfbbcecc29baad0000007?section=watchfaces) but neither of them show it, and I’m not sure if the latter is still under active development...
I know I can use Urchin, but it’s not as…elegant as the others. A tad too busy for my tastes.
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:24
@ELUTE has been working on a version of her watchface that shows the temp basal
Paul Martin
@Spazholio
Oct 21 2016 03:24
Which watchface is that? CGM Skyline?
Wait…is the second one I mentioned yours, @jasoncalabrese?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:26
that was the based on the original
the predictions in Urchin are so nice
Paul Martin
@Spazholio
Oct 21 2016 03:27
Wait, which was the original? cgm-pebble, or Nightscout?
Jason Calabrese
@jasoncalabrese
Oct 21 2016 03:27
pretty customizable if you what to hide things
cgm-pebble, was emailed around for a while
full of nasty hacks, but worked back then
Paul Martin
@Spazholio
Oct 21 2016 03:33
I think the predict feature in Urchin would be more helpful if I could remember what the heck I had set the hi/low/gap settings to on the graph. =)
David Young
@wgs4
Oct 21 2016 03:59

I’ve added a device named cgmlocal. It created a file, cgmlocal.ini. that file contains only the text
[device "cgmlocal”]
issuing the command

openaps use cgm oref0_glucose  --hours 2.0

does not give me a successful result. openaps.ini does have
[device "cgmlocal"]
vendor = openaps.vendors.dexcom
extra = cgmlocal.ini

in the file.

that G4 named cgmlocal is connected via USB.
Matt Pressnall
@logichammer
Oct 21 2016 04:23
@danamlewis, will try to get carbs into NS via IFTTT and then hook it up with Alexa and make another video...seemed to open up folks eyes to what is possible. Will document once I get figured out!
Dana Lewis
@danamlewis
Oct 21 2016 04:23
woot!
Matt Pressnall
@logichammer
Oct 21 2016 04:25
:)
Matthias
@ceben80
Oct 21 2016 04:32

@scottleibrand @danamlewis ....good morning :wink:

Q to this error underneath, when switching on my Eddie for the day.
I often get Error, retrying when trying to determine the pumphistory.
Sometimes I did a reboot that helps, but I want know what's the reason, any idea :question:

edison@eddie:~$ tail -f /var/log/openaps/pump-loop.log
mmtune: "868.495", 5, -51 Starting pump-loop at Fri Oct 21 06:20:05 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Starting pump-loop at Fri Oct 21 06:21:09 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Listening: .No comms detected
mmtune: "868.488", 5, -50 Starting pump-loop at Fri Oct 21 06:23:33 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Starting pump-loop at Fri Oct 21 06:24:36 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Starting pump-loop at Fri Oct 21 06:25:35 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Starting pump-loop at Fri Oct 21 06:26:36 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Starting pump-loop at Fri Oct 21 06:27:34 CEST 2016:
Radio ok, Listening: .Starting pump-loop at Fri Oct 21 06:29:21 CEST 2016:
Radio ok, Listening: .No comms detected
Old pumphistory:
Error, retrying
Listening: .No comms detected
R. Dennis Steed
@rdsteed
Oct 21 2016 04:37
@cassknox If your "requested another ethernet port under my desk" means there is already a port there, you could get a low cost switch (eg https://www.amazon.com/TP-LINK-5-Port-Ethernet-Desktop-TL-SF1005D/dp/B000FNFSPY) and split that port.
Matthias
@ceben80
Oct 21 2016 04:46
....meanwhile starting again my XRF rig.....Eddie doesn't work :worried:
Good to have a pancreas farm @danamlewis , but I would like to use my Eddie :cry:
Matthias
@ceben80
Oct 21 2016 04:52
more information when running openaps report invoke monitor/mmtune.json
edison@eddie:~/myopenaps$ openaps report invoke monitor/mmtune.json
pump://JSON/mmtune/monitor/mmtune.json
monitor/mmtune.json  raised  /dev/ttyMFD1 already in use
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 1505, in run_script
  File "/home/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 44, in main
    app.epilog( )
  File "/home/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 69, in epilog
    super(ReportToolApp, self).epilog( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 75, in epilog
    self.create_git_commit( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 89, in create_git_commit
    self.repo.git.add([diff.b_path], write_extension_data=False)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 466, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 934, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 718, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git add cgm/ns-glucose.json' returned with exit code 128
stderr: 'error: file write error (No space left on device)
fatal: unable to write sha1 file'
but this work fine
edison@eddie:~/subg_rfspy$ ./tools/get_rfspy_version.py /dev/ttyMFD1
RileyLink OK
Version: subg_rfspy 0.8
Response: subg_rfspy 0.8
Scott Leibrand
@scottleibrand
Oct 21 2016 04:53
Your disk is full.
Search back for the du and df commands I had people run to see why
Matthias
@ceben80
Oct 21 2016 04:54
o yes :worried:
edison@eddie:~/myopenaps$ df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root        1.4G  578M  738M  44% /
devtmpfs         480M     0  480M   0% /dev
tmpfs             97M  312K   96M   1% /run
tmpfs            5.0M     0  5.0M   0% /run/lock
tmpfs            193M     0  193M   0% /run/shm
tmpfs            481M  8.0K  481M   1% /tmp
/dev/mmcblk0p7    32M  5.3M   27M  17% /boot
/dev/mmcblk0p10  1.3G  1.3G  4.0K 100% /home
how to find....please advice
Scott Leibrand
@scottleibrand
Oct 21 2016 04:55
Wonder if you're seeing the giant .git directory. Not sure why people get that. I haven't.
Search the archives for du
I have a du command that will show just the big stuff
Or figure it out from du -h ;-)
Matthias
@ceben80
Oct 21 2016 04:56
I remember in the past u posted here...will search
Scott Leibrand
@scottleibrand
Oct 21 2016 04:58
Heading to sleep. If it's .git you might try to figure out how it got so big, and then delete it and do oref0-reset-git.
We need to figure out why it's happening and how to prevent or fix it programmatically.
Matthias
@ceben80
Oct 21 2016 04:59
edison@eddie:~/myopenaps$ sudo du -xh -d 3 /home | egrep "[0-9][0-9][0-9]M|[0-9]G"
sudo: unable to resolve host eddie
497M    /home/edison/myopenaps/.git
498M    /home/edison/myopenaps
565M    /home/edison
288M    /home/usr/lib
289M    /home/usr/share
724M    /home/usr
1.3G    /home
Scott Leibrand
@scottleibrand
Oct 21 2016 05:00
Yep
Good luck. 'Nite.
Matthias
@ceben80
Oct 21 2016 05:01
N8 Scott
emsamom
@emsamom
Oct 21 2016 05:11
OK stuck again. I've got openaps installed on my raspberry pi, but I can't understand how this is supposed to actually TALK to my pump..... what am I supposed to do with the carelink USB stick - plug it into my raspberry pi?
Dana Lewis
@danamlewis
Oct 21 2016 05:16
Yes
emsamom
@emsamom
Oct 21 2016 05:17
and that's it? just by telling openaps the serial number of the pump I will be able to talk to it (seems too good to be true...)
Dana Lewis
@danamlewis
Oct 21 2016 05:17
Yep :smile:
emsamom
@emsamom
Oct 21 2016 05:17
I keep getting this error when I try to get the pump model: serial.serialutil.SerialException: Attempting to use a port that is not open
Dana Lewis
@danamlewis
Oct 21 2016 05:18
Plug the carelink in
emsamom
@emsamom
Oct 21 2016 05:18
I should probably disclaim that I've not used this pump since 2005 and I don't know that I ever used the carelink...
Dana Lewis
@danamlewis
Oct 21 2016 05:18
Does the pump have a battery in it?
emsamom
@emsamom
Oct 21 2016 05:18
yes but no cartridge
pump seems to be working fine. Carelink has no UI to indicate
Dana Lewis
@danamlewis
Oct 21 2016 05:19
That's fine. Just make sure you're through prime (stick finger in for motor to sense pressure) to get it out of that state
emsamom
@emsamom
Oct 21 2016 05:19
definitely still in prime!
Dana Lewis
@danamlewis
Oct 21 2016 05:19
Ok. Finger or pencil eraser end to get it out of prime
emsamom
@emsamom
Oct 21 2016 05:20
done, let me try again
Dana Lewis
@danamlewis
Oct 21 2016 05:20
:+1:
emsamom
@emsamom
Oct 21 2016 05:20
nope, same error
Dana Lewis
@danamlewis
Oct 21 2016 05:20
What model pump?
emsamom
@emsamom
Oct 21 2016 05:21
I'ts a paradigm 522
Dana Lewis
@danamlewis
Oct 21 2016 05:21
Ok
And carelink is plugged into Pi now?
emsamom
@emsamom
Oct 21 2016 05:21
yes for several minutes
Dana Lewis
@danamlewis
Oct 21 2016 05:22
Did you put in the SN correctly? Just numbers?
emsamom
@emsamom
Oct 21 2016 05:22
not the first time, but I got it right eventually ;)
Matthias
@ceben80
Oct 21 2016 05:22

@scottleibrand @danamlewis did the hard way again rm /myopenaps -rf
get rid of whatever.... :smile:

.......and re-install oref0-setup.sh
now my Eddie is looping again

Starting pump-loop at Fri Oct 21 07:17:14 CEST 2016:
Radio ok, Listening: ..No comms detected
Profile less than 60m old
glucose.json newer than temp_basal.json
Temp refreshed
Temp duration 27m or more
glucose.json newer than pumphistory: Refreshed pumphistory
Dana Lewis
@danamlewis
Oct 21 2016 05:22
And still getting errors with a simple pump model? Can you paste command you are running and output error?
emsamom
@emsamom
Oct 21 2016 05:23
openaps use pump model
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 44, in call
self.before_main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 61, in before_main
self.setup_medtronic( )
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 160, in setup_medtronic
self.uart.open( )
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 874, in open
log.info('%s' % self.product_info( ))
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 515, in product_info
return self.query(ProductInfo)
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 509, in query
return self.process( )
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 490, in process
raw = self.send_force_read( )
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 606, in send_force_read
self.link.write(reader.format( ))
File "/usr/local/lib/python2.7/dist-packages/decocare/link.py", line 47, in write
r = self.serial.write( string )
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 517, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
do I need to connect the carelink to my pump somehow?
Matthias
@ceben80
Oct 21 2016 05:25
@danamlewis ....now the Q of the day.....which pancreas I'm going to use? :smile: :smile: :smile:
blob
I will switch off the biggest one :smile:
Dana Lewis
@danamlewis
Oct 21 2016 05:28
@emsamom how close is pump to carelink?
@ceben80 all of them? ;)
emsamom
@emsamom
Oct 21 2016 05:29
@danamlewis was about 3 feet. Now about 1 inch :)
Dana Lewis
@danamlewis
Oct 21 2016 05:29
Ahhh
Give it a min or two, that should fix it
Your first intro to finicky range
Matthias
@ceben80
Oct 21 2016 05:30
@danamlewis OMG....three-digit BGs ......I will take my tiny Eddie :wink:
emsamom
@emsamom
Oct 21 2016 05:30
thanks. Do people just tape the carelink/pump together?
Dana Lewis
@danamlewis
Oct 21 2016 05:30
Carelink is great to start w to setup, but then nice to switch to another stick w better range
emsamom
@emsamom
Oct 21 2016 05:30
gotcha
Dana Lewis
@danamlewis
Oct 21 2016 05:30
Not usually (taped)
Dana Lewis
@danamlewis
Oct 21 2016 05:36
Did that fix? And was this before/after you ran setup script?
emsamom
@emsamom
Oct 21 2016 05:36
did not fix yet. After I ran setup script
but then had to fix the serial number manually
pretty sure it's correct now:
pi@raspberrypi:~/myopenaps $ cat pump.ini
[device "pump"]
serial = 283615
I can't wrap my brain around how does the carelink stick know to talk to the pump....
Dana Lewis
@danamlewis
Oct 21 2016 05:37
If you've enabled cron in setup script, that tells it to run and talk to the pump and read settings, etc
Otherwise you can run manual commands
emsamom
@emsamom
Oct 21 2016 05:38
oh. I did not enable cron yet
I'm trying to run manual commands to figure out what the heck is going on first :0
it doesn't look like I'm quite talking to nightscout properly either though
Dana Lewis
@danamlewis
Oct 21 2016 05:41
Did setup script run correctly?
You've got an ini which is good, unless you did that manually
emsamom
@emsamom
Oct 21 2016 05:41
yes - had to run it twice but got openaps 0.1.5
Dana Lewis
@danamlewis
Oct 21 2016 05:41
K
Are you in the working instance?
emsamom
@emsamom
Oct 21 2016 05:41
looking through all ini files it looks like setup is good
yes, in the openaps folder
Dana Lewis
@danamlewis
Oct 21 2016 05:42
Ok. Try something else like openaps use iter_pump for kicks
(On my phone so less helpful trouble shooting than I would be from desktop)
One other Q - what battery level does your pump have?
emsamom
@emsamom
Oct 21 2016 05:44
brand new battery - just put it in tonight
Dana Lewis
@danamlewis
Oct 21 2016 05:44
And do you have a CGM plugged into Pi also, and what is the CGM battery level (close to full?)
emsamom
@emsamom
Oct 21 2016 05:44
(and the help is amazing, thank you for being SO available!)
ah, I haven't plugged the CGM in to the pi yet!
I'm going to have to charge that sucker overnight!
Dana Lewis
@danamlewis
Oct 21 2016 05:45
That shouldn't matter for use pump, but doesn't hurt to plug in now before you forget later
emsamom
@emsamom
Oct 21 2016 05:45
but explains why I can't see it either....
I think my contribution to the documentation is going to be a hardware diagram :)
Dana Lewis
@danamlewis
Oct 21 2016 05:46
And if still not fixed and iter_pump or model still doesn't work now... Run the setup script again and name it something else and enable cron and just see if this stuff works then.
emsamom
@emsamom
Oct 21 2016 05:46
ok will do. but I think I will do TOMORROW :) Thanks so much for the help!
Dana Lewis
@danamlewis
Oct 21 2016 05:46
Heh yea add some reminders to plug things in :) we have some in the hardware section but obviously not in the right place for usefulness anymore
Ok!
emsamom
@emsamom
Oct 21 2016 05:46
I'm amazed at how far I got tonight
Dana Lewis
@danamlewis
Oct 21 2016 05:46
:+1:
emsamom
@emsamom
Oct 21 2016 05:47
thanks a bunch, already so impressed with this group!
Dana Lewis
@danamlewis
Oct 21 2016 05:47
:smile: this community is the best.
Have a good night!
PieterGit
@PieterGit
Oct 21 2016 07:32
@emsamom : please make sure you don't post your pump or CGM serial number. That should be kept private.
Mike
@libxmike
Oct 21 2016 07:46
@PieterGit I did set to 3, 5 and last to 7 https://github.com/openaps/oref0/blob/master/bin/oref0-reset-usb.sh#L46 (e.g. sleep 3) and oref0-reset-usb.sh in cron every 30min but the stick quit over night.
@/all who has a Slice of Radio and don't need it any more? please PM me
PieterGit
@PieterGit
Oct 21 2016 07:55
Can it be a power issue with the PiZero? Was it on a battery or on mains when it quit?
are you using a usb hub, or is the carelink the only usb device?
PieterGit
@PieterGit
Oct 21 2016 08:08

I Googled on "Pi Zero" and buspower and got to raspberrypi/linux#1272 (kernel panic). That lists:

echo 0 >  /sys/bus/platform/drivers/dwc_otg/20980000.usb/buspower
echo 1 >  /sys/bus/platform/drivers/dwc_otg/20980000.usb/buspower

to force USB devices to reconnect. Don't know if the Pi Zero has the same file.

You might try that. @tpfkanep has some good comments in that discussion that his USB problem was:

  • related to the usb_modeswitch version (usb_modeswitch 2.3.0-1 won't work, 2.2.6-1 no panics)
  • appending StandardEject=1 to some usb_modeswitch config

Would be nice if Pi Zero with Carelink works for starters while we're waiting for the Expansion board

Mike
@libxmike
Oct 21 2016 08:31
@PieterGit using 2.1A on mains, carelink on a hub but tested on Rpi 2 w/o hub and more or less same thing, stick gone after maybe 8h
@PieterGit that is exacly what I'm doing, try to use Carelink while waiting for the explorer board
I will try today evning (EU time) with hub-ctrl to power cycle just the usb powerbus
PieterGit
@PieterGit
Oct 21 2016 08:38
@libxmike : is your kernel up to date (rpi-update) ? Good luck trying tonight. It noticed the carelink stick get a bit warm. It can also be a heat dispense problem with the Carelink stick. If you have a Carelink spare you might also try to use a cold/fresh usb stick for the night.
Mike
@libxmike
Oct 21 2016 08:40
@PieterGit I did update last week, I have just one stick, I'll open the case and see how is the heat
PieterGit
@PieterGit
Oct 21 2016 08:48
Last resort is probably changing the /etc/usb_modeswitch.conf options for the CareLink, but that 's out of my comfort zone as well. Be carefull with you Carelink stick (don't break it). @danamlewis : perhaps the dev docs should explicitly not recommend to use the Carelink stick, see openaps/docs@f42b48d
Mike
@libxmike
Oct 21 2016 08:49
CareLink is useless for loop, at least with Pi Zero, for dry testing it is ok
Hannah Crabtree
@lollydaggle
Oct 21 2016 09:20
I got an "Off No Power" alarm on my pump in the middle of the night. I put a new battery in only a few hours before that passed the battery test.
John Sjolund
@sjolundjohn
Oct 21 2016 10:28
}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 52, in __call__
    self.epilog( )
  File "/usr/local/bin/openaps-use", line 50, in epilog
    super(UseToolApp, self).epilog( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 75, in epilog
    self.create_git_commit( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 89, in create_git_commit
    self.repo.git.add([diff.b_path], write_extension_data=False)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 403, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 831, in _call_process
    return self.execute(call, **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 652, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git add monitor/mmtune.json
  stderr: 'error: file write error (No space left on device)
fatal: unable to write sha1 file'
Seems I am out of space on the Edison -this is what caused me to do a fresh install a few days ago, and now we are back. Anybody else had this?
John Sjolund
@sjolundjohn
Oct 21 2016 10:37
This is a fresh install of Jubilinux and Openaps, nothing else
root@edison2:~/openaps# df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root        1.4G  1.4G     0 100% /
devtmpfs         482M     0  482M   0% /dev
tmpfs            482M     0  482M   0% /dev/shm
tmpfs            482M  6.7M  476M   2% /run
tmpfs            5.0M     0  5.0M   0% /run/lock
tmpfs            482M     0  482M   0% /sys/fs/cgroup
tmpfs            482M  4.0K  482M   1% /tmp
/dev/mmcblk0p10  1.3G  769M  522M  60% /home
/dev/mmcblk0p7    32M  3.8M   29M  12% /boot
tmpfs             97M     0   97M   0% /run/user/0
Sandra Keßler
@SandraK82
Oct 21 2016 10:41
It seems better to modify the install process to use only one partition for all data..
John Sjolund
@sjolundjohn
Oct 21 2016 10:43
Ho do I recover from this? This is after running for only two days
Sandra Keßler
@SandraK82
Oct 21 2016 10:49
I guess it would be possible to recover, however you will reach this point again and again
John Sjolund
@sjolundjohn
Oct 21 2016 10:51
Oh man - I think the installation instructions need to be changed to accomodate this
Matt Walker
@walker0
Oct 21 2016 10:54
@sjolundjohn what are your log rotate settings?
John Sjolund
@sjolundjohn
Oct 21 2016 10:55
I followed setup instructions and made it daily (I think), will confirm
root@edison2:~# cat /etc/logrotate.conf
# see "man logrotate" for details rotate log files weekly
daily

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

 uncomment this if you want your log files compressed compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here
Matt Walker
@walker0
Oct 21 2016 10:59
That seems fine
Actually, just noticed your compression line. Put compress on a new line and put a # in front of uncomment
I doubt that is your problem though
John Sjolund
@sjolundjohn
Oct 21 2016 11:02
root@edison2:/var/log# sudo du -h /var/log
2.3M    /var/log/openaps
12K    /var/log/fsck
4.0K    /var/log/unattended-upgrades
4.0K    /var/log/ntpstats
4.0K    /var/log/news
132K    /var/log/apt
4.0K    /var/log/watchdog
22M    /var/log
Doesn't seem to be too crasy
I can't figure out what is making this happen on a fresh install
Matt Walker
@walker0
Oct 21 2016 11:03
Where is it that is big?
John Sjolund
@sjolundjohn
Oct 21 2016 11:06
root@edison2:~# du -sh *
92K    kernel.config
942M    openaps
52M    src
root@edison2:~/openaps# du -a /var | sort -n -r | head -n 10
155620    /var
81424    /var/lib
65440    /var/lib/apt
65404    /var/lib/apt/lists
51488    /var/cache
47508    /var/cache/apt
33136    /var/lib/apt/lists/http.debian.net_debian_dists_jessie_main_binary-i386_Packages
23780    /var/cache/apt/srcpkgcache.bin
23696    /var/cache/apt/pkgcache.bin
21992    /var/log
Seems that it is logs that are hurting me
root@edison2:~/openaps# du -ahx / | sort -rh | head -20
1.3G    /
1016M    /root
950M    /root/openaps
949M    /root/openaps/.git
947M    /root/openaps/.git/objects
887M    /root/openaps/.git/objects/pack
152M    /var
87M    /lib
80M    /var/lib
64M    /var/lib/apt/lists
64M    /var/lib/apt
52M    /root/src
51M    /var/cache
50M    /lib/modules/3.10.17-poky-edison+
50M    /lib/modules
49M    /lib/modules/3.10.17-poky-edison+/kernel
47M    /var/cache/apt
37M    /root/src/oref0
35M    /root/src/oref0/node_modules
33M    /var/lib/apt/lists/http.debian.net_debian_dists_jessie_main_binary-i386_Packages
John Sjolund
@sjolundjohn
Oct 21 2016 11:11
So, it seems that .git is a real killer
Just ran rm -rf ~/openaps/.git and oref0-reset-git
Problem solved
John Sjolund
@sjolundjohn
Oct 21 2016 11:16
root@edison2:~# df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root        1.4G  359M  957M  28% /
devtmpfs         482M     0  482M   0% /dev
tmpfs            482M     0  482M   0% /dev/shm
tmpfs            482M  6.7M  476M   2% /run
tmpfs            5.0M     0  5.0M   0% /run/lock
tmpfs            482M     0  482M   0% /sys/fs/cgroup
tmpfs            482M   12K  482M   1% /tmp
/dev/mmcblk0p10  1.3G  769M  522M  60% /home
/dev/mmcblk0p7    32M  3.8M   29M  12% /boot
tmpfs             97M     0   97M   0% /run/user/0

@scottleibrand heads up about the above. I did a totally fresh install two days ago, today partition totally full and loop wasn't running.

Seems that .git was the culprit. ran rm -rf ~/openaps/.git and oref0-reset-git and was able to take back about 600mb

Paul Martin
@Spazholio
Oct 21 2016 11:25
So, is the can’t-temp-higher-than-6.3 issue fixed? Setting the max basal on my pump to 6.3u/hr allowed me to get high-temped last night (instead of zero-temped), but 6.3u/hr wasn’t sufficient and I think I need to have it temp higher. I ate carbs with fat last night to see how well the loop would keep up with me while I slept as sort of a test. https://www.lexal.net:1337/ <— 3am and 6am is where the fun starts. =)
Sandra Keßler
@SandraK82
Oct 21 2016 12:14
@Spazholio it is fixed, yet not merged into repo. You need to do some setup by hand to get it working for now
Paul Martin
@Spazholio
Oct 21 2016 12:17
Eh, I'll just wait then. I generally don't even eat carbs, much less at night, so it was more of an experiment than anything else. Thanks though. =)
Mike
@libxmike
Oct 21 2016 12:52
@/all there are two versions of Slice of Radio, just one of then was working, which one was it?
emsamom
@emsamom
Oct 21 2016 12:54
woke up this morning, restarted my pi, and saw the most beautiful thing!
pi@raspberrypi:~/myopenaps $ openaps use pump status
{
"status": "normal",
"bolusing": false,
"suspended": false
}
Scott Leibrand
@scottleibrand
Oct 21 2016 13:07
@sjolundjohn and everyone else who's had a full disk due to .git: we need you to do some troubleshooting to see why it's happening and/or how to fix. You'll probably need to do it before it gets completely full. And I don't know what the problem is, so not sure what all to try. Need some of y'all to help Google and try to figure out troubleshooting steps.
Scott Leibrand
@scottleibrand
Oct 21 2016 13:12
One idea might be to figure out the commands to see what the git db is full of. Another might be to try doing a git gc or similar and see how much space it frees up.
@scottleibrand Do you want us to wait until the disk gets almost full? I mean, I just ran what you recommended now - took my .git dir from 37MB to 25MB - but I've only been running this version of the loop for a few days.
Eric Jensen
@elnjensen
Oct 21 2016 14:18
Would a simple git status in that directory help? Could see which files are changing, but maybe not how often.
Paul Martin
@Spazholio
Oct 21 2016 15:02
Also, in 1.5 hours, it's gone from 25MB to 32MB. The .git dir, that is.
Kelly Watson
@kellyisworking
Oct 21 2016 15:09
I think Matt Presnall posted an awesome alexa video - now I can't find it and wanted to send to my husband :smile:
@logichammer Where'd that go?
Found it :smile:
Dana Lewis
@danamlewis
Oct 21 2016 15:17
@emsamom woot! Glad it worked. Did you change anything , or did it just work this morning?
Sandra Keßler
@SandraK82
Oct 21 2016 15:19
@Spazholio mine (raspi2) looks like this:
```
du -hsc *
43M    myopenaps
14M    myopenapsHighTemp
myopenaps has run for about two weeks
myopenapsHighTemp since yesterday
Paul Martin
@Spazholio
Oct 21 2016 16:52
This message was deleted
Paul Martin
@Spazholio
Oct 21 2016 17:17
It seems odd that the DoButton doesn't take advantage of existing recipes or parts of the recipes even though it has you sign into IFTTT. That would be helpful.
emsamom
@emsamom
Oct 21 2016 18:52
@danamlewis I executed the first rule of computing - turned it off and back on again ;) Bummed that we are going out of town this weekend and I'm not taking it all with me yet, but thrilled at my progress. Hoping to be looping with real insulin by next weekend!
R. Dennis Steed
@rdsteed
Oct 21 2016 18:54
@libxmike Did you locate a Slice of Radio - they seem to be pretty scarce now that Wireless Things has folded. What did you mean by "two versions" - the hardware device or the software to run on it?
Mike
@libxmike
Oct 21 2016 19:24
@rdsteed the hardware device
Dana Lewis
@danamlewis
Oct 21 2016 19:27
@emsamom that, or walking away or coming back to it a few minutes later seems to do it ;) Glad it works! You should fly from here to the end!
Mike
@libxmike
Oct 21 2016 19:41
@danamlewis I want to add 2nd Explorer board to my order but no option in the shop also no answer to my email, what do you suggest?
Dana Lewis
@danamlewis
Oct 21 2016 19:42
Hanging tight until Morgan gets back from his trip
Mike
@libxmike
Oct 21 2016 19:43
Ahhh OK, don't want to place 2nd order, it is international shipping
Dana Lewis
@danamlewis
Oct 21 2016 19:43
I hear you. but it’s not my site, I can’t do anything about it, so I’ll let folks know when Morgan’s back and we have some answers on refund for US shipping timing or any duplicate international orders or how to order a second, etc.
Tim Street
@tim2000s
Oct 21 2016 19:48
Has anyone done a kind of "Nightscout console" like Android APS has, for local use with OpenAPS using either Android or iOS?
Paul Martin
@Spazholio
Oct 21 2016 19:52
@danamlewis IIRC, you were setting NS stuff via text messages in one of your Twitter posts. I'd go look right now, but well...DDoS. Am I remembering right? And if so, how did you accomplish that? I've got everything set up with the Pebble via the directions, but I'm always interested in doing things various different ways. I'd LOVE to connect it to Siri somehow, but I can't seem to see a way to do it.
PieterGit
@PieterGit
Oct 21 2016 19:55
Is Ubilinux still the recommended distribution for Edison, I noticed the download links of https://emutex.com/products/ubilinux have been removed
Dana Lewis
@danamlewis
Oct 21 2016 19:55
1) Set up IFTT so you can send IFTTT an SMS tagged with something (like “eating” and enter that to NS) 2) that will give you a number to text, add that number in your phone book as “Pancreas” (or something) 3) ask Siri to text “Pancreas” with whatever you’ve got tagged, i.e. #eating
(and you can turn IFTTT notifcations on, so you get a banner notification when it goes through as confirmation)
@PieterGit we recommend jubilinux for the most part
Paul Martin
@Spazholio
Oct 21 2016 19:57
I hate to ask, but how do you set up IFTTT to accept SMS? I can't seem to find it, and it's taking me 30-60s per page on that site.
David
@david-t1
Oct 21 2016 19:57
Hi all, anyone happen to know linux-wise if there is a way to reset a tty device? I want to be able to selectively reset my TI stick (connected via USB in my rpi2). sudo oref0-reset-usb certainly works but it also resets my dexcom receiver which is plugged into the other usb port and thus it loses all of its logged data.
PieterGit
@PieterGit
Oct 21 2016 19:58
thanks, i found https://github.com/openaps/docs/blob/dev/docs/docs/walkthrough/phase-0/setup-edison.md now. I thought it was ubilinux, so was a bit surprised
Dana Lewis
@danamlewis
Oct 21 2016 19:58
@Spazholio go to create recipe, SMS should be in the top recommended ones toward the bottom…or use the search for “SMS"
recipe should be “If SMS, then Maker Channel"
Screen Shot 2016-10-21 at 12.59.08 PM.png
Paul Martin
@Spazholio
Oct 21 2016 20:00
Ahhhh, ok. Thanks.
Dana Lewis
@danamlewis
Oct 21 2016 20:01
And here’s DoButton, which I love possibly even more
Screen Shot 2016-10-21 at 1.01.07 PM.png
Paul Martin
@Spazholio
Oct 21 2016 20:02
I have that installed. Seemed like I had to create the recipe from scratch on there, instead of being able to have it invoke my pre-existing recipes. Odd that, but I've got 'em set up now. =)
Mind if I ask what the "Enter 15 carbs" one is used for?
Dana Lewis
@danamlewis
Oct 21 2016 20:02
To enter 15 carbs
Paul Martin
@Spazholio
Oct 21 2016 20:03
I was waiting for that. =)
Dana Lewis
@danamlewis
Oct 21 2016 20:03
Is there a different question I can answer for you? :)
Paul Martin
@Spazholio
Oct 21 2016 20:03
I more meant, wouldn't you generally enter that in the pump so that you can bolus for it?
Dana Lewis
@danamlewis
Oct 21 2016 20:03
haha
no, I don’t like the bolus wizard scrolling button pressing stuff. I always enter my carbs via DIYPS to Nightscout and do easy bolusing for meals
(I have a super easy carb ratio, 1:10, so no need for the bolus wizard usually)
Paul Martin
@Spazholio
Oct 21 2016 20:04
"Easy bolus" being the leftmost button on the pump? The most pristine button I have because I never use it? =)
Yeah, mine's 1:5 so I get that.
Dana Lewis
@danamlewis
Oct 21 2016 20:05
no, hitting the up arrow for a pre-set increment bolus
Paul Martin
@Spazholio
Oct 21 2016 20:05
...
Dana Lewis
@danamlewis
Oct 21 2016 20:05
left button is what turns on the bolus wizard
Paul Martin
@Spazholio
Oct 21 2016 20:05
So...I learned something new today.
Dana Lewis
@danamlewis
Oct 21 2016 20:05
really?!
emsamom
@emsamom
Oct 21 2016 20:05
@Spazholio I think it goes back to a "serving" of carbs = 15 g (at least that's what I learned on diagnoses 20 years ago) they use that for the quick bolus
Dana Lewis
@danamlewis
Oct 21 2016 20:05
@emsamom (nope)
Pete Schwamb
@ps2
Oct 21 2016 20:06
Hah, I’d never done it either. Cool tones when you’re incrementing. And then a replay of those tones. :)
Paul Martin
@Spazholio
Oct 21 2016 20:06
@danamlewis I swear. I've NEVER known that was there. headdesk
Dana Lewis
@danamlewis
Oct 21 2016 20:06
You can set the easy bolus to whatever size you want, I have mine to .5u
emsamom
@emsamom
Oct 21 2016 20:06
Really? All the terrible meal planning books I have count a serving of X as 15 grams!
Dana Lewis
@danamlewis
Oct 21 2016 20:06
I’m saying that’s not why I have 15g there. we’re talking about my setup/why use 15g
emsamom
@emsamom
Oct 21 2016 20:06
it's Configurable! Who knew??
Dana Lewis
@danamlewis
Oct 21 2016 20:07
@ps2 pump sounds drive me bananas, my pump is on vibrate :)
Pete Schwamb
@ps2
Oct 21 2016 20:07
Does the vibration change? (I suppose I could just test that)
Paul Martin
@Spazholio
Oct 21 2016 20:07
Just so I'm clear though - if the scrolling through pump menus DIDN'T drive you up the wall, then what you're doing - "Enter 15 carbs" + Easy Bolus - would accomplish the same thing as far as the loop is concerned?
Dana Lewis
@danamlewis
Oct 21 2016 20:07
it’ll vibrate to confirm when you hit the up arrow, then confirm the bolus, then vibrate again when the bolus starts and stops. that’s how i bolus without looking and know that it went through.
@Spazholio if you’re going to go through the bolus wizard, you’d put in 15 carbs and do your bolus since you’re already in that flow
Paul Martin
@Spazholio
Oct 21 2016 20:08
Right.
Dana Lewis
@danamlewis
Oct 21 2016 20:08
but yes. Enter carbs via the bolus wizard; or via nightscout; and the loop will hear about them (if wifi connected). If you’re in offline mode, enter carbs in bolus wizard and do the bolus that way. that’s the only time I do bolus wizard on the pump.
Paul Martin
@Spazholio
Oct 21 2016 20:10
Very cool. Thanks for the explanation.
Dana Lewis
@danamlewis
Oct 21 2016 20:10
:+1:
glad everyone is experimenting with easy bolus now :) too
Paul Martin
@Spazholio
Oct 21 2016 20:10
(and the education on a very basic feature of a device that I've had connected to me for over 10 years)
Dana Lewis
@danamlewis
Oct 21 2016 20:12
that’s one of the things I’m sad is going away in future gens pumps. Supposedly because you won’t need supplemental boluses..but…we’ll see.
David
@davidkeddydb
Oct 21 2016 20:48
@danamlewis It dawns on me just now watching this conversation that you can easily get the language for IFTTT by just watching the /api/v1/treatments.json file for easy bolus for example. Fantastic.
Dana Lewis
@danamlewis
Oct 21 2016 20:49
I wouldn’t do bolus via IFTTT without some more safety engineering
David
@davidkeddydb
Oct 21 2016 20:50
I was more along the lines of what you are doing with a set carb amount. I typically pre-bolus as well as doing eating soon so it would work well
Dana Lewis
@danamlewis
Oct 21 2016 20:50
set carb amount, yes. I wouldn’t command the loop to do boluses via IFTTT, though.
David
@davidkeddydb
Oct 21 2016 20:51
@danamlewis I hear you.
I usually do a 30g prebolus so I should be able to set that up pretty easily.
Dana Lewis
@danamlewis
Oct 21 2016 20:52
30g carb entry, yep.
David
@davidkeddydb
Oct 21 2016 20:56
@danamlewis Thanks as always. Have a great weekend.
Dana Lewis
@danamlewis
Oct 21 2016 20:57
you too!
Paul Martin
@Spazholio
Oct 21 2016 20:58
Yeah, I’ve been toying with a simple way to bolus without having to touch the pump. Not automatically - I’m not insane - but some sort of programmatic method certainly.
Eric
@ecc1
Oct 21 2016 21:13
I have 2 Slice of Radio modules that I don't need. I'll be happy send you one if you're just getting started (don't already have a rig built, or are still using a Carelink USB stick). These modules have 2x13 female connectors (RPi standard?) so should reduce or eliminate the need for soldering. They'll need to be flashed with firmware before use, so please research what you're getting into! PM me if interested.
David
@david-t1
Oct 21 2016 21:21
@ecc1 I might be interested. So Slice of Radio is entirely different radio hardware than TI stick? Reason I ask is I am using a 515 pump with TI stick and somehow the radio comms isn't dependable. I am using rpi2.
John Benjamin
@Bender1061
Oct 21 2016 21:22

@scottleibrand So I've gotten around to testing the oref0-setup branch. While running it does stop at echo Checking oref0 installation
could this have to do with

( cat $(which oref0-dex-is-fresh) | grep mins && grep -q oref0_glucose_since `which nightscout`

when I'm not using dex and using MDT?

Rachel Sandlain
@audiefile
Oct 21 2016 21:25
Has anyone had an edison+mini breakout board suddenly stop turning on?
Eric
@ecc1
Oct 21 2016 21:47
The Slice of Radio uses the Texas Instruments CC1110 radio chip, the same one used on the RileyLink, and almost the same as the one on the TI Stick except that it lacks a USB interface. If a TI Stick isn't working for you, it's unlikely this will either.
@audiefile They're very sensitive to the USB cable (if that's how you're powering it); I've found some microUSB cables work fine and others cause it to fail to boot.
Rachel Sandlain
@audiefile
Oct 21 2016 21:54
I've heard that. This was a cable that I've used with it before. I had it plugged in and charging an attached lipo battery. It worked fine previously. It worked when I went to bed, when I woke up it wasn't working. It doesn't matter if I use usb or lipo power. The LED indicating Edison power will flash green then go out. If I use a usb cable the led that indicates board power and charging will stay green though.
David Young
@wgs4
Oct 21 2016 21:58
are replacement battery caps available for medtronic 512 pumps? I freakin lost it somehow.
Rachel Sandlain
@audiefile
Oct 21 2016 22:00
I'm pretty sure that it's the same battery cap, you don't have to worry about it being 512 specific
David Young
@wgs4
Oct 21 2016 22:01
ok wew. I was freaking out.
Rachel Sandlain
@audiefile
Oct 21 2016 22:02
I would be too!
Eric
@ecc1
Oct 21 2016 22:11
@audiefile I had one bad experience with a (sketchy?) battery being charged that caused the Edison to get burning hot. It shut itself down and then wouldn't boot. Intel was very good about replacing it and the mini-breakout under warranty.
David
@david-t1
Oct 21 2016 22:16
@ecc1 tx for your reply and info. Do you happen to know if the Explorer board also uses Texas Instruments CC1110 radio chip?
Eric
@ecc1
Oct 21 2016 22:40
Yes, it does.
Scott Leibrand
@scottleibrand
Oct 21 2016 22:40
@Bender1061 yeah, I can see what the problem is there: I'm doing a cat on stdin if $(which oref0-dex-is-fresh) returns nothing
@Bender1061 I think I just need to do grep mins $(which oref0-dex-is-fresh) - if you want to test that and PR the fix if it works, please feel free
@Bender1061 otherwise, please open an issue so I don't forget to fix that.
David
@david-t1
Oct 21 2016 22:42
@ecc1 bad news for me then. pretty sure my issues with radio comms are due to the older medtronic 515 but was hoping for different radio hardware that might somehow work better. I get it working okay but the range and reliability are not what others get
Rachel Sandlain
@audiefile
Oct 21 2016 22:43
@ecc1 maybe something similar happened to me. I've had the battery for a while and it doesn't always like to charge. How did you contact Intel about the warranty?
Scott Leibrand
@scottleibrand
Oct 21 2016 22:43
(or anyone else who's had the same issue with oref0-setup hanging on checking install)
C-Ville
@C-Ville
Oct 21 2016 22:44
@david-t1 I guess in principle the 515 should work with TI. I do have a 715 WW at it works with TI, ERF and XRF, all having the same CC Chip
John Benjamin
@Bender1061
Oct 21 2016 22:45
@scottleibrand I'll try that. Thanks
David
@david-t1
Oct 21 2016 23:10
@C-Ville oh yes, I get it working but like garykidd (?) who has a 715 also, I am puzzled that it works but not as well as newer pump models. I use the subg-ww-radio-parameters script but I am not sure it makes a crucial difference. I did edit mmtune,py to use 916.756 as default and consequently mmtune always defaults. So far in testing I am getting 10 feet of range. Not bad. Still testing to make sure I can run mmtune repeatedly and not have comms freeze.
I don't want to have to use the subg-ww-radio-parameters script because comms will freeze after 2-3 iterations unless I also run sudo oref0-reset-usb which in turn causes my dex receiver to lose all of its logged data.
John Benjamin
@Bender1061
Oct 21 2016 23:24
@scottleibrand just put in the PR, it's tested and worked fine for me, I'm running it right now
is there any documentation about how to get the bt stuff working --bleserial=SM123456 --btmac=AB:CD:EF:01:23:45 --btmac=AB:CD:EF:01:23:45 I see that, where do I get this information for this?