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

17th
Jul 2017
mkericson
@mkericson
Jul 17 2017 00:00
Ran for the first time BT tethered over the weekend. Was connected more often that not maybe 20 out of 30 hrs away from the home network. Had to reset the rig several times - figured out you need to hold the black button down several second for that power off feature to work -vs- disconnecting the battery. That is what I did when OpenAPS showed not connection. Perhaps thats not the proper technique? Not sure why but while in the hotel I couldn't get it to run at all with BT. Leave the hotel and it connected.
Dana Lewis
@danamlewis
Jul 17 2017 00:03
@mkericson do you have your wifi file so it will try to connect to any open wifi?
Would need to look at your wifi logs from those time frames to see what it was doing
Scott Leibrand
@scottleibrand
Jul 17 2017 00:08
if you have BT tethering, we recommend not allowing the rig to connect to all open wifi networks, as many/most of them have captive portals that prevent rig communications
anyone using xdrip have a dev rig they'd be able to test something on for me?
mkericson
@mkericson
Jul 17 2017 00:22
@scottleibrand I turned wifi off for that reason - plus if you connect to wifi the iP disconnects your BT the tether. @danamlewis I do have the wifi settings for any open network - but knew they wouldn't work at a captive hotel network.
Scott Leibrand
@scottleibrand
Jul 17 2017 00:22
Just wrote up testing instructions for a potential fix to the glucose.json truncation issue, if anyone with xdrip has a dev rig they can test it on: openaps/oref0#550
also, if anyone using xdrip wants to do the work, it should be fairly straightforward to create an option for oref0-online to avoid disconnecting BT tethering when wifi comes available (but, optionally, switch the default route over to the wifi)
Dana Lewis
@danamlewis
Jul 17 2017 00:25
@mkericson you turned off wifi where?
DaisyHK
@laurathiessen
Jul 17 2017 00:38
when you have successfully got BT tethering on your OpenAPS, and then think you have successfully set up camping mode via xdripAPS, how do you then check to see if this works? as you cant use nightscout to see if the rig is active
Dana Lewis
@danamlewis
Jul 17 2017 00:39
Check to see if temps are being set on be pump, and or use hot button to watch status?
jordan-berger
@jordan-berger
Jul 17 2017 01:03
Trying to set up Bluetooth tethering and I keep getting this error. I have tried multiple times with both a Samsung Galaxy 7 and Samsung Galaxy 8. Any ideas?
sudo bt-pan client XX:XX:XX:XX:XX:XX
Traceback (most recent call last):
File "/usr/local/bin/bt-pan", line 228, in <module>
if name == 'main': sys.exit(main())
File "/usr/local/bin/bt-pan", line 196, in main
try: iface = net.Connect(opts.uuid)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.NotSupported: Operation is not supported
Martin Haeberli
@mhaeberli
Jul 17 2017 01:10
asking again - openaps pill shows COB 0 even though 56 G carbs in last hour. IOB seems plausible, though. what am I missing?
Dana Lewis
@danamlewis
Jul 17 2017 01:12
Do logs shows cob of 0 also?
Martin Haeberli
@mhaeberli
Jul 17 2017 01:13
yes
IOB seems to be based on bolus wizard insulin which includes carbs in the NS display
but I updated to recent dev last night; maybe I bollixed that
running oref0
since COB perceived as 0; the only openaps forecast is the no COB single line ...
(perhaps I should have freshly updated / installed npm?); probably also should have just switched to new master
Scott Leibrand
@scottleibrand
Jul 17 2017 01:22
does your pump-loop.log say anything about ignoring a bolus wizard carb record because it doesn't have any insulin with it?
aliceinnowonderlands
@aliceinnowonderlands
Jul 17 2017 01:23
Hi. So my openaps good and running for almost a week. Thanks again everyone for helping. I have question. I want to build simple human simulator for openaps testing. Question about connection simulator software and openaps software. I basically need just 1) run openaps and simulator on same linux machine 2) write output of simulator to json files (for example glucose.json for cgm data) and read input back from openaps (from temp_basal.json if we are using oref0 right?) instead of reading it from actual cgm and pump. Will it work or am i misunderstanding something? And do openaps developers even need simulation software or you have one already? Thanks
Martin Haeberli
@mhaeberli
Jul 17 2017 01:23
trying to remote in from 2.5 k miles away; would I see that in paper trail? in your experience? ‘cause that part is easy to check
Scott Leibrand
@scottleibrand
Jul 17 2017 01:24
@aliceinnowonderlands we haven't built it yet, but that sounds like exactly the approach @kenstack and @bustavo were wanting to take with their making their Glucodyn simulator usable for simulation testing of oref0, Loop, etc.
Martin Haeberli
@mhaeberli
Jul 17 2017 01:24
ignor not in papertrail
Scott Leibrand
@scottleibrand
Jul 17 2017 01:25
@mhaeberli I think your pump-loop.log should be in papertrail, yes
DaisyHK
@laurathiessen
Jul 17 2017 01:25
@danamlewis @scottleibrand when i look at my logs what am i trying to see if indicate that cmaping mode has been sucessfull
image.png
Scott Leibrand
@scottleibrand
Jul 17 2017 01:28
if you're getting BG data too old messages, it's not working correctly
DaisyHK
@laurathiessen
Jul 17 2017 01:30
ok thanks!
aliceinnowonderlands
@aliceinnowonderlands
Jul 17 2017 01:30
Oh cool. I found Glucodyn project website and github, will look into it, thanks. https://github.com/kenstack/glucodyn however can't see any code...
PopcornPam
@PopcornPam_twitter
Jul 17 2017 01:30
Hi All, I am getting this when I am trying to update. root@myopenaps2:~# cd ~/src/oref0 && git checkout master && git pull && sudo npm install -g oref0
error: Your local changes to the following files would be overwritten by checkout:
bin/oref0_nightscout_check.py
Please, commit your changes or stash them before you can switch branches.
Aborting
Scott Leibrand
@scottleibrand
Jul 17 2017 01:30
@PopcornPam_twitter just git stash that and try your command again
aliceinnowonderlands
@aliceinnowonderlands
Jul 17 2017 01:31
Is my original suggestion was right - about i just need to write and read json files to simulate pump and cgm data? Or is it more tricky?
PopcornPam
@PopcornPam_twitter
Jul 17 2017 01:31
Can you explain what that means? I am trying to understand what these things mean so I can better troubleshoot next time
Scott Leibrand
@scottleibrand
Jul 17 2017 01:31
@aliceinnowonderlands yeah, I think that's what you need to do. you'll just have to convert temp basal commands into a record of how much insulin would have been delivered over each 5m period, and feed that back into the simulator
@PopcornPam_twitter someone created that file without the unix executable bit, because he was developing on a PC. at some point someone made it properly executable, but git isn't very smart and thinks you changed it. you just have to tell it to ignore your local changes and pull in what's in the repo.
aliceinnowonderlands
@aliceinnowonderlands
Jul 17 2017 01:33
Oh yes here is code inside html files on github, found it. Will read it.
Ok cool, sounds easy so far.
Is here a way to make openaps running in x5, x10 etc then real time?
Scott Leibrand
@scottleibrand
Jul 17 2017 01:33
@kcrcgm When you're ready, I put the testing steps for my attempted xdrip fix at openaps/oref0#550
PopcornPam
@PopcornPam_twitter
Jul 17 2017 01:33
Gotcha.. So in general, those types of messages are generally fixed with a 'stash' command?
Scott Leibrand
@scottleibrand
Jul 17 2017 01:34
@aliceinnowonderlands yeah, once you integrate it with Perceptus's glucodyn patient simulator, you can run it arbitrarily fast.
@PopcornPam_twitter git stash is the easiest most reversible way to say "stash away my local changes in case I want them later". there are other ways, like git reset, but those aren't really any better for this task
aliceinnowonderlands
@aliceinnowonderlands
Jul 17 2017 01:35
Oook, thanks for answers, I will be back with more questions later when will got somewhere =)
Scott Leibrand
@scottleibrand
Jul 17 2017 01:35
if you ever stash away something you do want, git stash pop will pop it off the stack and re-apply it.
PopcornPam
@PopcornPam_twitter
Jul 17 2017 01:36
Ok, thank you for the clarificaion
Scott Leibrand
@scottleibrand
Jul 17 2017 01:36
@aliceinnowonderlands and thanks for taking this on. we've all talked about it, but no one has done any actual integration work yet, so if you do it'll be quite helpful
@PopcornPam_twitter and thank you for PR'ing without being asked to. :)
PopcornPam
@PopcornPam_twitter
Jul 17 2017 01:37
I finally figureed out you could make just one pr at a time and it still works!
Scott Leibrand
@scottleibrand
Jul 17 2017 01:37
yep, that makes it easy for all of us
@aliceinnowonderlands ^^
jmcrawford
@jmcrawford
Jul 17 2017 01:42
@scottleibrand After updating to Dev again last night, we're still seeing the IOB drop to 0 two hours after bolus (DIA/2). Pumphistory files all seem reasonable, pumphistory-merged and pumphistory-24h are showing records from about 26 hours ago, pumphistory from about 2 hours ago. Any ideas?
Scott Leibrand
@scottleibrand
Jul 17 2017 01:43
Probably time to drill down.
Michael Spradling
@M1Sports20
Jul 17 2017 01:49
I am new to openaps and so far have been loving it and its great so don't take this comment the wrong way. I am suprised the rig side of things is written in nodejs. It seems like we could get smaller/cheaper/battery efficient openaps with it written in c on a simple arm cortex or other...
jmcrawford
@jmcrawford
Jul 17 2017 01:50
Where to start? Seems like the processes are all running as expected. On a fresh install with no changes, what is different about this setup from any other?
Michael Spradling
@M1Sports20
Jul 17 2017 01:52
Again, this is well tests and works. I am very grateful for the work and the project. I just assumed when I first heard about it. It would be in a real time os or simple portable c code. It seems like you could do a lot of sleeping between completing tasks. It just suprised me
mkericson
@mkericson
Jul 17 2017 01:56
@danamlewis I have the iPhone and turned of the wifi so it would not connect - thereby preventing the BT tether from shutting off. BTW big TY :smile: for OpenAPS. I'm closing in on my third day and loving it.
Dana Lewis
@danamlewis
Jul 17 2017 01:58
@mkericson because you added the "connect to any open network" in the wifi file of the rig, regardless of what you did with the phone's wifi ability, rig was probably connecting to the hotel wifi and getting stuck in the captive portal.
:+1: for happiness looping otherwise :smile:
@M1Sports20 this projects builds upon and uses many other open source projects... and the languages those folks write in/wrote with ;) it could certainly be implemented in many different ways.
Gustavo
@bustavo
Jul 17 2017 02:01
@aliceinnowonderlands if you need help with Glucosym, email me: gustavo at perceptus.org
Scott Leibrand
@scottleibrand
Jul 17 2017 02:02
@M1Sports20 I didn't know any programming languages very well when we started DIYPS. That one was a simple web interface, so I did it in PHP. Then we wanted to port a bunch of the logic to Nightscout, which was in JavaScript. When we started writing oref0, we just took that js code and started executing it locally with node.
It turns out nodejs code is really easy to iterate with and test things out quickly in real time, so I've had no incentive to switch. Python would be just as good (that's what the underlying openaps toolkit and its dependencies are in) but not better enough to be worth porting it and learning a new language.
Martin Haeberli
@mhaeberli
Jul 17 2017 02:04
any more suggestions on tracing zero - COBs?
Scott Leibrand
@scottleibrand
Jul 17 2017 02:06
Porting all the OpenAPS stuff to C would certainly be more efficient, but it would make it way harder to do rapid development, and would be a lot of frustration for most of the core developers for very little comparative reward. If someone wanted to implement OpenAPS inside a commercial pump or something, they would probably port / rewrite all of our code that way. But short of that, I don't think it'd be all that worthwhile.
Michael Spradling
@M1Sports20
Jul 17 2017 02:07
@scottleibrand I am very intreasted and want to help out. I am not at the right state as I am just learning the system in general. I hope to run with this for a bit and then start looking at the source. I also do not know javascript. My background is embedded. So c,c++ and assembly. This seems like such a great match for an embedded solution. Although, I see its not worth porting for people. It's better to have quick development
Scott Leibrand
@scottleibrand
Jul 17 2017 02:07
@mhaeberli @jmcrawford I would reproduce your issue and then start drilling down into the subcomponents, until you reproduce the problem at a lower level, and then keep drilling down.
Martin Haeberli
@mhaeberli
Jul 17 2017 02:08
@scottleibrand thx - just thought it might be something obvious (like dev mis-install)
Scott Leibrand
@scottleibrand
Jul 17 2017 02:08
@M1Sports20 there are a few people that have started porting things to various languages, but no one has yet completed the job. @tmecklem is probably furthest along, but he's using some sort of functional programming language, called nerves or something.
@mhaeberli I don't remember seeing enough relevant info for anything to jump out at me.
Martin Haeberli
@mhaeberli
Jul 17 2017 02:09
k thx
mkericson
@mkericson
Jul 17 2017 02:10
@danamlewis Thanks. I'm traveling again this week and will remove that setting on the rig. It showed that the rig was connected on my phone though - could it have gotten stuck on the wifi then still automatically connected to BT?
Dana Lewis
@danamlewis
Jul 17 2017 02:11
@mkericson yep
Scott Leibrand
@scottleibrand
Jul 17 2017 02:11
Possibly. Depends on what its routing table looked like. Hard to say without at least looking at logs, and most likely consoling in to poke around.
For some reason no one wants to really troubleshoot connectivity issues when they're out and about trying to live their life. ;-)
Tim Mecklem
@tmecklem
Jul 17 2017 02:12
I’m using Elixir (Nerves is the project that takes an Elixir application, sets it on top of a hardware-optimized buildroot linux os, and gets it up and running from power on in about 10 seconds depending on hardware)
There’s a lot of interesting interop between Elixir and C using ports (the UART library is written in C, for instance)
I thought @ecc1 was doing some golang and maybe C work. There’s also the Swift code for Loop, and @ps2 did some Ruby code that talks pump comms too. Lots of interesting work in various languages.
Michael Spradling
@M1Sports20
Jul 17 2017 02:15
OK, just curious need to catch up on the state of this project and others. I was thinking something like a simple cortex m processor. Something that didn't even run linux so it could sleep. But, I guess you need an OS to help managage the radio's and network stacks. Just kindof thinking out loud
Glad the community exists, wish I found out about it sooner
Dana Lewis
@danamlewis
Jul 17 2017 02:16
:+1:
PopcornPam
@PopcornPam_twitter
Jul 17 2017 02:17
So I am trying to completely erase my first edison that I flashed when I started (and has all sorts of error messages), and thought that re-flashing jubilinux would reset it. But it still has the same hostname and password (the one I had set up), and still has the same error messages. Is there a different command to wipe it?
mkericson
@mkericson
Jul 17 2017 02:20
@scottleibrand Fair enough. I'm sure I'll get to the point that I can know where to look and what to, without searching through the docs to figure this all out. Jazzed I got this far.
Tim Mecklem
@tmecklem
Jul 17 2017 02:21
Since Nerves’ approach is to basically treat the OS like a commodity, it assumes control at the application level of all the interesting hardware interactions. My plan is to shut down WiFi when it’s not needed and save power. I think I can get something pretty close to hardware sleep, but that’s a mid-term goal.
RedCyclist1
@RedCyclist1
Jul 17 2017 02:24
Ever since updating to 5.1, the rig is going into waiting mode or not enacted multiple times per day. Where would I start to figure out what is going wrong?
Dana Lewis
@danamlewis
Jul 17 2017 02:26
@RedCyclist1 start looking at the full logs
RedCyclist1
@RedCyclist1
Jul 17 2017 02:28
@danamlewis What should I look for?
I see a lot of -98, -99 bit I'm sitting right next to the rig.
Scott Leibrand
@scottleibrand
Jul 17 2017 02:31
@tmecklem @M1Sports20 yeah, the @ecc1 golang stuff seems really interesting. I haven't taken the time to learn go yet though. we do use quite a lot of @ps2's stuff in OpenAPS, but most of the Ruby stuff he (or someone?) ported to Python.
@RedCyclist1 do you have another rig to compare mmtune results with?
RedCyclist1
@RedCyclist1
Jul 17 2017 02:32
@scottleibrand Yes, looking at both. Of course now they are both enacted
Most ly -99 on both rigs
Michael Spradling
@M1Sports20
Jul 17 2017 02:58
Reading docs, oref1 is very intreasting. I have to hold myself back and take my time with oref0. Even excited about autotuning some day
Katie Aldridge
@kcrcgm
Jul 17 2017 03:16
@scottleibrand Looked at the testing steps for debugging xdrip, but unfortunately I can't test them... I guess until Tuesday. I'm visiting my parents' house and can't get their wifi to work with my rig for the life of me. Sorry to have to delay that. I'll keep trying to get the wifi to work, but if I can't I'll have to wait until Tuesday afternoon to work on it when I get home.
Matt Pressnall
@logichammer
Jul 17 2017 03:22
@Kdisimone / @stefanakerblom --
rsilvers129
@rsilvers129
Jul 17 2017 03:22
I was orangizing old boxes and found that I had a new sealed in box Carelink. Can I plug that into a PC or Pi and make another rig?
Matt Pressnall
@logichammer
Jul 17 2017 03:23
Got Pancreabble working on a RPI and updated Mark's documentation here to reflect how to get it working:
https://github.com/mddub/pancreabble
Will be working on getting it working on an Edison later
Dana Lewis
@danamlewis
Jul 17 2017 03:25
@rsilvers129 yes but range will be dismal
rsilvers129
@rsilvers129
Jul 17 2017 03:27
Probably no point then since I won't be wearing it.
Dana Lewis
@danamlewis
Jul 17 2017 03:44
Yea. More frustration than it's worth IMO
katie disimone
@Kdisimone
Jul 17 2017 04:04
@logichammer great…I’d love to see how the edison works out. I had a devil of a time with the instructions.
systemctl status bluetooth.service # it's inactive
sudo systemctl start bluetooth.service
systemctl status bluetooth.service # it's active
these bluetooth.service lines gave errors
Karim Azzaz
@moimemecloud
Jul 17 2017 11:23
hello everybody, do you have a problem to update your NS version to 10.0 dev ...i am running under 9.0 ...i made all the necessary updates on my Github and nothing changed when I deploy in Heroku ?! Thank you for help
fidoman
@efidoman
Jul 17 2017 11:46
Anyone know of a good source for Medtronic Enlite Sensors. I bought them on ebay before for around $75 per box of 5. Trying craigslist nationwide search as well, but supply is limited there also. I have a just couple of months left before I run out.
Diabetic_Dude
@diabetic_dude_twitter
Jul 17 2017 12:57
have you checked the payit forward group on facebook???? not sure this link will work but try it https://www.facebook.com/groups/214170292108742/?ref=bookmarks
@ericfeibelman you can also check amazon, most of the time med items are over priced but on rare occasions they have a deal
Stephen Chandler
@stephenc95
Jul 17 2017 13:45
I just reinstalled jubilinux and openaps on my edison, and now the openaps and pump pills on my nightscout website aren't showing any data like last time the loop completed, units left, battery level. Any idea why?
Andy Sharrow
@dramageek
Jul 17 2017 13:45

@danimaniac @bdr1177 From yesterday: xDripAPS will still download from nightscout when available. I used the standard setup script to do mine. You'll need to setup xDrip+ (Android) to also upload to nightscout for when your bluetooth link is down, but everything runs as @scottleibrand first expected.

Home/work (no tethering): xDrip+ --> Nightscout, Rig <--> Nightscout
Out & about town (tethering, but still internet): xDrip+ --> Nightscout AND Rig, Rig -->Nightscout
Offline (tethering, but no cell service): xDrip+ -->Rig. Nightscout gets uploaded after the rig finds internet again.

This is on 5.0 dev, though. Sounds like someone found a problem with xDrip overwriting good values, though?

woodtrevor
@woodtrevor
Jul 17 2017 14:06
@stephenc95 I just had the same problem but not related to reinstall. It was because my database was full (heroku/mlab). I don't have the link handy but there is a writeup in the dev version of the docs about nightscout connectivity issues that describes how to check and fix it.
Michael Spradling
@M1Sports20
Jul 17 2017 14:16
It would be neat for an algo that used two pumps. One that had glucagon in it. I know we are far off from a dual resvorior pump, but this would be intreasting. I don't know much about glucagon yet, for example how long can it be kept in a pump at room temp
interesting, I don't know why I keep putting that a in there
woodtrevor
@woodtrevor
Jul 17 2017 14:27
@ericfeibelman I have 2 boxes +2 individual sensors that I do not intend to use. They are expired, 2014/2015, so I don't know how useful they would be. But you can have them if you want them. DM/PM me if so.
Stephen Chandler
@stephenc95
Jul 17 2017 14:28
@woodtrevor I just read that section in the docs and checked, it isnt because my mlab database was full. They were both well under the 500MB limit
woodtrevor
@woodtrevor
Jul 17 2017 14:38
Did you check for future treatments as well? That was the other thing Dana suggested when I was working on this.
Stephen Chandler
@stephenc95
Jul 17 2017 14:42
Yes I checked future treatments too. Just to clarify, my nightscout website is correctly displaying cgm data and basal, but the openaps pill says unkown and the pump pill is empty even though the loop has been running for several hours.
woodtrevor
@woodtrevor
Jul 17 2017 14:45
Yeah, I had the same symptoms. I'm not sure what else to check. You could try manually running the reports and running ns-upload to see if everything appears to be working on the rig.
Stephen Chandler
@stephenc95
Jul 17 2017 14:48
When I ran ns-upload I got "Input file entries.json does not exist."
live4sw
@live4sw
Jul 17 2017 15:07
Quick Q - I see that the new install procedure in the docs has been significantly revamped (the whole "copy and paste this entire webpage" thing). I'm running 0.4, can I simply follow the instructions under "Update your rig in the future" on my existing setup to upgrade to 0.5.1 rather than go through the whole fresh install procedure?
Scott Leibrand
@scottleibrand
Jul 17 2017 15:57
Yes, that should be what the docs say to do. If that's unclear, PRs appreciated.
live4sw
@live4sw
Jul 17 2017 16:01
Thanks - definitely makes clear in the docs that that's how to update, I just wasn't 100% sure if that applied to pre-0.5 installs as well. It's probably clear enough/I was probably overthinking it.
Dirk Gastaldo
@dirkgastaldo
Jul 17 2017 16:57
Good morning. I have two OpenAPS Edison/Explorer rigs. I couldn't get the backup to switch between BT tethering and WiFi. It was suggested that I install the dev branch. So I have the dev branch on one rig and the version immediately before the current 0.5.1 master. Can I leave the dev branch on the one rig when I install 0.5.1 on the other rig, or should I install 0.5.1 on both rigs?
Scott Leibrand
@scottleibrand
Jul 17 2017 16:59
It's fine to have different versions unless you want to run SMB on one of them. If you're going to turn on SMB, all rigs should be on 0.5.x first.
Dirk Gastaldo
@dirkgastaldo
Jul 17 2017 17:01
@scottleibrand Thanks, Scott, I'm not running SMB, yet. I'll install 0.5.1 on one rig tonight.
woodtrevor
@woodtrevor
Jul 17 2017 17:01
@stephenc95 It gives that message because it needs to know your nightscout URL and key. Those are defined in your crontab. When you run it manually in the console they are not defined, so you have to pass the literal values to ns-upload on the command line in place of the environment variables you see used in crontab.
Dirk Gastaldo
@dirkgastaldo
Jul 17 2017 17:12
My rig is not able to connect to my work WiFi today. It's very possible my work WiFi is spotty. I turned BT tethering on and according to my network log my rig is tethered to my phone with an IP of 172.x.x.x. But the rig is not looping. It appears to be in this endless circle (screenshot of log attached). Any thoughts what's going on?
blob
live4sw
@live4sw
Jul 17 2017 17:15
How physically close to the rig are you? I often get that when I have connectivity issues.
I still often get the same error with my edison rigs since I think the issue is that it is trying to pull your full pumphistory, which takes a while and takes a lot more than simply running a loop. Once it has refreshed your pumphistory, it's much more likely to be successful on the next loop.
Dirk Gastaldo
@dirkgastaldo
Jul 17 2017 17:17
@live4sw Thanks, Andrew. The rig is about 2.5 feet from my pump, and next to my phone.
katie disimone
@Kdisimone
Jul 17 2017 17:18
and you can manually pull pumphistory to get you out of that cycle ASSUMING YOUR PUMP TUNE IS GOOD
live4sw
@live4sw
Jul 17 2017 17:18
I'd check as @Kdisimone suggests, if your tuning is decent I'd try a reboot and/or waiting longer and/or manual pull as she mentions. I've commonly had the same error you're getting.
Andy Sharrow
@dramageek
Jul 17 2017 17:19
@stephenc95 @woodtrevor It could still be your heroku site. Mine's doing the same thing, it has been on and off for a few weeks. Size is only at 358mb, but size on disk is at 496mb.
It'll continue to show the basals since that goes into the treatments table, not the devicestatus one. Compacting the database helps, so that makes me think it's the database rather than the rig.
Dirk Gastaldo
@dirkgastaldo
Jul 17 2017 17:19
@Kdisimone @live4sw Thanks, Katie and Andrew, will do.
katie disimone
@Kdisimone
Jul 17 2017 17:20
cd ~/myopenaps && sudo service cron stop && killall -g openaps ; killall -g oref0-pump-loop; openaps refresh-old-pumphistory && sudo service cron start
Dirk Gastaldo
@dirkgastaldo
Jul 17 2017 17:24
@Kdisimone @live4sw I'll be darned. I don't know if putting the rig in my pocket on top of my pump did it (I was working and not paying attention to the rig), but it's looping again.
blob
Andy Sharrow
@dramageek
Jul 17 2017 17:48
@danamlewis @scottleibrand Maybe it's just me seeing it more, but it does seem like more people are hitting the limit in Heroku. I know Dana mentioned that we needed to update the data uploader to add data rather than replace. Where is that project? I probably can't help a whole lot, but I'll take a look.
Shawn
@dyjaks
Jul 17 2017 18:00
@applehat: Are you still looking for a contour next link 2.4? I have FSA money I'll have to burn so might try and gable ordering one and hoping it's the right version.
Rachel Sandlain
@audiefile
Jul 17 2017 18:05
So I'm having an issue with my openaps pill updating too. I do get treatments. This rig is new. The site is old and was working. The data base isn't full bit I still compacted. No luck. I think I traced the issue to the Edison not being able to check the battery. I'm getting a segmentation fault when I run the command manually. Does anyone know what would cause that?
Scott Leibrand
@scottleibrand
Jul 17 2017 18:09
@dramageek the OH uploader is at https://github.com/NightscoutFoundation/dataxfer - @danamlewis is also going to ask @madprime for a pointer to where that would need to be changed (in that repo or on the OpenHumans back end)
katie disimone
@Kdisimone
Jul 17 2017 18:10
@dramageek you don't have to add data space necessarily.@danamlewis is just asking that before you delete old data from mlab that you consider doing a donation (upload) of the data before deleting it. There's a link in the mlab cleaning section of docs to remind you of that.
Scott Leibrand
@scottleibrand
Jul 17 2017 18:11
@Kdisimone the question @dramageek is asking about is what needs to be done with the OH uploader to make it append data to OH instead of overwriting what's there (which kinda defeats the purpose of being able to upload then delete the mlab copy)
Cameron Chunn
@applehat
Jul 17 2017 18:22
@dyjaks yep, still trying to reverse that stuff =)
Shawn
@dyjaks
Jul 17 2017 18:24
Alright, I'll gamble the order and bug my endo
Rachel Sandlain
@audiefile
Jul 17 2017 18:31
Why would the Edison give a segmentation fault when checking the battery?
Tim Street
@tim2000s
Jul 17 2017 18:44

No, it's not designed to do this - it hasn't got an upload function. If any uploading happens it's from xDrip or the ns-upload functions that opens has.

@colinlennon @tim2000s @applehat I think you guys use xDripAPS offline rigs. Does xDripAPS ever retrieve data from an online NS instance? I was thinking xDripAPS only UPLOADS data to NS if and when the rig ever gains connectivity.

Rachel Sandlain
@audiefile
Jul 17 2017 18:45
Definitely www
Tim Street
@tim2000s
Jul 17 2017 18:47
@tepidjuice - your issue seems to be the REST API from drip to the Database. I guess the first place you need to start is looking at the receiver code on the rig and then whether it writes to the database. @colinlennon is really your man for the ins and outs of how it works.
@scottleibrand I asked the same question. I think @danamlewis said she was going to look at enhancing the tool.
Dana Lewis
@danamlewis
Jul 17 2017 18:51
Everyone asks the same questions, no one else has poked at the code ;) so yes I am talking to Madeleine to see if there are any short cuts since she essentially wrote the initial version and is more familiar with both sides of the code and upload process
It would also be helpful for those experiencing the no-pill-display issue to poke around some more and find the root cause
I am not experiencing that so can't troubleshoot that piece if it
@audiefile sounds like she may have an idea to investigate if @dramageek @tim2000s anyone wants to jump in and help out their
Tim Street
@tim2000s
Jul 17 2017 18:56
@audiefile - Which version of Jubilinux are you using? I saw that issue on the 0.2.0 version
(But I also have that version uploading to my Nightscout instance quite happily with no pill issues).
Josée
@JoseeT1Bionique
Jul 17 2017 19:02

Help please :)
I keep getting the message «NOT ENACTED» in the Pill, even though there seems to be an analyses and a recommandation to adjust basal. It doens't feel like the Loop is doing the change.
Is it?
How can I make it «ENACTED»?
Any thoughts?

Thanks in advance for your guidance & help.

Dana Lewis
@danamlewis
Jul 17 2017 19:04
@jodivers - check your logs first (and your pump) to ensure you are indeed looping before troubleshooting it not displaying in NS
Paste your logs if you're not actually looping yet in them
Dana Lewis
@danamlewis
Jul 17 2017 19:11
You have your temp basal type set as %. Set as u/hr (absolute) and it will enact.
Rachel Sandlain
@audiefile
Jul 17 2017 19:42
@tim2000s I am using 0.2.0
I don't have an issue rolling back, it just needs to be in the docs which version to download. It was super
Rachel Sandlain
@audiefile
Jul 17 2017 19:50
Challenging to track down because the logs didn't show any error
Sacha M
@coolestkidsever
Jul 17 2017 19:53
So sorry if this is an obvious question, but I've read the docs and can't work it out. The autotune output/visualization - how/where do I find that? Thanks!
cameronrenwick
@cameronrenwick
Jul 17 2017 20:02
so if you type in this command to your rig oref0-autotune --dir=~/myopenaps --ns-host=https://<your host name..herokuapp.com --start-date=2017-06-25 and put the start date you'd like once that has run the results will be at the bottom of your terminal screen. If it's the first time you've run this, use a day or so ago (not a long time in the past) just to see how things work.
Sacha M
@coolestkidsever
Jul 17 2017 20:03
Ok great, will do that! Thanks :g
:smile:
cameronrenwick
@cameronrenwick
Jul 17 2017 20:03
np
Dana Lewis
@danamlewis
Jul 17 2017 20:14
Please PR the docs
tepidjuice
@tepidjuice
Jul 17 2017 20:43
@tim2000s ok. I've reflashed and tomorrow night will have access to wifi so if I still have the same issue after reinstalling openaps I'll ask @colinlennon Thanks for your help.
acerrone
@acerrone
Jul 17 2017 20:51
I recently visited the Endo with my son and they made some changes in my sons pump. I believe i made the correct changes in the profile editor in Nightscout. The loop appears to be working still but the PUMP is showing up as device undefined and OPENaps unknown.
Dana Lewis
@danamlewis
Jul 17 2017 20:53
@acerrone that is unrelated. (btw, openaps doesn’t pull anything from the NS profile)
check your mlab size. and if your mlab size is fine, you may be able to help us troubleshoot the root cause of why this is happening more frequently for some people. http://openaps.readthedocs.io/en/latest/docs/Troubleshooting/Rig-NS-communications-troubleshooting.html#mlab-maintenance
acerrone
@acerrone
Jul 17 2017 20:55
ok, the only other change I made was max bolus was set a 2. I moved that to 10 because it was limiting the loop to bring him down when high.
Dana Lewis
@danamlewis
Jul 17 2017 20:56
max bolus should not impact openaps at all. Are you confusing that with maxBasal (set on the pump), or maxIOB (the absolute amount of units of insulin OpenAPS can dose up to in total, set in preferences)?
acerrone
@acerrone
Jul 17 2017 20:56
maxbasal on the pump
i had it set on 2 on the pump and could never figure out why it would never correct over 2
Dana Lewis
@danamlewis
Jul 17 2017 20:58
10 seems like a huge jump, but also remember OpenAPS will be capped by the LOWEST of maxBasal, max daily multiplier, or current basal safety multiplier. http://openaps.readthedocs.io/en/latest/docs/While%20You%20Wait%20For%20Gear/preferences-and-safety-settings.html#commonly-adjusted-preferences It will say in the logs what is limiting any basal calculations at any point in time.
acerrone
@acerrone
Jul 17 2017 21:00
ok, i will go back and review those. mlab size is 373.58mb and 496.00mb size on disc
Paul Dickens
@thebookins
Jul 17 2017 21:21
Hi all, just wondering what's the thinking behind the change in v5.1 to ignore carbs entered through the pump with no bolus? We often scroll the insulin down to zero to log carb corrections cos it can be quicker than using NS.
Dana Lewis
@danamlewis
Jul 17 2017 21:22
@thebookins because some models of the pumps will enter carbs even if you exit out of the bolus wizard halfway, so it was causing (huge) duplicate carb entries for some folks
acerrone
@acerrone
Jul 17 2017 21:22
Thanks @danamlewis cleaning up mlab solved the issue
Dana Lewis
@danamlewis
Jul 17 2017 21:22
recommended behavior is carb entry with .1 bolus if you want those carbs to register via the bolus wizard.
@acerrone :+1:
PieterGit
@PieterGit
Jul 17 2017 22:35
@danamlewis The docs don't suggest which collection is best to clean: entries , treatments , devicestatus . I think recommending cleaning the devicestatus will still keep (most/all) of your nightscout reports working. Or is there any report known that uses the devicestatus collection?
katie disimone
@Kdisimone
Jul 17 2017 22:50
@PieterGit yes devicestatus is the best one to clean out...but it also gives @danamlewis the most angst 🤣 (if they don't upload to open humans first). I clean that one out so that my reports to Endo are still available.
PieterGit
@PieterGit
Jul 17 2017 22:53
@Kdisimone thanks. I have a backup of the whole database available in a offline nightscout instance. I saved the commands I used to export the SAAS database and import it to a local nightscout. Will probably PR it, but not high on my list.
I think for open human,s entries and treatments are the most valuable collections for most research projects
Dana Lewis
@danamlewis
Jul 17 2017 22:56
devicestatus has all the goodies about what OpenAPS has done
so it depends on if the research is pure BG focused (outcomes), or research looking at the nuts and bolts of OpenAPS decision making.
LilDucky
@LilDucky
Jul 17 2017 23:29
Hi all, I have now managed to source the bits to get a loop going. Is there a way to simulate the BG sensor inputs so I can test the rest of the rig before deploying it?
Just want to make sure that it all works before ordering the Edison.
Dana Lewis
@danamlewis
Jul 17 2017 23:36
What do you mean, test the rig before deploying off it doesn't include an edison?
LilDucky
@LilDucky
Jul 17 2017 23:36
I have a cobbled together Pi and laptop running openaps.
Dana Lewis
@danamlewis
Jul 17 2017 23:37
Ah. Radio stick?
LilDucky
@LilDucky
Jul 17 2017 23:37
Crappy old carelink
Pump is 754 and I have manually tested most of the orref0 functions - good so far
But, alas no CGM. It is a couple of weeks off.
Dana Lewis
@danamlewis
Jul 17 2017 23:38
What CGM is the person wearing? If it's already into NS, you can just feed it NS no differently than how you'll do it when rig is live
Ah
LilDucky
@LilDucky
Jul 17 2017 23:39
Unluckily, not yet. He is on 640G and at work. I am off work after surgery and using the time to get this going
Also, will NS display treatments etc if no CGM data?
Dana Lewis
@danamlewis
Jul 17 2017 23:39
No
It doesn't work without CGM data unfortunately
It =NS
LilDucky
@LilDucky
Jul 17 2017 23:40
That explains it. Any way to sim the data with drip type of feed from pc?
Drip
XDRIP. Damn iPad autocorrect
Paul Dickens
@thebookins
Jul 17 2017 23:45
@danamlewis Thanks for the info re Bolus Wizard with no carbs attached. We'll make sure we adhere to the 0.1 bolus in future. I'm guessing there's no other way to detect the 'bolus wizard not completed' event on those particular pump models?
Dana Lewis
@danamlewis
Jul 17 2017 23:47
@thebookins the only solution we could find was to ignore carb entries sans bolus.
So more poking at that welcome, but that's currently the best we could come up with
@LilDucky I'm not familiar enough with xdrip to know if it's possible to fake a feed in xdrip
LilDucky
@LilDucky
Jul 17 2017 23:49
Thanks Dana. I am not good enough in Linux etc to create something to poke values in.
Also, am I correct to assume mmtune is only for CC1110 based radios like the TI or explorer?
Dana Lewis
@danamlewis
Jul 17 2017 23:54
Yep
LilDucky
@LilDucky
Jul 17 2017 23:54
Can it be disabled? It is waiting forever in the loop
Dana Lewis
@danamlewis
Jul 17 2017 23:57
Yes. Rerun the script and pay attention to where it asks if you have an explorer board (no) and don't say yes to mmeowlink
LilDucky
@LilDucky
Jul 17 2017 23:58
I did that and it said, "ok carelink" or similar
Dana Lewis
@danamlewis
Jul 17 2017 23:58
That should work, but granted we aren't testing on carelink as it's not a main supported setup, so may need to do something else if mmtune still tries after that
K. Cat your runagain, X out the URL and API secret and such?
LilDucky
@LilDucky
Jul 17 2017 23:58
Ok.