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

2nd
Jan 2017
Brian Rabinovitz
@bdr1177
Jan 02 2017 00:00
If I run the Run oref0-setup script again does it just overwrite. The directions say it's fine to run again as long as you name it something different. But if I'm not testing a second setup can I just name it the same thing and overwrite it?
I ran lsusb and the stick shows up
Brian Rabinovitz
@bdr1177
Jan 02 2017 00:07
But I still get the same error when I run openaps use pump model: "serial.serialutil.SerialException: Attempting to use a port that is not open"
Terri Lyman
@tatigger
Jan 02 2017 00:12
I got my wifi setup on my Edison, finally. Yes, it has been that long. I only have a limited amount of time to work on it. Anyway, my solution was to reflash the Edison, and follow the directions in the docs again. So if you are having the issue of wifi setup with the Edison that just will not connect, no matter how many different ways you try the configuration, try reflashing.
glenrob1940
@glenrob1940
Jan 02 2017 00:30
@Aaybob flashing will work between intel mini breakout and explorer but not these and other (eg sparkfun)
C-Ville
@C-Ville
Jan 02 2017 00:37
@glenrob1940 this seems strange as swapping between mini breakout board and sparkfun boards always seemed to work for me
MitchDex
@MitchDex
Jan 02 2017 00:40
I am setting up an Edison using an Explorer board. I have followed the documentation and have gotten all the way through the initial set-up. I am trying to edit the logrotate.conf file as 'root' but getting a "Permission Denied" error. Hoping someone can help me get over this final hurdle. thanks
/etc/logrotate.conf
-bash: /etc/logrotate.conf: Permission denied
John Benjamin
@Bender1061
Jan 02 2017 00:42
@danamlewis did you every get the BT Tethering to work with your phones hotspot?
John Benjamin
@Bender1061
Jan 02 2017 01:04
@MitchDex do 'nano /etc/logrotate.conf'
Sgoldberg89
@Sgoldberg89
Jan 02 2017 01:08
Happy New Years Everyone!
So I modified my wifi settings on both pi and explorer board and now neither of them work*
*pi still tethers to the phone but edison does not
Dana Lewis
@danamlewis
Jan 02 2017 01:10
@tatigger wahoo!
@MitchDex did you set up as root initially?
@Bender1061 not yet :/
Tried a few more times but still no go
Sgoldberg89
@Sgoldberg89
Jan 02 2017 01:11
Trying to hard wire into the edison board, but don't think my computer ever recognized the edison properly. Will try pi next but any tips are appreciated!
jaylagorio
@jaylagorio
Jan 02 2017 01:15
@Sgoldberg89 Hard wire into a Windows PC?
Sgoldberg89
@Sgoldberg89
Jan 02 2017 01:15
mac, sadly
jaylagorio
@jaylagorio
Jan 02 2017 01:17
Ah, I can't help troubleshoot because that's not my area of expertise but when I was having trouble I found these instructions helpful (on Windows): https://software.intel.com/en-us/node/637974#manual-flash-process
If they were helpful on Windows I'd expect doing what they said for Mac would work
Sgoldberg89
@Sgoldberg89
Jan 02 2017 01:18
thank you!
jaylagorio
@jaylagorio
Jan 02 2017 01:18
Just make sure you're connecting to the UART port
*UART port for getting the terminal on the Edison, the OTG port when doing the flashing
And make sure you're using a cable that carries power and data, sometimes called a "sync & charge," because there are plenty of USB cables out there that only carry power.
I've found that cables that come with phones tend to be data and power
Sgoldberg89
@Sgoldberg89
Jan 02 2017 01:20
@jaylagorio yea I've been plagued by those! Thanks again! I wasn't sure which port to use
jaylagorio
@jaylagorio
Jan 02 2017 01:21
UART is a funny way of saying "serial port." Once you're done flashing you'll pretty much only need to use that one if all you want to do is terminal work.
But during the flash process you'll be connecting both ports to the computer
diabeticgonewild
@diabeticgonewild
Jan 02 2017 01:31
OK I was taking a look online. With regards to the JST connection point on the Explorer Board, sign conventions/polarities aren't that relevant, with respect to putting the LiPo battery in correctly and not frying your board. What actually matters is the polarity of the battery header, from wherever you purchased your battery from, which can be inconsistent, even though there is a formal convention for wire colors with respect to voltage polarities. I hope you purchased your batteries from either Sparkfun or Adafruit. It appears for JST-PH connector (when the actual hole/plug/opening end is facing towards you) on the Explorer Board (if you bought your battery from Adafruit or Sparkfun) that the connection would be: Red (positive charge) on the left side of the JST-PH connector on the Explorer Board, and Black (negative charge) on the right side of the JST-PH connector on the Explorer Board. Unfortunately, I cannot attest or confirm to other LiPo batteries purchased off the internet.
This message was deleted
This message was deleted
All of this depends on the polarity of battery header, for whatever battery you purchased.
For AdaFruit batteries, I was able to determine the convention used by putting this into Google, and then looking at photos in the Google search results (from the text search) from various tutorials provided by Adafruit. Try putting this into Google: "jst polarity of battery header adafruit"
diabeticgonewild
@diabeticgonewild
Jan 02 2017 01:37
This message was deleted
Sparkfun has a nice tutorial regarding connectors, but you will want to press Control/Command + F to search for "jst" as it is a long article. On the JST section, you will find a photo showing polarity assignment for a standard JST-PH connector with the JST plug on the SparkFun battery. However, the photo can be confusing for somebody who has trouble with directional orientation. Take a look: https://learn.sparkfun.com/tutorials/connector-basics
MitchDex
@MitchDex
Jan 02 2017 01:40
@danamlewis - I did set-up as root initially. Looks like writing to the file with nano per @Bender1061 worked. thank you both!
diabeticgonewild
@diabeticgonewild
Jan 02 2017 01:46
I will enter in that information into a PR in a clear way later. My mind just isn't in the right place right now.
diabeticgonewild
@diabeticgonewild
Jan 02 2017 01:52
Dumb question....how do you mount the Edison module to the back of the Explorer Board? Do you dismantle the 2 screws from the Intel Mini-Breakout Board using a screwdriver, and then transfer them and remount them to the Explorer Board?
John Benjamin
@Bender1061
Jan 02 2017 01:56
i used the pack from sparkfun, had everything I needed.
diabeticgonewild
@diabeticgonewild
Jan 02 2017 01:57
What pack? I am kind of in the dark about this :(
diabeticgonewild
@diabeticgonewild
Jan 02 2017 01:58
Thank you! :D
I bookmarked it and I am definitely going to order some packs, but it looks like the mounting screws on the Intel Mini-Breakout board are the same. So, I'm getting out my screwdriver and I am dismantling some of it for now. And in the meantime, I'm listening to OpenAPS Docs on my screenreader.
Yeah, I haven't been able to eat all day, so my mind really isn't in the right place.
John Benjamin
@Bender1061
Jan 02 2017 02:04
@danamlewis so it's paired and trusted, but it's not working with the oref0-online? mines proven pretty reliable. I was even this morning un-pairing and re-pairing (testing for changing the device name) and when I left the house, it connected up perfectly.
Dana Lewis
@danamlewis
Jan 02 2017 02:06
@MitchDex :+1:
@Bender1061 correct - paired, trusted, but then doesn't work. Have not tried yet with the name method you just added to the docs tonight, but doubt that will change it.
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:10
I want to read the most recent version of OpenAPS Docs in PDF. I did a search on Google for the dev pdf version, which yielded a long link, dated December 16 on Google, and also December 16 on the actual PDF. I searched for more openaps dev versions in PDF by searching "openaps site:https://media.readthedocs.org/pdf/openaps/dev/" which yielded the same (and only link). Is this link the most recent dev version of OpenAPS Docs? I am wondering because it says "release 0.0.0" or something like that. Can someone confirm that this link is the most recent version of the dev OpenAPS Docs? Link: https://media.readthedocs.org/pdf/openaps/dev/openaps.pdf
Scott Leibrand
@scottleibrand
Jan 02 2017 02:13
no, there have been continual edits since then. let me see if I can trigger a new PDF creation in RTD
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:13
RTD?
John Benjamin
@Bender1061
Jan 02 2017 02:13
the name method just changes the device name. best way to test would be to comment out your wifi and tether to the edison. then just run the oref0-online AA:BB and see if it connects. Then you could try the bt-pan client and see if it gives you any problems. You did run the cd ~/src/oref0/ && npm run global-install cause otherwise the oref0-online does not get called.
glenrob1940
@glenrob1940
Jan 02 2017 02:13
@C-Ville Okay, as usual my memory is suspect, perhaps the issue was with arduino
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:13
@scottleibrand Thanks! :D
Dana Lewis
@danamlewis
Jan 02 2017 02:13
@diabeticgonewild dev may not have been updated since then; use master, it is most up to date
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:14
Oh, Read The Docs! Sorry, I haven't ate today.... :(
chrisharris751
@chrisharris751
Jan 02 2017 02:14
@Bender1061 @danamlewis to keep my Bluetooth tether going I commented out all my network settings in the Wi-Fi wpa_supplicant.conf. Now it always stays connected to my phone 👍
Scott Leibrand
@scottleibrand
Jan 02 2017 02:14
ah, it builds automatically. link to latest PDF is https://media.readthedocs.org/pdf/openaps/latest/openaps.pdf
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:15
@danamlewis Thanks. But I can print PDFs manually if I want or need to. But I appreciate the effort on the Read The Docs page
@scottleibrand Does that apply to the Dev docs too?
Scott Leibrand
@scottleibrand
Jan 02 2017 02:15
the dev version is actually older than master
Dana Lewis
@danamlewis
Jan 02 2017 02:15
@Bender1061 yea, and that hasn't worked for me yet...will give it another stab, and then a harder stab next week when I'm in home wifi and can more easily control it/turn it off and troubleshoot better
Scott Leibrand
@scottleibrand
Jan 02 2017 02:15
we only use the dev branch of docs for major revisions: minor changes go straight to master
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:15
Interesting. Well I guess I am going to use the master.
Dana Lewis
@danamlewis
Jan 02 2017 02:15
@diabeticgonewild dev is old. Use master.
:+1:
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:16
Thank you! :D
Scott Leibrand
@scottleibrand
Jan 02 2017 02:18
we use branches differently in docs versus on oref0: with oref0 the latest and greatest is in the dev branch (or sometimes another feature branch) and master branch is the stable (usually older) version. but for docs, we don't really need that, so dev is only needed when we're doing something that multiple people need to collaborate on, or that requires previewing in RTD and not just on github
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:18
Cool! Got it! Thank you! :D
My computer is like 1/3 of the way done converting the 190 page OpenAPS Doc PDF into its proprietary OCR format with Kurzweil 3000. Not bad...
Dana Lewis
@danamlewis
Jan 02 2017 02:21
Can you pick which pages to convert? You probably could just convert phase 0-4...
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:23
Yeah, the software lets me pick which pages I want to convert before starting the OCR process. But it's not that bad or taxing on the computer to convert all of it...it just gets the fans blowing hard on my computer. But, I have an OLD (3+ years) version of this software and it no longer reads the web, due to a lack of updates to a browser extension. That's why I am using the PDF route.
I can read it on my phone too, just as easily, with the exact same kind of technology (OCR, multimodal highlighting, for my convergence insufficiency) via PDF using an app called Voice Dream Reader on iOS/Android that costs $15. The software I am using literally costs 100x that--but it was given via a grant...Sometimes it's nice to read on a big screen, but I don't have a tablet right now.
diabeticgonewild
@diabeticgonewild
Jan 02 2017 02:28
Anyway, it got done converting about 2 minutes ago! :D
MelanieMitschke
@MelanieMitschke
Jan 02 2017 02:30
On my Nightscout page, my pump says "device undefined," and so my OpenAPS isn't working. Advise, please?
Scott Leibrand
@scottleibrand
Jan 02 2017 02:31
I think you might have the causation backwards. :)
what do you see in pump-loop.log?
Dana Lewis
@danamlewis
Jan 02 2017 02:31
@MelanieMitschke do you know for sure OpenAPS is not working? Check the logs?
MelanieMitschke
@MelanieMitschke
Jan 02 2017 02:33
@danamlewis 😔. Not sure how to check the logs. I don't see it doing temp basals on his pump at all.
Scott Leibrand
@scottleibrand
Jan 02 2017 02:35
@MelanieMitschke the last thing (step 3 I think) on the oref0-setup page of the docs was instructions for tailing the pump-loop.log to see what it's doing
Thanks, @scottleibrand
MelanieMitschke
@MelanieMitschke
Jan 02 2017 02:36
Ok. Will do this. Thanks!
Andy Sharrow
@dramageek
Jan 02 2017 02:51
Anybody else create a log alias? I for tired of typing the tail command, so with the alias I just openaps logs
Scott Leibrand
@scottleibrand
Jan 02 2017 02:51
you can do even easier than that
Brian Rabinovitz
@bdr1177
Jan 02 2017 02:51
@danamlewis @scottleibrand So I reinstalled everything from the ground up (i.e., started with reimaging and went on from there). I'm still getting the same error with Step 2: Run oref0-setup. It starts off fine, but when it gets to the step where it attempts to communicate with the pump it says: "Attempting to use a port that is not open." I've confirmed with "lsusb" that the pi is recognizing the carelink.
Scott Leibrand
@scottleibrand
Jan 02 2017 02:52
@dramageek just set a bash alias like alias l=tail -F /var/log/openaps/pump-loop.log in your .bashrc or .bash_profile or whatever
@bdr1177 maybe poke around a bit with mm-stick?
@dramageek with that you can just log in with serverauditor and hit l to get your logs up. :)
Brian Rabinovitz
@bdr1177
Jan 02 2017 02:54
@scottleibrand Okay. I looked at the mm-stick help file and then tried "mm-stick scan" Didn't do anything. Am I missing something? Do I need to add something to point it to the carelink?
Andy Sharrow
@dramageek
Jan 02 2017 02:55
@scottleibrand Even better! Probably exits cleanly too then? Current method throws a bunch of errors when you ctrl-c it, from the openaps executable quitting.
Scott Leibrand
@scottleibrand
Jan 02 2017 02:58
@bdr1177 what does openaps device show pump give?
@dramageek yes, much cleaner
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:00
@scottleibrand When I run it in my openaps directory it says "medtronic://pump" (it doesn't do anything in the home directory)
Scott Leibrand
@scottleibrand
Jan 02 2017 03:00
ok, good
I think mm-stick has a diagnose option too?
if openaps is using the medtronic vendor for the pump device, it's set up to use the carelink
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:01
Yes. I just ran it (also in the my openaps directory) and it says: usage:
/usr/local/lib/python2.7/dist-packages/decocare/stick.py /dev/ttyUSB0
Scott Leibrand
@scottleibrand
Jan 02 2017 03:02
(And in case no one has said it yet today: get yourself a TI stick and/or Explorer board. Carelink sucks.)
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:04
Yes, I just thought I'd go with the carelink setup for my first try, since it seemed simpler than the TI stick, and then upgrade.
Scott Leibrand
@scottleibrand
Jan 02 2017 03:04
:+1:
what does ls -la /dev/ttyUSB0 show?
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:05
ls: cannot access /dev/ttyUSB0: No such file or directory
Scott Leibrand
@scottleibrand
Jan 02 2017 03:05
that could be a problem
but you said lsusb shows the carelink?
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:06
Yes, it shows: Bus 001 Device 005: ID 0a21:8001 Medtronic Physio Control Corp. MMT-7305WW [Medtronic Minimed CareLink]
Scott Leibrand
@scottleibrand
Jan 02 2017 03:06
does mm-stick insert change anything?
basically, try all the mm-stick commands. :)
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:06
mm-stick insert says: modprobe: ERROR: could not insert 'usbserial': Operation not permitted
Scott Leibrand
@scottleibrand
Jan 02 2017 03:07
sudo
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:07
Just returns to the command prompt
with sudo
Scott Leibrand
@scottleibrand
Jan 02 2017 03:07
k, then re-run the others
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:08
sudo mm-link diagnose says:
INFO:main:howdy! I'm going to take a look at your carelink usb stick.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 911, in <module>
stick = Stick(link.Link(port))
File "/usr/local/lib/python2.7/dist-packages/decocare/link.py", line 23, in init
raise AlreadyInUseException("{port} already in use".format(port=port))
decocare.link.AlreadyInUseException: /dev/serial/by-id/usb-0a21_8001-if00-port0 already in use
Scott Leibrand
@scottleibrand
Jan 02 2017 03:10
do you have something running in cron already?
if so, and it's not doing anything useful in the pump-loop.log, probably easiest to clear out your cron and reboot
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:11
I enable cron after Step 2: Run oref0-setup.
Scott Leibrand
@scottleibrand
Jan 02 2017 03:11
you can't run things manually and have cron running them at the same time
so either watch cron do its thing in the pump-loop.log, or disable cron and do it yourself for troubleshooting
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:12
So do I just do "killall -g openaps" to stop cron?
Scott Leibrand
@scottleibrand
Jan 02 2017 03:13
that just kills whatever is running right now. so you can do killall -g openaps; mm-link diagnose and it should be able to run
but then cron will re-start things the next minute, so you have to do that for every manual command
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:14
Okay, so I did "sudo service cron stop"
Scott Leibrand
@scottleibrand
Jan 02 2017 03:16
ok, make sure to do the killall -g openaps as well to kill whatever it was running last
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:17
Okay. Did that and it returned pages of output. So I guess it worked.
Should I restart cron and then try the pump-loop.log. When I ran the log before it got into an endless loop with the same error: ""Attempting to use a port that is not open."
Well, I tried that (restaring cron) and now I'm getting an endless loop with a different error: "Old settings refreshError, retrying"
Scott Leibrand
@scottleibrand
Jan 02 2017 03:24
that's good
it means your only remaining problem is your pump is too far from your carelink stick
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:26
Haha. Right next to it is too far? I guess that's why carelink sucks, right?
Dana Lewis
@danamlewis
Jan 02 2017 03:27
Yep....
Transmits from the flat side so make sure the flat side points to the pump
Scott Leibrand
@scottleibrand
Jan 02 2017 03:27
It'll probably work after a few more retries
Dana Lewis
@danamlewis
Jan 02 2017 03:27
Also make sure the pump is In Absolute (not %) basal mode; not suspended or in prime or anything
And give it ~10-15 min before worrying about it
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:28
Is the note about the flat side RF transmission issue mentioned in the Docs, by any chance?
Dana Lewis
@danamlewis
Jan 02 2017 03:31
Yes, and I believe there's a link to various range testing Chris performed...
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:36
@scottleibrand @danamlewis Thanks for your help this evening!
Dana Lewis
@danamlewis
Jan 02 2017 03:36
:+1: hope that does the trick!
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:37
OK, that's nice.
Yeah it's kind of useful to actually read through things. I should try to do that more often.
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:51
I actually legitimately read this, and this is an issue. I was reading "configuring your edison" and it goes from sections "flashing your edison" to "BLE setup" to "troubleshooting [the flashing process]". See: https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/setup-edison.html
Brian Rabinovitz
@bdr1177
Jan 02 2017 03:51
@danamlewis Something's working now. OpenAPS is updating in nightscout. Looks like it even made a basal adjustment (although we're not actually live with the medtronic yet)
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:52
I will try putting in a PR, but not tonight. I will do it tomorrow
Dana Lewis
@danamlewis
Jan 02 2017 03:52
@diabeticgonewild what is the problem?
@bdr1177 woohoo! :smile:
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:53
The steps are out of sync, with respect to logistically arranging things, step by step
Anyway, I will work on it
@danamlewis I also searched for "Explorer" AND "antenna", separately, and I could find no information on the flat/antenna side needing to face the pump with the Explorer board. I'm pretty sure there is no info on that in OpenAPS Docs.
Dana Lewis
@danamlewis
Jan 02 2017 03:57
We were talking about carelink
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:58
You were? Damn, I was really off there!
Dana Lewis
@danamlewis
Jan 02 2017 03:58
So that was what I was referencing re where the transmission was coming from.
Doesn't matter for explorer.
diabeticgonewild
@diabeticgonewild
Jan 02 2017 03:59
Yeah, that makes sense now. I'm pretty sure the Explorer board would have been designed to have decent range.
This is why I need to actually read.
Dana Lewis
@danamlewis
Jan 02 2017 04:00
Yes, it was designed for decent range. (And for anyone wondering why jst on the side it is, it was in order to not mess up range)
diabeticgonewild
@diabeticgonewild
Jan 02 2017 04:02
That's cool and that makes sense too! 😊
glenrob1940
@glenrob1940
Jan 02 2017 04:37
Finally got around to adding openaps to nightscout. What I see now is OPENAPS 4 hrs ago -- waiting. Is that normal, or do I need to tweak something. The pump info ,bolus, iob etc are all fine (and have been).
Dana Lewis
@danamlewis
Jan 02 2017 04:38
Did you add it to your NS.ini? Have to tell OpenAPS about NS in addition to telling NS you have OpenAPS
And is your OpenAPS running at the moment successfully?
glenrob1940
@glenrob1940
Jan 02 2017 04:38
No, I didn't - thanks I'll fix that
And yes everything seems to be running fine in the logs
Just out of curiosity what goes into ns.ini. It currently has 'fields = oper" cmd = nightscout" and args = the website plus hashed API secret
Dana Lewis
@danamlewis
Jan 02 2017 04:43
Easiest way will be to run setup script again and input NS info in.
glenrob1940
@glenrob1940
Jan 02 2017 04:43
Okay will do
glenrob1940
@glenrob1940
Jan 02 2017 04:58
Actually, before I re-ran the setup script it apparently completed whatever python script must have been running because now it says 1 minute ago and has a fair amount of info when the mouse is hovered over openaps. I don't see 'pils' but everything else seems to be up.
Dana Lewis
@danamlewis
Jan 02 2017 04:59
OpenAPS is a pill, or are you talking about something else?
Screenshot perhaps (make sure to crop out your URL)
glenrob1940
@glenrob1940
Jan 02 2017 05:00
Oh, okay I thought I'd see some extra blue lines
Dana Lewis
@danamlewis
Jan 02 2017 05:00
Ah yes. Basal render
Another enable , then have to do the drop down to pick the default vs icicle view of it
Sgoldberg89
@Sgoldberg89
Jan 02 2017 05:01
@danamlewis any idea how to ssh into an edison through my pi?
Dana Lewis
@danamlewis
Jan 02 2017 05:01
Whatcha trying to do?
Scott Leibrand
@scottleibrand
Jan 02 2017 05:03
Pi is just Linux, so ssh root@edison.local or whatever.
Sgoldberg89
@Sgoldberg89
Jan 02 2017 05:14
@danamlewis - i updated my wifi settings to try and prepare for a weekend away...
and i set priorities
and now it won't go online at all
so I'm trying to get back into the wifi settings
@scottleibrand I tried that, no luck
Aaron Michelson
@Aaybob
Jan 02 2017 05:21
thanks @jaylagorio and @PieterGit understand log file is rotated : compressed, restarted from empty, for thirty days (kept compressed?), then deleted, and alternatively if log file goes over 10 Megabytes it is "rotated"
Aaron Michelson
@Aaybob
Jan 02 2017 05:31
@danamlewis @glenrob1940 thanks, I was thinking if the support boards were just "breakout" then they would be interchangeable but explorer has a couple periferal devices. So when we run "install" on the explorer we install periferals. But if we flashed on a sparkfun we would have installed periferals already that would need deletion.
Scott Leibrand
@scottleibrand
Jan 02 2017 05:36
A base install on a bare breakout board / base block shouldn't install anything that needs deleted. I've swapped edisons between all three types of breakout board (intel, Sparkfun, and Explorer) with no issues. If you've run oref0-setup, that will need to be redone though
@Sgoldberg89 any luck with uart serial?
Aaron Michelson
@Aaybob
Jan 02 2017 06:09
@scottleibrand @glenrob1940 @cjo20 @diabeticgonewild PWRBTN# (pin 17) is attached to the switch. So the software has the choice between toggling sleep or hard shutdown. RESET_OUT# (pin 36) on the 70 pin connector has no connection to the explorer and is not accesable outside the connector. http://download.intel.com/support/edison/sb/edisonmodule_hg_331189004.pdf section 4.10 page 36 and https://github.com/EnhancedRadioDevices/915MHzEdisonExplorer/blob/master/EdisonBlock_915MHz_fab/EdisonBlock_915MHz.pdf
So the explorer button doesn't perform shutdown but puts edison into or out of sleep mode. That's pretty good for unplugging the power if not the best.
Aaron Michelson
@Aaybob
Jan 02 2017 06:18
The RESET_OUT (pin 36) will simply turn on to light an led or something when edison is in reset mode.
PieterGit
@PieterGit
Jan 02 2017 13:24
about autotune: how do you parse/scan the json files for viewing the difference in basal/isf profile. I'm working on python script to create microsoft excel file to visualize / show autotune values and to compare basal/isf profiles
even better will be if these kind of graphs will become available in nightscout, but i'll start out with a python proof of concept
Aaron Michelson
@Aaybob
Jan 02 2017 14:09
What would you do if when trying to set the page size on virtual memory you got the error message “device not big enough for max size - set a smaller size”? This is edison explorer right out of the box.
No edison mini breakout I mean with no previous activity.
Excuse me what I mean is that I'm working with the edison with mini breakout board connected.
Oh, and you know what? I'm using product code 28808. This is the older mini breakout kit.
PieterGit
@PieterGit
Jan 02 2017 14:15
@Aaybob : i don't understand the problem you describe. what system is give the error message (hostsystem or edison?). and on what command do you get the error
Aaron Michelson
@Aaybob
Jan 02 2017 14:16
At start of instructions "prerequisites" "windows PC:"
Go to System Properties, under Performance click on Settings.
Select Advanced and click on Change... to change the page size.
On Virtual Memory window uncheck Automatically manage paging file size ... and set the Initial size and Maximum size to at least 1024 and 2048 (or larger, if your existing swap file is larger) and reboot.
PieterGit
@PieterGit
Jan 02 2017 14:30
do you have enough diskspace available on the disk your selected?
Aaron Michelson
@Aaybob
Jan 02 2017 15:06
The disk is the edison
Aaron Michelson
@Aaybob
Jan 02 2017 15:32
I don't see any option but to skip that step for now.
John Benjamin
@Bender1061
Jan 02 2017 15:42
@danamlewis or really anyone that uses their rig in an offline situation. for monitoring. What do you use to see the status of your loop. I've got my cruise in a couple weeks, I'm not worried about the rig needing network for my cgm, since I'm MDT. So I'll be able to ssh in easily enough while on the boat. But Things that would be really nice to be able to see is IOB, yes I could ssh in and look it up, but that's one of those numbers that is really useful to be able to see when figuring out meal boluses. I'm buying myself another pebble so i can start playing with pancreabble. But I would like to know what you are using for that kind of situation.
Hardwick2000
@Hardwick2000
Jan 02 2017 16:12
Does anyone have a recommendation for a Lipo battery (with a JST connector) for an Explorer Board? I am keen to go for portability and so size is important whilst having about 8 hour's life...
Brian Rabinovitz
@bdr1177
Jan 02 2017 16:14
For nightscout integration, the openaps documentation recommends the $7/month heroku. I asked about this in facebook/cgm-in-the-cloud and was told that this may not apply any more because heroku doesn't have the 6 hour sleep requirement anymore. Can someone confirm if I can use the free heroku or if I need the $7/month version?
Chris Oattes
@cjo20
Jan 02 2017 16:15
@Bender1061 Is there not going to be wifi on the boat?
@Hardwick2000 for an 8 hour lifetime, you're probably looking at 1Ah
maybe 1200 to be safe
John Benjamin
@Bender1061
Jan 02 2017 16:20
the Wifi on the boat, I believe is you log into it with your browser (cause it's not free). So that does not really work with the Edison. I believe their are ways to setup steps to make that work, but that would require me programming it in while already on the boat, and I have no intention of bringing my laptop with me. I'm thinking of just carrying around a battery router, and then I can use an SSH button program on my phone, and cat the file to see my IOB. (Since CGM, and temp Basel I can see from the pump). But requires more carrying around of stuff, batteries dying faster due to wifi. yeah just an all around paint.
Geoff Aumaugher
@geoffro10
Jan 02 2017 16:27
@Aaybob FWIW, I didn't change my page file size and have flashed two Edison's multiple times with no flashing issues.
Aaron Michelson
@Aaybob
Jan 02 2017 16:31
Thanks @geoffro10 I"m good to go then
Tim Street
@tim2000s
Jan 02 2017 16:33
@scottleibrand Going over the OpenAPS setup on my Pi last night, it looks as though the Git truncate scripts haven't been working (even though they were included in the instance that I setup on my Pi).
Has anyone else seen this happen?
Terri Lyman
@tatigger
Jan 02 2017 16:42
Is there a separate chat group for pancreabble? Or is that done through here, as well?
Andy Sharrow
@dramageek
Jan 02 2017 16:52
@bdr1177 I'm on the free Heroku with everything running fine for a month and a half now. Not sure if it matters, but I did set up mlab separately rather than use the built-in one.
Brian Rabinovitz
@bdr1177
Jan 02 2017 16:55
@dramageek I didn't do anything with mlab, so I guess I'm using the built in one? I had it set up for azure already, so I guess there is a way to set that one up in heroku rather than using the built in one?
Andy Sharrow
@dramageek
Jan 02 2017 16:56
@bdr1177 That's what I did, originally had Azure and switched to Heroku. If you keep the old mlab rather than have Heroku make you a new one, you keep all your old data too.
Scott Leibrand
@scottleibrand
Jan 02 2017 16:59
@tim2000s what happens when you run it manually?
@Hardwick1973 for some extra battery life margin I would go with a compact 2000MAh lipo.
@Bender1061 another option would be to set the preference for using the bolus wizard low target for both the high and low targets in oref0, and then set the pump high target to something higher. Then you can use the bolus wizard and it will basically just bolus for the carbs, and leave corrections to be dealt with by oref0.
That way you wouldn't really need to know net IOB most of the time: you'd just need to check that a temp basal is set, and therefore that the loop is working.
Tim Street
@tim2000s
Jan 02 2017 17:03
@scottleibrand - Script not found
Scott Leibrand
@scottleibrand
Jan 02 2017 17:04
Did you not install the latest oref0?
Try npm run global-install
from ~/src/oref0
@PieterGit there is a one-liner in #261 for parsing the profile json files and spitting out a table. Probably better to do that directly in your script though.
Brian Rabinovitz
@bdr1177
Jan 02 2017 17:09
@dramageek Great! That's what I'll do as well.
Dana Lewis
@danamlewis
Jan 02 2017 17:23
@Bender1061 yea, I'd try turning on the override high targets setting and tweak the targets so you can use that on the cruise
@PieterGit so far have solely been viewing in terminal. Would love to see your script to export to make it easier to view output. I'm not quite sure we'll want to fully stick this in NS for a while since it's so new and very specifically getting closer to recommendations vs "displaying CGM data", so we may want to continue to keep it separated, but still improve the ease of use for people to get the data so they can discuss it with their HCP.
@tatigger I don't think there is a chat channel for pancreabble. You could probably ask Qs here, as some people have set it up, or if it's a program specific q log an issue in the pancreabble repo
Tim Street
@tim2000s
Jan 02 2017 17:37
@scottleibrand That's the odd thing. The version I'm running includes the script within the crontab, but it's obviously not been running.
John Benjamin
@Bender1061
Jan 02 2017 17:43
@danamlewis @scottleibrand that's a pretty good idea. I'm still going to look at what I can do for adding pancreabble. maybe find a way to optionally put it in oref0-setup.... Ideas ideas. But got to get that working first to see what I can do.
Dana Lewis
@danamlewis
Jan 02 2017 17:43
:+1:
John Benjamin
@Bender1061
Jan 02 2017 17:45
as you can see, I like the oref0-setup. Adding stuff to it is kind of fun and it helps us all. The speed of getting a running loop working being hours instead of weeks, its just amazing!
Dana Lewis
@danamlewis
Jan 02 2017 17:46
:smile:
David
@david-t1
Jan 02 2017 18:14
for anyone who might know re inability to use hostname to ssh on Jubilinux + Edison + Explorer, is there a fix likely anytime soon? I did see error messages re hostname service during install of jubilinux and my understanding is this is typical and that there is no fix (yet). ?
Aaron Michelson
@Aaybob
Jan 02 2017 18:23
I just PR
I don't see my PR of docs at the right. Did I PR?
John Benjamin
@Bender1061
Jan 02 2017 18:24
@david-t1 that error is common, but I've had no issues sshing into the edison. I used to have issues in the past, but what I would do is use fing to find the IP address being used, and then just ssh using the ip address instead of hostname.local
David
@david-t1
Jan 02 2017 18:26
tx, yes, that is what I need to know if I am using public wifi, I need to know the ip address. How do you grab the ip address in that scenario? Fing is an app on your phone?
oh, i see. Wow, Fing really uncovers a lot. tx
borealisns
@borealisns
Jan 02 2017 18:39
blob
I've just run oref0-setup and openaps seems to be running but I am not getting BG data in Nightscout. I can see basal rendered and dots from the bolus wizard on the punp. I have 522 (mmol) with CareLink and all my Nightscout profile etc is mmol there is a mix of BG units in the openaps pill info.
jmcrawford
@jmcrawford
Jan 02 2017 18:43
@borealisns It's normal to see a mix of BG units. NS/APS uses mg/dl internally, and only calculates mmol for final display. Something us non-US people have to work with.
borealisns
@borealisns
Jan 02 2017 18:47
Ok thanks @jmcrawford . Any ideas why the CGM BG data is not showing up?
PieterGit
@PieterGit
Jan 02 2017 18:50
autotune question. shouldn't the minutes attribute of the basalprofile always match the start attribute. I got one profile.run.date.json that contains:
"basalprofile":[{"i":0,"start":"00:00:00","rate":0.2,"minutes":0},{"i":1,"start":"00:00:00","rate":0.2,"minutes":60},
John Benjamin
@Bender1061
Jan 02 2017 18:50
@david-t1 I like to use Fing to get to the ssh program, so it's a matter of pushing a couple buttons and you just have to log in. It's a nice program.
Tim Street
@tim2000s
Jan 02 2017 19:10
@scottleibrand It was the 0.3.2 version that was failing. The 0.3.3 has fixed it.
jmcrawford
@jmcrawford
Jan 02 2017 19:12
@borealisns Hard to say - what does it show in /var/log/openaps/ns-loop.log
Paul Martin
@Spazholio
Jan 02 2017 19:12
I just paid the $99 and now I’m getting: "Failed to create provisioning profile.
The app ID ‘com.spazholio.Loop' cannot be registered to your development team. Change your bundle identifier to a unique string to try again.” The App ID is different than the one I was using for the free version (using a different Apple account altogether, actually). Do I need to wait a day or something? I asked in the Loop channel, but this one is usually a litlte more populated. =)
Sandra Keßler
@SandraK82
Jan 02 2017 19:47
You need to use your registered company Id instead of com.spazholio.
Paul Martin
@Spazholio
Jan 02 2017 19:55
Can you be a little more specific? Are you referring to the MAIN_APP_BUNDLE_IDENTIFIER? In the drop-down, I see both the “(Personal Team)” and the one without “(Personal Team)” in it. Regardless of which one I choose, I get an error. The directions make no mention of having to use anything other than an AppID that I have chosen. Have I missed a bit in the directions somewhere?
Dana Lewis
@danamlewis
Jan 02 2017 20:29
@Aaybob no, no pr has come in from you, assuming you are PRing the OpenAPS docs?
PieterGit
@PieterGit
Jan 02 2017 20:29
@danamlewis @scottleibrand (and others autotune fans): proudly presenting autotune export to Microsoft Excel. See openaps/oref0#310
please chmod +rx 755 my pythonscript. i don't know how to do that from Windows
Dana Lewis
@danamlewis
Jan 02 2017 20:30
@Aaybob you can always check by looking at this page: https://github.com/openaps/docs/pulls to see the open pull requests to the docs
@PieterGit awesome! Walking out the door but will give it a spin in a few hours. (Cc @jyaw in case he wants to try it too)
PieterGit
@PieterGit
Jan 02 2017 20:35
these scripts already support :30 profiles, which autotune does not. it's quite rough probably, please double check the values
PieterGit
@PieterGit
Jan 02 2017 20:45
two questions : 1) why is redundant information about the number of minutes since midnight stored in the isfProfile and the basalProfile. It can easily be derived from the start field. Shouldn't that be left out of the json files? 2) Why is the field called minutes in the basalProfile and why is it called offset in the isfProfile. In needed this in the Export to Excel python script to distinguish the different behaviour
expandedBasal=expandProfile(basalProfile, 'rate', 'minutes')
expandedIsf=expandProfile(isfProfile, 'sensitivity', 'offset')
jordan-berger
@jordan-berger
Jan 02 2017 20:49
@danamlewis @scottleibrand I am having issues with the APS not jumping to the best wifi signal as i move between wifi locations. i have seen several discussions on wifi checking scripts. Is there one that you have settled on that works for multiple wireless locations?
Aaron Michelson
@Aaybob
Jan 02 2017 20:51
@danamlewis once you get how its done its easy, there's just several more steps than would be intuitive. You'd think after six PRs in the last two weeks I'd do okay.
Scott Leibrand
@scottleibrand
Jan 02 2017 21:07
@PieterGit I pushed a fix yesterday from @sulkaharo for that minutes vs. start mismatch, but haven't really tested it yet
@PieterGit the reason for having both was simply because that's what came from the pump originally (via decocare). so rather than audit everything to figure out what was used where, it was easiest to simply include both.
if you wanted to make everything consistent you'd probably need to audit both the oref0 code and the underlying openaps and decocare python code
@jordan-berger "jumping to the best signal" is specifically not supported by wpa_supplicant or anything else I've seen. the oref0-online script will restart wifi and make it reconnect if it loses Internet connectivity completely...
borealisns
@borealisns
Jan 02 2017 21:18

/var/log/openaps/pump-loop.log

Starting ns-loop at Mon 2 Jan 16:14:02 EST 2017:
ns://JSON/shell/cgm/ns-glucose.json
reporting cgm/ns-glucose.json
Refreshed temptargets and meal-carbs
Uploaded

cgm/ns-glucose.json is empty

Aaron Michelson
@Aaybob
Jan 02 2017 21:19
would someone consider stepping me through "pancreable"
John Benjamin
@Bender1061
Jan 02 2017 21:20
@scottleibrand @jordan-berger doen't the sudo wpa_cli scan that is in the dev branch sort of do what jordan is asking for? I've noticed it does a great job for me.

@jordan-berger try adding

* * * * * sudo wpa_cli scan

to your cron with 'crontab -e'
see if that helps you at all

Scott Leibrand
@scottleibrand
Jan 02 2017 21:28
that might be sufficient. some people find they need to do more to get theirs to reconnect, like running dhclient, so oref0-online restarts everything if necessary.
John Benjamin
@Bender1061
Jan 02 2017 21:31
I think if the priorities are set, it does not work as well.
Aaron Michelson
@Aaybob
Jan 02 2017 21:36
https://raw.githubusercontent.com/mddub/urchin-cgm/master/release/urchin-cgm.pbw I open in Safari to get the option "Open in 'Pebble'. The pebble app pops up with "Install Urchin CGM?" Pressing "OK" the message disappears but it does nothing.
John Benjamin
@Bender1061
Jan 02 2017 21:46
@Aaybob It's been a while for me, but it's not showing up in the watchfaces?
jmcrawford
@jmcrawford
Jan 02 2017 22:02
@Aaybob I had to try the install a number of times before it worked - not sure why it didn't, or why it finally did. Like you say, no errors, no response of any kind. But it did work.
Aaron Michelson
@Aaybob
Jan 02 2017 22:05
@jmcrawford @Bender1061 it made all my watchfaces dissapear but when I try to re-add watchface it says it is added. I'll mess with it for a while, reinstall. Thanks for the encouragement.
Aaron Michelson
@Aaybob
Jan 02 2017 22:10
Initial Edison setup we run as "root". I ran dependencies and oref0-setup as root too. And after that openaps directory is not present. I logged back in as "edison". Should I just rerun installs of dependencies and oref0?
well openaps is available as root user. should I delete somehow and redo as "edison"?
jmcrawford
@jmcrawford
Jan 02 2017 22:14
@borealisns that log doesn't show anything obviously wrong. How are you collected BG data, through the Dex receiver or xdrip or ??
Aaron Michelson
@Aaybob
Jan 02 2017 22:15
openaps is in /usr/local/bin/openaps
and root has a cron file. Should I delete cron file and openaps directory tree? and reinstall as edison?
Aaron Michelson
@Aaybob
Jan 02 2017 22:22
tail -f /var/log/openaps/pump-loop is saying SerialException: Attempting to use a port that is not open.
borealisns
@borealisns
Jan 02 2017 22:23
@jmcrawford enlite cgm - was using mmcommander wired rig into Nightscout prior to this openaps test. thx
Aaron Michelson
@Aaybob
Jan 02 2017 22:28
took my own advice , deleted root install, re installing as edison
jordan-berger
@jordan-berger
Jan 02 2017 22:40
root
Aaron Michelson
@Aaybob
Jan 02 2017 22:47
yup got to where it says install as root....Thanks @jordan-berger
two pumps same error Attempting to use a port that is not available. Is this a good time to trim the antenna?
PieterGit
@PieterGit
Jan 02 2017 23:02
@scottleibrand i think the minutes from start json was from just before the @sulkaharo fix, so I think I can confirm that the fix works.
Aaron Michelson
@Aaybob
Jan 02 2017 23:09
@jmcrawford @Bender1061 pebble watch started working:)
John Benjamin
@Bender1061
Jan 02 2017 23:13
were you connecting to just as normal, or were you using pancreabble?
Aaron Michelson
@Aaybob
Jan 02 2017 23:17
pancreable @Bender1061
John Benjamin
@Bender1061
Jan 02 2017 23:18
are you using pi or edison?
Aaron Michelson
@Aaybob
Jan 02 2017 23:19
It worked with nightscout or share. But those are both internet. I'm trying to get non-internet operation. I'm using edison.
On another development issue, I shutdown, trimmed antenna, logged in as edison, started tail -f and error "Not an openaps environment, run: openaps init. Does this mean i will allways log in as root to run openaps?
I reinstalled the pebble app on iphone and then it worked as expected.
Aaron Michelson
@Aaybob
Jan 02 2017 23:26
what does "run: openaps init" mean. I get it as root in the "myopenaps" directory?
Scott Leibrand
@scottleibrand
Jan 02 2017 23:26
@Aaybob if this is an Explorer board, you should never log in as edison: everything should be installed and run as root
Aaron Michelson
@Aaybob
Jan 02 2017 23:27
I did dependancies as edison. I'll reinstall
I was getiting "Port unavailable" so to troubleshoot I tried to install as edison. Following my RPi training. A lot is the same.
Annette Valle
@annettemvalle
Jan 02 2017 23:29
I just switched NS from azure to heroku but on the new NS site my pills and profile editor aren't showing up. I enabled them (or am pretty sure I did). Any insight into what I might have missed?
blob
PieterGit
@PieterGit
Jan 02 2017 23:38
@scottleibrand openaps/oref0#310 is ready when you are... I hope you or @danamlewis @jyaw @sulkaharo can test the Microsoft Excel export of autotune. Please let me know of any issues/findings/improvements,etc. I like the fact that it's possible to use Excel auto-filters to compare isfProfiles or basalProfiles for a specific day or run quite easily.
Scott Leibrand
@scottleibrand
Jan 02 2017 23:42
:+1:
Geoff Aumaugher
@geoffro10
Jan 02 2017 23:48
Is it common for the Edison to get so hot that you can barely touch it?
Aaron Michelson
@Aaybob
Jan 02 2017 23:50
@geoffro10 no. I had a transister on the explorer get that hot when I powered it reversed.
I used the wrong name to log into git during startup. How would I replace that?
Geoff Aumaugher
@geoffro10
Jan 02 2017 23:54
I know the power isn't reversed. It's running fine. But, it heated up twice today. At first I thought it was the USB battery I had plugged in because when I disconnected it, the thing cooled off. Well, a few hours later and it's very hot again.
Aaron Michelson
@Aaybob
Jan 02 2017 23:56
@geoffro10 its definitely working too hard
Geoff Aumaugher
@geoffro10
Jan 02 2017 23:57
Hmmm....That's not good.
Aaron Michelson
@Aaybob
Jan 02 2017 23:58
@geoffro10 I think I'd re....with RPi we re imaged microSD. How do we save a backup for edison?