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

21st
Jun 2017
Cameron Chunn
@applehat
Jun 21 2017 00:35
@rdalisky absolutely. I'm mobile right now and don't know how to initiate a PM on mobile if you want to send me one :p
Ryan Dalisky
@rdalisky
Jun 21 2017 01:01
And investigations begin...
PopcornPam
@PopcornPam_twitter
Jun 21 2017 01:32
help! I have reset my network connections on my iphone today, hoping to fix some bluetooth tethering issues, and then it stopped connecting to my rig (edison and explorer)
I decided to re run the setup script to make sure the bluetooth was correct (same address, but I figured it might need a reminder)
and I got this
Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 35, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 52, in call
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 98, in create_git_commit
self.repo.index.commit(msg)
File "/usr/local/lib/python2.7/dist-packages/git/index/base.py", line 954, in commit
author_date=author_date, commit_date=commit_date)
File "/usr/local/lib/python2.7/dist-packages/git/objects/commit.py", line 393, in create_from_tree
repo.head.set_commit(new_commit, logmsg=message)
File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 211, in set_commit
self.set_object(commit, logmsg)
File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 240, in set_object
return self._get_reference().set_object(object, logmsg)
File "/usr/local/lib/python2.7/dist-packages/git/refs/reference.py", line 79, in set_object
self.repo.head.log_append(oldbinsha, logmsg)
File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 378, in log_append
message)
File "/usr/local/lib/python2.7/dist-packages/git/refs/log.py", line 284, in append_entry
lf._obtain_lock_or_raise()
File "/usr/local/lib/python2.7/dist-packages/git/util.py", line 754, in _obtain_lock_or_raise
(self._file_path, lock_file))
IOError: Lock for file '/root/myopenaps/.git/logs/HEAD' did already exist, delete '/root/myopenaps/.git/logs/HEAD.lock' in case the lock is illegal
Can't add pump
katie disimone
@Kdisimone
Jun 21 2017 01:34
Go ahead and delete the file as that last few lines suggest.
rm /root/myopenaps/.git/logs/HEAD.lock
PopcornPam
@PopcornPam_twitter
Jun 21 2017 01:35
root@myopenaps2:~# rm /root/myopenaps/.git/logs/HEAD.lock
rm: cannot remove ‘/root/myopenaps/.git/logs/HEAD.lock’: No such file or directory
I can't find any file for 'head.lock'
there is just HEAD
PopcornPam
@PopcornPam_twitter
Jun 21 2017 01:43
Does it make sense to start from scratch and reinstall
wharper11
@wharper11
Jun 21 2017 01:46
@PopcornPam_twitter - did you change the openaps inrm /root/myopenaps/.git/logs/HEAD.lock to your own?
PopcornPam
@PopcornPam_twitter
Jun 21 2017 01:46
my directory name is myopenaps, so it shoudl be set
PopcornPam
@PopcornPam_twitter
Jun 21 2017 02:06
Also, I am unclear about how to make sure that autotune is running.. what is the command for that? I thought it was, then saw something in the log that SMB was off until autotune was run
Ryan Dalisky
@rdalisky
Jun 21 2017 02:49
@popcornpam did you edit your preferences.json? If so, and you enabled the handy shortcuts as seen in the docs, type auto tune and see what is there.
And remember, auto tune, if enabled in the loop, runs at midnight every night.
DaisyHK
@laurathiessen
Jun 21 2017 03:30
I am having an issue getting my putty to start working... i click on it and press the enter button, but it never seems to open the option to start the command ... here is a snap shop with the log.. last time i was using it i was trying to update my preference to change my basal settings and I had to jsut close the window after trying to input EXIT in the screen
image.png
rsilvers129
@rsilvers129
Jun 21 2017 03:38
xIMG_6432.JPG.jpeg
xIMG_6416.JPG.jpeg
DaisyHK
@laurathiessen
Jun 21 2017 03:41
@rsilvers129 got the message mine is finally built and being sent out to me :) maybe I can help you figure out the time frame for chargeing the 2 2500 btteries once I get it
rsilvers129
@rsilvers129
Jun 21 2017 03:48
Nice. What color did you get?
DaisyHK
@laurathiessen
Jun 21 2017 03:57
@rsilvers129 a solid white one, and then a pink top and black clip bottom :) I ahve also gotten those tank tops, getting a spibelt and girly go garter and I will post it to show other girls how they can wear the pump and what it acutally looks like. that article from that member was great but as it didnt have any pics it was hard to figure out what works and doesnt.... kinda like with those tanks the pockets are in the front on both sides, exactly where gils dont want extra stuff cause it makes you look bigger lol
rsilvers129
@rsilvers129
Jun 21 2017 03:58
Wow. I need photos when you have it.
DaisyHK
@laurathiessen
Jun 21 2017 03:58
@Kdisimone anyway you can help me with my putty problems? other then keep retarting and pressing enter I am lost as to what else to try
Cameron Chunn
@applehat
Jun 21 2017 03:59
@rsilvers129 is that a 3d print?
rsilvers129
@rsilvers129
Jun 21 2017 03:59
Yes.
DaisyHK
@laurathiessen
Jun 21 2017 03:59
@rsilvers129 will for sure :) like I said the hardest part is trying to actually visualoze stuff from written word and figuring out what works, especially for girls
Cameron Chunn
@applehat
Jun 21 2017 03:59
My printer is no where near that accurate =P
There aren't even layer lines
rsilvers129
@rsilvers129
Jun 21 2017 04:00
These are professional prints. Laser sintered and stereo lithography.
Cameron Chunn
@applehat
Jun 21 2017 04:01
ahh
Cameron Chunn
@applehat
Jun 21 2017 04:02
ahh, very nice.
What material? (or is it on the site? I should read)
DaisyHK
@laurathiessen
Jun 21 2017 04:02
@applehat the options are on the site
when you click on the one you want you pick the colour with the associated material and cost
Cameron Chunn
@applehat
Jun 21 2017 04:02
I see that now. Shapeways describes the materials instead of listing what they are =P
DaisyHK
@laurathiessen
Jun 21 2017 04:03
its kool ehh.... I am hoping it will be amzing
Cameron Chunn
@applehat
Jun 21 2017 04:03
I was curious if it was PLA, PETG, ABS, Nylon, ect.
It is a cool case, I agree =)
Joey
@Cooljoe04_twitter
Jun 21 2017 04:04
@rsilvers129 I was actually just looking at your site/cases. Just discovered this whole OpenAPS idea/community last night. Just now getting ready to begin this whole process
rsilvers129
@rsilvers129
Jun 21 2017 04:04
I think the white and black are nylon.
The terms you are using for for FDM printers. These are not FDM printers.
Cameron Chunn
@applehat
Jun 21 2017 04:05
SLA?
rsilvers129
@rsilvers129
Jun 21 2017 04:05
The clear is SLA. The white and black are SLS.
Cameron Chunn
@applehat
Jun 21 2017 04:06
Yeah, FDM is the only tech I can afford right now =P
rsilvers129
@rsilvers129
Jun 21 2017 04:06
Yes, FDM is the only thing to have at home, but is crap compared to the pro prints on SLS.
Cameron Chunn
@applehat
Jun 21 2017 04:07
Indeed. It works good enough for prototyping tho.
feraridurango
@feraridurango
Jun 21 2017 04:07
@rsilvers129 can you help me with getting my edison to work? please
rsilvers129
@rsilvers129
Jun 21 2017 04:07
What is wrong
DaisyHK
@laurathiessen
Jun 21 2017 04:28
@rsilvers129 ... anyway you can figure out what is wrong with my putty? put the info a couple lines up...
katie disimone
@Kdisimone
Jun 21 2017 04:36

@PopcornPam_twitter you can remove the whole .git repository too without fear. Check out the bottom of this page for the “.git lock” section. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/papertrail.html#troubleshooting-using-papertrail

and then about the autotune check…the loop is checking that you have an autotune directory in your myopenaps directory. So, cd ~/myopenaps && ls Is there an autotune directory in there? If not, you’ll need to create one. There’s several ways to do that; running autotune as part of your loop, running autotune as a one-off on your rig, or creating the directory manually

feraridurango
@feraridurango
Jun 21 2017 04:37
~root@gavinaps:~# dpkg -P nodejs nodejs-dev
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove nodejs-dev which isn't installed
root@gavinaps:~# dpkg -P nodejs nodejs-dev
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove nodejs-dev which isn't installed
root@gavinaps:~#
@Kdisimone do you know why this is happening?
katie disimone
@Kdisimone
Jun 21 2017 04:41
@feraridurango is this the first time you are running that command? new edison setup?
feraridurango
@feraridurango
Jun 21 2017 04:42
i think so how can i find out?
yes it is a new edison set up and has never been up and running
katie disimone
@Kdisimone
Jun 21 2017 04:44
@laurathiessen are you sure that the coms port is still com4?
@feraridurango well, the command is removing those packages…which the nodejs-dev message is typical on the installations I’ve done (it wasn’t installed in the first place). Usually though I do get a message about purging configuration files for nodejs. I’d say that you should try moving forward since both of them are saying removed, and that was the goal?
rsilvers129
@rsilvers129
Jun 21 2017 04:48
@laurathiessen Are you sure it is COM4 you want to use? PCs are a pain with this. It could be a different COM port.
feraridurango
@feraridurango
Jun 21 2017 04:50
yes i moved forward and changed weekly to daily and removed the # from compress then saved and quit
feraridurango
@feraridurango
Jun 21 2017 05:02

ending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting enhanced syslogd: rsyslogd.
Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ 46.667948] intel_scu_watchdog_evo: watchdog_stop
Starting galileod

Debian GNU/Linux 7 gavinaps ttyMFD2

gavinaps login:
when i rebooted i got this

@Kdisimone does this look right?
katie disimone
@Kdisimone
Jun 21 2017 05:07
@feraridurango can you do name -a?
sorry
uname -a
feraridurango
@feraridurango
Jun 21 2017 05:08
root@gavinaps:~# root@gavinaps:~# uname -a
-bash: root@gavinaps:~#: command not found
root@gavinaps:~# Linux gavinaps 3.10.17-yocto-standard-r2 #7 SMP PREEMPT Thu Feb 26 09:57:06 UTC 2015 i686 GNU/Linux
-bash: Linux: command not found
root@gavinaps:~# root@gavinaps:~#
-bash: root@gavinaps:~#: command not found
root@gavinaps:~#
why does it say yocto????? :(
Cameron Chunn
@applehat
Jun 21 2017 05:09
probably never sucessfully flashed Jubilinux
katie disimone
@Kdisimone
Jun 21 2017 05:10
yup…hence why that message was missing from the nodejs
try reflashing. sorry
feraridurango
@feraridurango
Jun 21 2017 05:10
could it have unflashed?
katie disimone
@Kdisimone
Jun 21 2017 05:12
not really
DaisyHK
@laurathiessen
Jun 21 2017 05:14
@rsilvers129 @Kdisimone yes i have not changed the port i am using... i make sure to keep all that the same
katie disimone
@Kdisimone
Jun 21 2017 05:14
@laurathiessen check your device port manager in control panel of your computer to see if you need to change it
JELCRAWFORD
@JELCRAWFORD
Jun 21 2017 05:15
@Kdisimone - can you point me in the direction of where ISF calcuation logic is - just trying to understand some recent behav. Thx.
DaisyHK
@laurathiessen
Jun 21 2017 05:18
no... it is still that one
image.png
katie disimone
@Kdisimone
Jun 21 2017 05:32
@JELCRAWFORD do you mean like where is the autosens coming from like this…?
Jun 20 22:05:31 edison3 pump-loop.log: Autosens adjusting basal from 0.75 to 0.65; sens from 38 to 43.7
Jun 20 22:05:48 edison3 autosens-loop.log: -+---++++++>>>>++++-+----+++>>>>++>>>+++++-+>>>>>>>++---++>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+++-+----++--+++--+----------+>++---+------++--++---+++-----+-+------+---++++---------+++++----+++--++-+-++-++-+--------+------+++++++----------++++++++++++---+-+++----+-++++- 52% of non-meal deviations <= 0 (target 45%-50%)
Jun 20 22:05:48 edison3 autosens-loop.log: Excess insulin sensitivity detected: ISF adjusted from 38 to 43
Jun 20 2
DaisyHK
@laurathiessen
Jun 21 2017 05:41
@Kdisimone @rsilvers129 I need to head off to bed... if you got some pointers I will check this in the morning, caue I am so lost as to what to do. I was suggested to reinstall putty but if i erase it I think it would delete my entire account for the rig and I would have to retart over again urgg :(
katie disimone
@Kdisimone
Jun 21 2017 05:42
@laurathiessen I’m not a putty user, so I’m not very useful. However, deleting putty and reinstalling it will not harm your rig in the least. YOu’d be just fine to do that
JELCRAWFORD
@JELCRAWFORD
Jun 21 2017 05:44
@Kdisimone - looking to have a better understanding of logic behind ISF calculations - running oref0 with autosens and autotune. Not always confident about the stated ISF that is indicated... have large changes in the evening with a period of significant resistance which rapidly changes to 'regular' sensitivity - it is likely I just need better understanding of the guts of the calculation though... and then won't be left scratching my head, wondering. Will look through links you sent.
thx.
tynbendad
@tynbendad
Jun 21 2017 06:04
does anyone know about the problem with dexcom receiver and old (2016) explorer? i plugged my receiver in to the old explorer board and it is actually working, much to my surprise. should i expect it to have oddball problems or is it ok if it works?
katie disimone
@Kdisimone
Jun 21 2017 06:06
@tynbendad I asked the same question a week ago. :) I didn’t get an answer. I swear that board may or may not have worked before. Not sure. I am curious if the issues with 2016 boards are intermittent per board (like one board sometimes works or sometimes doesn’t ), of if the issues are different board always work or fail. Not sure. Didn’t hear back from anyone
tynbendad
@tynbendad
Jun 21 2017 06:07
lol, ok ;)
katie disimone
@Kdisimone
Jun 21 2017 06:07
either way, i was happy to see raw data because my only 2017 board is broken right now. LOL
tynbendad
@tynbendad
Jun 21 2017 06:07
will keep an eye on it, i guess if it keeps working i'll be happy
katie disimone
@Kdisimone
Jun 21 2017 06:08
Hopefully someone who remembers the initial batches will pipe in?
Martin Haeberli
@mhaeberli
Jun 21 2017 09:58
'''TypeError: Cannot set property 'lastBolusTime' of undefined
at generate (/root/src/oref0/lib/iob/index.js:41:31)
at Object.<anonymous> (/root/src/oref0/bin/oref0-calculate-iob.js:54:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)'''
Have rebooted rig. Iob.json somehow not right . What to do?
stefanakerblom
@stefanakerblom
Jun 21 2017 10:09
I have closed the loop and have a silly question
the parameter maxsafebasal is hindering me to get higher tem basals. where is this parameter? I can not find a Profile.json on my edison
Martin Haeberli
@mhaeberli
Jun 21 2017 10:12
check preferences.json ; parameter max_iob default is 0, common recommendation to start is 2 (which will permit high temp basals)
stefanakerblom
@stefanakerblom
Jun 21 2017 10:12
I have optimized preferences.json and increased max basal on the pump
log says: "temp":"absolute","bg":211,"tick":-2,"eventualBG":211,"snoozeBG":211,"predBGs":{"IOB":[211,209,207,206,204,203,201,200,199,199,198,197,197,197,197,197,197,197,197,197,198,198,198,199,199,199,199,200,200,200,200,200,201]},"COB":0,"IOB":1.369,"reason":"COB: 0, Dev: 14, BGI: -1.46, ISF: 10, Target: 85; Eventual BG 211 >= 85, adj. req. rate: 25.9 to maxSafeBasal: 12, temp 3.1<12U/hr","duration":30,"rate":12}
Martin Haeberli
@mhaeberli
Jun 21 2017 10:15
ok
stefanakerblom
@stefanakerblom
Jun 21 2017 10:15
actually I should at least be getting 6,15 but only get 3,1
I am a T1D with with very low insulin sensitivity (resistance)
openaps sets according to ns the basal to 3,1
stefanakerblom
@stefanakerblom
Jun 21 2017 10:21
max_iob is set to 12
Martin Haeberli
@mhaeberli
Jun 21 2017 10:24
@stefanakerblom I’m afraid I don’t have specific advice for you.
on the other hand, getting this error:
Could not parse input data: [SyntaxError: /root/etghopenaps/monitor/iob.json: Unexpected end of input]
also:
openaps monitor-pump
pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
tz://JSON/rezone/monitor/pumphistory-zoned.json
reporting monitor/pumphistory-zoned.json
tz://JSON/clock/monitor/clock-zoned.json
reporting monitor/clock-zoned.json
iob://text/shell/monitor/iob.json

/root/src/oref0/lib/iob/index.js:41
    iobArray[0].lastBolusTime = lastBolusTime;
                              ^
TypeError: Cannot set property 'lastBolusTime' of undefined
    at generate (/root/src/oref0/lib/iob/index.js:41:31)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-calculate-iob.js:54:13)
    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)
    at startup (node.js:119:16)
    at node.js:906:3
reporting monitor/iob.json
meal://text/shell/monitor/meal.json
Error: carb_ratio undefined out of bounds
reporting monitor/meal.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pump://JSON/status/monitor/status.json
reporting monitor/status.json
Martin Haeberli
@mhaeberli
Jun 21 2017 10:29
have tried rebooting
fidoman
@efidoman
Jun 21 2017 10:34
@scottleibrand - when I look in monitor/glucose.json I see repeat bg records where the date, bg, and other fields are exactly the same but the only difference between the records is the id. Nothing is broken, but I'm just wondering if this file is supposed to have 1000 records where most of them are repeats?
example here { "trend_arrow": "FLAT", "glucose": 112, "direction": "Flat", "_id": "594a4890a802700f1bcb107f", "name": "GlucoseSensorData", "date_type": "prevTimestamp", "_tell": 3, "display_time": "2017-06-21T06:12:00-04:00", "packet_size": 0, "dateString": "2017-06-21T06:12:00-04:00", "device": "openaps://medtronic/pump/cgm", "date": 1498039920000, "sgv": 112, "type": "sgv", "op": 56 }, { "trend_arrow": "FLAT", "glucose": 112, "direction": "Flat", "_id": "594a4726a802700f1bcb1076", "name": "GlucoseSensorData", "date_type": "prevTimestamp", "_tell": 2, "display_time": "2017-06-21T06:12:00-04:00", "packet_size": 0, "dateString": "2017-06-21T06:12:00-04:00", "device": "openaps://medtronic/pump/cgm", "date": 1498039920000, "sgv": 112, "type": "sgv", "op": 56 },
stefanakerblom
@stefanakerblom
Jun 21 2017 10:46
openaps: 'monitor-pump' is not an openaps command. See 'openaps --help'???????
had to switch directory
root@stefans-aps:~/myopenaps# openaps monitor-pump
pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/iter_pump_hours/monitor/pumphistory.json
monitor/pumphistory.json raised need more than 0 values to unpack
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/medtronic.py", line 640, in main
for rec in self.range( ):
File "/usr/local/lib/python2.7/dist-packages/decocare/models/init.py", line 67, in call
for record in page:
File "/usr/local/lib/python2.7/dist-packages/decocare/models/init.py", line 46, in download_page
for record in self.find_records(page):
File "/usr/local/lib/python2.7/dist-packages/decocare/models/init.py", line 157, in find_records
decoder = history.HistoryPage(response.data, self.inst)
File "/usr/local/lib/python2.7/dist-packages/decocare/history.py", line 777, in init
if lib.BangInt(crc) != computed:
File "/usr/local/lib/python2.7/dist-packages/decocare/lib.py", line 235, in BangInt
( x, y ) = ints
ValueError: need more than 0 values to unpack

root@stefans-aps:~/myopenaps#
Broadcast message from root@stefans-aps (Wed 2017-06-21 12:48:02 CEST):

Rebooting to fix radio errors!
The system is going down for reboot at Wed 2017-06-21 12:53:02 CEST!

jdunn42
@jdunn42
Jun 21 2017 10:53
@stefanakerblom Check your max_daily_safety_multiplier and current_basal_safety_multiplier values in preferences.json. They can also limit your temp basal.
Jason Wittmer
@jbwittmer
Jun 21 2017 11:08
@Kdisimone and @tynbendad The older version (pre-1.2) Explorer boards were capable of working with the Dexcom but wouldn't reliably maintain a connection. I don't remember the reason now, but do recall that was our experience.
Martin Haeberli
@mhaeberli
Jun 21 2017 11:15
my rig is now effectively offline: - because:
Could not parse input data:  [SyntaxError: /root/etghopenaps/monitor/iob.json: Unexpected end of input]
it has been offline for 4 hours. I have tried - rebooting, there was a fresh battery in the pump yesterday morning; i have tried oref0-runagain … i have tried breaking down aliases and figuring stuff out ...
no joy.
advice sought
stefanakerblom
@stefanakerblom
Jun 21 2017 11:17
i double checke preferences.json according to documentation. everything is correct. will have to wait since i had to bolus and openaps is now bolus snoozing. ist there a way to stop that?
Martin Haeberli
@mhaeberli
Jun 21 2017 11:19
also, just running a report standalone (with cron jobs stopped, etc)
openaps monitor-pump
pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
tz://JSON/rezone/monitor/pumphistory-zoned.json
reporting monitor/pumphistory-zoned.json
tz://JSON/clock/monitor/clock-zoned.json
reporting monitor/clock-zoned.json
iob://text/shell/monitor/iob.json

/root/src/oref0/lib/iob/index.js:41
    iobArray[0].lastBolusTime = lastBolusTime;
                              ^
TypeError: Cannot set property 'lastBolusTime' of undefined
    at generate (/root/src/oref0/lib/iob/index.js:41:31)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-calculate-iob.js:54:13)
    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)
    at startup (node.js:119:16)
    at node.js:906:3
reporting monitor/iob.json
meal://text/shell/monitor/meal.json
Error: carb_ratio undefined out of bounds
reporting monitor/meal.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
…
cameronrenwick
@cameronrenwick
Jun 21 2017 11:42
so are we all gonna run out now and buy a bunch of edisons? Used to be it was just pumps that were hard to get a hold of...geez
Martin Haeberli
@mhaeberli
Jun 21 2017 11:57
ok - in the morning, I will need advice from the deep sages on how to solve and prevent this next time.
this time, I copied a fake iob.json from another rig, and also turned off autosens and autotune
on the plus side, we have had about 3 weeks of safe night sleep with openaps running almost perfectly every night - one or two times a reboot was needed. this time was different - 3 hours of thrashing / debugging didn’t really get to the root cause. @danamlewis @scottleibrand I’d appreciate it if you can weigh in in the morning. I’m sure I missed something profound and obvious.
(I did .zip up the openaps directory before I seriously restructured things, just in case that will help for later analysis).
cameronrenwick
@cameronrenwick
Jun 21 2017 13:37
@rsilvers129 do you get the sense that the belt clip on your new design 3d case is somewhat elastic? I've had some 3d printed things done with similar clips that are too brittle. I think you understand what I mean... they need a certain amount of "give"
katie disimone
@Kdisimone
Jun 21 2017 14:34
@stefanakerblom did you see the comment above? Check your max_daily_safety_multiplier and current_basal_safety_multiplier values in preferences.json. Those are liking limiting the max basal rate that the loop can give. Even if you have your max basal rate in the pump set to 400 u/hr, those two lines are capable of limiting the max temp basal rate separate from pump.
@stefanakerblom because when you say "correct" it sounds like you mean you've left them at the default values of 3 and 4. Which also sounds like it isn't working for you.
katie disimone
@Kdisimone
Jun 21 2017 14:40
@mhaeberli did the error start shortly after midnight basically? It looks like that to me. Also based on the message, I'm leaning to an error was generated in your autotune profile that ran at midnight on that rig. Sounds like the profile got a bad carb ratio and it's messed everything up. If you still have that file, you could check what the autotune profile was that the rig generated at midnight. Using an autotune profile with a bad (corrupted) output would cause those errors, I believe.
Dana Lewis
@danamlewis
Jun 21 2017 14:46
:+1: let us know if that was the case per Katie's suggestion. Wondering if we can add a check and if Autotune profile bonks, fall back to pump profile. Feel free to create an issue if you don't see one there, with details on how the file looked if you still have it
Scott Leibrand
@scottleibrand
Jun 21 2017 14:56
@mhaeberli if you'd like to email me your .zip file (or just the monitor/ settings/ and autotune/ folders out of it, with any necessary redactions), I can take a look and see if it's obvious where the bad data was coming from. while the problem is ongoing I would've suggested drilling down into the reports that generate the input files used by the report that's complaining (iob.json in this case).
but yeah, I suspect @Kdisimone is correct, so I'd focus on the autotune files first.
Cameron Chunn
@applehat
Jun 21 2017 15:36
@cameronrenwick his case that I printed in PLA feels pretty sturdy, belt clip wise - But assuming shapeways is using Nylon on the White / Black & Flexable -- it should be plenty elastic and strong.
Martin Haeberli
@mhaeberli
Jun 21 2017 15:40
@Kdisimone @danamlewis @scottleibrand first - Thanks! Indeed, problem seems to have started shortly after midnight. When the rig is back much later today, I’ll indeed send zip file. monitor/iob.json would always turn up empty. I tried to look for earlier antecedents of monitor/iob.json and failed (lack of global understanding, fuzzy brain).
@danamlewis I contacted you via pm for @scottleibrand ’s email to send .zip file (later today) - context in pm
Martin Haeberli
@mhaeberli
Jun 21 2017 15:46
@danamlewis i REALLY like the idea of autonomous fall back to pump profile… Perhaps I should wait with the issue until I have the evidence in hand late today and can at least weakly confirm the hypothesis.
speaking of hypothesis - i have a new one re rig battery life - that is, that it can sometimes be much improved by a fresh pump battery even where one might not yet strictly be needed. We went from fumes at the end of the day on a 2500mah battery to maybe 20% on the first day of a new battery (we use the magical Energizer ultimate lithium)
Eric
@ecc1
Jun 21 2017 15:59
if the pump battery was low enough that multiple communication attempts were needed (idk if these are reported in the logs), then that would definitely use more battery on the rig
jburke41
@jburke41
Jun 21 2017 16:17
Has anyone ever gotten this error repeatedly after logining into the rig? What does it mean? alt
Eric
@ecc1
Jun 21 2017 16:21
It comes from the WiFi driver, at a point where it's expecting a packet to have Broadcom's OUI (00:10:18) but doesn't. Not sure why it would happen though.
jburke41
@jburke41
Jun 21 2017 16:24
@ecc1 any idea how to fix that?
Eric
@ecc1
Jun 21 2017 16:24
I think it's harmless
jburke41
@jburke41
Jun 21 2017 16:25
@ecc1 ok great! Thanks!
jmcrawford
@jmcrawford
Jun 21 2017 17:01
@stefanakerblom I don't have specific experience with this, but I believe there is something that needs to be changed in your setup to allow basal rates greater than 6u/hr. Perhaps someone with more knowledge can chime in on this
iananders
@iananders
Jun 21 2017 17:03
is there a common reason why my pumphistory file often goes stale and i have to manually update it from time to time (occurring with more frequency now)?
peterfulvi
@peterfulvi
Jun 21 2017 17:11
If I enter glucose values in xdrip wirelessly with my contour meter and I'm setup with doing the offline loop will my rig act upon those entries. That's is also using the G5 transmitter.
PopcornPam
@PopcornPam_twitter
Jun 21 2017 17:52
Screen Shot 2017-06-21 at 1.51.32 PM.png
umm... wtf?
katie disimone
@Kdisimone
Jun 21 2017 17:53

@jburke41 it's been harmless for the people I've seen have it this far UNLESS you also see messages about avahi-daemon service. The only people I've seen with the OUI mismatch have also been the only ones I've seen that have intermittent issues with avahi. I posted a solution to that avahi message on the papertrail page in the docs.

Also You can fix the interrupting messages for an individual console session using the command dmesg -D

Or, if you want a more permanent solution (see screenshot), you will add a line to a file. This will keep the messages from appearing for every screen/console connection for that rig. You can add the line using nano /etc/rc.local

The line you are going to add is sudo dmesg -n 1

PopcornPam
@PopcornPam_twitter
Jun 21 2017 17:53
both rigs have not been connecting to the bluetooth hotspot unless I manually start it from the cmmand line, and I couldb't log in via wifi so use USB, and this is what I got
Looks like a bad cable Pam
Tim Street
@tim2000s
Jun 21 2017 17:56
@peterfulvi - the rig only acts on the sensor values in xDrip, not the blood glucose values you calibrate with.
@stefanakerblom What is was the current basal rate in your earlier query? That also limits the maximum that OpenAPS will set the calculated basal to.
PopcornPam
@PopcornPam_twitter
Jun 21 2017 18:18
I rebooted and it seems ok.. can anyone remind me how to find the bluetooth settings? I know there is a page in the docs, but I can't find it. Trying to troubleshoot why it is n't connecting
Scott Leibrand
@scottleibrand
Jun 21 2017 19:49
@mhaeberli I'm scott@openaps.org
Tom Boudreau
@TomBoudr_twitter
Jun 21 2017 19:54
General NS question... is NS always a bit slow to load or is it the free tier and it would be much faster if I paid (classic get what you pay for situ)
I'm running on heroku
Michael Maniscalco
@gtscalco_twitter
Jun 21 2017 19:57
@TomBoudr_twitter the free tier idles after a certain time period (30 minutes) of inactivity. Your NS may be waking up and that is the reason it is slow? That’s a theory - maybe someone else can confirm or offer more info?
Here’s the detail on the free tier - https://www.heroku.com/free
You could also connect to your box and run top to see if there is a memory or load issue
Cameron Chunn
@applehat
Jun 21 2017 20:18
NS is slow on the front end, for me.
Lots of heavy javascript
marafie
@marafie
Jun 21 2017 20:22
After --> refreshed pumphistory could not parse input data: [syntaxerror: /root/myopenaps/monitor/glucose.json: unexpected end of input] .......... what this mean ??????
marafie
@marafie
Jun 21 2017 20:29
@mhaeberli I am getting this same error you are getting for the last day... I have been running offline for the past 4 days
Martin Haeberli
@mhaeberli
Jun 21 2017 20:41
@scottleibrand thx
PopcornPam
@PopcornPam_twitter
Jun 21 2017 20:43
I'm not sure what happened, but yesterday i wasn't able to bluetooth tether easily (not normally a problem), so tried troubleshooting that
Now, I get this ssh: Could not resolve hostname myopenaps2.local: nodename nor servname provided, or not known
for both rigs, even when connected to home wifi
I also think I have a problem with papertrail, since I am getting nothing useful there
PopcornPam
@PopcornPam_twitter
Jun 21 2017 20:49
Also, I reset network settings on my iphone two nights ago, and problems have been since then. I 'forget this device" to one rig hoping to reinstall and fix, and now, I can't get past the intro commands, despite waiting for about a minute between commands
Martin Haeberli
@mhaeberli
Jun 21 2017 20:52
@marafie - it sounds like -almost- the same error I had. I fixed by re -running oref0 with autosens and autotune not enabled
@marafie - did it start around midnight local time on the first day it failed for you?
@TomBoudr_twitter i have had good luck with Heroku free tier (as long as I don’t exceed limits) using uptime monitor (see docs) to keep it alive. otherwise it indeed does not work out
marafie
@marafie
Jun 21 2017 20:54
It runs at local time and after 3-4 days it failed .... I was traveling for the past 4 days and for some reason the sensor stoped working so I had to stop using the rig .... does this have to do with timing ?
I started using it ... offline 10 days ago. 4 days smooth and then I travelled and 2 days ago I arrived
Andy Sharrow
@dramageek
Jun 21 2017 20:56
@PopcornPam_twitter If you forgot it on your iPhone, did you do the same on your rig? When the two devices set up the connection, I believe they pick a random 6-digit pin. If you forgot and re-learned it, it picked a different pin.
marafie
@marafie
Jun 21 2017 20:56
I have two issues one is battery if the rig was low so it shout down and the pump battery was at 20%
PopcornPam
@PopcornPam_twitter
Jun 21 2017 20:56
@dramageek not sure how to forget it on the rig
marafie
@marafie
Jun 21 2017 20:57
@mhaeberli but for the past 45 mins it works fine !!!!
PopcornPam
@PopcornPam_twitter
Jun 21 2017 20:57
But also not sure what is going on that is making it so it won't connect to either (before forgetting one)
Andy Sharrow
@dramageek
Jun 21 2017 20:58
@PopcornPam_twitter You'll have to connect via wifi/serial, then do some of the bluetoothctl stuff again.
PopcornPam
@PopcornPam_twitter
Jun 21 2017 20:59
I am, it won't let me do the bluetooth stuff. I am getting stuck at sudo hciconfig hci0 name $HOSTNAME
Andy Sharrow
@dramageek
Jun 21 2017 21:02
Yeah, that's tricky to get through. When I set it up I had to do it at least 10 times.
marafie
@marafie
Jun 21 2017 21:02
Me 40 times
Spent 4 days fixing it
Trying
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:02
in the past i have had to do it a few times, but have been trying for over an hour now
my bigger question is why was it working, then stopped?
Martin Haeberli
@mhaeberli
Jun 21 2017 21:04
@marafie so how did you fix it? - or did it just start working again?
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:04
how do i remove a device from the edison?
marafie
@marafie
Jun 21 2017 21:04
Just started working again
Martin Haeberli
@mhaeberli
Jun 21 2017 21:05
@PopcornPam_twitter I assume you mean - remove a bluetooth device from the pair list?
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:05
yes, I did it from the phone, but not from the edison, so I can't repair it :(
rm did not seem to work
marafie
@marafie
Jun 21 2017 21:06
@mhaeberli I think it's related to the auto stuff (sense... etc)
marafie
@marafie
Jun 21 2017 21:07
Usually I don't see any auto sense logs appearing in the pump log now yes
Martin Haeberli
@mhaeberli
Jun 21 2017 21:07
it doesn’t say, but I believe you can do an ‘unpair’ in bluetoothctld once you have it running per instructions
@marafie :+1: that was a guess as I understood it from @danamlewis / @scottleibrand . but I don’t know that it’s confirmed yet ...
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:10
root@myopenaps2:~# rm 6C:72:E7:10:A3:C2
rm: cannot remove ‘6C:72:E7:10:A3:C2’: No such file or directory
Martin Haeberli
@mhaeberli
Jun 21 2017 21:10
@PopcornPam_twitter I don’t think rm is supposed to do the trick
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:10
remove didn't do anything
Andy Sharrow
@dramageek
Jun 21 2017 21:11
@PopcornPam_twitter Once you get there, do remove XX:XX:XX:XX:XX
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:11
get to which part? I am doing this from root
yes martin, I am on that, but stuck
Andy Sharrow
@dramageek
Jun 21 2017 21:11
once you get far enough to start bluetoothctl
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:11
ah, gotcha
Andy Sharrow
@dramageek
Jun 21 2017 21:12
I'm not sure if untrust XX:XX:XX:XX:XX:XX is neccessary or not, but it shouldn't hurt if you're re-doing it.
Whoops! looks like it is supposed to be remove rather than unpair. Editing the above comment to fix it.
You'll need your MAC address in the spot of the X's. If you start the first few characters, the tab key should complete it for you.
PopcornPam
@PopcornPam_twitter
Jun 21 2017 21:16
I am tryig to get back into bluetoothctl now
I am leaving for 4 days tomorrow, so feeling a bit frantic to get these functional again before leaving
marafie
@marafie
Jun 21 2017 21:18
When reading this....By having multiple rigs throughout a house, you can move from room-to-room without carrying rigs because the rigs will pass-off comms as you moves in and out of the rig’s range ...... what is the average range .... if my rig is 20cm far from the pump no communication !!!!
Scott Leibrand
@scottleibrand
Jun 21 2017 21:37
@marafie is that an Explorer board rig? you should be getting multiple meters range, sometimes up to 10m
if not, you should check your mmtune results, and make sure it's using the right frequency range for your pump
Cameron Chunn
@applehat
Jun 21 2017 21:38
^ in my experience i'm able to still get connection across my house in some spots.
Tim Street
@tim2000s
Jun 21 2017 21:43
I get two floors of range from a standard exb.
marafie
@marafie
Jun 21 2017 21:49
@scottleibrand yes I use explorer board.... how can I view the mmtune file and how can I make sure it is using the correct frequency range? My pump is WW
katie disimone
@Kdisimone
Jun 21 2017 22:12
Watch your pump log. Type l. That will show you your tune frequency when it happens. If you have papertrail, you can filter search for mmtune
jburke41
@jburke41
Jun 21 2017 22:23
I can't seem to get rid of this error. It happens as soon as I reboot after setting up wifi. Anyone familiar? alt
marafie
@marafie
Jun 21 2017 22:30
@Kdisimone I am using offline don't have access to paper trail ... what should I look for
Martin Haeberli
@mhaeberli
Jun 21 2017 22:30
@dramageek thx!
katie disimone
@Kdisimone
Jun 21 2017 22:32
@jburke41 you were told that error message wasn’t a big deal. I also left a note on how to hide those interrupting kernel messages. the lines that start with bracketed numbers are interrupting kernel messages. scroll back up and look for our messages.
jburke41
@jburke41
Jun 21 2017 22:33
@Kdisimone Thank you!!
katie disimone
@Kdisimone
Jun 21 2017 22:34
@marafie you’d want to login somehow to see your pump logs. you can’t see the mmtune without somehow seeing inside your rig (papertrail or logging in)
Martin Haeberli
@mhaeberli
Jun 21 2017 22:35
@Kdisimone @marafie of course you can also log in via a direct cable connection ...
just as a place to start
marafie
@marafie
Jun 21 2017 22:44
@mhaeberli should I view mmtune.log?
Martin Haeberli
@mhaeberli
Jun 21 2017 22:45
@marafie i don’t know without booting up a rig here - but you can type l | grep -C2 mmtune
and that may be interesting as well
it will look at recent log file entries near ‘mmtune’ and show them to you
katie disimone
@Kdisimone
Jun 21 2017 23:06
@marafie there is no specific mmtune log. Tuning is part of the pump loop. So you have to look at it from specific searches or by watching pump loop log.
marafie
@marafie
Jun 21 2017 23:16
How can I know it has the correct frequency??
Or uses is the correct one
That has a long range
Andy Sharrow
@dramageek
Jun 21 2017 23:31
@marafie That's what the mmtune does- the best frequency for the pump will shift over time based on a number of factors. MMtune searches the range, and picks the one it gets the strongest return signal on.
There are two different ranges that pumps will operate on, depending on whether your pump is NA or WW. That's the only setting that you should have to change RF-wise.
katie disimone
@Kdisimone
Jun 21 2017 23:33
The tuning chooses the strongest frequency. If you have ww pump it will say an 868 as part of the tune. If you use US/NA pump, it will say 916 as part of the tune.
marafie
@marafie
Jun 21 2017 23:34
I see now it's trying I am 5 meter away from the rig .... how many times it would try ? @dramageek
I see this
Andy Sharrow
@dramageek
Jun 21 2017 23:38
It should only need one time, as it'll run through the whole range to see what it gets strongest. Signal is measured in -dB, so lower is better. 99 = no signal.
PopcornPam
@PopcornPam_twitter
Jun 21 2017 23:40
just checking here, for papertrail:
logs5.papertrailapp.com:32146 logs5.papertrailapp.com is host, and 32146 is port?
Andy Sharrow
@dramageek
Jun 21 2017 23:50
Here's @marafie 's pump-loop.log:
ot@ubilinux:~# tail -F /var/log/openaps/pump-loop.log                      
+ exit 0                                                                     
mmtune: pump://JSON/mmtune/monitor/mmtune.json                               
reporting monitor/mmtune.json                                                
Starting pump-loop at Thu Jun 22 02:21:45 +03 2017:                          
Radio ok, Listening: .No pump comms detected from other                      
rigs                                                                         
Old pumphistory:                                                             
Error, retrying                                                              
Starting pump-loop at Thu Jun 22 02:22:46 +03 2017:                          
Radio ok, Listening: .No pump comms detected from other                      
rigs                                                                         
Old pumphistory:                                                             

Error, retrying                                                              
Listening: .No pump comms detected from other rigs                           
+ echo                                                                       

+ echo The CC111x is located at /dev/spidev5.1                               
The CC111x is located at /dev/spidev5.1                                      
+ cd /root/src/subg_rfspy/tools                                              
+ case "$2" in                                                               
+ ./reset.py /dev/spidev5.1                                                  
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
OK                                                                           
+ sleep 2                                                                    
+ exit 0                                                                     
+ echo                                                                       

+ echo The CC111x is located at /dev/spidev5.1                               
The CC111x is located at /dev/spidev5.1                                      
+ cd /root/src/subg_rfspy/tools                                              
+ case "$2" in                                                               
+ ./change_setting.py /dev/spidev5.1 0x06 0x00                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x0C 0x59                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x0D 0x66                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x0E 0x33                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x0F 0x62                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x10 0x1A                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x11 0x13                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x09 0x24                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x0A 0x2E                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ ./change_setting.py /dev/spidev5.1 0x0B 0x38                               
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
SUCCESS                                                                      
+ sleep 0.5                                                                  
+ exit 0                                                                     
mmtune: pump://JSON/mmtune/monitor/mmtune.json                               
reporting monitor/mmtune.json                                                
Starting pump-loop at Thu Jun 22 02:25:23 +03 2017:                          
Radio ok, Listening: .No pump comms detected from other                      
rigs                                                                         
Old pumphistory:                                                             
Error, retrying                                                              
Listening: .No pump comms detected from other rigs                           
+ echo                                                                       

+ echo The CC111x is located at /dev/spidev5.1                               
The CC111x is located at /dev/spidev5.1                                      
+ cd /root/src/subg_rfspy/tools                                              
+ case "$2" in                                                               
+ ./reset.py /dev/spidev5.1                                                  
RileyLink OK                                                                 
Version: subg_rfspy 0.8                                                      
OK                                                                           
+ sleep 2                                                                    
+ exit 0                                                                     
+ echo                                                                       

+ echo The CC111x is located at /dev/spidev5.1                               
The CC111x is lo
Looks like it's not even making it as far as tuning?
marafie
@marafie
Jun 21 2017 23:53
This log is when I am 4 meters away
Will send a log after I make it 10cm away
katie disimone
@Kdisimone
Jun 21 2017 23:54
Pam- yes
Andy Sharrow
@dramageek
Jun 21 2017 23:56
Mara- there's something else going on here, it's not a tuning thing. Range shouldn't affect what you get back here.