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

15th
Oct 2016
Russell Gardner
@RussGG
Oct 15 2016 00:09
I’m testing my loop from the new setup. When my son is here it works great!! I have good internet. At his moms he has a poor connection and his data gets old. I think I need to stop the cron job and start again. I thought Scott told me to enter crontab -e and put a hashtag next to the last line to stop it. I tried that and it seems like it is still running but not connecting to NS. I am using a Carelink stick that hangs up. I know I can probable pull out the stick and put it in another USB port but I want to know a better way to reset everything.
Pete Schwamb
@ps2
Oct 15 2016 00:19
I had the board designer add dd & dc line connections directly to the cc1110 from gpios on the Edison and wrote a bit bang programmer (ccprog) so you don't need another piece of hardware.
Dana Lewis
@danamlewis
Oct 15 2016 00:20
:+1: :clap: @ps2 for the win.
garykidd
@garykidd
Oct 15 2016 00:21
root
garykidd
@garykidd
Oct 15 2016 00:56
oops
so i can flash latest poky image but following to a tee the instructions here for mac...didn't work...tried dozens of times.
tried multiple usb cables
tried different power source
tried resetting edison module
something is amiss
under Initial Setup section....
where you get to echo FIXME-thehostname-you-want > /etc/hostname
would this be what its after for example....
echo blueworld > /etc/hostname
would that work?
dont think that's the issue
redjujube
@redjujube
Oct 15 2016 01:17
I've got the openaps loop running using the new setup script. Meal Bolus, pump alarms, and finger BG calibrations are showing up in Nightscout. Unfortunately, glucose readings from the Medtronic CGM/pump are not being uploaded (they don't show up in mongoDB either)
glucose.json has updated values. Which file ends up getting uploaded to nightscout? Sorry, I haven't been able to figure it out from the reports or from the output of pump-loop.log
garykidd
@garykidd
Oct 15 2016 01:26
This message was deleted
Scott Leibrand
@scottleibrand
Oct 15 2016 01:26
that is a feature that's not yet implemented in oref0-setup
@garykidd blueworld should be fine for a hostname
garykidd
@garykidd
Oct 15 2016 01:27
roger that
hmmmm.....I think I need to go take a walk...
garykidd
@garykidd
Oct 15 2016 01:42
@scottleibrand I was able to get yocto loaded via the intel edison setup tool...any way to leverage that to get jubilinux loaded onto it?
diabeticgonewild
@diabeticgonewild
Oct 15 2016 01:44
No. I would copy your OpenAPS.ini as that would be useful when reconstructing an install....
And I'm high right now. Thanks OxyContin that I have from surgery...
@garykidd did you try flashing on Windows?
Also, I would order an explorer board. Then you won't have to solder stuff...
Also, what's the site URL for ordering Rileylinks?!
I forgot it...
diabeticgonewild
@diabeticgonewild
Oct 15 2016 01:49
???
diabeticgonewild
@diabeticgonewild
Oct 15 2016 01:57
Please???
Darrell Wright
@beached
Oct 15 2016 01:57
I think there is a link off of github/ps2/rileylink
diabeticgonewild
@diabeticgonewild
Oct 15 2016 02:13
You are awesome! Thank you so much!!!
garykidd
@garykidd
Oct 15 2016 02:29
I tried to use windows but I think my machine is too old...
I ordered an explorer board too.
soldering is not an issue..that's the easy part at this pitch--I can easily handle it. My dad taught me how to solder when I was 7 or 8...Still never as good as he was but--still--pretty good.
diabeticgonewild
@diabeticgonewild
Oct 15 2016 02:31
It should work. The only difference with using 32 bit Cygwin is that you have to download the 32 bit version of it...and then change the package installer script command to match the 32 bit file name.
I don't have the dexterity to be able to solder without it being a huge, frustrating hassle.
That's the ONLY difference between 64 bit and 32 bit Cygwin
garykidd
@garykidd
Oct 15 2016 02:46
in all seriousness...when I solder...even just the slightest wiff of the vaporized solder...it tingles my brain...always has...i know that sounds crazy.
@diabeticgonewild if you need me to solder anything I can do it.
Darrell Wright
@beached
Oct 15 2016 02:46
I have friends like that. They get giddy at the first wiff
diabeticgonewild
@diabeticgonewild
Oct 15 2016 02:47
That's OK. Don't worry about it. I have electrical engineer friends that live nearby who can do it for me. Thanks though!
garykidd
@garykidd
Oct 15 2016 02:49
the other f'in annoying thing...no sound on that damn 'puter...I guess I could use my chromebook to watch video and do the work on the pc.... maybe I'll try that...still...drives me crazy that the instructions don't work (well at least for me).
so flash ubilinux....and then what do you do to get jubilinux on edison?
diabeticgonewild
@diabeticgonewild
Oct 15 2016 03:08
Or mobile phone
I think flashing jubilinux is pretty much the same as Ubilinux
Just use wget http://jubilinuxlink.com
That's the only apparent difference I'm pretty sure
Gina
@gclyon
Oct 15 2016 03:11
I'm scared to inline charge my rig with Dexcom receiver plugged in. just replaced fried receiver and wonder if this caused it, along with it the cmd that increases power output to usb--- can't find that cmd in docs so I can make sure it's disabled. Anybody have that?
garykidd
@garykidd
Oct 15 2016 03:19
@diabeticgonewild yeah machine is too old...been using the mac alone now for years...windows is XP and looks like its no longer supported on XP....back to drawing board
Rachel Sandlain
@audiefile
Oct 15 2016 03:26
@garykidd I never could get junilinux to flash to my edison. I ended up using the depreciated directions to flash ubilinux and then upgrade
I'm trying to upload a loop status doc to my nightscout using ns-upload but I keep getting 401 error. Anyone know why?
Rachel Sandlain
@audiefile
Oct 15 2016 03:35
{"status":401,"message":"Unauthorized","description":"Invalid/Missing"}
garykidd
@garykidd
Oct 15 2016 03:46
@audiefile Ithink something is missing from the instructions..thanks. I will try that tomorrow. so tired. I'm not sure on your error...NS site is working though otherwise?
almost sounds like you should double check your site address and API secret (non-hashed)
Rachel Sandlain
@audiefile
Oct 15 2016 03:47
yup. It's just annoying because I don't have my status on urchin
PieterGit
@PieterGit
Oct 15 2016 05:47
@audiefile : most of the 401 errors from ns-upload are caused by a problem with the API_SECRET. Have a look in your nightscout log, it probably has a "denied" line in it. Are you sending the hashed API_SECRET?
diabeticgonewild
@diabeticgonewild
Oct 15 2016 08:19
Gut hurts. FML. All cause I treated a low with gummy bears. It's opium time.
diabeticgonewild
@diabeticgonewild
Oct 15 2016 08:27
It never ends.
Mike
@libxmike
Oct 15 2016 12:18
@danamlewis does your TI on Explorer Board get stuckt like the USB TI or CareLink on Rpi? I have this problem with RPi and CareLink, oref0-reset-usb.sh does not help, reboot or stick disconnect/connect does.
diabeticgonewild
@diabeticgonewild
Oct 15 2016 13:38
Yeah my pumps motor is physically outside (just slightly protruding) the plastic pump casing. No surprise that I am getting an A33 and it's not detecting a reservoir.
Hristina Dimova
@xpucuto
Oct 15 2016 13:46
@diabeticgonewild don't push it while u r connected !!!! It will bolus huge amount of insulin in ur body ! Be careful . My both loopable pumps have this problem .
One of the doesn't work after I glued it , but the other is perfect .
David
@davidkeddydb
Oct 15 2016 13:55
Is it possible to put a lower bg than 80 mg/dl doing eating soon mode? I have already changed bolus rate from 1:7 to 1:6 still going up to 200 around 75 mins out which is more than i would like to. Carb count is 100% right.
live4sw
@live4sw
Oct 15 2016 14:02
echoing @xpucuto, @diabeticgonewild i'm sure you're aware of this but that is a major issue that medtronic has flagged - https://www.medtronicdiabetes.com/res/img/pdfs/940M14085-014%20Loose%20Drive%20Support%20Cap%20Update%205_16_16.pdf
Hristina Dimova
@xpucuto
Oct 15 2016 14:05
Thanks @live4sw unfortunately my both pumps got the problem within month after the 4 year warranty :(
live4sw
@live4sw
Oct 15 2016 14:07
eek, sorry to hear that
Hristina Dimova
@xpucuto
Oct 15 2016 14:18
It's fine . I hope next week to get brand new 715 WW free from medtronic . Health insurance pays higher price for the supplies and MM gives the pumps to the patients.
Pete Schwamb
@ps2
Oct 15 2016 14:38
I'm surprised that Medtronic would still give out a pump that old.
Hristina Dimova
@xpucuto
Oct 15 2016 14:40
It's price is much lower and obviously they have plenty in stock
Hardwick1973
@Hardwick1973
Oct 15 2016 15:08
I have been looking to modify my maxIOB number using "orefo-mint-max-iob x" - I am looking for a corresponding json report where I can confirm the maxIOB. I was expecting to see settings/max_iob.json but it is not there...am I looking in the wrong place?
Rachel Sandlain
@audiefile
Oct 15 2016 15:26
@PieterGit I'm using ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json upload/urchin-status.json to upload. It worked on my old rig. Similar command works on the new rig to upload to pump status but not if I run it manually. I'm not sure how to check my site error logs. How would I do that? I use heroku
Mike
@libxmike
Oct 15 2016 15:36
@audiefile did you set in/home/pi/.profile
export  NIGHTSCOUT_HOST="http://xxxxxxxxx"
export  API_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Terri Lyman
@tatigger
Oct 15 2016 16:21
What is the best way to get notifications of the temp rates that OpenAPS is enacting on the pump while I want to test the suggestions manually on the pump I am currently using? The changes are so rapid, I think just observing on my laptop isn't going to work. How did you guys do this part of the testing process? Also, I need to add "sudo oref0-reset-usb" to my setup so that the usb is tested and then reset if it is no longer responding. What is the best way to do that? I find that it typically disconnects about once or twice a day.
Scott Leibrand
@scottleibrand
Oct 15 2016 16:26
@libxmike we have our sparkfun TI USB rig set up to reboot automatically if it detects the TI has disappeared (with lsusb)
@davidkeddydb no, 80 is the lowest target oref0 will use, for safety reasons. If you're spiking right after a meal up to a peak at 75m, that indicates your meal bolus is too small, or you either need to do eating soon earlier or do an eating soon early prebolus.
@Hardwick1973: the max_iob.json is now called preferences.json. If you created it with oref0-setup can edit it directly rather than using the old mint tool. The new docs mention when and how to go about doing that.
Mike
@libxmike
Oct 15 2016 16:30
@scottleibrand same will work with Explorer Board, correct?
Scott Leibrand
@scottleibrand
Oct 15 2016 16:33
The cc1110 on the explorer board is directly connected, not via USB. So you don't have to reboot. There is a cc1110 reset tool that runs every time we do mmtune.
Mike
@libxmike
Oct 15 2016 16:36
super, no more usb problem then,
Terri Lyman
@tatigger
Oct 15 2016 16:37
Maybe I need one of those, LOL
Mike
@libxmike
Oct 15 2016 16:38
@scottleibrand the sparkfun TI USB rig and auto reboot, can be implemented for CareLink USB I guess, can you point me to a doc or script?
w/o auto reboot my rig is useless , tested with Rpi 2 and Zero, after 6-12h the usb hangs, oref0-reset-usb.sh did not work everytime
Dana Lewis
@danamlewis
Oct 15 2016 16:50
@davidkeddydb a few other Qs - are you still being low temped going into the meal or is eating soon taking care of that? Also, what are your targets during the morning?
Terri Lyman
@tatigger
Oct 15 2016 17:06
@danamlewis is an Explorer Board like a Riley Link?
Terri Lyman
@tatigger
Oct 15 2016 17:13
@libxmike I think I am working on the same problem you are. I have a Pi3, and the connection seems to hold for a long time, then drops. At least once a day. I am using a MM Carelink. It sounds like the TI stick isn't working any better?
Eric
@ecc1
Oct 15 2016 17:19
The Explorer board holds an Edison compute module and has the equivalent of a TI Stick on board. So that plus battery is all you need for an openaps rig (but is overkill for Loop, which doesn't use an Edison). RileyLink has just the TI radio and Bluetooth onboard; loop calculation has to be done on something else (Edison or RPi for openaps, iPhone for Loop)
Dana Lewis
@danamlewis
Oct 15 2016 17:19
@tatigger not quite. Riley link is a radio bridge. The explorer board sits an Edison + has built in TI stick, so that becomes a full OpenAPS rig. Think of it as replacing the carelink+Pi.
Eric
@ecc1
Oct 15 2016 17:19
^^^ what she said :-)
Dana Lewis
@danamlewis
Oct 15 2016 17:19
Jinx @ecc1 :)
tynbendad
@tynbendad
Oct 15 2016 17:20
hi... we are new to pumps, thinking about OpenAPS... looked at MedWow and there are many available - is MedWow more like craigslist where you should meet in person to make exchange, or more like ebay where there is a trusted 3rd party? seems more like the former to me but none of the pumps listed are even in our state so i guess i should wait until i see one locally?
Rachel Sandlain
@audiefile
Oct 15 2016 17:22
Thank you @libxmike ! I hadn't and that seems to have done the trick
Scott Leibrand
@scottleibrand
Oct 15 2016 17:22
@tynbendad from what I hear it's used more like Craigslist as far as contacting sellers, but more like eBay as far as shipping things rather than local pickup. Also note that it's not easy for sellers to remove their medwow listings when they sell, so there'll be lots who don't respond when you email them.
Dana Lewis
@danamlewis
Oct 15 2016 17:22
@tynbendad you can buy online from medwow or craiglist from another state, but you could ask for a video showing them putting a battery in the pump and it booting up, so you know that it works
Scott Leibrand
@scottleibrand
Oct 15 2016 17:24
@libxmike I've never had problems with the TI stick over USB from a Pi 2 that required reboots.
tynbendad
@tynbendad
Oct 15 2016 17:25
@danamlewis @scottleibrand - thanks, i see, so likely there aren't many that are really available and there is a large degree of trust required.
Terri Lyman
@tatigger
Oct 15 2016 17:25
@danamlewis So how does one go about acquiring a magic Explorer Board? Does the process of making Openaps get onto it the same as I have done?
@tynbendad, are you part of CGMintheCloud on face book?
tynbendad
@tynbendad
Oct 15 2016 17:27
@tatigger yes
Terri Lyman
@tatigger
Oct 15 2016 17:30
@tynbendad check with Wes Ton, sometimes pumps become available through the group. I would private message him, he may refer you on and that way you leave the main thread available for Nightscout issues.
tynbendad
@tynbendad
Oct 15 2016 17:30
@tatigger ok, thanks!
Terri Lyman
@tatigger
Oct 15 2016 17:31
@tynbendad You're welcome.
Dana Lewis
@danamlewis
Oct 15 2016 17:34
Explorer boards can be ordered through here: https://twitter.com/rexstjohn/status/786980567728271360
They'll ship in November. You also need an Edison and a battery
@tynbendad looking through craiglist all geographies seems to be yielding people better results; or asking locally for people to look through their closets
tynbendad
@tynbendad
Oct 15 2016 17:37
@danamlewis ok, will look there also
PieterGit
@PieterGit
Oct 15 2016 17:41
how can i increase maxSafeBasal, in what json file should i put that (default 1.8?). is this another parameter than max_iob?
found in the source: var maxSafeBasal = Math.min(profile.max_basal, 3 profile.max_daily_basal, 4 profile.current_basal);
Matthias
@ceben80
Oct 15 2016 17:46
preferences.json
Dana Lewis
@danamlewis
Oct 15 2016 17:52
It's calculated by 3x your max daily and 4x current basal
So if you're running against those limits, it's because of your baseline basals
What is your max basal set at on your pump?
elenavilla
@elenavilla
Oct 15 2016 18:08
Hi, I'm setting the openaps (or trying), but got stuck. My terminal said that "completed pump-loop," but Nightscout still tells me that openaps is "unknown." I already updated to the latest dev version, so I'm not sure of what I did wrong or if there is something wrong. I'm anxious and excited to get any results, but a little bit frustrated and scared too.
PieterGit
@PieterGit
Oct 15 2016 18:08
it was maxed out by 4 x current_basal
the term maxSafeBasal is not used in the documentation yet
Dana Lewis
@danamlewis
Oct 15 2016 18:13
@PieterGit you are searching in oref0. Docs are a different repo. What is the situation when you are hitting it?
@elenavilla tell us some more about what stage in the process you are at, and we can better help you troubleshoot.
elenavilla
@elenavilla
Oct 15 2016 18:17
I'm in phase 2, step 3. I completed the section oreof0-setup.sh and I was looking at my nightscout to see if everything was working properly. I didn't see any change, and in fact, it says that my openaps is unknown.
Dana Lewis
@danamlewis
Oct 15 2016 18:20
Have you already tailed the logs to see if OpenAPS is pulling info from pump, CGM etc? And running calculations?
Mike
@libxmike
Oct 15 2016 18:20
@tatigger are you working on a solution (reboot every x hours) or you working the problem?
elenavilla
@elenavilla
Oct 15 2016 18:33
I just gave the tail command ( tail -F /var/log/openaps/pump-loop.log) and I'm not getting any data. It gives me what looks like an error message. It was different in the morning. It seemed to be reading my dexcom's numbers. Now it says: File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 71, in respond
raise AckError("ACK is 0 bytes:\n%s" % lib.hexdump(raw))
decocare.errors.AckError: ACK is 0 bytes:
Mike
@libxmike
Oct 15 2016 18:38
@elenavilla its the USB stickt, do you have carelink? stick out-in or reboot/power cycle
elenavilla
@elenavilla
Oct 15 2016 18:39
@libxmike I'm going to try.
Mike
@libxmike
Oct 15 2016 18:41
do lsusb and see if stick is listed
elenavilla
@elenavilla
Oct 15 2016 18:47
carelink in and out. Rebooted. "starting pump-loop at..." "completed pump-loop at..."and then it is asking for settings refresh, etc.
Mike
@libxmike
Oct 15 2016 18:47
in pump-loop.log?
elenavilla
@elenavilla
Oct 15 2016 18:49
starting pump-loop. It doesn't say anything about a log, but it seems to give the last times of temp_basal.json, pumphistory, settings.
Mike
@libxmike
Oct 15 2016 18:49
post the output of pump-loop.log again
elenavilla
@elenavilla
Oct 15 2016 18:50
tail -F /var/log/openaps/pump-loop.log. This one?
Mike
@libxmike
Oct 15 2016 18:50
yes
elenavilla
@elenavilla
Oct 15 2016 18:51
Starting pump-loop at Sat 15 Oct 11:51:14 PDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Profile less than 60m old
temp_basal.json less than 5m old
Pumphistory less than 5m old
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Sat 15 Oct 11:51:31 PDT 2016
Is this normal?
Mike
@libxmike
Oct 15 2016 18:53
look ok, what NS says?
elenavilla
@elenavilla
Oct 15 2016 18:54
openaps unknown
Could this be a problem: umphistory more than 5m old: Refreshed pumphistory
BG data is too old, or clock set incorrectly. Your CGM time is Sat Oct 15 2016 11:23:21 GMT-0700 (PDT) but your system time is Sat Oct 15 2016 11:52:35 GMT-0700 (PDT)
Dexcom is set with the same time as pump though
Mike
@libxmike
Oct 15 2016 18:57
it means you dont have new BG readings in openaps
elenavilla
@elenavilla
Oct 15 2016 18:58
it is not hearing my dexcom?
Mike
@libxmike
Oct 15 2016 18:58
cant tell how setup with Dexcom works, I use BG from NS
elenavilla
@elenavilla
Oct 15 2016 18:58
I have nightscout too.
Mike
@libxmike
Oct 15 2016 18:58
it may be that you not getting readings from Dexcom
but do you have NS and mongodb? BG is stored in mongodb
elenavilla
@elenavilla
Oct 15 2016 19:02
G5, bridge with share
Mike
@libxmike
Oct 15 2016 19:03
dont have expriance with that, I use Libre with Limitter/xDrip+ to pusch BG to mongodb
in your post from 20:54, where is this message from? please post always where you see or get the message
elenavilla
@elenavilla
Oct 15 2016 19:05
@danamlewis The system seems to be getting information. I still don't have a knownopenaps in nightscout. Any idea?
Scott Leibrand
@scottleibrand
Oct 15 2016 19:05
If you're getting BG from NS, that BG data too old message means it's not refreshing. Looks like it was working 30m prior: did anything change?
elenavilla
@elenavilla
Oct 15 2016 19:06
I turned the RP off, and on, plug the carelink stik in and out. Just that.
Scott Leibrand
@scottleibrand
Oct 15 2016 19:06
@elenavilla check crontab -l - is your NS host correct (works in a browser)? Is your hashed API secret correct? Is there a / at the end of the NS host? (If so, try removing it.)
Mike
@libxmike
Oct 15 2016 19:11
also check ns.ini in ~/myopenaps NS URL if behind :1337 is a trailing "/" if yes, remove it
elenavilla
@elenavilla
Oct 15 2016 19:20
@scottleibrand I checked crontab -l; NS host is right, works in computer and phone, API secret has a lot more letters and numbers than I originally entered, there is no / at the end of website.
I checked ns.ini. Didn't see 1337 in it.
This message was deleted
Mike
@libxmike
Oct 15 2016 19:22
sorry, post 1337 in url is for local NS/mongo installation
@elenavilla please remove part of your azure url
from you post
Mike
@libxmike
Oct 15 2016 19:28
@elenavilla did it work bevor ? what pump do you have? did you set Bolus Wizard and is it on?
elenavilla
@elenavilla
Oct 15 2016 19:31
No it didn't work before, I'm a first-timer. medtronic 722, right firmware. bolus wizard was set, it is on, with water instead of insulin (which is probably not the reason)
Mike
@libxmike
Oct 15 2016 19:33
you dont even need reservoir to test, I'm setting also for first time, not live yet
but from what I see you not getting new BG readings
also unknown in openaps in NS ist not good
see if you have all the json files, if not generate them
openaps report add settings/settings.json JSON pump read_settings
openaps report add settings/bg_targets.json JSON pump read_bg_targets
openaps report add settings/insulin_sensitivities.json JSON pumpread_insulin_sensitivities
openaps report add settings/basal_profile.json JSON pump read_selected_basal_profile
openaps report add settings/settings.json JSON pump read_settings
Mike
@libxmike
Oct 15 2016 19:43
@elenavilla if you getting BG readings in NS then you may try to setup openaps (run oref0-setup.sh again?) to read them from NS and see if it work then, just an idea
elenavilla
@elenavilla
Oct 15 2016 20:16
I run oref0 again, and entered everything again. The system is not detecting my usb-decom readings (seems like). I removed the usb, and plugged it again. It still doesn't recognize it: Could not parse input data: { [Error: Cannot find module '/home/pi/myopenaps/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
Not sure what the problem is, cable seems to charge the dexcom fine every time.
is there any way to know what the problem is exactly here?
PieterGit
@PieterGit
Oct 15 2016 20:21
how can i enable eating-soon-mode. i found https://diyps.org/2016/07/11/picture-this-how-to-do-eating-soon-mode/ but it doesn't describe how the eating soon is enabled
elenavilla
@elenavilla
Oct 15 2016 20:31
@libxmike @scottleibrand @danamlewis I'm finally getting numbers, and got the pump to start a temporal basal. I got some happy crying, and I'm ready to buy a new cable (everything worked after some hardware adjustments, if you can believe it.) I just saw the openaps working in my NS too. Period of tests now!
Thanks!
Dana Lewis
@danamlewis
Oct 15 2016 20:32
@PieterGit you can do it with setting a temp target (via Nightscout care portal) of 80
@elenavilla hooray! :) :confetti_ball:
PieterGit
@PieterGit
Oct 15 2016 20:35
quite simple. unfortuately it proposes 80 in mmol mode as well :worried:
Dana Lewis
@danamlewis
Oct 15 2016 20:36
So 80 because many people set their targets to 100 otherwise. You can pick an appropriate mmol target instead to use, or file an issue for NS if it is not allowing temp targets in mmol?
PieterGit
@PieterGit
Oct 15 2016 20:38
was working on that: nightscout/cgm-remote-monitor#2093
PieterGit
@PieterGit
Oct 15 2016 20:47
it's always in mg/dl (no matter if DISPLAY_MODE=mmol). Same for the tooltip. Bug filed for nightscout.
Terri Lyman
@tatigger
Oct 15 2016 20:51
@libxmike, I would like to aadd something to the oref0 to reboot the usb ports when preflight FAILS due to no info from the carelink. I believe that the preflight already does fail when that happens. But I am not sure how to format the request and where to "put" it....in the CRON? Then by Nov when I get the new hardware I will have a limping along system that has been tested. It will probably take me a while to figure out the new hardware, so hopefully by the time that is done, the system with carelink is running at least daytimes on me, and working to control this variable absorption of carbs things I have going on right now.
Mike
@libxmike
Oct 15 2016 21:06
@tatigger I though abut the same, where to put reboot in crontab also donto know how and if preflight works with Carelink, I thought it works only with TI
I'll be also waiting for the new hardware, Explorer board, til then I may just do a dry test as I'am doing now
Terri Lyman
@tatigger
Oct 15 2016 21:16
@libxmike I was just reading about tethering the pi to the bluetooth on a phone for when wifi is not available. The guide (DEV) says once the connection is configured...lots of instructions I don't quite understand, but that is ok for now.... This...

Save the file, then enable the service (code here to enable)

Open your crontab for editing -

crontab -e

...and add an entry to check the connection every minute and reconnect if necessary -

          • /home/pi/bin/check-and-connect-bt-pan.sh

Save the file, then restart -

sudo shutdown -r now

That leads me to believe the refresh of the usb goes in the CRON
But what do the five asterisks before /home/pi/bin/check.... mean? @danamlewis ?
Scott Leibrand
@scottleibrand
Oct 15 2016 21:19
those tell it to run every minute of ever hour of every day etc.
Terri Lyman
@tatigger
Oct 15 2016 21:21
oh, ok @scottleibrand So is part of the preflight as it exists from the setup tool to check the usb ports? or to check a TI stick or Carelink stick?
Scott Leibrand
@scottleibrand
Oct 15 2016 21:22
there used to be something in my preflight for the carelink stick, but i haven't ported that to oref0-setup yet
it still exists in older versions of my openaps-sh repo's setup.sh though. I think someone got it working with oref0-setup, but hasn't PR'd it in yet
I don't have anything in oref0-setup for resetting a USB TI stick, as most of our rigs are directly connected (not over USB), and that's how the Explorer board will be as well
here's what I have in cron on our USB TI rig:
*/5 * * * * lsusb | grep OpenMoko || sudo reboot
I also had a killall -g --older-than 20m openaps && sudo reboot, but that has been overridden by a killall -g --older-than 10m openaps and I haven't missed it
Terri Lyman
@tatigger
Oct 15 2016 21:30
I found this bit in a preflight example.... (mm-stick warmup || sudo oref0-reset-usb; echo PREFLIGHT FAIL; sleep 120; exit 1)
Scott Leibrand
@scottleibrand
Oct 15 2016 21:31
yeah, that's the kind of thing I'm talking about
Terri Lyman
@tatigger
Oct 15 2016 21:33
So I should be able to /5 * mm-stick warmup || sudo oref0-reset-usb
Add that to the crontab
And then that should wait - ah, I love spellcheck.
/5 * mm-stick warmup || sudo oref0-usb
AH! You know what I mean. * before the/5 and four after
Scott Leibrand
@scottleibrand
Oct 15 2016 21:36
use ` backticks around stuff with * in it
if you're doing the mm-stick warmup and oref0-reset-usb stuff, it should not go into cron directly
it should go into your preflight
or, in oref0-setup, probably in the mmtune alias
Terri Lyman
@tatigger
Oct 15 2016 21:37
How do I find the preflight?
PieterGit
@PieterGit
Oct 15 2016 21:37
can anybody recommend a ~ 4400mah 5V USB battery? (with passthrough charging)
Scott Leibrand
@scottleibrand
Oct 15 2016 21:38
alternatively it could go into the wait-for-silence alias
for carelink, since wait-for-silence isn't really a thing, that one sorta serves the role of a preflight
Terri Lyman
@tatigger
Oct 15 2016 21:38
Is that in the enact directory?
Scott Leibrand
@scottleibrand
Oct 15 2016 21:38
no, these are aliases
openaps alias show alias-name
Terri Lyman
@tatigger
Oct 15 2016 21:39
I was just going a-hunting. Thank you
Terri Lyman
@tatigger
Oct 15 2016 21:52
This is what the current wait-for-silence alias is "wait-for-silence report invoke monitor/temp_basal.json" and this is what I think I should do to change it. First "openaps alias remove wait-for-silence" then openaps alias addd wait-for-silence “report invoke monitor/temp_basal.json */5 * * * * mm-stick warmup || sudo oref0-reset-usb
Scott Leibrand
@scottleibrand
Oct 15 2016 21:53
you're mixing a bunch of things there
the */5 * * * * stuff is only applicable inside crontab
Terri Lyman
@tatigger
Oct 15 2016 21:54
ok. so then I only want "... basal.json mm-stick warmup || sudo oref0-reset-usb"
Scott Leibrand
@scottleibrand
Oct 15 2016 21:54
and report invoke is specific to inside openaps, whereas mm-stick warmup || sudo oref0-reset-usb is a bash thing
Terri Lyman
@tatigger
Oct 15 2016 21:55
Then how/why would I add it to an alias the has a .json in it
Scott Leibrand
@scottleibrand
Oct 15 2016 21:56
the syntax to run stuff that's not an openaps report inside an openaps alias is different, more like: https://github.com/scottleibrand/openaps-sh/blob/dev/setup.sh#L133
now there's a lot of complicated stuff there, which you probably don't need, but the basic structure at the beginning is instructive
specifically openaps alias add preflight '! bash -c "some-bash-command"'
so you could replace wait-for-silence with something similar here
for example, the simplest approach might be openaps alias add wait-for-silence '! bash -c "mm-stick warmup || sudo oref0-reset-usb"'
Terri Lyman
@tatigger
Oct 15 2016 21:59
I don't need to retain the monitor temp basal, then
Scott Leibrand
@scottleibrand
Oct 15 2016 21:59
or if you wanted to preserve the temp_basal.json check, you could do something like openaps alias add wait-for-silence '! bash -c "mm-stick warmup || sudo oref0-reset-usb; openaps report invoke monitor/temp_basal.json"'
think about what it's doing there to decide that
why is there a wait-for-silence in the first place? how is it used? what does it accomplish?
Terri Lyman
@tatigger
Oct 15 2016 22:01
Waiting for silence seems to be deciding if the temp basal currently in the memory should be continued, or if the data is too old to revert back to the original program. For a short silence, it is ok, but for a long silence, I want it to quit managing temp basals? I think.
Scott Leibrand
@scottleibrand
Oct 15 2016 22:02
no... think about the situation where there are multiple rigs talking to the same pump
also ignore the way it's done for the carelink: that's not why that alias exists
you probably haven't seen how it works for the TI stick though.
Terri Lyman
@tatigger
Oct 15 2016 22:03
multiple rigs? No, I don't know what a TI stick is yet
Scott Leibrand
@scottleibrand
Oct 15 2016 22:03
what it does is run a command that makes the TI stick passively listen for a pump and a rig talking to each other
so it knows "oh, the pump is talking to someone else already" and can silently wait its turn to speak
Mike
@libxmike
Oct 15 2016 22:03
Just as a side note
oref0-reset-usb does not work on Rpi/Zero and Carelink
Terri Lyman
@tatigger
Oct 15 2016 22:04
So you don't get garbled messages when the TI stick is involved.
Scott Leibrand
@scottleibrand
Oct 15 2016 22:05
right. and more importantly, so we don't garble what's already in progress by the other rig. now we can't do wait-for-silence with the carelink, so what's the next best thing?
Terri Lyman
@tatigger
Oct 15 2016 22:05
I think oref0-reset-usb is how I re-establish the communication when the carelink stops, @libxmike. That is the only thing I have been doing when it has quit the for the last 2 days.
Scott Leibrand
@scottleibrand
Oct 15 2016 22:06
there may be other options, but what I chose to do was to run a quick command that tries to talk to the pump, with the expectation that if something is already happening, that would fail
@tatigger are you using a Pi Zero?
Terri Lyman
@tatigger
Oct 15 2016 22:06
So that is the echo FAIL part. No, I am using a Pi3
Scott Leibrand
@scottleibrand
Oct 15 2016 22:06
@libxmike what happens when you run oref0-reset-usb manually on the Pi Zero?
Mike
@libxmike
Oct 15 2016 22:06
insted of oref0-reset-usb, reboot, I did try few times oref0-reset-usb and did not work, maybe one time
Scott Leibrand
@scottleibrand
Oct 15 2016 22:06
does it suggest an alternate usb bus device?
it should either always work or always not if it's a device-based incompatibility
Mike
@libxmike
Oct 15 2016 22:07
on Pi Zero works same as on Pi 2 where the Carelink is now
Terri Lyman
@tatigger
Oct 15 2016 22:08
I am not rebooting when I do the the reset. A piZero just has other things connected to the usb ports at the same time - like the WIFI dongle, right?
Mike
@libxmike
Oct 15 2016 22:09
sorry, Carelink on Zero same as Pi 1
Scott Leibrand
@scottleibrand
Oct 15 2016 22:11
@libxmike if you're interested, it might be worth drilling down into what the script is actually doing and see what the equivalent would be for the Pi zero (or if one of the devices it uses does actually exist)
garykidd
@garykidd
Oct 15 2016 22:11
@scottleibrand is there a way I can import a file for /etc/network/interface ?
Scott Leibrand
@scottleibrand
Oct 15 2016 22:11
@garykidd does the Edison's file system show up on your computer when you plug it in via USB?
@tatigger so the reason I wanted you to think about the rationale behind that alias was to think about whether it's necessary to do a "can I talk to the pump" preflight check before launching into actually trying to talk to the pump
for example, if you only have a single rig, perhaps you don't care about whether or not your rig is "polite", as it doesn't need to "play well with others" ;-)
garykidd
@garykidd
Oct 15 2016 22:13
it does...I'm just having a persistent issue with nano and vi...for some reason once I enter either of those the screen is all wacked....take a look at this....
Scott Leibrand
@scottleibrand
Oct 15 2016 22:13
(in which case just doing the mm-stick warmup check and resetting usb if it fails might be all you need)
garykidd
@garykidd
Oct 15 2016 22:13
This message was deleted
Scott Leibrand
@scottleibrand
Oct 15 2016 22:13
@garykidd if you can edit the file on your computer and place it on the Edison via usb, you can then use cp to put it into /etc/network/interfaces
@garykidd another option might be to learn a non-full-screen editor like ed
Terri Lyman
@tatigger
Oct 15 2016 22:14
@scottleibrand right, so I can ditch that temp_basal.json. It isn't needed in this case.
Scott Leibrand
@scottleibrand
Oct 15 2016 22:15
@tatigger yeah, probably don't need that
Terri Lyman
@tatigger
Oct 15 2016 22:15
but I am making note of the fact that I eliminated it and why so if I go to TI stick I know what to do to add it back in.
garykidd
@garykidd
Oct 15 2016 22:15
can I save it as a text file using word?
Scott Leibrand
@scottleibrand
Oct 15 2016 22:16
exactly. although at that point you'll probably just need to re-run oref0-setup, which will create new wait-for-silence aliases for the TI stick / cc1110 chip
@garykidd I would use a pure text editor
notepad on windows and textEdit on mac are the simplest built-in ones
Terri Lyman
@tatigger
Oct 15 2016 22:16
:)
garykidd
@garykidd
Oct 15 2016 22:17
hmmmm TextEdit?
Mike
@libxmike
Oct 15 2016 22:17
Notepad++ , best editor on WinPC
Terri Lyman
@tatigger
Oct 15 2016 22:17
@garykidd mac or pc?
Mike
@libxmike
Oct 15 2016 22:17
or use vi on mac
garykidd
@garykidd
Oct 15 2016 22:17
mac
Scott Leibrand
@scottleibrand
Oct 15 2016 22:18
@tatigger so this is the kind of stuff you need to think about any time you modify the way your loop works. Why is it set up this way? What will be the likely impact if I change this? Is that what I want in my particular situation? What other side effects would I need to look out for if I change it?
Mike
@libxmike
Oct 15 2016 22:19
@garykidd on mac you can use TextEdit but Format->Make Plain Text
Terri Lyman
@tatigger
Oct 15 2016 22:19
@scottleibrand Yes, that it is one of the reasons I want to run it on my desk and not attached for a bit. How do I try to catch and emulate all of the suggestions I want to use when I am in this evaluation phase?
not exactly simple, though
another option would be to use HAPP (Android) in open loop mode
Terri Lyman
@tatigger
Oct 15 2016 22:24
Pushbullet was kind of confusing. I will read through HAPP. After a station break to replace an apparently bad infusion site. Stupid diabetes interfering with my ability to work on my openaps. oh. wait.
lol
Scott Leibrand
@scottleibrand
Oct 15 2016 22:25
heh
PieterGit
@PieterGit
Oct 15 2016 22:25
is there a recommended proportion "bolus insulin" , "base basal insulin" with openaps?
I assume it's best if "Positive temp basal insulin" is roughly equal to "Negative temp basal insulin:", or otherwise change basal if it occurs several days
Scott Leibrand
@scottleibrand
Oct 15 2016 22:27
yeah, you definitely want your basals tuned so that openaps is not having to high or low temp on net overnight (when no carbs are at play)
I haven't see anyone recommend a percentage bolus vs. basal. but generally experienced users have had the best control by doing Eating soon (either as a temp target and/or as an early prebolus), a meal bolus for 2/3 to 3/4 of their meal, and then letting oref0 (AMA) do the rest of the meal insulin as needed
garykidd
@garykidd
Oct 15 2016 22:29
I think pre closed loop...50/50 is often a rough goal bolus to basal..no?
@scottleibrand assuming I got the source part right...does this look right?
root@blueworld:~# cp /Users/g/Desktop/interfaces.txt /etc/network/interfaces
Scott Leibrand
@scottleibrand
Oct 15 2016 22:39
yeah, give that a try
garykidd
@garykidd
Oct 15 2016 22:40
shoot...not quite right..
root@blueworld:~# cp /Users/g/Desktop/interfaces.txt /etc/network/interfaces
cp: cannot stat `/Users/g/Desktop/interfaces.txt': No such file or directory
that was from my terminal window for edison via screen....
Scott Leibrand
@scottleibrand
Oct 15 2016 22:40
go browse into /Users/g/ etc and find it
cd, ls, etc
garykidd
@garykidd
Oct 15 2016 22:42
That last command was from a edison terminal via screen...which I guess doesnt have access to my imac.
On another terminal window...I have changed to that directory and can see the interfaces.txt file
how do I xfer to edison though
garykidd
@garykidd
Oct 15 2016 22:55
yeahhhh...thinking that's not possible until I set up wifi...which I can't do until I change the interfaces file...which I can't do because...well..I have no f'in idea.
Mike
@libxmike
Oct 15 2016 22:56
can you scp to edison from mac?
taylorfowler
@taylorfowler
Oct 15 2016 22:58
So my Edison showed up today...Holy crap this thing is TINY
Mike
@libxmike
Oct 15 2016 23:00

@garykidd like this:

MacMini:~ mike$ scp temp.txt pi@192.168.1.214:/home/pi/

or in your case

scp interfaces.txt pi@192.168.1.214:/etc/network/interfaces
garykidd
@garykidd
Oct 15 2016 23:03
yeah...but I'm stuck since I can't edit the interfaces file my edison cant get online...I guess there's no way to copy via serial connection huh?
iMac:Desktop g$ scp interfaces.txt root@blueworld.local/etc/network/interfaces
cp: root@blueworld.local/etc/network/interfaces: No such file or directory
Scott Leibrand
@scottleibrand
Oct 15 2016 23:04
@garykidd look for an external drive on your Mac when you plug the Edison in via its OTG port.
Mike
@libxmike
Oct 15 2016 23:04
I see, you dont have network yet
garykidd
@garykidd
Oct 15 2016 23:04
ah ...
Mike
@libxmike
Oct 15 2016 23:05
and I dont have edison yet
Scott Leibrand
@scottleibrand
Oct 15 2016 23:06
Oh, this is a Pi?
garykidd
@garykidd
Oct 15 2016 23:06
nope...edison now
Scott Leibrand
@scottleibrand
Oct 15 2016 23:06
Oh, mm, thought that was Gary. K
Edison should have a share drive that shows up on the Mac when you plug it in. Not sure where that is in Linux, but updatedb; locate interfaces.txt should find it
Mike
@libxmike
Oct 15 2016 23:08
or du mount and see where edison is mounted
Scott Leibrand
@scottleibrand
Oct 15 2016 23:09
I'm talking about on the Edison after you place the file.
It should show up in Finder on the Mac.
Mike
@libxmike
Oct 15 2016 23:10
im out, its 1am here, n8
Scott Leibrand
@scottleibrand
Oct 15 2016 23:15
Nite
Brandon Faloona
@bfaloona
Oct 15 2016 23:21
Hi all! I'm trying to flash an Edison on a sparkfun base block board with my Mac and it keeps timing out.

Looks like the flash begins after I reboot it, but after it reboots itself it times out.

Any ideas?

baldwin:jubilinux brandon$ ./flashall.sh
Using U-Boot target: edison-blankcdc
Now waiting for dfu device 8087:0a99
Please plug and reboot the board
dfu-util: Device has DFU interface, but has no DFU functional descriptor
Flashing IFWI
Flashing U-Boot
Flashing U-Boot Environment
Flashing U-Boot Environment Backup
Rebooting to apply partition changes
Now waiting for dfu device 8087:0a99
Timed out while waiting for dfu device 8087:0a99
DEBUG: lsusb
Bus 021 Device 002: ID 05ac:8406 Apple Inc. Internal Memory Card Reader  Serial: 000000000820
Bus 020 Device 011: ID 8087:0a9e Intel Corporation Edison  Serial: c36df0cb3df4880eb167df5933ce6459
Bus 020 Device 022: ID 0403:6015 Future Technology Devices International Limited FT231X USB UART  Serial: DN01F36B
Bus 020 Device 003: ID 05ac:8290 Apple Inc. Bluetooth USB Host Controller 
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
It is referencing a dfu device 8087:0a99 that I don't see in the lsusb list.
Brandon Faloona
@bfaloona
Oct 15 2016 23:27
Should I just focus on running the jubiliniux flashall.sh script from a raspberry pi, instead of from a mac?
Scott Leibrand
@scottleibrand
Oct 15 2016 23:44
@bfaloona is one of your USB cables bad?
garykidd
@garykidd
Oct 15 2016 23:44
usb cables....hmmmm
Brandon Faloona
@bfaloona
Oct 15 2016 23:44
I can double check that. Thanks for the reminder on that.
garykidd
@garykidd
Oct 15 2016 23:45
night nate ehhh
?
Brandon Faloona
@bfaloona
Oct 15 2016 23:53
Scott Leibrand
@scottleibrand
Oct 15 2016 23:56
I've successfully flashed Edisons from my Mac lots of times.