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

15th
Mar 2019
vsherbeck
@vsherbeck
Mar 15 01:28
Did my first successful loop :D
thank you to everyone in here who helped me
just wondering... my log said SMB bolus was disabled... how would I go about enabling it ?
CuriousFirefly
@CuriousFirefly
Mar 15 01:39
Congrats, @vsherbeck !!
Dana Lewis
@danamlewis
Mar 15 01:42
@vsherbeck :clap: happy looping! You’d change it in preferences, but we recommend starting with basic looping and getting your settings tweaked before you add on SMB
vsherbeck
@vsherbeck
Mar 15 01:42
Ok! that sounds good. I'd just be happy with fewer lows tonight at work haha
vsherbeck
@vsherbeck
Mar 15 04:19
Well I was looping... But then I guess NS crashed? I'm not sure how to go about rebooting it
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=---------.herokuapp.com
Jan Schenk
@jansche
Mar 15 11:04

@samueldemers2 It seems your rig is not communicating with the pump. I experience the same error with

/usr/local/bin/oref0-pump-loop: line 488: /dev/spidev0.0: Permission denied

I'm not sure why this is happening. Can someone with more experience help on that?

Jan Schenk
@jansche
Mar 15 11:10
It's currently also happening to me on Edison:
/usr/local/bin/oref0-pump-loop: line 488: /dev/spidev5.1: Permission denied
root@boon:~/myopenaps# ls -ls /dev/spidev5.1 
0 crw------- 1 root root 153, 0 Mar 15 11:33 /dev/spidev5.1
TranceCake
@TranceCake
Mar 15 12:03
@jansche I also have that, but it doesn't stop me from looping. I discussed it with @cluckj and he said that it is weird that pump-loop does anything with spidev anyway
so he said not to worry about it
samueldemers2
@samueldemers2
Mar 15 12:27
@jansche
@jansche I also talked with somebody on Facebook who is getting the same problem as me with à pi0 rig.
Jon Cluck
@cluckj
Mar 15 12:45
the line 488 error is an old bit of code that can probably get removed because it doesn't do anything anymore
Jon Cluck
@cluckj
Mar 15 12:59
@samueldemers2 I'm around today if you want to try to debug?
Jan Schenk
@jansche
Mar 15 13:27
Great, thanks @TranceCake && @cluckj - we'll ignore it then.
samueldemers2
@samueldemers2
Mar 15 13:29
@cluckj I just got to work now so I won't be home for a while. But thanks a lot. Do you think that this bit of code is screwing up my loop on my pi0 rig?
I tried to get look at mmtune as i had problem with the pump connection and the line shown on openaps.org for looking the frequency used return absolutly nothing.
samueldemers2
@samueldemers2
Mar 15 13:40
No frequency displayed
Jon Cluck
@cluckj
Mar 15 14:11
@samueldemers2 if you can run OREF0_DEBUG=1 oref0-mmtune in ~/myopenaps/ it might help diagnose what's going on
samueldemers2
@samueldemers2
Mar 15 14:15
Ill do that as soon as i get back home. To be sure to get the good thing, I log into the rig, I change directory and load the line starting with Oref0?
And precisely, how do I change directory? I know that it start with cd ~/myopen
Al
Myopenaps/
Jon Cluck
@cluckj
Mar 15 14:19
yep, cd ~/myopenaps will get you there
samueldemers2
@samueldemers2
Mar 15 14:23
Ill get that tonight.
viq
@viq
Mar 15 15:34
"Linux administration for Loopers" ;D
Now that would be a book with narrow audience ;)
Stargazer32584
@Stargazer32584
Mar 15 15:40

Hi guys,

one little question. In the bg_targets_raw.json, where does the "i" stand for ?

Thnaks a lot !

Scott Leibrand
@scottleibrand
Mar 15 17:15
It’s an index that came from the python code reading from the pump. No significance to humans or to oref0 that I can recall.
Eric
@ecc1
Mar 15 17:25
And I preserved that in the Go version, for "legacy compatibility" or whatever, but would be happy to drop it in the interests of cruft removal
Scott Leibrand
@scottleibrand
Mar 15 19:10
Would just need someone to validate that it's not used by anything, and test a version without it.
Stargazer32584
@Stargazer32584
Mar 15 21:08
Ah..okay. Thank you..! Today, we start the system on my sister...
Abigail Cember
@acember
Mar 15 22:02
@viq I'm like the no. 1 candidate for that book. As I joked to @cluckj , I'm pretty sure I know more Hindi than Linux.
Abigail Cember
@acember
Mar 15 22:09
My question of the day has to do with carb absorption: Looking at the docs, it looks like this (CSF) should be part of autotune, but I don't see anything there in mine. Also, it's still not clear to me how to edit the time profile of carb absorption. For example, I can use "set custom peak time" to do this for insulin absorption -- is there something analogous for carbs?
viq
@viq
Mar 15 22:24
Carb absorption is part of sensitivity plugin, and someone recently said that it's calculated from ISF and carb ratio. And AFAIK there are bio settings for that.
No, not bio
Scott Leibrand
@scottleibrand
Mar 15 22:34
CSF is simply the ratio of ISF and CR. We used to try to autotune CSF directly, but then figured out it was better to directly tune CR instead.
What do you mean by "edit the time profile of carb absorption"? Are you trying to tell oref0 (in advance, when you eat them) how fast you expect carbs to absorb? Or are you talking about the algorithm for figuring out how many of the carbs have absorbed in the recent past since you ate?
fra-orolo
@fra-orolo
Mar 15 22:56
@scottleibrand Is there an easy way to download/install a nightscout profile as openAPS oref0-profile? The docs describe only the other direction. I am actively using AndroidAPS, but wanted to try autotune on oref0.
viq
@viq
Mar 15 22:59
@fra-orolo I'm working on a script for that, this is current state of it https://github.com/viq/oref0/blob/profile_from_nightscout/bin/get_profile.py
@fra-orolo or you could use https://autotuneweb.azurewebsites.net
fra-orolo
@fra-orolo
Mar 15 23:32
@viq Thanks -- Cool, I used the beta-script, worked great.
samueldemers2
@samueldemers2
Mar 15 23:34
@cluckj , I might be a little late, but here what the debug command returned
root@sadem2:~# cd ~/myopenaps
root@sadem2:~/myopenaps# OREF0_DEBUG=1 oref0-mmtune
mmtune: 2019/03/15 19:33:28 cannot connect to CC111x radio on /dev/spidev0.0
2019/03/15 19:33:28 /dev/spidev0.0: device is in use
2019/03/15 19:33:28 cannot connect to CC111x radio on /dev/spidev0.0
2019/03/15 19:33:28 /dev/spidev0.0: device is in use
monitor/mmtune.json is empty or does not exist
i ran it twice, the first time it scrolled down testing different frequency but I'm no longer able to reproduce the results
Jon Cluck
@cluckj
Mar 15 23:50
no worries, can you run systemctl disable cron to turn off your loop (which is what's causing the "device in use" message), and then wait a minute for the loop to stop?
viq
@viq
Mar 15 23:53
@fra-orolo here's another of my experiments on that topic ;) https://github.com/viq/autotune-docker (I'm also androidaps user)