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

7th
Jun 2018
Samuchco
@Samuchco
Jun 07 2018 00:13
@scottleibrand running oref0@0.6.1 -> /root/src/oref0
yes, rebooted
should I be running 0.7.0? if so how
Samuchco
@Samuchco
Jun 07 2018 00:31
the shortcut command ns-looplog doesn't work. However the full command tail -n 100 -F /var/log/openaps/ns-loop.log does work.
root@sammyhat1:~# ns-looplog
-bash: ns-looplog: command not found
root@sammyhat1:~# tail -n 100 -F /var/log/openaps/ns-loop.log
 20:13:05 up 26 min,  1 user,  load average: 3.56, 3.14, 2.33
Latest NS temptargets: {"target":80,"duration":60,"start":"2018-06-06T23:49:33.556Z"}
Merging local temptargets: Temptargets merged: {"target":80,"duration":60,"start":"2018-06-06T23:49:33.556Z"}
Invalid profile.json.new after refresh
Martin Haeberli
@mhaeberli
Jun 07 2018 00:35
@Samuchco - i don’t know whether you can NOW install 0.7.0 successfully on top of 0.6.1. In my experience, I had to start over with a fresh flashed SD card.
then:
FWIW, my install process was to follow:
http://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/pi-install.html
but control-c rather than install master
-then reboot and login as root
then follow:
http://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/OpenAPS-install.html#step-4-setup-script
but to:
-git checkout 0.7.0-dev
-npm run global-install
then
-cd && ~/src/oref0/bin/oref0-setup.sh
(and reboot afterwards)
Samuchco
@Samuchco
Jun 07 2018 00:36
@mhaeberli thanks. should I be able to run 0.6.1 on the Hat?
Martin Haeberli
@mhaeberli
Jun 07 2018 00:36
no
Samuchco
@Samuchco
Jun 07 2018 00:36
Oh. minor detail
Scott Leibrand
@scottleibrand
Jun 07 2018 00:37
I thought 0.6.1 worked on the HAT
But we haven’t tested that combination as extensively as 0.7.0-dev
Martin Haeberli
@mhaeberli
Jun 07 2018 00:38
@scottleibrand I defer to you… I had thought not and thus struggled to learn 0.7.0-dev install
Scott Leibrand
@scottleibrand
Jun 07 2018 00:38
Dunno
Jon Cluck
@cluckj
Jun 07 2018 00:41
it worked until the pi kernel was updated to >=4.10
Samuchco
@Samuchco
Jun 07 2018 00:45
I'm going to run cd ~/src/oref0 && git fetch && git checkout 0.7.0-dev && git pull && npm run global-install on top of 0.6.1 and see if the update works without re-flashing
Michael Lawley
@lawley
Jun 07 2018 00:46
We've been noticing that some BW events from the pump are not displaying in nightscout. The OpenAPS pill shows that it has seen the Carbs data, but no meal bolus shows in the graph. I went and looked at the Admin view and it shows all data (from openaps and pump) since 4am as "treatments in the future". Since we're in the future - Brisbane UTC+10 :-) I'm wondering if there's some kind of timezone issue going on.
NS is 0.10.3-dev-20171205 and OpenAPS is 0.6.1
Jon Cluck
@cluckj
Jun 07 2018 00:47
@Samuchco re-run oref0-setup.sh too
Samuchco
@Samuchco
Jun 07 2018 00:48
ok
Scott Leibrand
@scottleibrand
Jun 07 2018 00:51
@Samuchco I just merged openaps/oref0#1015 to dev, so that's an option if you don't want the 0.7.0-dev stuff
Jon Cluck
@cluckj
Jun 07 2018 00:51
@Samuchco if you want to wait a little while, and really want to use 0.6.1, scott is patching dev
Samuchco
@Samuchco
Jun 07 2018 00:51
oops!
Scott Leibrand
@scottleibrand
Jun 07 2018 00:51
0.7.0-dev is a very substantial change to the underlying pump comms, so you'll need to keep a close eye on it if you want to test that
and ideally that should be with a dev rig, not your main one
Samuchco
@Samuchco
Jun 07 2018 00:54
Agreed! and we are going on a trip overseas. Rather have 0.6.1. I will go back to it. Do I need to reflash?
Scott Leibrand
@scottleibrand
Jun 07 2018 00:55
which steps did you do?
if you didn't run oref0-setup on 0.7.0-dev, you can just cd ~/src/oref0 && git fetch && git checkout dev && git pull && npm run global-install
Samuchco
@Samuchco
Jun 07 2018 00:56
it installed the 0.7.0
Scott Leibrand
@scottleibrand
Jun 07 2018 00:57
npm run global-install doesn't do much on its own if you didn't run oref0-setup afterwards
Samuchco
@Samuchco
Jun 07 2018 00:58
no oref0-setup yet. som I'm going to cd ~/src/oref0 && git fetch && git checkout dev && git pull && npm run global-install
john36m
@john36m
Jun 07 2018 01:18
Feeling dumb here, but I just got my Rasp PI zero on line and I want to install dev .0.7.0 I couldn't figure it out and got master 0.6.1 but there is some sort of dev on there, but how to I activate dev, or just tell me what to do from scratch,
Martin Haeberli
@mhaeberli
Jun 07 2018 01:19
see my notes from 17:35 (less than an hour ago)
john36m
@john36m
Jun 07 2018 01:44
Thanks. I will try that, but tomorrow. I've already sunk way to much time into this tonight.
Tracey Berg-Fulton
@BergFulton_twitter
Jun 07 2018 01:50
feeling a bit lost here...all of a sudden I cannot use ssh root@myrigname.local nor can I use sudo screen /dev/tty.usbserial-* 115200 to get in to my rig.
any suggestions?
I get cannot execute /dev/tty.usbserial-* no such file or directory
Martin Haeberli
@mhaeberli
Jun 07 2018 01:54
@BergFulton_twitter pls confirm what kind of rig you have ? I assume an Edison?
Tracey Berg-Fulton
@BergFulton_twitter
Jun 07 2018 01:54
Yes, Edison on Explorer board
Martin Haeberli
@mhaeberli
Jun 07 2018 01:55
if so, and assuming you’re on a Macintosh, I have sometimes had to reboot my Mac before that would work; and also had to confirm I was on the correct port on the edison
try ssh root@myrigname (without the local) that sometimes works
Tracey Berg-Fulton
@BergFulton_twitter
Jun 07 2018 01:55
how do you know what port you're on, and what port are you supposed to be on?
doing ssh root@myrigname gives me
ssh: Could not resolve hostname jankypanky: nodename nor servname provided, or not known
Let me restart and see what happens.
Samuchco
@Samuchco
Jun 07 2018 01:57
@mhaeberli @scottleibrand in my re-install of 0.6.1, got up to the reboot ( Hit enter to reboot) and encountered the broken pipe again
Reboot required.  Press enter to reboot or Ctrl-C to cancel
packet_write_wait: Connection to 192.168.1.221 port 22: Broken pipe
Martin Haeberli
@mhaeberli
Jun 07 2018 01:58
so after you reboot, you have to ssh in again
Samuchco
@Samuchco
Jun 07 2018 01:58
this after about 20 minutes waiting to reboot
Martin Haeberli
@mhaeberli
Jun 07 2018 01:58
broken pipe happens because reboot disconnects the ssh session
reboot happens pretty quickly, usually, it’s just that, since the ssh session is kind of shut down, you don’t see anything
i can usually reconnect within a few minutes
@BergFulton_twitter I forget what the labels say on the board, i think one says ‘otg’ ; the other ‘serial’ = so you want to be connected to the serial port for these purposes as i recall - but defer to others on this channel.
Tracey Berg-Fulton
@BergFulton_twitter
Jun 07 2018 02:02
I have UTB and UAR ports
Samuchco
@Samuchco
Jun 07 2018 02:03
@mhaeberli I see. I ssh again and I don't have to run the set up again?
Tracey Berg-Fulton
@BergFulton_twitter
Jun 07 2018 02:03
Just tried ssh again and sudo screen, neither successful
Samuchco
@Samuchco
Jun 07 2018 02:34
XHat working and looping. 0.6.1-dev
Scott Leibrand
@scottleibrand
Jun 07 2018 02:35
:+1:
Martin Haeberli
@mhaeberli
Jun 07 2018 04:01
@BergFulton_twitter sorry to hear it.
Dana Lewis
@danamlewis
Jun 07 2018 04:02
@BergFulton_twitter is your edison seated well on the board?
Martin Haeberli
@mhaeberli
Jun 07 2018 04:05
to be rigorous, best to: a) reboot the Edison; b) reboot the Macintosh ; c) THEN plug in the cable from Edison to Mac (problem MAY be in the cable), then it’s sudo screen /dev/tty.usbserial-* 115200 - but it’s worth trying sudo screen /dev/tty.usbserial* 115200, which is a bit more general. IF you have installed lsusb using homebrew per instructions, it’s worth confirming that some /dev/tty.usbserial* exists. - sorry to hear about your troubles
katie disimone
@Kdisimone
Jun 07 2018 05:01
@BergFulton_twitter just to be sure...you have .local at the end of your ssh root@rigname.local right?
And if you have papertrail you could just use the IP address of rig instead.
ssh root@192.168.x.x
Martin Haeberli
@mhaeberli
Jun 07 2018 05:10
@Kdisimone I like the papertrail suggestion. On rare occasion I’ve seen .local fail and things work with it removed. Of course if you have a IP network scanner you can sometimes find the rig that way. Ipnetmonitorx is one I like for the Mac.
katie disimone
@Kdisimone
Jun 07 2018 05:14
yeah, i usually grab the ip off papertrail or logging directly into router
Martin Haeberli
@mhaeberli
Jun 07 2018 05:15
:+1:
lyntonr
@lyntonr
Jun 07 2018 07:38
hi just starting setting up my rig, I will be using the new pi explorer hat on a pi 0w which has finally now shipped and on its way here yay :) .. I have so far set up oref0 0.6.1 [dev] on the pi zero which appears to work ( at least up to not finding the yet to be added hat). I have seen some suggestions of using 0.7.0 dev for the HAT rigs or even that the master now works. Which is recommended version and is it easy to switch between them on a working rig please. Also can anyone point to the new pi documentation that the docs say is coming soon ? Thanks for any advise and be gentle Im new here :)
Diadon81
@Diadon81
Jun 07 2018 09:43
Hi, anyone know how to solve this error:
No deliverAt found.
{"reason":"Error: CGM data is unchanged for the past ~45m. Temp 0 <= current basal 1.15U/hr; doing nothing. "}. I am using MDT with 722 pump.
Attempting to retrieve MDT CGM data from pump
MDT CGM data retrieved
MDT New cgm data reformatted
On my pump I see that my BG is up to date.
john36m
@john36m
Jun 07 2018 13:49
Just finished installing 0.7.0-dev on my Raspberry Pi Explorer HAT rig. When I look at the "l" log I only get the error message "Radio check failed. ImportError: No module named mraa" What's up.
john36m
@john36m
Jun 07 2018 13:55
And it IS on 0.7.0-dev. git branch has an asterisk next to a green 0.7.0-dev
Scott Leibrand
@scottleibrand
Jun 07 2018 14:23
@lyntonr dev is probably best for now. We’ll probably need to release dev (as 0.6.2) before merging 0.7.0-dev for wider testing.
@john36m probably easiest to reflash, cancel setup before installing master, checkout 0.7.0-dev (or just dev), npm run global-install, and then run oref0-setup.
lyntonr
@lyntonr
Jun 07 2018 15:12
Thanks @scottleibrand , just to be clear, by dev you mean 0.6.1 dev , is that correct ?
Scott Leibrand
@scottleibrand
Jun 07 2018 16:01
the dev branch of oref0. to avoid confusion (since 0.6.1 is the released version from master), I'll go change the dev branch's version to 0.6.2-dev now
done. if you pull and install the latest dev branch, it will now say 0.6.2-dev
Dana Lewis
@danamlewis
Jun 07 2018 16:05
I'd like to push 0.6.2 as a release to master soon . So heads up I'll be asking for testers with different types of rigs to sign off on it once we prep the release candidate. So if you've been using dev, please stick around gitter (don't vanish for a month ;))
Jens Heuschkel
@juehv
Jun 07 2018 17:07
I could test with pi3/zero + carelink
Dana Lewis
@danamlewis
Jun 07 2018 17:35
super, thanks @juehv.
Samuchco
@Samuchco
Jun 07 2018 19:23
Hi
Dana Lewis
@danamlewis
Jun 07 2018 20:14
Started modifying the Pi HAT docs..anyone want to finish adding to this section? On the run, so left blanks ;) for people to provide some links for batteries and SD card recommendations http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/edison.html#hardware-information-for-pi-based-setups-with-the-explorer-hat
Dana Lewis
@danamlewis
Jun 07 2018 20:25
understanding your rig also got some quick updates but needs more help from those who've been playing with their fully set up Pi/HAT rigs :)
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 22:44
(Repost from hardware-dev following Scott recommendation) Hello, I am about to start a rig with an explorer edison board. I used to have a smartwatch connected with Xdrip to my dexcom sensors and found it very convenient. I read yesterday that there was a similar solution for the rig with a pebble watch. I wondered which pebble was compatible (there are several models) ? Only the original one, some newer, all of them ?
Oops, it was Dana's advice ... sorry.
Dana Lewis
@danamlewis
Jun 07 2018 22:47
:D no worries.
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 22:47
To answer to the advice to use Xdrip ... if I understand correctly, to use a watch with Xdrip, I would need a phone. With the dexcom, I could upload the BG from the sensor directly to my watch using the Xdrip+ electronic board. This was very convenient for kitesurfing. If I'd want to loop with a watch + xdrip, I'd need to carry the edison board + a phone. With the pebble, I could have only the edison board, right ?
Scott Leibrand
@scottleibrand
Jun 07 2018 22:53
pancreabble does allow for monitoring a rig with a direct connection from edison to pebble, but I don't think very many people use it, and it's not well maintained
you'd still need an xdrip-js (Lookout / logger) connection between the G5 and the Edison
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 22:56
I forgott to tell ... I am not using the dexcom anymore. I have enlites now :-)
Scott Leibrand
@scottleibrand
Jun 07 2018 22:59
then yeah, if you can get pancreabble to work, sounds like that would fit your use case
that pebble would need to be exclusively paired to the rig: It couldn't simultaneously pair to a phone
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 22:59
@scottleibrand I did not know that not so many people used pancreable. I saw quite many pictures from rigs with pebble. I thought it was pretty common.
Scott Leibrand
@scottleibrand
Jun 07 2018 22:59
pebble is very common, but usually it pulls from NS, and is paired with a phone
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 23:00
I think, I have to start easy : just the rig and a phone with nightscout to monitor ... and evaluate my different options for my more complicated sports (kitesurfing, alpinism and paragliding).
Scott Leibrand
@scottleibrand
Jun 07 2018 23:01
yes, that is a good approach
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 23:02
Thanks for the help anyway. This community is just incredible !! I am so psyched to start it. But I am not so very confident that my data (basal levels and insulin per carb) are accurate. I may want to log more during a month before rushing into a loop with messy parameters.
Scott Leibrand
@scottleibrand
Jun 07 2018 23:03
yes, that is a very common set of problems, and a good approach to addressing them
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 23:09
OK. I'll investigate the best method to get my CGM BG measurements from the pump to NS for a month.
Dana Lewis
@danamlewis
Jun 07 2018 23:13
you can always build a rig, and have it not accept temp basals (set it to %), and use that to upload BGs and learn about what it recommends, as you tweak your settings
JohnDoeAkira
@JohnDoeAkira
Jun 07 2018 23:24
Oh that's nice. I did not realize it was possible. That should solve for the frustration of having all the hardware to loop and wait some more to get accurate parameters. Many things to try !! Thank you so much for having made all this possible !