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

16th
Oct 2018
ssimmons813
@ssimmons813
Oct 16 2018 02:32
I am having trouble setting up papertrail. I already have OpenAPS running, but when I try to run tar xzf ./remote_syslog*.tar.gz
I get the error tar: ./remote_syslog_linux_i386.tar.gz: Not found in archive
tar: Exiting with failure status due to previous errors
Scott Leibrand
@scottleibrand
Oct 16 2018 03:30
that error means there's no file matching remote_syslog*.tar.gz in the current directory. did you download it to the right place?
Kywalh
@Kywalh
Oct 16 2018 06:56
Hi all, what is the parameter to define the rounding step for the autotune results ? btw, can we do that on oref0 (I was doing it before through the autotuneweb where you can select the rounding step)
tzachi-dar
@tzachi-dar
Oct 16 2018 08:06
I have just received my explorer hat. I intend to use it with a RPII 3. Do I still need to power it externally, or can it get it's power from the RPII?
sethgagnon
@sethgagnon
Oct 16 2018 13:34
just built a pi rig and installed oref on it. however, i keep needing to create the ssh file in boot so that I can connect to the rig via ssh. i realize that after it boots it deletes this file, but then I cant connect again if the rig reboots. I have updated the ssh server settings using rasp-config to enable them, but still no go. Any ideas on why I have to keep creating that ssh file? thanks
Jon Cluck
@cluckj
Oct 16 2018 13:36
@tzachi-dar it'll get power from the pi :)
@sethgagnon sshd may not have been enabled properly? try systemctl is-enabled ssh
sethgagnon
@sethgagnon
Oct 16 2018 13:41
@cluckj thanks, creating ssh file again and trying that now
do i need to enable that as a service or something so the setting stays after rig reboots?
Jon Cluck
@cluckj
Oct 16 2018 13:42
it should be doing it automatically, but maybe it isn't
sethgagnon
@sethgagnon
Oct 16 2018 13:43
ok, ill try that command and then reboot to see if it works
thanks
Jon Cluck
@cluckj
Oct 16 2018 13:43
to enable it you'll need to do systemctl enable ssh :)
sethgagnon
@sethgagnon
Oct 16 2018 13:44
root@sethsrig:~# systemctl is-enabled ssh
enabled
root@sethsrig:~# systemctl enable ssh
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
there we go, hopefully that does it
sethgagnon
@sethgagnon
Oct 16 2018 13:49
@cluckj thanks, rebooted the rig and can ssh in now, appreciate the help!
Jon Cluck
@cluckj
Oct 16 2018 13:50
nice!
@sethgagnon did you install from a raspbian image, or from pibakery?
sethgagnon
@sethgagnon
Oct 16 2018 13:51
pibakery
lite
Jon Cluck
@cluckj
Oct 16 2018 13:51
thanks
sethgagnon
@sethgagnon
Oct 16 2018 14:05
one other dumb question, when first starting, do i need to ensure i enter the basal rates, cr, isf into the pump manually? or will openaps on the rig retrieve those from NS and then save to pump?
Jon Cluck
@cluckj
Oct 16 2018 14:07
you'll need to put them into the pump using the bolus wizard setup
(cr & isf)
sethgagnon
@sethgagnon
Oct 16 2018 14:09
yep, did that
what about basal schedule, can it update pump from NS to start
Jon Cluck
@cluckj
Oct 16 2018 14:10
nope
sethgagnon
@sethgagnon
Oct 16 2018 14:12
ok, so i need enter basal schedule on pump to start, then autotune can run daily and auto update the pump for me to save new basals?
Jon Cluck
@cluckj
Oct 16 2018 14:14
not yet :) autotune will keep its own basal schedule on the rig
sethgagnon
@sethgagnon
Oct 16 2018 14:16
so i then need to manually change the schedule on the pump after every autotune run? i got the feeling it was automated
sorry, i have read the docs on this, just trying to be sure
Jon Cluck
@cluckj
Oct 16 2018 14:19
no, the rig will use the autotune basal recommendations to set temp basals. I'll usually adjust the settings on pump if I see the autotune recommendations diverging a lot from where it's set
sethgagnon
@sethgagnon
Oct 16 2018 14:19
got it, ok thanks for clarification
Jon Cluck
@cluckj
Oct 16 2018 14:19
:thumbsup:
the same goes from CR and ISF
sethgagnon
@sethgagnon
Oct 16 2018 14:22
ok, uses temp basals to make up for differences found in ISF and CR, is that what you mean?
Jon Cluck
@cluckj
Oct 16 2018 14:24
I mean your rig will use the autotune recommendations for basal/CR/ISF, instead of what is set on your pump
Eric
@ecc1
Oct 16 2018 14:33
You can set the basal profile from the command line (setbasals ...) which I find easier than the pump keypad, but I don't think it's automatic
Jon Cluck
@cluckj
Oct 16 2018 14:44
if someone has time to write something that can parse autotune_recommendations and pass that to mdt setbasals.......
Eric
@ecc1
Oct 16 2018 14:45
There's already a jq filter in the cmd/setbasals directory for that, untried:
setbasals $(jq -r -f autotune.jq < autotune.json)
Jon Cluck
@cluckj
Oct 16 2018 14:45
@ecc1 did you fix that > 24 (?) basal programs bug?
oh cool
sethgagnon
@sethgagnon
Oct 16 2018 14:46
oh great, so you can run this and it will update pump with new basals?
Jon Cluck
@cluckj
Oct 16 2018 14:47
it's untested :laughing:
Eric
@ecc1
Oct 16 2018 14:48
Maybe ... :-) Seriously, yes it should, but it's only been lightly tested. And yes, you can set the max number of basal rates (40 I think? at least 24)
Jon Cluck
@cluckj
Oct 16 2018 14:48
haha
Dana Lewis
@danamlewis
Oct 16 2018 15:57
We would need to rethink how to do new/different safety caps if we allowed Autotune to write new on-the- pump basals.
Right now it's designed with pump basals as the sanity check for the baseline, and asking humans to make changes to the baseline if they decide it's necessary
Jon Cluck
@cluckj
Oct 16 2018 16:00
:thumbsup:
Ivica Suran
@isuran
Oct 16 2018 16:31
link for tethering tutorial on zerow somebody
HuffCam
@HuffCam
Oct 16 2018 16:36
Hello
Ivica Suran
@isuran
Oct 16 2018 16:38
I got this, but is edison based, not same for zerow, I think
Zach Gohr
@zgohr
Oct 16 2018 16:39
It works the same
Ivica Suran
@isuran
Oct 16 2018 16:41
sudo bt-pan client 88:BD:45:F9:16:92 on the end give's me lot's of errors
HuffCam
@HuffCam
Oct 16 2018 16:41
Is there a specific chat area for development or technical discussion, or do we do that here?
Eric
@ecc1
Oct 16 2018 16:43
@HuffCam APS algorithm-related is on https://gitter.im/openaps/oref0, low-level hardware-related stuff is on https://gitter.im/openaps/hardware-dev, among others
HuffCam
@HuffCam
Oct 16 2018 16:43
Right, thanks.
Zach Gohr
@zgohr
Oct 16 2018 16:51
@isuran which errors?
Benjamin Mammon
@bmammon
Oct 16 2018 17:43
Personal Hotspot woes :( Sometimes when I leave my house my rig doesn't BT tether to my iPhone. Resetting the rig always fixes the problem. Sometimes when I'm at home or at school the rig will connect to my Personal Hotspot even though a known wifi is available. Turning off Personal Hotspot fixes the issue and allows the rig to connect to the known wifi.
It feels like I'm constantly battling with the system as I end up toggling my Personal Hotspot and resetting the rig multiple times/day. Of course I'm not perfect so I end up not looping for long periods of time due to the lack of internet connection. I have been struggling with these Personal Hotspot issues for years now and i'm wondering if anyone has any advice. If there is another solution for offline looping using an iPhone and Spike I would love to hear about it! I don't want to go back to Loop. The OpenAPS algorithm works so much better for me but maybe I just can't have it all. Maybe I have to accept the connectivity issues if I want to use iPhone/Spike with OpenAPS?
Dana Lewis
@danamlewis
Oct 16 2018 17:53
@bmammon do you usually run multiple rigs?
Benjamin Mammon
@bmammon
Oct 16 2018 18:09
Yes! I have one at home and one that I take out and about
Dana Lewis
@danamlewis
Oct 16 2018 18:26
@bmammon k. we were recently out and about and made a temporary fix to make the on the go rig connect back more quickly. @scottleibrand is skeptical that would help solve the underlying connectivity issue, but it might be worth trying. he'll probably come in here later and disagree again ;) but if he does, he might have some other ideas too for troubleshooting. and in the meantime - have you thought about using xdrip-js on the rig for offline looping?
(not using Spike so not sure what if anything that influences, sounds like general connectivity stuff outside of BG flow)
Benjamin Mammon
@bmammon
Oct 16 2018 19:06
Oh! What is the temporary fix? Should I update to test it out? I tried to set up xDrip-js a long time ago when it was very new but I couldn't get it going. I could give it another shot but I'd be sad about losing Spike. The algorithm works so well for accuracy and I love all the features. I remember someone reporting that Spike and xDrip-js could work simultaneously but I haven't had the chance to test that out. The issue is only with rig connectivity, Spike always uploads to Nightscout. Thanks for all your help @danamlewis
Jens Heuschkel
@juehv
Oct 16 2018 19:22
I thought about this multi rig problem several times. How about we apply some standard solutions for wireless sensor networks?
Scott Leibrand
@scottleibrand
Oct 16 2018 19:46
We do apply similar CA/CD type approaches, but this problem is different than most.
I believe there is an oref0 PR open with some commented-out code that might let you use Spike as a BG source, if you’re comfortable uncommenting and testing code.
Jens Heuschkel
@juehv
Oct 16 2018 19:52
@scottleibrand No I ment a algorithm for self organizing who is the current master. This would run constantly not just on collisions...
PieterGit
@PieterGit
Oct 16 2018 20:28
To all: If people want to have Autotune implemented in Nightscout (which would also benefit a lot of non loopers), we must make sure nightscout/cgm-remote-monitor#3191 gets attentions from both coders and testers. I will close the PR if there is no interest in finishing it.
PieterGit
@PieterGit
Oct 16 2018 20:40
@scottleibrand thanks for finishing my PR openaps/oref0#1136. I got stuck on implementing tokenbased auth for the @ecc1 Go libraries ecc1/nightscout#4 . I noticed @Freet128 worked further on that and I hope to help test and implement later this week or weekend.
Benjamin Mammon
@bmammon
Oct 16 2018 20:41
@scottleibrand do you mind linking me to that PR?
@scottleibrand have u tried by chance to get the math from them (i.e mr adler) for the aps?
ssimmons813
@ssimmons813
Oct 16 2018 21:51
@scottleibrand I believe I downloaded it to the right place. I logged into my rig via ssh and root/password, copied and pasted the code from papertrail and the first command for Edison. That all runs and looks correct. When I was trying in the past to set it up, I was getting a different error but I must have done something because now I can't make it do that again. That error was "unexpected eof in archive".