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

15th
Mar 2017
Terri Lyman
@tatigger
Mar 15 2017 00:02
Any other ideas about what might be going on here? @danamlewis
Oh, Maybe the heroku issue. But getting my NS data ok to the website, just not to the OpenAPS
Dana Lewis
@danamlewis
Mar 15 2017 00:04
@tatigger did this just start happening today?
Terri Lyman
@tatigger
Mar 15 2017 00:04
Yesteray
as fas as I know right now @danamlewis
It leaves big gaps in OpenAPS utilization, and the Temp Rates time out instead of being updated. It is also messing with the Autosense, saying I don't have enough data for it, when I can see it and it should be able to as well.
The rig is also hotter than usual, LOL....
Terri Lyman
@tatigger
Mar 15 2017 00:19
Going to try one more thing, setup the other one with dexcom g4 instead of xdrip
Maybe that has something to do with it?
parenthetic
@parenthetic
Mar 15 2017 00:20
@danamlewis Just went and did a fresh reinstall from the start of phase 2 (didn't try running the oref0-setup.sh script, though). And I'm back in business! Thanks for your time and effort! Very much appreciated.
Dana Lewis
@danamlewis
Mar 15 2017 00:22
@parenthetic phew! Ok. Let us know if you see that error again, though, and we'll do some more detailed troubleshooting.
@tatigger worth trying for sure.
KS615
@KS615
Mar 15 2017 00:29
@danamlewis I'm still having trouble with the oref0-setup, I went back and re-entered my network info and successfully got the network connected (at least I thought so!) and am now getting an error "sudo-command not found" everytime I enter the dependency link
Dana Lewis
@danamlewis
Mar 15 2017 00:30
Can you paste both what you ran and the error output so can see in full?
KS615
@KS615
Mar 15 2017 00:31
root@kris-open-aps:~# \curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
bash: line 3: sudo: command not found
bash: line 4: sudo: command not found
I can also paste more, just let me know if you need more
Dana Lewis
@danamlewis
Mar 15 2017 00:32
Is there a stray character in front of the curl? Try again without that?
KS615
@KS615
Mar 15 2017 00:36
root@kris-open-aps:~# curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
bash: line 3: sudo: command not found
bash: line 4: sudo: command not found
root@kris-open-aps:~#
seems to be the same error
I ran it 15 times
Dana Lewis
@danamlewis
Mar 15 2017 00:39
K you missed a step then earlier in the docs
Scott Leibrand
@scottleibrand
Mar 15 2017 00:40
Dana Lewis
@danamlewis
Mar 15 2017 00:40
^
KS615
@KS615
Mar 15 2017 00:40
got it, thank you, I'll re-do that section
Dana Lewis
@danamlewis
Mar 15 2017 00:42
:+1:
KS615
@KS615
Mar 15 2017 00:45
I just want to be sure I'm doing this right (it will be the fourth time :) ), I ran the first command and lots of stuff came up, it ended with this
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I see that it says, 0 newly installed and has each time I've run it, does that indicate something isn't working?
Scott Leibrand
@scottleibrand
Mar 15 2017 00:48
try sudo -l to see if sudo is installed
KS615
@KS615
Mar 15 2017 00:49
nope, it says, sudo-command not found
Scott Leibrand
@scottleibrand
Mar 15 2017 00:50
are you online?
ping google.com
KS615
@KS615
Mar 15 2017 00:51
when i do that, a lot of writing comes up and ended with: --- google.com ping statistics ---
27 packets transmitted, 26 received, 3% packet loss, time 26054ms
rtt min/avg/max/mdev = 58.466/103.850/120.737/13.589 ms
Terri Lyman
@tatigger
Mar 15 2017 00:52
@danamlewis it looks like W/OUT Xdrip as cgm and W/OUT BT tether capability, the system works. Given that, what is the best way to get glucose data to the rig for off-line running
KS615
@KS615
Mar 15 2017 00:52
not sure if that indicates i'm online, but i did go back in and re-enter my wifi network and it seemed to confirm using "iwgetid -r"
Scott Leibrand
@scottleibrand
Mar 15 2017 00:53
@KS615 ok, then that's working. what does apt-get install -y sudo show?
KS615
@KS615
Mar 15 2017 00:54
root@kris-open-aps:~# apt-get install -y sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 860 kB of archives.
After this operation, 2,488 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian/ jessie/main sudo i386 1.8.10p3-1+deb8u3 [860 kB]
Fetched 860 kB in 1s (818 kB/s)
Selecting previously unselected package sudo.
(Reading database ... 28398 files and directories currently installed.)
Preparing to unpack .../sudo_1.8.10p3-1+deb8u3_i386.deb ...
Unpacking sudo (1.8.10p3-1+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u6) ...
[ 2690.474980] systemd-sysv-generator[25626]: Ignoring creation of an alias galileod.service for itself
Setting up sudo (1.8.10p3-1+deb8u3) ...
Processing triggers for systemd (215-17+deb8u6) ...
[ 2691.511099] systemd-sysv-generator[25645]: Ignoring creation of an alias galileod.service for itself
This seems to show, "1 newly installed"
Scott Leibrand
@scottleibrand
Mar 15 2017 00:55
ok, so that's what should've happened when you did the full apt-get install -y sudo strace tcpdump screen acpid vim python-pip locate command. try that one again and see if it complains this time?
and if it doesn't complain, continue on from there
KS615
@KS615
Mar 15 2017 00:58
ok, did that and the end of the code showed: Setting up python-requests (2.4.3-6) ...
Setting up python-setuptools (5.5.1-1) ...
Setting up python-pip (1.5.6-5) ...
Setting up python-pyasn1 (0.1.7-1) ...
Setting up python-wheel (0.24.0-1) ...
Setting up strace (4.9-2) ...
Setting up tcpdump (4.9.0-1~deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for systemd (215-17+deb8u6) ...
[ 2930.737601] systemd-sysv-generator[28956]: Ignoring creation of an alias galileod.service for itself
Processing triggers for python-support (1.0.15) ...
and then back to my login: root@kris-open-aps:~#
so i think it worked and will be moving onto the next step-thank you!!!
Scott Leibrand
@scottleibrand
Mar 15 2017 01:01
:+1:
Dana Lewis
@danamlewis
Mar 15 2017 01:06
@tatigger have you tried bt tethering with the G4?
KS615
@KS615
Mar 15 2017 01:11
@danamlewis yay! openaps installed
openaps 0.1.5
thank you!
Dana Lewis
@danamlewis
Mar 15 2017 01:11
Yay! @KS615 :smile: on to the fun stuff now
Terri Lyman
@tatigger
Mar 15 2017 01:20
@danamlewis not yet.....but I leave at 6AM! LOL...I thought I had this working several days ago. I will try that next, time permitting. Darnit
Dana Lewis
@danamlewis
Mar 15 2017 01:21
Ok. So if you know G4 works, I'd do the plug receiver and second battery in route.
Terri Lyman
@tatigger
Mar 15 2017 01:22
Ok. That is what I will do : ) Have plenty of extra battery. It is the drive through W VA on Thursday, weather permitting, that I will need offline. Because there aren't even Radio Stations! LOL @danamlewis
Dana Lewis
@danamlewis
Mar 15 2017 01:23
:+1:
KS615
@KS615
Mar 15 2017 02:35
@danamlewis My pump is connected to heroku and the edison and its "changing" temp basals right now! (Not connected to me). THANK YOU-so excited and thankful for your help and for your innovation!
Dana Lewis
@danamlewis
Mar 15 2017 02:36
:confetti_ball: congrats!
fjungman
@fjungman
Mar 15 2017 02:36
:+1:
katie disimone
@Kdisimone
Mar 15 2017 03:04
If I were to do a runagain and not remove existing cron, would that cause a problem? (assuming I hadn’t done any edits to the oref0-runagain.sh) @danamlewis
Dana Lewis
@danamlewis
Mar 15 2017 03:28
probably not if you haven’t made any changes
gregtcm
@gregtcm
Mar 15 2017 03:41
I'm getting the following message in my loop log:
Optional feature Auto Sensitivity enabled. Could not find specified auto-sens: settings/autosens.json
The file exists, but is empty. I've tried deleting it, but it gets recreated (empty) and the above message shows up again. Do I need to repopulate the file, and if so is there a sample? Will running the setup again fix this? Any other suggestions?
katie disimone
@Kdisimone
Mar 15 2017 03:56
@danamlewis thanks.
Scott Leibrand
@scottleibrand
Mar 15 2017 04:10
@gregtcm do you have autosens enabled in your oref0-setup?
If so, try running the report manually: openaps report invoke settings/autosens.json from your myopenaps directory.
gregtcm
@gregtcm
Mar 15 2017 04:30
Thanks @scottleibrand . I ended up running the setup script and just checked the log and I'm not getting the message anymore.
I'm just running your suggestion anyway and will keep that in my "toolbox". Thanks.
Oh, I amost forgot. When running my setup script, it failed because of not enough disk space. I cleaned that up. So maybe that was the root cause.
katie disimone
@Kdisimone
Mar 15 2017 04:34
@gregtcm @scottleibrand That reminds me…I don’t think I see anything in the docs explaining disk space and how to deal with it, how to check, etc. Any tips for a new user on that?
Scott Leibrand
@scottleibrand
Mar 15 2017 04:36
/tmp is cleared every reboot. oref0-reset-git should handle most other cases automatically, and the new version will be nicer to /tmp.
gregtcm
@gregtcm
Mar 15 2017 04:36
@Kdisimone Here are a couple commands that I saved from watching this conversation:
These check disk usage ... not sure the difference between the two:
du -sh * | grep [0-9][0-9][0-9]M
du -xh -d 3 | egrep "[0-9][0-9][0-9]M"
katie disimone
@Kdisimone
Mar 15 2017 04:36
:+1:
Scott Leibrand
@scottleibrand
Mar 15 2017 04:37
The latter is better.
gregtcm
@gregtcm
Mar 15 2017 04:37
These should be run from the root folder '/'
Scott Leibrand
@scottleibrand
Mar 15 2017 04:37
Or a subdirectory you want to drill down into.
gregtcm
@gregtcm
Mar 15 2017 04:37
For me, my tmp folder was pretty full, so I cleaned that out.
Scott Leibrand
@scottleibrand
Mar 15 2017 04:37
3 is a depth flag
Dana Lewis
@danamlewis
Mar 15 2017 04:38
@Kdisimone can you tell who will be reviewing this PR? ;p
Scott Leibrand
@scottleibrand
Mar 15 2017 04:38
The three 0-9's match on any dir 100M or larger
gregtcm
@gregtcm
Mar 15 2017 04:38
:)
katie disimone
@Kdisimone
Mar 15 2017 04:38
I can tell you who WON’T be submitting it. waves hand in air
Dana Lewis
@danamlewis
Mar 15 2017 04:39
never say never ;)
Scott Leibrand
@scottleibrand
Mar 15 2017 04:39
You know how this works if you do: I feel obligated to add all the stuff I didn't tell you. ;-)
gregtcm
@gregtcm
Mar 15 2017 04:39
I ran rm -r git-1* from my tmp folder. @scottleibrand you might have a better suggestion for that.
katie disimone
@Kdisimone
Mar 15 2017 04:39
I’m not at the level of understanding yet for PR. But maybe one day
Scott Leibrand
@scottleibrand
Mar 15 2017 04:39
That is more or less what the dev version of oref0-reset-git will do, one at a time.
(Once I get that PR merged)
gregtcm
@gregtcm
Mar 15 2017 04:40
Will that be part of the setup script?
scottleibrand @scottleibrand merges the PRs to dev
Scott Leibrand
@scottleibrand
Mar 15 2017 04:43
ok, with that, dev will automatically manage disk space much better now than master does, as soon as you run oref0-setup and get oref0-reset-git into cron
dev has some major changes now, so please test it on a dev rig, not your main one
katie disimone
@Kdisimone
Mar 15 2017 04:45
Repeated problems with getting a new loop started. I’ve tried removing myopenaps and oref0 and reinstalling fresh twice now. What am I missing?
Starting pump-loop at Tue Mar 14 21:41:02 PDT 2017:
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"916.444", 5, -80  Listening: ..................No pump comms detected from other rigs
Profile less than 60m old
temp_basal.json more than 5m old
Temp refreshed
Could not parse input data:  { [Error: Cannot find module '/root/myopenaps/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
cat: enact/enacted.json: No such file or directory
pumphistory more than 5m old: Refreshed pumphistory
Could not parse input data:  { [Error: Cannot find module '/root/myopenaps/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
cat: enact/enacted.json: No such file or directory
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Tue Mar 14 21:43:38 PDT 2017
Dana Lewis
@danamlewis
Mar 15 2017 04:46
now it’s saying can’t find glucose? weird. (previous error was iob, right?)
gregtcm
@gregtcm
Mar 15 2017 04:46
Thank's Scott. And for the du explainations, too.
katie disimone
@Kdisimone
Mar 15 2017 04:47
Yes…@danamlewis
Wait…maybe it worked through this issue. Sigh
just got one clean run
Starting pump-loop at Tue Mar 14 21:46:10 PDT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
Profile less than 60m old
temp_basal.json less than 5m old
Pumphistory less than 5m old
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Tue Mar 14 21:46:46 PDT 2017
Dana Lewis
@danamlewis
Mar 15 2017 04:48
well there you go. ITB magic fixed it.
katie disimone
@Kdisimone
Mar 15 2017 04:48
twice today!!!
Dana Lewis
@danamlewis
Mar 15 2017 04:48
bahaha
katie disimone
@Kdisimone
Mar 15 2017 04:48
edit…it’s back, but I”m gonna wait a bit
Scott Leibrand
@scottleibrand
Mar 15 2017 04:54
you'll get those successful no-op runs in between the ones where the problem occurs if you're not getting new glucose data
unless you're on Enlite, the pump-loop.log is not the place to see what's up with getting glucose data, though. that's cgm-loop.log or ns-loop.log.
Dana Lewis
@danamlewis
Mar 15 2017 04:55
we fixed it ;)
we = @Kdisimone
Scott Leibrand
@scottleibrand
Mar 15 2017 04:55
what was it?
Dana Lewis
@danamlewis
Mar 15 2017 04:55
I’m just a very loud peanut
typo
Scott Leibrand
@scottleibrand
Mar 15 2017 04:55
in NS URL?
Dana Lewis
@danamlewis
Mar 15 2017 04:55
yup
Scott Leibrand
@scottleibrand
Mar 15 2017 04:56
:+1:
katie disimone
@Kdisimone
Mar 15 2017 04:56
YUP! I can type my daughter’s name really well.
Scott Leibrand
@scottleibrand
Mar 15 2017 04:56
at least you weren't mixing up your kids' names :)
katie disimone
@Kdisimone
Mar 15 2017 04:57
I’m not changing my gitter profile anytime soon. (referencing the time I didn’t know what the battery icon was for and swore I’d somehow invented some new feature)
Scott Leibrand
@scottleibrand
Mar 15 2017 04:58
lol
katie disimone
@Kdisimone
Mar 15 2017 04:59
So pretty
Starting pump-loop at Tue Mar 14 21:56:05 PDT 2017:
Radio ok, Listening: .............No pump comms detected from other rigs
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
{"carbs":26,"boluses":3,"mealCOB":0}
{"ratio":0.88}
{"iob":0.368,"activity":0.0074,"bolussnooze":0,"basaliob":0.368,"netbasalinsulin":1.25,"hightempinsulin":2.3,"time":"2017-03-15T04:57:06.000Z"}
{"delta":-4,"glucose":99,"short_avgdelta":-4.39,"long_avgdelta":-2.78}
{"duration":27,"rate":0,"temp":"absolute"}
Adjusting basal from 1.2 to 1.05
Adjusting sens from 30 to 34.1
Carb Impact: -3.1 mg/dL per 5m; CI Duration: 0 hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0 hours
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":99,"tick":-4,"eventualBG":67,"snoozeBG":67,"predBGs":{"IOB":[99,95,91,88,84,81,79,76,74,73,72,71,71,71,71,71,71,71,71,72,72,73,73,74,74,75,75,76,77,77,78,79,79,80,80,81,81,82,82,83,83,83,84,84,84,84,85]},"COB":0,"IOB":0.368,"reason":"COB: 0, Dev: -19, BGI: -1.26, ISF: 34, Target: 90; Eventual BG 67 < 90, setting -1.65U/hr, but 27m left and 0 ~ req 0U/hr: no action required"}
cat: enact/enacted.json: No such file or directory
Settings less than 10m old
pumphistory-24h refreshed
Completed pump-loop at Tue Mar 14 21:58:40 PDT 2017
Dana Lewis
@danamlewis
Mar 15 2017 04:59
:)
katie disimone
@Kdisimone
Mar 15 2017 04:59
Hey, and thanks Autosens…maybe her cold is actually on the mend!
Dana Lewis
@danamlewis
Mar 15 2017 05:00
:clap:
OpenAPS…curer of colds…haha. (I wish. ::sneezes::)
katie disimone
@Kdisimone
Mar 15 2017 05:06
Just out of curiosity today, I looked at the log for how often that spidev in use error has been logged…not too often.
root@edison1:~# cat reset-log.txt
Mon Feb 27 13:20:02 PST 2017
Radio error found
Sat Mar  4 08:30:01 PST 2017
Radio error found
Sat Mar  4 13:30:01 PST 2017
Radio error found
Sat Mar  4 14:10:01 PST 2017
Radio error found
Tue Mar  7 13:00:01 PST 2017
Radio error found
Wed Mar  8 19:30:01 PST 2017
Radio error found
Tue Mar 14 08:20:01 PDT 2017
Radio error found
Scott Leibrand
@scottleibrand
Mar 15 2017 05:08
I've seen a few reboots from the workaround, fwiw
katie disimone
@Kdisimone
Mar 15 2017 05:09
Was going to ask if you’d still like more testing on that. I wasn’t sure if it (the error) came often enough that I’d be able to say we would be worth testing on. But apparently enough. Still on dev?
Scott Leibrand
@scottleibrand
Mar 15 2017 05:12
we merged that one to master already
katie disimone
@Kdisimone
Mar 15 2017 05:25
Oh, then I have it on a board or two already 😜
Dana Lewis
@danamlewis
Mar 15 2017 05:30
:+1:
peterfulvi
@peterfulvi
Mar 15 2017 14:26
@Kdisimone I got papertrail working now like a charm but how do i update your logs it seems to lagbehind 3-4 hours
katie disimone
@Kdisimone
Mar 15 2017 14:30
It seems that something isn't right? Logs update constantly as the rig is on. If you are looking in papertrail, on a web browser, it should autoscroll with the new log info (assuming your rig has internet connection). If papertrail isn't automatically scrolling new logs in, try scrolling down or refreshing the screen.
katie disimone
@Kdisimone
Mar 15 2017 14:36

In the bottom right corner of the papertrail site, there's an auto scroll button. If you see an arrow pointing down (autoscroll if off and you'd have to manually scroll down to see new log entries). If you press the arrow, it will change to a pause button. If the pause button is showing, that means auto scroll is on and papertrail will automatically move down to show new logs coming in.

If you bookmark a page, it bookmarks that setting too. So make sure you bookmark with auto scroll (pause button showing) on. @peterfulvi

peterfulvi
@peterfulvi
Mar 15 2017 15:02
image.png
@Kdisimone heris a screeshot
katie disimone
@Kdisimone
Mar 15 2017 15:09
Looks like a papertrail account setting is incorrect. Go into your papertrail account, Profile and under your profile settings, select your correct timezone.
peterfulvi
@peterfulvi
Mar 15 2017 16:33
I had that gut feeling that was it. I was looking for a time setting
hilarykoch
@hilarykoch
Mar 15 2017 17:05
I set up two new rigs over the weekend. I cannot run an autotune report on them, but I can run a report on the rig we set up over a month ago. I’m guessing I’ve missed a step somewhere, but don’t know what/where. Any ideas would be appreciated.
Screen Shot 2017-03-15 at 9.04.41 AM.png
Scott Leibrand
@scottleibrand
Mar 15 2017 17:10
"No such file profile.json" is the key there
Not sure which subset of the directions you're following, so not sure what you missed to not have that...
katie disimone
@Kdisimone
Mar 15 2017 17:12

Autosens-loop question @scottleibrand @danamlewis

Mar 14 17:04:22 edison1 pump-loop.log:  glucose.json newer than pumphistory: Refreshed pumphistory
Mar 14 17:04:27 edison1 pump-loop.log:  {"carbs":10,"boluses":1.2,"mealCOB":0}
Mar 14 17:04:27 edison1 pump-loop.log:  Optional feature Auto Sensitivity enabled.  Could not find specified auto-sens: settings/autosens.json
Mar 14 17:04:27 edison1 pump-loop.log:  [SyntaxError: Unexpected end of input]
Mar 14 17:04:27 edison1 pump-loop.log:  {"iob":0.347,"activity":0.0009,"bolussnooze":0,"basaliob":0.347,"netbasalinsulin":-0.6,"hightempinsulin":1.55,"time":"2017-03-15T00:03:29.000Z"}
Mar 14 17:04:27 edison1 pump-loop.log:  {"delta":5,"glucose":100,"short_avgdelta":4.5,"long_avgdelta":3.18}
Mar 14 17:04:27 edison1 pump-loop.log:  {"duration":29,"rate":1.05,"temp":"absolute"}
Mar 14 17:04:27 edison1 pump-loop.log:  Carb Impact: 3.3 mg/dL per 5m; CI Duration: 0 hours
Mar 14 17:04:27 edison1 pump-loop.log:  Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: 0 hours
Mar 14 17:04:28 edison1 pump-loop.log:  determine-basal://text/shell/enact/suggested.json
Mar 14 17:04:28 edison1 pump-loop.log:  reporting enact/suggested.json
Mar 14 17:04:28 edison1 pump-loop.log:  {"temp":"absolute","bg":100,"tick":"+5","eventualBG":110,"snoozeBG":110,"predBGs":{"IOB":[100,103,105,107,109,110,111,112,112,113,113,112,112,111,110,110,109,109,109,108,108,108,107,107,107,107,106,106,106,106,106,106,106,107,107,107,107,107,107,107,107,107,108]},"COB":0,"IOB":0.347,"reason":"COB: 0, Dev: 20, BGI: -0.13, ISF: 30, Target: 120; Eventual BG 110 < 120, but Delta +5 > Exp. Delta 0.3; setting current basal of 1.2 as temp, but 29m left and 1.05 ~ req 1.2U/hr: no action required"}

My autosens has been not working since this entry yesterday. This was the first place I can find the Optional feature Auto Sensitivity enabled. Could not find specified auto-sens: settings/autosens.json message. Two minutes before this appeared, the autosens was working fine. The part I find odd is that the carbs that are showing at 17:04pm…she had no carbs for a long time prior to this, and didn’t eat until well after this. Thoughts?

It looks like it somehow picked up (errantly?) the meal from 12:47pm...
118_-3_→_and_nightscout_intend-to-bolus_-_Gitter.jpg
Is there a way we could add setup a cron fix that would search for this error message and run openaps report invoke settings/autosens.json to clear this error (since it seems to be an error that can happen random, as opposed to as part of a new setup)?
hilarykoch
@hilarykoch
Mar 15 2017 17:18
@scottleibrand Ok. I figureed it out.
Scott Leibrand
@scottleibrand
Mar 15 2017 17:39
@Kdisimone the autosens.json report should run automatically in the autosens-loop.
katie disimone
@Kdisimone
Mar 15 2017 17:40
so, my error won’t clear by running that report then? Reboot rig?
Scott Leibrand
@scottleibrand
Mar 15 2017 17:41
It might clear once data has refreshed and it runs again. I think it goes every 20-30m normally.
Running the report manually is so you can see what the error is.
katie disimone
@Kdisimone
Mar 15 2017 17:41
This has been since 5pm yesterday
Scott Leibrand
@scottleibrand
Mar 15 2017 17:42
@hilarykoch what was it?
katie disimone
@Kdisimone
Mar 15 2017 17:56
reboot has fixed it. Perhaps I will try to add a reboot for that error similar to the spidev
hilarykoch
@hilarykoch
Mar 15 2017 18:19
@scottleibrand So I thought (for whatever reason) that I could just type this command and get a report: oref0-autotune --dir=~/myopenaps --ns-host=https://mynightscout.azurewebsites.net --start-date=YYYY-MM-DD
@scottleibrand But then I went back to the docs and just followed the instructions on how to run it as a one-off in manual mode and it worked.
Scott Leibrand
@scottleibrand
Mar 15 2017 18:40
@Kdisimone we probably need to understand what is happening there so we can actually fix it
@hilarykoch :+1:
katie disimone
@Kdisimone
Mar 15 2017 18:42
@scottleibrand does the carb line look odd to you, given the treatment data in NS? I think that would be the "strange" part. Whether is is cause or effect of the initial error, I have no idea.
Scott Leibrand
@scottleibrand
Mar 15 2017 18:44
"carbs" is the total number of carbs entered in the last several hours. that's distinct from mealCOB, which was zero because the carbs were entered so long ago
katie disimone
@Kdisimone
Mar 15 2017 18:47
Oh. Then normal. Hmmm.
Scott Leibrand
@scottleibrand
Mar 15 2017 18:57
@Kdisimone Just opened openaps/oref0#425 to make it actually print the autosens output to autosens-loop.log so you can see why autosens is failing next time
you can manually add that 2>&1 to your crontab if you don't want to re-run setup
dan lightner
@danimaniac
Mar 15 2017 19:04
I hope to clarify some xDripAPS setup instructions with PR #717.
Dana Lewis
@danamlewis
Mar 15 2017 19:06
:+1: thx @danimaniac , will take a look this afternoon
Matthias
@ceben80
Mar 15 2017 19:08
@danimaniac may I ask you about your questions regarding xdripAPS?
dan lightner
@danimaniac
Mar 15 2017 19:19
@ceben80 I was just being stupid. I was consistently inserting my rig hostname in the xDrip Android App rest api setting where it asked for my api_secret. I reworked that section to specifically request the api_secret used when configuring our online Nightscout instance. I admit that I SHOULD have understood the instruction to begin with, but I didn't. I also reworked the beginning of the xDripAPS section to consistently refer to xDrip Android App (instead of simply xDrip) and similar changes. My changes are related more to the Android App than to xDripAPS (automagic install).
katie disimone
@Kdisimone
Mar 15 2017 19:48
@danimaniac somehow got a PR link to cgm-remote-monitor openaps/docs#717
Matthew Williams
@mwilliams
Mar 15 2017 19:57
Has anyone seen instances of perhaps bad data getting fed to NS? All of a sudden, my NS instance is throwing JS errors like crazy and I don't think my reports are working either. I've been crazy busy and just now getting a chance to look further into it. Nothing crazy in my logs on my rig. http://i.imgur.com/JLtS9n5.png
(I also haven't looked at any recent releases or docs to see if I'm missed out on anything :(, pardon if that's the case - doing a little bit of maintenance on my rig now)
dan lightner
@danimaniac
Mar 15 2017 20:19
@Kdisimone Yeah, sorry. I am no good yet with markdown and links in gitter. Or photos for that matter. Or PR's for that matter...or...
thom1394
@thom1394
Mar 15 2017 20:23
OK, I have a rig running closed-loop for about a month now. I am VERY impressed, thank everyone for their contributions. Two problems: I can't figure out how to get the pebble output included and 2:) I have to run tethered bluetooth due to network problems. It is running tethered all of the time (by choice) so the IP address doesn't change repeatedly. Looking for a way to get static bnep address to prevent problems with xDrip+ link. Again, thanks everyone...
Scott Leibrand
@scottleibrand
Mar 15 2017 20:26
not sure about Android, but iOS seems to have a pretty deterministic way of giving out 172.20.10.x addresses to BT/wifi hotspot clients...
Dana Lewis
@danamlewis
Mar 15 2017 20:27
@thom1394 "pebble output included" - pancreabble, or do you mean in Urchin or another watchface?
Scott Leibrand
@scottleibrand
Mar 15 2017 20:27
you could of course add something to your script to manually assign the same IP to bnep0 every time, although you'd probably need to check that no other device was already using it...
thom1394
@thom1394
Mar 15 2017 20:33
@danamlewis Urchin would be great (I would be happy with any...) Have latest dev version package.
katie disimone
@Kdisimone
Mar 15 2017 20:36
@thom1394 the SkyLoop watchface on pebble also works well with OpenAPS
thom1394
@thom1394
Mar 15 2017 20:39
@Kdisimone @danamlewis OK, how do I get it to send the data to the watch? There is a comment in the directions for pancreabble that it does NOT work with new version (new directions comming...).
katie disimone
@Kdisimone
Mar 15 2017 20:40
The pebble skyloop watchface has a "settings" page where you enter your NS URL and it pulls through that.
Dana Lewis
@danamlewis
Mar 15 2017 20:42
Yea. Just put in your ns URL for either urchin or skyloop
thom1394
@thom1394
Mar 15 2017 20:43
@Kdisimone I have "tremendous" problems with wifi. The system is in bluetooth tether mode to get cgm data from cell. I need to run DIRECTLY from rig.
Dana Lewis
@danamlewis
Mar 15 2017 20:45
If you are Bluetooth tethering, your watch will pull the data from your phone just like rig will
katie disimone
@Kdisimone
Mar 15 2017 20:46
^^yup
thom1394
@thom1394
Mar 15 2017 20:47
@danamlewis Yes, that will work, but xDrip+ will not show basal data so that I have an indication that it is still working.
Dana Lewis
@danamlewis
Mar 15 2017 20:50
There's lots of "it" that you are using that's making it hard to understand your setup, what works, and what you're trying to achieve. Can you clarify the situation? Sounds like you are Bluetooth tethering to get bgs, so you should be able to use your cell to a) tail logs b) see what's happening in ns and c ) display that info in watchface of your choice.
thom1394
@thom1394
Mar 15 2017 20:54
@danamlewis Afirm, but I would need to pull out the cell, bring up the ssh, and check just to see if the rig was running. The "directions" appear to show an "offline monitoring" link between the pebble and the rig, just for my nervous self to monitor the rig every now an then.
Dana Lewis
@danamlewis
Mar 15 2017 20:59
Monitoring is good. It sounds like youre missing the main ways to track the rig. Watchface will be easiest since you already have your rig tethered .
Pancreabble can be good if you're offline but if you want the great displays, you should definitely plug your ns URL so you can use your favorite watchface for easiest monitoring.
for easy ssh’ing in, you may also want to check out these docs (they may have been added after you started): http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/accessing-your-rig.html
thom1394
@thom1394
Mar 15 2017 21:05
@danamlewis That is EXACTLY what I am trying to arrange. I do NOT have access to NS 90% of the time (no wifi to cell or openaps rig), that is why I am looking at the "offline monitoring" page. It promises directions "soon"?
Dana Lewis
@danamlewis
Mar 15 2017 21:05
but you’re talking about bluetooth tethering - to use cell data to give data to your rig, right?
thom1394
@thom1394
Mar 15 2017 21:11
I use the bluetooth tether link to the rig to pass cgm data to the rig without wifi. I wish to display basic (glucose and basal would be GREAT) data to the watch to monitor openaps operation. The "offline monitor" page seems to indicate that this is possible.
Dana Lewis
@danamlewis
Mar 15 2017 21:11
so xdrip for local glucose, not bluetooth to pull BGs from internet?
also, what type of phone do you have? Android?
so two things: 1) No one has stepped up yet (that I know of - please let me know if anyone’s working on this) to do the direction re-factor as noted that is needed for Pancreabble. So that’s not a “promise” of directions coming soon, it’s a note of caution about the directions not working for everyone since they were written for pre-oref0-setup.sh world). 2) But if you’re using xdrip and an android, you should see the next option in offline monitoring for xdripAPS - that will probably be your next best bet. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/offline-looping-and-monitoring.html#xdripaps-for-offline-bgs 3) if android, you’ll probably also like HotButton: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/offline-looping-and-monitoring.html#hot-button
Dana Lewis
@danamlewis
Mar 15 2017 21:17
(and as a general note - even if you don’t have wifi, if your cell has service, you can bluetooth tether your rig and use the cell service for monitoring the rig, plus displaying info easily on the watches. That’s what most people are doing, and it’s a fairly easy setup step.)
katie disimone
@Kdisimone
Mar 15 2017 21:18

@thom1394 I think you should clarify some of your word choices perhaps…when we say bluetooth tether, that means your phone is acting as a hotspot to allow another device (like your rig) to use your cell data for internet.

Seems like you mean to be saying bluetooth paired instead…like you have your rig paired to your xdrip/android and aren’t using phone as a hotspot.

thom1394
@thom1394
Mar 15 2017 21:22
@danamlewis Yes, it is an Android. But I think that either I am greatly confused or we are getting off subject. The system my change to G4 -> openaps rig (direct). I can still monitor my glucose either way. What I am hoping for is an indication that the rig is passing reasonable basal requests to the pump (has been so far!!). I just saw your note about displaying data on the cell, where might I find this info? katie, it is tethered to the cell (WITHOUT wifi link) so that xDrip+ can send data to the openaps LOCAL IP address (again, without external wifi).
Colin Lennon
@colinlennon
Mar 15 2017 21:27
I wonder if it's maybe a source of confusion that, although I have given my repo the name 'xDripAPS', people might not realise that's what they're using because it's integrated into the oref-setup script @danamlewis @thom1394 @Kdisimone
@thom1394 You could do something like this on your Android phone to see what temp basal decisions OpenAPS is making - https://twitter.com/ceben80/status/841751849850003456
Dana Lewis
@danamlewis
Mar 15 2017 21:28
@colinlennon I think there’s other confusion going on about what bluetooth, wifi, and other connectivity options are.
Colin Lennon
@colinlennon
Mar 15 2017 21:28
@danamlewis Ah, okay, yip
Dana Lewis
@danamlewis
Mar 15 2017 21:28
but it sounds like overall the offline monitoring page could use some PRs for improving the high level description of options, so if anyone wants to take a stab that is most welcome
Colin Lennon
@colinlennon
Mar 15 2017 21:29
@thom1394 That's using an app called HTTP Widget - not sure that it's fully documented anywhere, but we could talk through the setup if you're interested in giving it a try
@danamlewis Yeah, I'll try and add some stuff about HTTP Widget when I get a chance. I've switched from Pebble to an Android smartwatch now so I can use the watch as the G5 receiver, so I'm using HTTP Widget to monitor in place of Urchin now. Working nicely.
Sorry, I mean HTTP Widget on the phone, because I can't monitor OpenAPS from an Android Wear watch (yet...)
Dana Lewis
@danamlewis
Mar 15 2017 21:31
@colinlennon can you also give a quick eyeball to openaps/docs#717 Since you’re most familiar :) . A thumbs up/comment or otherwise notes if anything needs changed before merging would be nice.
and thank you!
Colin Lennon
@colinlennon
Mar 15 2017 21:32
Sure thinh
thing*
Scott Leibrand
@scottleibrand
Mar 15 2017 21:34
@thom1394 you said that "it is tethered to the cell (WITHOUT wifi link)", which I think means you're still confused about terminology. when you do Bluetooth tethering (or hotspot), your rig pairs with the phone, and then establishes a network link over Bluetooth, and the phone shares your cellular data so the rig can get onto the Internet (similarly to the way wifi tethering/hotspot works, but without the wifi, just bluetooth)
tethering, by definition, includes sharing the phone's Internet connection (if it has one), which makes it possible to upload temp basals to Nightscout, and use apps like Urchin to display that info, any time you have cellular data service.
thom1394
@thom1394
Mar 15 2017 21:41
@colinlennon @danamlewis It appears that I must wait for the "offline monitoring" to catchup to the current openaps. @scottleibrand The cell has NEITHER cell service wifi connection. Hotspot ids NOT enabled. The bluetooth tether grants a local IP address to the rig, but since the cell has no access to wifi or cell service, nothing can go outside the bluetooth link. The xDrip+ can pass cgm data to the local IP address of the rig without any connection to the outside world. This has been working (fairly) reliably for about a month.
Colin Lennon
@colinlennon
Mar 15 2017 21:42
@thom1394 I think this can be slightly confusing initially because generally, sharing the phone's internet connection is the whole point of tethering, as @scottleibrand says, but in this particular case, you're actually using it to establish a local network between the phone and the rig so that the xDrip app can send data to the rig.
Dana Lewis
@danamlewis
Mar 15 2017 21:43
@thom1394 there’s several offline options that we’ve been describing that will work well for you. xdripAPS. HotButton. HTTPwidget. etc.
Colin Lennon
@colinlennon
Mar 15 2017 21:43
(although the rig will also use the phone's internet connection to upload to NS when a connection is available)
dan lightner
@danimaniac
Mar 15 2017 21:50
@colinlennon @danamlewis @scottleibrand Full stop. True or false: We can achieve complete offline looping AND monitoring with xDrip Android App / xDripAPS communicating solely via bluetooth PAIRING? True or false: Bluetooth TETHERING is required only for sharing the mobile phone's internet/data for the purpose of updating our online Nightscout site?
Colin Lennon
@colinlennon
Mar 15 2017 21:52
The best way I can think to word it is this: xDripAPS relies on bluetooth tethering between rig and phone, but does not require an internet connection
Scott Leibrand
@scottleibrand
Mar 15 2017 21:53
@thom1394 @colinlennon ok, gotcha. FWIW, "you can't do that" with iOS, but sounds like in Android the actual tethering can be done without enabling hotspot. good to know, thx.
@danimaniac it sounds like Android and Apple devices use the word "tethering" slightly differently. joy. :)
FWIW, the script that spawns bluetooth tethering on the rig side (oref0-online) expects the rig to get Internet connectivity when it does so. which sounds like it's a mismatched assumption to what xDripAPS can work with. not sure if that's a problem, but something to keep an eye on
Colin Lennon
@colinlennon
Mar 15 2017 21:55
@scottleibrand In Android, the bluetooth tethering option is described as "sharing this device's internet connection" - just to add to the confusion! I think we're probably all on the same page now though.
Scott Leibrand
@scottleibrand
Mar 15 2017 21:55
heh fun
Colin Lennon
@colinlennon
Mar 15 2017 21:56
:smile:
Scott Leibrand
@scottleibrand
Mar 15 2017 21:56
so to reduce confusion in future discussions, we might want to refer to non-hotspot non-Internet-sharing tethering as "local-only tethering" or similar
thom1394
@thom1394
Mar 15 2017 21:57
@colinlennon @danamlewis I'm not certain my last message made it out. Colin: Yes, I have network access about eight hours a day (on GOOD days). Dana: Thanks for the pointer to xdripAPS, I will peer at that. Thank you ALL, I greatly appreciate your time and patience...
dan lightner
@danimaniac
Mar 15 2017 21:59
@colinlennon @scottleibrand Dagnabbit! I have missed a whole week's worth of offline looping due to this pairing vs. tethering thing...I know where to go from here, though. I might take another look at the related docs. It may take me a while, though, because I am still learning the rest of OpenAPS too!
Colin Lennon
@colinlennon
Mar 15 2017 21:59
@scottleibrand Yep, that terminology sounds good to me. @thom1394 No worries, let me know if/when you want to look into HTTP Widget and we can work through that (and I'll aim to update the docs soon too)
@danimaniac Any questions on xDripAPS, please feel free to get in touch and I should be able to help out
Dana Lewis
@danamlewis
Mar 15 2017 22:01
Yay - thanks all for helping clarify terminology, and thanks to anyone who ends up inspired to PR anywhere to help document our improved shared understandings :)
gregtcm
@gregtcm
Mar 15 2017 22:08
@colinlennon @scottleibrand @danamlewis Great discussion on BT tethering! I'm in a similar situation as @thom1394, although I probably have more connectivity. The other nice thing of a permanant BT tether is the xDrip REST upload IP would stay the same. I'm also on Android, so, yes, the BT network tether stays active regardless of wifi or cell data connectivity. Its interesting that the iPhone doesn't behave that way.
@colinlennon Thanks for the info on HTTP Widget. That looks very interesting. I might hit you up for help on that when I get to setting it up.
Colin Lennon
@colinlennon
Mar 15 2017 22:12
@gregtcm Great! Yip, sure, no problem.
If I could find the time, I'd look into writing a dedicated Android/Android Wear app for offline monitoring, or maybe forking the xDrip+ source and trying to add some OpenAPS monitoring functionality in there. As always, it's just a matter of getting the time though. Would be interested to hear if anyone else has any thoughts or ideas on that topic.
peterfulvi
@peterfulvi
Mar 15 2017 22:19
@danimaniac does your case secure the board in place were it is secure? Who was that othe person whohad the design with the tray?im looking for a design formy offline rig..
garykidd
@garykidd
Mar 15 2017 22:33
what's the initial password to explorer board?
RedCyclist1
@RedCyclist1
Mar 15 2017 22:33
@danamlewis Hey Dana quick question, I am heading into HITT for a few hours, I just set a second basal to accommodate as I have been going low every time. Did I just mess up my open aps with a new basal setting?
Tim Street
@tim2000s
Mar 15 2017 22:38
@colinlennon I've thought about the exact same thing on xDrip+
PieterGit
@PieterGit
Mar 15 2017 22:40
@garykidd : username edison password password
garykidd
@garykidd
Mar 15 2017 22:42
right--thx...I actually forogot I needed my mac password---just getting started setting up first explorer rig...which will be #3 and #4 rigs...been so long--so just reimersing myself. thanks
Tim Street
@tim2000s
Mar 15 2017 22:42
There are a few things you'd need to add to xdrip+, namely basal rates
garykidd
@garykidd
Mar 15 2017 22:43
@danamlewis @scottleibrand @PieterGit long time no talk...hope you are fantastic
@scottleibrand any sense if iphone BT issues have been improved at all?
Tim Street
@tim2000s
Mar 15 2017 22:52
@garykidd Mine doesn't work very well, but it doesn't do wifi tethering very well either so I don't think it's a very good example.
feraridurango
@feraridurango
Mar 15 2017 22:59

this is an issue with the TI stick correct? ``` pen
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 528, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
Starting pump-loop at Wed 15 Mar 22:53:11 UTC 2017:

```

Scott Leibrand
@scottleibrand
Mar 15 2017 23:02
@garykidd yes, BT setup is now a breeze (albeit slow) if you follow the directions exactly using a newly flashed Edison. :)
(takes almost an hour to compile bluez and everything else the first time you run oref0-setup)
francesc0-cgm
@francesc0-cgm
Mar 15 2017 23:10
Ķ
dan lightner
@danimaniac
Mar 15 2017 23:10
@peterfulvi Yes, my case secures the rig in place. 2 screws mount the bottom portion of the Explorer Board to the case. They are inserted through the lower large vent after the rig is inside. In addition, 2 screws mount the top portion of the Explorer Board to the lid of the case. They are inserted through the upper large vent in the lid. In essense you have t assemble in this order: 1-insert rig into case body, insert and secure lower screws, carefully place lid, insert and secure upper screws. The assembly holds itself together and the Explorer Board and lid are all secure. The only way to remove the lid is to take out 2 screws...that's why i designed the integrated power button. The only way to cycle power is with the power button or by removing the lid. AS WORD OF WARNING: I have not yet printed and used my case. I did measure everything with a caliper, but an actual printed case is yet untested in the real world.
Dana Lewis
@danamlewis
Mar 15 2017 23:13
@RedCyclist1 nope, not messed up. Next time OpenAPS does a full history Read it'll start calculating from the new basal
@feraridurango is this a new setup? If so check to make sure you put port in correctly to setup script
feraridurango
@feraridurango
Mar 15 2017 23:22
ok thank you
RedCyclist1
@RedCyclist1
Mar 15 2017 23:23
@danamlewis Thanks, wasn't sure if better to change basal or shut off?
dan lightner
@danimaniac
Mar 15 2017 23:27
@peterfulvi Two other cases I really like are: @thebookins case and https://tinkercad.com/things/aRYGnHXt7Ta
peterfulvi
@peterfulvi
Mar 15 2017 23:28
@danimaniac Well if your measurements match up
I will try it. I'll let you know how it turns out
I want to have access to the ports
feraridurango
@feraridurango
Mar 15 2017 23:31

@danamlewis ``` 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 528, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
Error, retrying
Starting pump-loop at Wed 15 Mar 23:31:15 UTC 2017:

```

this is what I get now with /dev/ttyAMC0
garykidd
@garykidd
Mar 15 2017 23:32
wondering if someone might be able to post the standard unedited /etc/network/interfaces file...I messed mine up and cant quite read the image from the docs...
Dana Lewis
@danamlewis
Mar 15 2017 23:33
@feraridurango is that YOUR port; or are you just using the example in the docs?
peterfulvi
@peterfulvi
Mar 15 2017 23:37
@danimaniac I'm using the bookins case already I would like to try another
Scott Leibrand
@scottleibrand
Mar 15 2017 23:38
dan lightner
@danimaniac
Mar 15 2017 23:39
@peterfulvi My design has access to both ports.
peterfulvi
@peterfulvi
Mar 15 2017 23:40
@danimaniac that's why I'm going to roll with your design
I will order it tomorrow do you know of a good quality material. I have been using resin but what is the best quality for cases
dan lightner
@danimaniac
Mar 15 2017 23:42
@peterfulvi my biggest concern, honestly, is the power button. You'll see what i mean. I guess I just need to print one and try it. I'm tapped out right now from buying the rig components. I intend to print with ABS. https://blog.tinkercad.com/materialsguide/
peterfulvi
@peterfulvi
Mar 15 2017 23:46
Thanks
feraridurango
@feraridurango
Mar 15 2017 23:57
I believe it is because you showed me how to find it and when I did it matched up to the one in the docs let me go look again to make sure @danamlewis
garykidd
@garykidd
Mar 15 2017 23:59
@scottleibrand was following these instructions....