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

19th
Dec 2017
vibhorbatra
@vibhorbatra
Dec 19 2017 01:02
hello folks..i am traveling to india with the rig. had the rig working well in US for last few weeks, but unable to connect to pump when in india. getting the following error
Preflight OK. Profile less than 60m old; Profile valid. RefreshValueError: need more than 0 values to unpack
Retrying invoke_pumphistory_etc
ValueError: need more than 0 values to unpack
Couldn't invoke_pumphistory_etc - continuing
Retrying monitor_pump
IndexError: bytearray index out of range
Retrying invoke_pumphistory_etc
IndexError: bytearray index out of range
Couldn't invoke_pumphistory_etc - continuing
Couldn't monitor_pump - continuing
Couldn't refresh_pumphistory_and_meal
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Listening for 40s silence before mmtu
what shd i change? all components are the same. connecting to wifi ok
maybe i just had to submit to the group..its working
Dana Lewis
@danamlewis
Dec 19 2017 01:06
Valueerro need more than 0 to unpack just means it got a bad pump read
Always self resolves
Eric Jensen
@elnjensen
Dec 19 2017 01:39
In the set of commands that are documented for the loopable pumps, is it possible to (a) read the max temp basal setting on the pump, and/or to (b) read whether the temp basal is set to be in percent or units/hr? I'm thinking of this primarily for use with Loop (to proactively check pump settings if possible from within the app) but thought I'd ask here, too, since this is a general question about pump communication. TIA.
alimhassam
@alimhassam
Dec 19 2017 01:39
i'm trying to setup(rewind and prime) my spare pump for testing, tried to push with my pinky but it doesn't work, how much pressure do i need to give?
Dana Lewis
@danamlewis
Dec 19 2017 01:44
@elnjensen if you mean max basal rather than max temp basal? Yes I believe so. Ditto for checking percent vs u/hr - I added an error message around that in the last six months by grepping for percent in the logs. Not sure offhand which command, or if it's just included in the history pull - might be the latter, but easy for you to do the same for Loop
Scott Leibrand
@scottleibrand
Dec 19 2017 01:45
@alimhassam you basically need to stop the plunger from advancing: it's a fair bit of force
alimhassam
@alimhassam
Dec 19 2017 01:45
ok, i got it to prime, just used an old reservoir.
i think i was scared of pressing too hard.
Eric Jensen
@elnjensen
Dec 19 2017 01:46
Thanks, @danamlewis ! Yes, I mean max basal. (Didn't remember that it was called that in the menus since it's basically relevant in the context of setting temp basals.)
Scott Leibrand
@scottleibrand
Dec 19 2017 01:47
openaps use pump read_settings is the openaps command to read that and all the other miscellaneous settings
they go into settings/settings.json
Eric Jensen
@elnjensen
Dec 19 2017 01:47
Thanks, Scott!
Glenn Primack
@primags
Dec 19 2017 03:09
I eat late at night, like 10 PM. My carb absorption is pretty slow because of this, and carbs can hit me 5+ hours into sleep. Is there a setting to have SMB on all night? It seems like towards the morning time it doesn't give me SMB's anymore. Thanks.
Dana Lewis
@danamlewis
Dec 19 2017 03:11
@primags are you on 0.6.0? If not, you may want to update; and if you are, read up on the preferences page about SMB always on option
Glenn Primack
@primags
Dec 19 2017 03:12
Yes I am, and I turned on all those options (I think). But I thought it only worked all the time if I had a temp basal? I thought once COB run out, it wouldn't SMB. For instance, I ran like 180 for several hours this morn and was wondering why I didn't see any SMB's. It was adjusting basals.
image.png
live4sw
@live4sw
Dec 19 2017 04:00
@primags I went through the same process of you when I upgraded to 0.6.0, I suggest re-reading http://openaps.readthedocs.io/en/latest/docs/While%20You%20Wait%20For%20Gear/preferences-and-safety-settings.html
There are different options for SMB. I personally stick with SMB w/COB since I use xDrip+ and there are apparently some minor safety issues with enabling it all the time. But the preferences doc discusses the different SMB preferences variables that are available.
Dana Lewis
@danamlewis
Dec 19 2017 04:02
Don't need to guess - check your logs from that time if you want to see what it was doing and why
Lin
@denglfddd
Dec 19 2017 05:50
屏幕快照 2017-12-19 13.49.38.png
This does not seem to be properly installed, I can not install oref0
Scott Leibrand
@scottleibrand
Dec 19 2017 05:59
nope. go back to the earlier steps to get npm installed
Dirk Gastaldo
@dirkgastaldo
Dec 19 2017 06:14
I bought a used laptop to keep at the office in case I ever need to setup a serial connection to my rig. The UART port shows up as COM5 (USB Serial Port), but I can't get the Edison to give me a prompt. I can Telnet into the rig with its WiFi address but no serial. Most likely cause?
Scott Leibrand
@scottleibrand
Dec 19 2017 06:15
Did you try rebooting it with the black power button while connected over UART?
Dirk Gastaldo
@dirkgastaldo
Dec 19 2017 06:16
no, i'll do that now
Scott Leibrand
@scottleibrand
Dec 19 2017 06:16
@denglfddd you can reflash, or try the post-flashing install steps first if you prefer.
Dirk Gastaldo
@dirkgastaldo
Dec 19 2017 06:18
Thanks, Scott, that did it.
Lin
@denglfddd
Dec 19 2017 06:19
@scottleibrand thanks
Matthias
@ceben80
Dec 19 2017 07:23

@scottleibrand @PieterGit

I changed the pump "ping" command to 8000 as well

self.send_packet("a7" + self.pumpserial + "8000")
(regarding to https://github.com/oskarpearson/mmeowlink/pull/66/files)

Here my mmtune result, pretty good

RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: "868.372", 5, -49 No wait required.

but didn't receive the pumphistory

Starting basal-only pump-loop at Tue Dec 19 08:17:44 CET 2017:
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Old pumphistory: IndexError: bytearray index out of range
grep: monitor/temp_basal.json: No such file or directory
Error, retrying
Matthias
@ceben80
Dec 19 2017 07:41
different openaps use pump commands are working as expected, e.g.
root@localhost:~/myopenaps# openaps use pump reservoir
135.8

root@localhost:~/myopenaps# openaps use pump read_battery_status
{
  "status": "normal",
  "voltage": 1.48
}

root@localhost:~/myopenaps# openaps use pump read_clock
"2017-12-19T08:38:53"root@localhost:~/myopenaps#
would be great you help me regards with the above pumphistory issue - thanks :exclamation:
Matthias
@ceben80
Dec 19 2017 08:15
running the report manually
root@localhost:~/myopenaps# openaps mmtune && openaps report invoke settings/pumphistory-24h.json

The CC111x is located at /dev/ttyMFD1
RileyLink OK
Version: subg_rfspy 0.8
OK

The CC111x is located at /dev/ttyMFD1
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
RileyLink OK
Version: subg_rfspy 0.8
SUCCESS
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"868.504", 3, -77 

pump://JSON/iter_pump_hours/settings/pumphistory-24h.json
settings/pumphistory-24h.json  raised  bytearray index out of range
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 44, in __call__
    self.before_main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 64, in before_main
    self.check_session(app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 141, in check_session
    self.session = self.get_session_info( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 104, in get_session_info
    fields = self.create_session( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 129, in create_session
    self.pump.power_control(minutes=minutes)
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 209, in power_control
    if self.check_pump_awake():
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 195, in check_pump_awake
    self.model = self.read_model()
  File "/root/src/decocare/decocare/session.py", line 85, in read_model
    model = self.query(commands.ReadPumpModel)
  File "/root/src/decocare/decocare/session.py", line 101, in query
    self.execute(command)
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 230, in execute
    return sender(command)
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 139, in __call__
    self.prelude()
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 110, in prelude
    resp = Packet.fromBuffer(buf)
  File "/usr/local/lib/python2.7/dist-packages/mmeowlink/packets/rf.py", line 81, in fromBuffer
    rftype   = buf[0]
IndexError: bytearray index out of range
in short:
pump://JSON/iter_pump_hours/settings/pumphistory-24h.json
settings/pumphistory-24h.json  raised  bytearray index out of range
Lin
@denglfddd
Dec 19 2017 11:18
屏幕快照 2017-12-19 19.17.57.png
Need some help.Thanks.
philipgo
@philipgo
Dec 19 2017 11:38
@denglfddd Which version of jubilinux did you install?
Lin
@denglfddd
Dec 19 2017 12:09
@drnoname82 0.3.0
philipgo
@philipgo
Dec 19 2017 13:19
@denglfddd That won't work, latest tested version is jubilinux 0.2.0. You should reflash your Edison with 0.2.0
Debby Muskar
@debbymuskar
Dec 19 2017 15:15
Hello, can I please get some assistance with my bluetooth tether? My wifi networks are all correct, but my bluetooth address shows up as the SSID for the 'crontab -e' command. It looks like this
I took out the NS information
Ebgineer
@Ebgineer
Dec 19 2017 15:22
could you try with crontab -l instead of crontab -e. The editor chops off the end of each line
Debby Muskar
@debbymuskar
Dec 19 2017 15:22
ok
Again, took off NS
This is what I get when I turned off my personal hotspot now. The wifi network is working still, but if I turn on the hotspot, I get connected.
Ebgineer
@Ebgineer
Dec 19 2017 15:38
sorry, this is kind of a "blind leading the blind" situation here, but what is it in cron that concerns you? cron handles all the tasks that run periodically or on startup. yours looks the same as mine.
Debby Muskar
@debbymuskar
Dec 19 2017 15:40
I guess my concern is primarily that my bluetooth tether takes over instead of wifi if I keep the toggle on - i assumed there was something in crontab that spoke to that, but let's ignore the crontab results and start there
Ebgineer
@Ebgineer
Dec 19 2017 15:44
there could be some info in tail /var/log/openaps/network.log
Debby Muskar
@debbymuskar
Dec 19 2017 15:45
Hmmm. So I had the hotspot off for a while. I turned it back on and have not connected via bluetooth tether, so maybe I'm ok now?
I had rebooted the rig before.
And that command shows that bluetooth PAN is not connected now and that I am connected via my work LAN. Let's hope it stays this way until I leave!
Thanks @Ebgineer!
Ebgineer
@Ebgineer
Dec 19 2017 15:46
perhaps the rig is disconnecting from wifi every once in a while, and switches to bluetooth to try to recover
Debby Muskar
@debbymuskar
Dec 19 2017 15:47
Could be. Seems the problem was only an issue right after I set up the tether. Once I rebooted, it seems to be ok.
When I leave the office to test it, we will see what happens. Thanks a bunch!
Ebgineer
@Ebgineer
Dec 19 2017 15:47
great, best of luck!
Debby Muskar
@debbymuskar
Dec 19 2017 15:47
= )
ejoe132
@ejoe132
Dec 19 2017 19:49

Rig stopped working, getting this message:
Rig is too hot: not running pump-loop at Sat Dec 9 02:06:07 EST 2017
Please ensure rig is properly ventilated
temp1_input: 93.000
temp1_input: 92.000
Rig is too hot: not running pump-loop at Sat Dec 9 02:06:34 EST 2017
Please ensure rig is properly ventilated

Wont restart the loop, should I just do a fresh install?

jdunn42
@jdunn42
Dec 19 2017 20:05
@ejoe132 you need to let your rig cool down. Do you keep it in a case?
ejoe132
@ejoe132
Dec 19 2017 20:07
@jdunn42 No its in an old flip phone belt clip holster, but the over heating happened on the 9th... log is no longer updating
jdunn42
@jdunn42
Dec 19 2017 20:08
Have you rerun oref0 setup?
Josée
@JoseeT1Bionique
Dec 19 2017 20:15
25590193_10155742279492900_1889549415_o.jpg
Hello, ever since I've been on Oref0.6.0, some of my EasyBolus do not appear in NS. It happens once every other day, here's today's example.
ejoe132
@ejoe132
Dec 19 2017 20:24
@jdunn42 Not yet, just wondering if thats what I should do
@jdunn42 Not sure whats going on here, giving me a response its read only? fatal: Unable to create '/root/src/oref0/.git/index.lock': Read-only file system
root@edisonone:~/src/oref0#
root@edisonone:~/src/oref0# cd ~/src/oref0 && git checkout master && git pull && sudo npm install -g oref0
fatal: Unable to create '/root/src/oref0/.git/index.lock': Read-only file system
root@edisonone:~/src/oref0#
Scott Leibrand
@scottleibrand
Dec 19 2017 20:34
@ejoe132 I would turn off your rig to let it cool down, then turn it back on once it's no longer hot to the touch
ejoe132
@ejoe132
Dec 19 2017 20:35
@scottleibrand Im not explaining this correctly. The last entry in the log is from december 9th and it isnt updating or anything now, tried restarting a few times and same thing. then when trying to do a fresh install tells me the file is read only
Scott Leibrand
@scottleibrand
Dec 19 2017 20:36
does df -h show your disk as full?
ejoe132
@ejoe132
Dec 19 2017 20:43
@scottleibrand doesnt look full, shows dev/root 84%
cduarte
@cduarte
Dec 19 2017 20:44
hi.
I am trying to configure RIG with dexcom share g4
when run the command
openaps use cgm configure --serial xxx --mac xxx
receive error message
usage: openaps-use cgm [-h] USAGE ...
openaps-use cgm: error: argument USAGE: invalid choice: 'configure' (choose from 'DescribeClocks', 'GetFirmwareHeader', 'ReadBatteryLevel', 'ReadBatteryState', 'ReadBlindedMode', 'ReadChargerCurrentSetting', 'ReadClockMode', 'ReadDeviceMode', 'ReadDisplayTime', 'ReadDisplayTimeOffset', 'ReadGlucoseUnit', 'ReadHardwareBoardId', 'ReadLanguage', 'ReadManufacturingData', 'ReadRTC', 'ReadSetupWizardState', 'ReadSystemTime', 'ReadSystemTimeOffset', 'ReadTransmitterId', 'UpdateTime', 'WriteChargerCurrentSetting', 'battery', 'calibrations', 'config', 'glucose', 'insertion_time', 'iter_calibrations', 'iter_calibrations_hours', 'iter_glucose', 'iter_glucose_hours', 'iter_insertion_time', 'iter_insertion_time_hours', 'iter_meter_data', 'iter_meter_data_hours', 'iter_sensor', 'iter_sensor_hours', 'iter_sensor_insertions', 'iter_sensor_insertions_hours', 'iter_user_event_data', 'iter_user_event_data_hours', 'meter_data', 'nightscout_calibrations', 'oref0_glucose', 'scan', 'sensor', 'sensor_insertions', 'user_event_data')
cduarte
@cduarte
Dec 19 2017 20:51
can help!?
Jon Cluck
@cluckj
Dec 19 2017 21:28
any reason there are two identical copies of "function invoke_pumphistory_etc" and "function invoke_reservoir_etc" in oref0-pump-loop.sh?
emineau
@emineau
Dec 19 2017 21:33

Hi,

Running oref0 0.6.0 master for @JoseeT1Bionique and last night Autotune failed to run with the following error in Autotune.log:

oref0-autotune-prep ns-treatments.2017-12-18.json profile.json ns-entries.2017-12-18.json profile.pump.json >     autotune.2017-12-18.json
Could not parse input data:  [SyntaxError: Unexpected end of input]
oref0-autotune-core autotune.2017-12-18.json profile.json profile.pump.json > newprofile.2017-12-18.json
/home/.rootfs/usr/local/lib/node_modules/oref0/lib/autotune/index.js:48
    CRData.forEach(function(CRDatum) {
           ^
TypeError: Cannot call method 'forEach' of undefined
    at tuneAllTheThings (/home/.rootfs/usr/local/lib/node_modules/oref0/lib/autotune/index.js:48:12)
    at Object.<anonymous> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-autotune-core.js:59:27)
    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
false
Could not run oref0-autotune-core autotune.2017-12-18.json profile.json profile.pump.json

Autotune ran as expected for the past 3-4 days before that, without any problem.

Any idea what could be causing this and how to resolve?

Scott Leibrand
@scottleibrand
Dec 19 2017 21:55
@cluckj merge "conflict" I didn't notice. I fixed it in profiling branch but haven't PR'd it to dev yet
@cduarte why are you running that manually? normally you'd want to re-run oref0-setup and select the appropriate setup
Jon Cluck
@cluckj
Dec 19 2017 21:56
:thumbsup:
just noticed it as I was going through and replacing things
Scott Leibrand
@scottleibrand
Dec 19 2017 21:56
@ejoe132 are you still getting read-only file system errors? if so, might be easiest to re-flash
Matthias
@ceben80
Dec 19 2017 21:59
@scottleibrand Hi Scott, soon bed time here, but Q again regarding my above pump history issue with the 712, mmtune is now running fine after comm tweaking
but now must go to bed, would be happy tomorrow to read more about this problem, thanks and good night from Germany
Scott Leibrand
@scottleibrand
Dec 19 2017 22:01
I don't have much direct experience with the 512, and won't have access to one until January, so maybe @dcacklam can help
Matthias
@ceben80
Dec 19 2017 22:01
yeah but maybe only pump history related?
different openaps use pumpcommand were working fine as expected
David
@davidkeddydb
Dec 19 2017 22:18
If you manually run autotune over a few days worth of data if you haven't used an OpenAPS rig in a while, will that then replace autotune from say a week or so ago?
PieterGit
@PieterGit
Dec 19 2017 22:37
@ceben80 I'm not very familair with the low level pump comms you mention in https://gitter.im/nightscout/intend-to-bolus?at=5a38be78ba39a53f1a7a0fe5 . Did you check with @oskarpearson if he could be of any help?
Matthias
@ceben80
Dec 19 2017 22:41
I never have seen Oskar for a long time, maybe he's off here....
But tbh the x12 setup option is not useful in the setup, it does not work
in total for a success x12 loop
live4sw
@live4sw
Dec 19 2017 22:56
Does anyone have an issue with their easy boluses sometimes not appearing on their NS graph? They are picked up in the careportal IOB and in the openaps logs, just sometimes not appearing in the graph itself.
And has anyone gotten a git fetch failed message in their logs? This doesn't seem to be affecting my loop functioning, but I've never seen it before.
philipgo
@philipgo
Dec 19 2017 23:06
@live4sw Are you running the latest dev version of Nightscout? What version of OpenAPS? There have been some changes to deduplication in OpenAPS and I think as well in Nightscout
Scott Leibrand
@scottleibrand
Dec 19 2017 23:08
@davidkeddydb it will pick up autotuning from wherever it was when you turned off the rig. running it for a few days will update it based on those days, but that will be adjusting from the previously autotuned settings, not resetting from the pumpprofile (unless you manually delete the old results).
cduarte
@cduarte
Dec 19 2017 23:28
@scottleibrand dont work when run the setup.
Before start the setup I put forget the dexcom
i will try again now
live4sw
@live4sw
Dec 19 2017 23:42
@drnoname82 Running 0.6.0 (master) and NS 0.10.2-release-20171109 (dev), updating my NS now. Maybe that's it.
Lin
@denglfddd
Dec 19 2017 23:44
@drnoname82 thank you !I
David
@davidkeddydb
Dec 19 2017 23:52
Lol. I hate Gitter on the iPhone! Thanks @scottleibrand