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

31st
Dec 2017
Benjamin Mammon
@bmammon
Dec 31 2017 09:11
I just tried updating my rig with the latest dev branch and I got this error.
root@ben2:~# cd ~/src/oref0 && git checkout dev && git pull
Already on 'dev'
Your branch is up-to-date with 'origin/dev'.
Already up-to-date.
root@ben2:~/src/oref0# npm run global-install

> oref0@0.6.1-dev global-install /root/src/oref0
> npm install && sudo npm install -g && sudo npm link && sudo npm link oref0

npm notice created a lockfile as package-lock.json. You should commit this file.
added 6 packages and removed 116 packages in 51.811s
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN /root/src/oref0/node_modules/os-locale is not a child of /home/.rootfs/usr/local/lib
npm ERR! path /root/src/oref0/node_modules/os-locale
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/root/src/oref0/node_modules/os-locale' -> '/root/src/oref0/node_modules/.os-locale.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-12-31T09_01_29_056Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.6.1-dev global-install: `npm install && sudo npm install -g && sudo npm link && sudo npm link oref0`
npm ERR! Exit status 254
npm ERR! 
npm ERR! Failed at the oref0@0.6.1-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-12-31T09_01_29_365Z-debug.log
Roumen Georgiev
@PoweRGbg
Dec 31 2017 10:20
Hello everyone! Could anyone here point me to a tool/way to convert nightscout's profile.json to the oref0 profile ?
acerrone
@acerrone
Dec 31 2017 16:12
Im at a loss! I have three loops set up edison/explorer board connected to house wifi and bluetooth connection to phone. All 3 worked fine however i have noticed the wireless range between rig and pump have decreased. Anyways, ive updated all three loops based on the main channel and all three will not look, any ideas where to start with diagnosis? Ive exhausted myself with reinstalling and checking settings. Thank you for any assistance or direction
live4sw
@live4sw
Dec 31 2017 16:13
@acerrone How significantly has the range decreased?
acerrone
@acerrone
Dec 31 2017 16:14
Seems like the rig needs to be within a few feet of the pump
i thought maybe it was because mmtune was just connectioning on a weaker channel all then
Ive had two loops next to my son all night trying to connect and no loop on nightscout all night. I have papertrail up but not sure what to search for to diagnose the issue
Dana Lewis
@danamlewis
Dec 31 2017 16:24
@acerrone does pump battery need changing?
Anthony Cerrone
@awcerrone_twitter
Dec 31 2017 16:28
The pump battery is good and new, just changed his site and battery yesterday.
my main issue now is I've updated all three rigs and they don't work now so I've obviously done something to screw them up.
Dana Lewis
@danamlewis
Dec 31 2017 16:31
@acerrone what do the logs say?
@bmammon install master for now if you need to get up and running. Dev doesn't have that much in it
Anthony Cerrone
@awcerrone_twitter
Dec 31 2017 17:05
I'm not sure all three are the same but I'll start with one at a time!
serial.serialutil.SerialException: Attempting to use a port that is not open
Starting pump-loop at Sun Dec 31 09:02:49 PST 2017:
monitor/temp_basal.json raised Attempting to use a port that is not open
pump://JSON/read_temp_basal/monitor/temp_basal.json
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 62, in before_main
self.setup_medtronic( )
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 161, in setup_medtronic
self.uart.open( )
File "/root/src/decocare/decocare/stick.py", line 874, in open
log.info('%s' % self.product_info( ))
File "/root/src/decocare/decocare/stick.py", line 515, in product_info
return self.query(ProductInfo)
File "/root/src/decocare/decocare/stick.py", line 509, in query
return self.process( )
File "/root/src/decocare/decocare/stick.py", line 490, in process
raw = self.send_force_read( )
File "/root/src/decocare/decocare/stick.py", line 606, in send_force_read
self.link.write(reader.format( ))
File "/root/src/decocare/decocare/link.py", line 47, in write
r = self.serial.write( string )
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 531, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
Error, retrying
^C
Steve Bernacki
@sbernacki
Dec 31 2017 17:10
Upgraded our Nightscout to Habanero Red... really nice display modifications @scottleibrand , loving the two hour view and ease of being able to see microboluses. Great job as always. :)
Jieseldeep
@Jieseldeep
Dec 31 2017 17:32

Hi, OpenAPS is not currently looping. I checked my logs and I'm seeing a system time error. Not sure why, or what changed it...

How do I fix the system time? (It's actually about 7:30 here)

Dec 30 09:15:58 panc pump-loop.log: oref0-pump-loop failed. {"reason":"If current system time Sat Dec 30 2017 09:15:58 GMT-1000 (HST) is correct, then BG data is too old. The last BG data was read 51.7m ago at Sat Dec 30 2017 08:24:15 GMT-1000 (HST). Temp 0 <= current basal 0.85U/hr; doing nothing. "}
Dec 30 09:20:02 panc pump-loop.log: Waiting up to 4 minutes for new BG: ........................Unsuccessful oref0-pump-loop (BG too old) at Sat Dec 30 09:20:01 HST 2017
Dec 30 09:20:03 panc pump-loop.log: Starting oref0-pump-loop at Sat Dec 30 09:20:03 HST 2017 with 26 second wait_for_silence:
Dec 30 09:24:35 panc pump-loop.log: Waiting up to 4 minutes for new BG: ........................Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Dec 30 09:25:18 panc pump-loop.log: Preflight OK. Profile less than 60m old; Profile valid. Refreshed pumphistory
Dec 30 09:25:18 panc pump-loop.log: Warning: setting mealCOB to 0 because currentDeviation is null/undefined
Dec 30 09:25:18 panc pump-loop.log: and meal.json
Dec 30 09:25:21 panc pump-loop.log: Checking pump clock: "2017-12-30T09:25:16-10:00" is within 1m of current time: Sat Dec 30 09:25:21 HST 2017
Dec 30 09:25:27 panc pump-loop.log: Temp refreshed
Dec 30 09:25:29 panc pump-loop.log: Autotune exists! Hoorah! You can use microbolus-related features.
Dec 30 09:25:29 panc pump-loop.log: {"carbs":64,"nsCarbs":64,"bwCarbs":0,"mealCOB":0,"currentDeviation":null,"maxDeviation":0,"minDeviation":999,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":999,"allDeviations":[],"lastCarbTime":1514656387000,"bwFound":false}
Dec 30 09:25:29 panc pump-loop.log: {"iob":3.159,"activity":0.0332,"basaliob":0.37,"bolusiob":2.789,"netbasalinsulin":0.5,"bolusinsulin":4.9,"time":"2017-12-30T19:25:20.000Z","iobWithZeroTemp":{"iob":3.159,"activity":0.0332,"basaliob":0.37,"bolusiob":2.789,"netbasalinsulin":0.5,"bolusinsulin":4.9,"time":"2017-12-30T19:25:20.000Z"},"lastBolusTime":1514656387000,"lastTemp":{"rate":0.9,"timestamp":"2017-12-30T08:00:48-10:00","started_at":"2017-12-30T18:00:48.000Z","date":1514656848000,"duration":10.45}}
Dec 30 09:25:29 panc pump-loop.log: {"delta":0,"glucose":158,"short_avgdelta":0,"long_avgdelta":0,"date":1514658255385}
Dec 30 09:25:29 panc pump-loop.log: Checking deliverAt: null is within 1m of current time: Sat Dec 30 09:25:29 HST 2017
Dec 30 09:25:29 panc pump-loop.log: date: invalid date ‘null’
Dec 30 09:25:29 panc pump-loop.log: Couldn't smb_verify_suggested
Dec 30 09:25:29 panc pump-loop.log: oref0-pump-loop failed. {"reason":"If current system time Sat Dec 30 2017 09:25:29 GMT-1000 (HST) is correct, then BG data is too old. The last BG data was read 61.2m ago at Sat Dec 30 2017 08:24:15 GMT-1000 (HST). Temp 0 <= current basal 0.85U/hr; doing nothing. "}
Dec 30 09:29:33 panc pump-loop.log: Waiting up to 4 minutes for new BG: ........................Unsuccessful oref0-pump-loop (BG too old) at Sat Dec 30 09:29:33 HST 2017
Dec 30 09:30:03 panc pump-loop.log: Starting oref0-pump-loop at Sat Dec 30 09:30:02 HST 2017 with 15 second wait_for_silence:

Essentially, it looks like my rig is getting the wrong time zone somehow...
even though it says it's in the right time zone (Hawaii), it's getting the wrong time somehow
Dana Lewis
@danamlewis
Dec 31 2017 17:39
It has not been getting bg data
Is the rig online? First troubleshoot the flow of bg data
Jieseldeep
@Jieseldeep
Dec 31 2017 17:41
Thanks Dana, Hotspot got turned off somehow...
someday I'll understand the logs well enought to have deduced that myself...every day I'm learning something new! Thanks again!
Why is the timestamp 9:25 HST, when it's actually 7:25 HST right now? Is that due to not having a network connection
Jieseldeep
@Jieseldeep
Dec 31 2017 17:49
oh...I see now. The date stamp is wrong too, so it was just happenstance that I checked it 10 hours later and didn't notice the date was wrong too.
ok, getting back online! Thanks again!
Dana Lewis
@danamlewis
Dec 31 2017 17:52
:+1:
Anthony Cerrone
@awcerrone_twitter
Dec 31 2017 18:18
Any suggestions? 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 62, in before_main
self.setup_medtronic( )
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 161, in setup_medtronic
self.uart.open( )
File "/root/src/decocare/decocare/stick.py", line 874, in open
log.info('%s' % self.product_info( ))
File "/root/src/decocare/decocare/stick.py", line 515, in product_info
return self.query(ProductInfo)
File "/root/src/decocare/decocare/stick.py", line 509, in query
return self.process( )
File "/root/src/decocare/decocare/stick.py", line 490, in process
raw = self.send_force_read( )
File "/root/src/decocare/decocare/stick.py", line 606, in send_force_read
self.link.write(reader.format( ))
File "/root/src/decocare/decocare/link.py", line 47, in write
r = self.serial.write( string )
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 531, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open
Error, retrying
^C
joannestevens
@joannestevens
Dec 31 2017 18:43
Evening all .... I haven't been on here for quite some months and have been successfully looping. I have managed to break the micro usb on my explorer board so I am back to the start. Thankfully I have 2 more explorer boards and edisons to go with them. However, both edisons are now stuck on "ready to receive applications". I am using windows to reflash - can anyone offer any suggestions? TIA
Dave Acklam
@dcacklam
Dec 31 2017 19:47
@joannestevens use the Edison from the explorer board you broke.
All the data is actually in the Edison board, not the explorer. So if you switch Explorer boards everything should work the way it was before the USB broke.
@awcerrone_twitter 'port that is not open' means the tty you are trying to use has been disconnected. If you are using a USB stick (TI, carelink, etc) then try unplugging/replugging it, and running 'dmesg' to see if a USB device disconnect occurred.
Dave Acklam
@dcacklam
Dec 31 2017 19:52
Fwiw, has anyone had any luck with bt tethering on a raspberry pi?
I'm trying to avoid running my phone's WiFi hotspot all day, and am on a Pi now because both my explorer boards CC chips are fried (subg-rfspy errors constantly, even after reflash)....
I've got it tether set up using the Edison instructions, but it flaps between connected and disconnected constantly, even when off WiFi
Anthony Cerrone
@awcerrone_twitter
Dec 31 2017 20:16
I switched over to another setup and surprisingly I'm getting a different error while watching the logs on this one.
Starting oref0-pump-loop at Sun Dec 31 12:13:03 PST 2017 with 27 second wait_for_silence:
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!)
Preflight [line 382]: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00[DEFAULT]\n'
fail. Retrying preflight
Preflight [line 382]: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00[DEFAULT]\n'
fail. Couldn't preflight
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .
Diadon81
@Diadon81
Dec 31 2017 20:22
By the way, 30 minutes before new year)
katie disimone
@Kdisimone
Dec 31 2017 21:00
@dcacklam I wonder if editing the /etc/rc.local file might help? http://www.jubilinux.org
philipgo
@philipgo
Dec 31 2017 21:17
@joannestevens You could try these instructions for the Edisons: https://docs.resin.io/troubleshooting/restore-edison/
Dave Acklam
@dcacklam
Dec 31 2017 22:01
@Katerina01 in rc.local for Bluetooth under raspbian.
Nothing related to Bluetooth that I can see needs to be run on startup.
The issue is more why BT PAN stays up under Edison/jubilinux, but flaps up/down under raspbian/Pie