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

10th
Dec 2017
Ebgineer
@Ebgineer
Dec 10 2017 01:01
openaps use cgm iter_glucose 1
doesn't work but I don't have any other data path set up
and cgm values are coming in
Ebgineer
@Ebgineer
Dec 10 2017 01:45
data stops when I unplug usb, comes back when I plug back in and reboot
I think it may be getting power from my battery board
bsaunder2002
@bsaunder2002
Dec 10 2017 03:01
Working on sourcing parts for my rig. Going (against recommendations) with a raspi solution. Trying to find wireless to work with it. Found Slice of Radio on Amazon. Does this still need a programmer? This seems like a difficult thing to setup. I guess RileyLink will work from raspi to/from pump? Surely there must be sometime easier/cheaper like GNU Radio (saw the github thing, looked immature). Ideas?
Dana Lewis
@danamlewis
Dec 10 2017 03:08
No one has documented a rileylink in the past two years. TI stick will be easiest, but SoR would also work
bsaunder2002
@bsaunder2002
Dec 10 2017 03:11
thx. For the SoR or TI stick, I need the CC Debugger to write the firmware correct?
Eric
@ecc1
Dec 10 2017 03:12
You should be able to use ccprog from a Linux device with available GPIOs, like an Edison or Raspberry Pi
bsaunder2002
@bsaunder2002
Dec 10 2017 03:16
awesome...so just the pi(orange pi zero) + it's headers + a software program ccprog = ability to program a Slice Of Radio with the OpenAPS/mmeowlink firmware and be able to run OpenAPS with my 722. (I hate spending money if I dont have to. Ready to click buy on the Amazon purchase). Also I added a used Pebble Time. Can a pebble time round be used? It "feels" like the pebble time is more mature than the android wear.
supposed to be ? after 722 :)
Dana Lewis
@danamlewis
Dec 10 2017 03:19
Used for what? Some watch faces don't work well on rounds, so it depends on your preferences
bsaunder2002
@bsaunder2002
Dec 10 2017 03:20
Ah yes...the pebble round also has only a 2 day battery life. I'd rather have the Pebble Time. I'll go ahead with that watch.
bsaunder2002
@bsaunder2002
Dec 10 2017 03:31
Assumed yes response to question about gpio's doing firmware programming. :) Ama says "Guaranteed delivery date: Dec. 13, 2017 " for radios (pump and dexcom), that plus watch = $178. Combine with 722 ($200) and 1 month supplies ($100) I'm up to $578. Big chunk of change but if it works with eSMB's, I'll be better off than the $900 mm wanted to upgrade my Vibe to a 670 w/o bolusing. Getting excited.
Dana do you know if OpenAPS could support using strait R with some sort of preload for carbs or is it just too slow to do SMB/eSMB with R? (R in Wallymart at $35ish/bottle.)
$178+$200+$100=$478 not $578...perhaps I should check by bloodsugar :(
Dana Lewis
@danamlewis
Dec 10 2017 03:33
I would not use OpenAPS with R at all.
bsaunder2002
@bsaunder2002
Dec 10 2017 03:34
:( I was afraid that's a no go...makes sense though...Novolog works though? I hate paying for Apidra or others.
Dana Lewis
@danamlewis
Dec 10 2017 03:37
Any fast acting insulin, yes.
bsaunder2002
@bsaunder2002
Dec 10 2017 03:40
Thanks...Hopefully I can get my hardware together next week. Want to rig up a OpenAPS, a fake dexcom feed, and a water filled reservoir to test my used 722. Maybe the week after I can go online.
Dana Lewis
@danamlewis
Dec 10 2017 03:40
You don't need to waste a reservoir. Pinky tip when priming for the motor to sense the resistance
bsaunder2002
@bsaunder2002
Dec 10 2017 03:43
Anyone read about dropping A1/c too fast = retinal damage? Guess it causes growth of new blood vessels. I assume I can set OpenAPS to a specific target glucose range? At 8.5 now, so maybe set it for 200 for 3 months dropping to an 8.0, then 190 for 3 months to 7.5, ...?
It's be nice if my daily glucose target was one range and my nightly another...I hate waking up with high bg.
Dana Lewis
@danamlewis
Dec 10 2017 03:44
You can set multiple targets in the pump for OpenAPS to use. You may not want to start that high.
I'd look at the studies to see what the a1c ranges of concern are for dropping
bsaunder2002
@bsaunder2002
Dec 10 2017 03:47
Good idea. Thanks for all of the help. I'll dig in more next week when hardware arrives.
Dana Lewis
@danamlewis
Dec 10 2017 03:47
:+1:
Cfomodz
@Cfomodz
Dec 10 2017 04:35
So I am still having problems with a full disk. After working around the whole system, I am found that my .rootfs in my home directory is 854MB, but looking back at someone else having the same issue in Feb, that is apparently just a symbolic link of the whole system? @scottleibrand I don't know if you would remember working with @ejoe132 on that issue.
Scott Leibrand
@scottleibrand
Dec 10 2017 05:29
@Cfomodz what du command are you running and what does its output look like?
@Ebgineer are you using a standard Edison + EB, or something custom?
@spaldings sounds like you're not properly logged in as root
Ebgineer
@Ebgineer
Dec 10 2017 05:31
edison + explorer board + sparkfun battery board
Scott Leibrand
@scottleibrand
Dec 10 2017 05:32
why the battery board?
and yes, it's likely doing 4V to 5V upconversion, which will allow your lipo to power your Dex receiver (at the expense of battery life)
Ebgineer
@Ebgineer
Dec 10 2017 05:33
its a decent tradeoff for me since the battery is 4000mah and fits in the case with the boards
oops I mean 2000mah
Scott Leibrand
@scottleibrand
Dec 10 2017 06:01
why did you add the sparkfun battery board? sounds like you weren't expecting it to allow you to loop offline...
Ebgineer
@Ebgineer
Dec 10 2017 06:52
I do plan using it offline at times. In those cases I can run off the battery board.
bsaunder2002
@bsaunder2002
Dec 10 2017 07:18
For disk usage, I love the command "du -sk . | sort -n". The s says summary of all items in my directory (add up everything below but dont show me that). It only prints the total size of the items in this directory (files, and directories). It can take a long time since s means descend the tree. k means print in kilobytes which by chance is a sortable number which if you pipe it to sort and give sort the n or numeric sort method, well I'm babbling but this prints a list of directory and files sorted by size. I usually run that at the top level (as root, cd / )...discover a large dir like /var, "cd /var", then up arrow to run the command again. Usually helps me quickly find whats using disk space.
Enda Farrell
@endafarrell
Dec 10 2017 07:45
@spaldings That command you used is the one that installs openaps on a rig - though it does indeed also reset your WiFi settings. Try tail -100 /var/log/openaps/network.log.
dburren
@dburren
Dec 10 2017 07:51
@bsaunder2002 The “| sort -n” in that command is superfluous. “du -sk .” is only going to produce one line of output anyway.
I often deal with photo files, so I’m used to typing “du -sg .”. :smile:
Thacher
@thacherT1D
Dec 10 2017 08:24
okay... mystery time... nightscout says I'm not looping, logged into my rig and it is looping, pushover messages are sending... so why does nightscout still think I'm not looping?
bsaunder2002
@bsaunder2002
Dec 10 2017 09:09
oops sorry "du -sk * | sort -n"...the -n is not superflous if you want the biggest dirs at the bottom...makes it easy to find them.
I don't have the -g option on debian 8...
spaldings
@spaldings
Dec 10 2017 14:25

@endafarrell @scottleibrand here is what the logs look like when I have 1 network. What is the local hotspot preference?
Will add a 2nd network and resend.

Starting oref0-online at Sun Dec 10 09:16:01 EST 2017.
At Sun Dec 10 09:16:01 EST 2017 my wifi network name is Spalding's Wi-Fi Network
At Sun Dec 10 09:16:01 EST 2017 my local wifi IP is: 10.0.1.6
At Sun Dec 10 09:16:01 EST 2017 my Bluetooth PAN is not connected
At Sun Dec 10 09:16:01 EST 2017 my public IP is: 174.96.35.113
At Sun Dec 10 09:16:02 EST 2017 my local hotspot is not running (and not enabled in preferences.json)
Finished oref0-online at Sun Dec 10 09:16:02 EST 2017.

Starting oref0-online at Sun Dec 10 09:17:01 EST 2017.
At Sun Dec 10 09:17:02 EST 2017 my wifi network name is Spalding's Wi-Fi Network
At Sun Dec 10 09:17:02 EST 2017 my local wifi IP is: 10.0.1.6
At Sun Dec 10 09:17:02 EST 2017 my Bluetooth PAN is not connected
At Sun Dec 10 09:17:02 EST 2017 my public IP is: 174.96.35.113
At Sun Dec 10 09:17:03 EST 2017 my local hotspot is not running (and not enabled in preferences.json)
Finished oref0-online at Sun Dec 10 09:17:03 EST 2017.

Starting oref0-online at Sun Dec 10 09:18:02 EST 2017.
At Sun Dec 10 09:18:02 EST 2017 my wifi network name is Spalding's Wi-Fi Network
At Sun Dec 10 09:18:02 EST 2017 my local wifi IP is: 10.0.1.6
At Sun Dec 10 09:18:02 EST 2017 my Bluetooth PAN is not connected
At Sun Dec 10 09:18:03 EST 2017 my public IP is: 174.96.35.113
At Sun Dec 10 09:18:03 EST 2017 my local hotspot is not running (and not enabled in preferences.json)
Finished oref0-online at Sun Dec 10 09:18:03 EST 2017.

Starting oref0-online at Sun Dec 10 09:19:01 EST 2017.
At Sun Dec 10 09:19:01 EST 2017 my wifi network name is Spalding's Wi-Fi Network
At Sun Dec 10 09:19:01 EST 2017 my local wifi IP is: 10.0.1.6
At Sun Dec 10 09:19:01 EST 2017 my Bluetooth PAN is not connected
At Sun Dec 10 09:19:01 EST 2017 my public IP is: 174.96.35.113
At Sun Dec 10 09:19:02 EST 2017 my local hotspot is not running (and not enabled in preferences.json)
Finished oref0-online at Sun Dec 10 09:19:02 EST 2017.

Starting oref0-online at Sun Dec 10 09:20:02 EST 2017.
At Sun Dec 10 09:20:02 EST 2017 my wifi network name is Spalding's Wi-Fi Network
At Sun Dec 10 09:20:02 EST 2017 my local wifi IP is: 10.0.1.6
At Sun Dec 10 09:20:02 EST 2017 my Bluetooth PAN is not connected
At Sun Dec 10 09:20:02 EST 2017 my public IP is: 174.96.35.113
At Sun Dec 10 09:20:03 EST 2017 my local hotspot is not running (and not enabled in preferences.json)
Finished oref0-online at Sun Dec 10 09:20:03 EST 2017.

Scott Leibrand
@scottleibrand
Dec 10 2017 14:42
you might want to try getting rid of the apostrophes in your wifi network name(s). they cause all kinds of problems, particularly when they use curly apostrophes instead of straight ones.
Dana Lewis
@danamlewis
Dec 10 2017 15:59
@thacherT1D make sure you're using the latest NS
cameronrenwick
@cameronrenwick
Dec 10 2017 16:43
I know this has been discussed before but can't find it by searching. If my rig goes down and previous to the outage it had set a temp basal to zero, the pump will continue this way correct? I've had this happen 2x in the last week so I'm working on why my xdrip is being flaky. I suppose the pump is going to sit in it's basal state until I interact with it correct? Would a zero temp basal set by my rig for 60 min expire and the pump switch back to whatever the basal program in the pump is set to? Just trying to see what's happening here..
Dana Lewis
@danamlewis
Dec 10 2017 16:50
Yes
Ebgineer
@Ebgineer
Dec 10 2017 16:55
the only place I can see in the docs where it says that the bg target range is read from the pump is in the preferences section under wide_bg_target_range. is there another place it shows up?
Dana Lewis
@danamlewis
Dec 10 2017 17:01
It's described in some of the intro sections I believe
Scott Leibrand
@scottleibrand
Dec 10 2017 17:08
@cameronrenwick there’s a difference between rig going down and CGM going down. In the latter case, we will now shorten zero temps to 30m (and cancel high temps).
If rig goes down we can’t do anything, of course, so the temp will run to completion.
Sajjad Feizollah
@sfeizollah_twitter
Dec 10 2017 18:11

Hi,

Thank you @scottleibrand for your help.
I want to add BG values manually in xDrip and then use them as a source for OpenAPS. I don't have any BG sensors currently and I want to test OpenAPS for a university project for now.
Is there any way to input BG values to OpenAPS without sensor using xDrip or any other way?

Thank you

Scott Leibrand
@scottleibrand
Dec 10 2017 18:18
I don't know: I don't use xDrip. For testing, I often generate a fake glucose.json file (which needs to be updated every 10m to keep it looping). So theoretically it can be done, but I don't know if there's an easy way to do so.
alimhassam
@alimhassam
Dec 10 2017 18:21
Hi All, not completely, and openaps question, but do you guys have any times on how to pre-bolus properly to get perfect control over meals, without going low or high? Background, before openaps i used to only bolus post-meal, with post meal highs. I then started bolusing as i eat 80% and trying to let openaps take care of the rest, even with eating soon mode it wasn't enough. I get best results with pre-bolus around 10 min before the meal, but it doesn't always work, i seem to get some lows with that.
Would appreciate tips to find the perfect recipe :)
Dana Lewis
@danamlewis
Dec 10 2017 18:22
Are you running Autotune? Sounds like dia or carb ratio might be off if you're getting lows
Sajjad Feizollah
@sfeizollah_twitter
Dec 10 2017 18:25
@scottleibrand Thanks.
In what format should I write in glucose.json file?
Is there any example which I can change its values?
Ebgineer
@Ebgineer
Dec 10 2017 18:27
@alimhassam https://www.ncbi.nlm.nih.gov/pubmed/20151766 said 20 minutes is better than simultaneous, but the best time seems like it would vary by individual.
alimhassam
@alimhassam
Dec 10 2017 18:29
@danamlewis yes, i'm using autotune, i think i get lows when i prebolus too early > 10 min before eating.
Jon Cluck
@cluckj
Dec 10 2017 18:29
@alimhassam I pre-bolus for around half the expected insulin dose (~15 minutes beforehand), input the carbs into NS when I eat them, and let SMB do the rest
alimhassam
@alimhassam
Dec 10 2017 18:29
when i do that, i get too might after the meal.
even 80% didn't seem enough.
Jon Cluck
@cluckj
Dec 10 2017 18:30
oh! you might need to temporarily adjust your max_iob?
alimhassam
@alimhassam
Dec 10 2017 18:30
i guess i didn't try the 80% 15 min before though.
trying to find the perfect recipe. I think i'll try what you suggest for a couple of days @cluckj
Jon Cluck
@cluckj
Dec 10 2017 18:32
if your prebolus is over your max_iob, SMB is not going to be able to help until your bolus decays below max_iob
alimhassam
@alimhassam
Dec 10 2017 18:33
ah, right. I think it's already set high enough for most meal.
Jon Cluck
@cluckj
Dec 10 2017 18:35
just be careful with max_iob :)
live4sw
@live4sw
Dec 10 2017 18:41
If I am flat prior to a meal and not that active (e.g., at my desk at work) I usually prebolus with a 10-20 minute timer to eating
if i'm high/rising i might wait a little longer
i often use the timer on my phone or a cube timer to help with willpower/make sure i don't forget
live4sw
@live4sw
Dec 10 2017 18:46
but of course differs for everyone's situation
alternateal
@alternateal
Dec 10 2017 18:52
Has anybody come across this error message before? I had to update node.js to support xdrip-js and it doesn't seem to like looping :worried:
Preflight OK. Old settings: Profile valid. Refreshedmodule.js:590
    throw err;
    ^

SyntaxError: /root/myopenaps/settings/profile.json: Unexpected end of JSON input
    at Object.parse (native)
    at Object.Module._extensions..json (module.js:587:27)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-calculate-iob.js:44:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
Scott Leibrand
@scottleibrand
Dec 10 2017 18:53
SyntaxError: /root/myopenaps/settings/profile.json: Unexpected end of JSON input means your settings/profile.json is empty (or otherwise invalid)
alternateal
@alternateal
Dec 10 2017 18:54
so fill it in same fashion as do for autotune?
ok, copied the one from my working rig :smile: let's see what happens??
Scott Leibrand
@scottleibrand
Dec 10 2017 18:56

@sfeizollah_twitter try starting with this:

[
{
  "direction": "SingleUp",
  "trend": 2,
  "dateString": "2017-12-10T07:21:41-08:00",
  "sgv": 106,
  "device": "share2",
  "date": 1512919301000,
  "_id": "5a2d514cbce7a8312aa13b8a",
  "type": "sgv",
  "glucose": 106
}
]

I think you might only need dateString and glucose. not sure if sgv or type is needed or not.

Sajjad Feizollah
@sfeizollah_twitter
Dec 10 2017 19:00
@scottleibrand Thank you
annarosepasternak
@annarosepasternak
Dec 10 2017 20:54
image.png
I have a 722 that I am attempting to loop. I had it working intermittently before but now it doesn't work. i've tried cd && rm -rf myopenaps && ~/src/oref0/bin/oref0-setup.sh to uninstall and reinstall oref0. on reinstall i got questions about pushover which was new compared to the old install. now we get errors when it is attempting to connect to the pump. Below is the error we get
if anyone has any ideas, would greatly appreciate it. thanks.
Dana Lewis
@danamlewis
Dec 10 2017 20:59
@annarosepasternak do you have a 722, or a 712?
Thacher
@thacherT1D
Dec 10 2017 21:11
@danamlewis where should I start troubleshooting this message Starting oref0-pump-loop at Sun Dec 10 13:06:31 PST 2017 with 3 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 OK. Old pumphistory-24h, waiting for 3 seconds of silence: Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!) Old pumphistory-24h refreshValueError: need more than 0 values to unpack Couldn't refresh_old_pumphistory_24h 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 mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!) mmtune: "916.492", 5, -61 waiting for 2 second silence before continuing Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!) Preflight OK. Done waiting for rigs with better signal. Unsuccessful oref0-pump-loop at Sun Dec 10 13:09:08 PST 2017
Dana Lewis
@danamlewis
Dec 10 2017 21:11
0 values to unpack usually self-resolves with a good pump read
Thacher
@thacherT1D
Dec 10 2017 21:14
okay... I've done all of the basic reset stuff I could think of... I'll look at the version of the NS... but I hadn't changed anything recently, so I'm not sure what would have caused it to stop working
Dana Lewis
@danamlewis
Dec 10 2017 21:15
you updated your oref0, which made the old NS display things as not enacted. new NS does not have that issue.
annarosepasternak
@annarosepasternak
Dec 10 2017 22:54
@danamlewis thanks for the prompt response! I have a 722
Dana Lewis
@danamlewis
Dec 10 2017 23:06
@annarosepasternak k. what firmware version is it? and can you confirm if you said "yes" to the x12 question in the setup script?
annarosepasternak
@annarosepasternak
Dec 10 2017 23:32
@danamlewis Hi Dana, my pump firmware is 2.4.
and when i first tried to reinstall, i said YES to the pushover question (x12), but i just tried reinstalling it again and said NO, so right now, for the rig that is running, i answered NO