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

10th
Oct 2016
Terri Lyman
@tatigger
Oct 10 2016 00:01
Gosh I wish I lived near someone else working on this. And I say NEAR in a very LOOSE and BROADLY DEFINED way.
Thacher
@thacherT1D
Oct 10 2016 00:27
soooo.... I'm all the way to '$ openaps report-nightscout' and it's failing out on the nightscout/recent-missing-entries.json report...
full error listed here:
Terri Lyman
@tatigger
Oct 10 2016 00:28
did you use the setup tool or are you working through the guide?
@thacherT1D
Thacher
@thacherT1D
Oct 10 2016 00:29

pi@raspberrypi:~/hamlet $ openaps report-nightscout
ns://JSON/shell/nightscout/recent-treatments.json
reporting nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
Nothing to upload.
reporting nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
File "/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/init.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/init.py", line 1504, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/init.py", line 298, in main
if spec.includes(get(elem)):
File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/init.py", line 332, in includes
if self.prev <= when and when <= self.curr:
TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/init.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/dist-packages/setuptools-23.0.0-py2.7.egg/pkg_resources/init.py", line 1504, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 48, in main
reporters.Reporter(report, device, task)(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", li

@tatigger guide
Terri Lyman
@tatigger
Oct 10 2016 00:30
Try looking at this. https://github.com/openaps/oref0/wiki/Setup-Script-Testing @thacherT1D This made me so happy
Thacher
@thacherT1D
Oct 10 2016 00:32
Interesting -- Thanks!
Terri Lyman
@tatigger
Oct 10 2016 00:37
@tatigger I went from wanting to cry over reports to working on why my NS isn't recognizing my OpenAPS. Huge leap. I have no computer background and have been slowly chipping away at this for a long time.
Thacher
@thacherT1D
Oct 10 2016 00:42
@tatigger scripts can be super helpful -- I seem to be up and working except for that last step, it's showing up on my NS site, so just trying to figure out this last bit... @scottleibrand or any other super users... any ideas on this error in particular?
Dana Lewis
@danamlewis
Oct 10 2016 00:49
@tatigger @thacherT1D we need some thumbs up on whether the dev docs start to finish are good enough to replace current master, so your feedback would be helpful on that topic.
@thacherT1D which error are you seeing now?
Terri Lyman
@tatigger
Oct 10 2016 00:51
Sorry, @danamlewis do you mean the guide at OpenAPS? Compared to what?
And I am stuck trying to understand why NS isn't recognizing openAPS or my pump. The OpenAPS instance is getting BG numbers from NS, tested as per @scottleibrand above.
Thacher
@thacherT1D
Oct 10 2016 00:53
@danamlewis I have the docs up in markdown as I'm going :)
Terri Lyman
@tatigger
Oct 10 2016 00:54
Ok, thanks, Scott, will read through them
Thacher
@thacherT1D
Oct 10 2016 00:54
I've been going for the "blended method"
I like scripts, but they make me nervous at the same time
Scott Leibrand
@scottleibrand
Oct 10 2016 00:55
@tatigger you can check the NIGHTSCOUT_HOST and API_SECRET in your crontab -l
@thacherT1D I would use the setup script to set up a working instance, and then focus on drilling down on what it's doing until you understand it to your satisfaction.
That way you can focus more on evaluating whether the decisions it is making are right for you, rather than troubleshooting aliases and reports and all that other garbage.
Thacher
@thacherT1D
Oct 10 2016 00:57
sounds good, I just picked up working on it today after a long break, so that's definitely a factor too :)
Luis Betancourt
@betluis
Oct 10 2016 00:59
I am reading through your posts as I am trying myself to understand the difference and nature of the two documentation sets.... I am only at the point of trying to connect openaps to nightscout and will follow Scott's advice to go through the "dev" docs after a frustrating attempt with the "latest" ones... am I in the right path?
Terri Lyman
@tatigger
Oct 10 2016 01:03
I know that the CRON should be in the oref0.ini, but how do I get in to look at it?
Dana Lewis
@danamlewis
Oct 10 2016 01:06
@betluis yes, use the “dev” docs - we have been working on those to simplify the setup process!
Luis Betancourt
@betluis
Oct 10 2016 01:07
thanks
Terri Lyman
@tatigger
Oct 10 2016 01:07
Wouldn't the cron include the same data that the cgm loop uses to obtain NS data for that loop?
Scott Leibrand
@scottleibrand
Oct 10 2016 01:10
@tatigger yeah, I'm suggesting you look at what's in crontab -l and make sure it's correct: that there's only one of each NIGHTSCOUT_HOST and API_SECRET line, that they match what's in ns.ini, and that they look correct (the URL is one you can hit in a browser, and the API secret is your correct hashed secret)
Terri Lyman
@tatigger
Oct 10 2016 01:11
Do I ls crontab -1? In which directory?
Got!
It!
Scott Leibrand
@scottleibrand
Oct 10 2016 01:13
that's not a 1, it's an l. you should be copying and pasting commands like that into your Pi. in this case it doesn't matter where on the pi you run crontab -l
cool :)
Terri Lyman
@tatigger
Oct 10 2016 01:13
: )
Ok, as you suspected, the cron did not update the URL of my nightscout site when I ran the setup tool for that purpose. It has the underscores, not the dashes.

pi@raspberrypi:~/open2aps $ crontab -l
NIGHTSCOUT_HOST=https://whispering_spire_16091.herokuapp.com

pi@raspberrypi:~/open2aps $ cat ns.ini
[device "ns"]
fields = oper
cmd = nightscout
args = ns https://whispering-spire-16091.herokuapp.com

So should I run the setup again?
But then in the cron stuff that lists, the URL is repeated at the bottom in reference to one of the loops, and it is correct there.
openaps pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log
NIGHTSCOUT_HOST=https://whispering-spire-16091.herokuapp.com
How did I do that?
Terri Lyman
@tatigger
Oct 10 2016 01:21
And of course the API looks nothing like what I think I entered
In the dev directions there is an option to add the 5 min cron helper, Should I just run that? Will that replace the CRON that is incorrect?
Terri Lyman
@tatigger
Oct 10 2016 01:30
@scottleibrand, do I rerun the whole setup or simply use the 5 MIN Cron Helper in the guide (dev)
Terri Lyman
@tatigger
Oct 10 2016 01:41
OK, I reran setup @scottleibrand and it looks the same.
NIGHTSCOUT_HOST=https://whispering_spire_16091.herokuapp.com
API_SECRET=76808a3f0ff9a70b47c5556628e68da972e283d7
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
          • sudo wpa_cli scan
          • killall -g --older-than 15m openaps
          • cd /home/pi/open2aps && oref0-reset-git
          • cd /home/pi/open2aps && ps aux | grep -v grep | grep -q 'openaps get-bg' || ( date; openaps get-bg ; cat cgm/glucose.json | json -a sgv dateString | head -1 ) | tee -a /var/log/openaps/cgm-loop.log
          • cd /home/pi/open2aps && ps aux | grep -v grep | grep -q 'openaps ns-loop' || openaps ns-loop | tee -a /var/log/openaps/ns-loop.log
          • cd /home/pi/open2aps && ps aux | grep -v grep | grep -q 'openaps autosens' || openaps autosens | tee -a /var/log/openaps/autosens-loop.log
The URL at the top has _, the one at the bottom has -
But the hash converted the same twice, so I assume that the API is correct. I will wait a little and then check comms from cgm to PI via NS and from PI back to NS
Terri Lyman
@tatigger
Oct 10 2016 02:03
Ok, now when I run the setup I am getting an error. Third time through with the same error. Help?
Dana Lewis
@danamlewis
Oct 10 2016 02:12
what error are you getting now?
Terri Lyman
@tatigger
Oct 10 2016 02:17
An ACK error
With the pump. I think it isn't communication with carelink
So I am shifting it around. Does that sound right?

Error, retrying
Starting pump-loop at Sun Oct 9 19:18:08 MST 2016:
monitor/temp_basal.json raised ACK is 0 bytes:

pump://JSON/read_temp_basal/monitor/temp_basal.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/pi/src/openaps/bin/openaps-report", line 82, in <module>
app( )
File "/home/pi/src/openaps/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/home/pi/src/openaps/bin/openaps-report", line 75, in run
output = app(args, self)
File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/home/pi/src/openaps/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/home/pi/src/openaps/openaps/uses/use.py", line 44, in call
self.before_main(args, app)
File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 61, in before_main
self.setup_medtronic( )
File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 160, in setup_medtronic
self.uart.open( )
File "/home/pi/src/decocare/decocare/stick.py", line 874, in open
log.info('%s' % self.product_info( ))
File "/home/pi/src/decocare/decocare/stick.py", line 515, in product_info
return self.query(ProductInfo)
File "/home/pi/src/decocare/decocare/stick.py", line 509, in query
return self.process( )
File "/home/pi/src/decocare/decocare/stick.py", line 496, in process
ack, response = self.command.respond(raw)
File "/home/pi/src/decocare/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:

Dana Lewis
@danamlewis
Oct 10 2016 02:18
yep. probably carelink silliness
Terri Lyman
@tatigger
Oct 10 2016 02:19
That aside I think I am getting glucose values, but my NS is not showing my OpenAPS or Pump
Dana Lewis
@danamlewis
Oct 10 2016 02:21
makes sense if carelink is being wonky
Luis Betancourt
@betluis
Oct 10 2016 02:22
ok, thanks for sharing the "dev" documentation. I have gone through all of it... makes you focus on the actual diabetes care rather than reports and aliases... I agree this is very good... I am though, not sure what to do next with the crone (and night scount integration)... I went through step 0 : re-installed openaps, step 1: pull oref0 dev, step 2: oref0-setup.sh. and have not clue what to do with step 3... (When you decide to enable the new loop in cron, follow the log file (and watch Nightscout).. pleas can I have a hint of what I should do now? was I supposed to see something in nightscount by now?
Dana Lewis
@danamlewis
Oct 10 2016 02:29
did you enable cron using the setup script? if so, it suggests looking at the log file (use that command) to make sure it’s looping correctly
dougtakeuti
@dougtakeuti
Oct 10 2016 02:31
Hey there, I thought there was a version of the CGM Careportal app that allowed entering Eating Soon as Temp Target. The one I have allows Exercise, but not Eating Soon. @audiefile I thought you had mentioned it, but I could not find anything on gitter about it.
Luis Betancourt
@betluis
Oct 10 2016 02:31
@danamlewis I am not sure. I followed the oref0 setup.sh instruction (script?).. but I dont see any expanation about cron enablement
or am I missing a piece in the documentation about cron?
Dana Lewis
@danamlewis
Oct 10 2016 02:34
@betluis you might have missed that - it’s in the setup script. if in doubt, do step 2 over again and look carefully at each step to see what you’re doing.
Scott Leibrand
@scottleibrand
Oct 10 2016 02:34
@tatigger please delete your message from 45m ago with the API_SECRET in it
or if you can't delete it, you'll need to go change your API secret in NS and re-do setup
Luis Betancourt
@betluis
Oct 10 2016 02:35
sorry, you mean step 2 in dev or latest documentation? or both?
Scott Leibrand
@scottleibrand
Oct 10 2016 02:36
@tatigger you'll need to delete the contents of your crontab and re-run the setup script to fix an incorrect NIGHTSCOUT_HOST
Terri Lyman
@tatigger
Oct 10 2016 02:39
@tatigger How? The delete option remains shaded
Scott Leibrand
@scottleibrand
Oct 10 2016 02:39
That means you waited too long. You'll need to change it
Terri Lyman
@tatigger
Oct 10 2016 02:39
Ok
Scott Leibrand
@scottleibrand
Oct 10 2016 02:39
it's called a secret for a reason. ;-)
Terri Lyman
@tatigger
Oct 10 2016 02:39
In Heroku, right?
Scott Leibrand
@scottleibrand
Oct 10 2016 02:39
ya
Luis Betancourt
@betluis
Oct 10 2016 02:40
@danamlewis , your right... crazy how I could miss this
Terri Lyman
@tatigger
Oct 10 2016 02:51
k. is Cron a device? How do I delete it?
dougtakeuti
@dougtakeuti
Oct 10 2016 02:57
@tatigger Cron is a scheduler. you can edit its contents by typing crontab -e
then you can delete its content and save it by hitting Ctrl-x, just like nano
Terri Lyman
@tatigger
Oct 10 2016 03:02
Ok. Thanks @dougtakeuti @scottleibrand Something is working because the minimed pump on my desk just went into a temp basal.
dougtakeuti
@dougtakeuti
Oct 10 2016 03:06
@tatigger Are you watching what is going on in tail -f /var/log/openaps/pump-loop.log ?
Luis Betancourt
@betluis
Oct 10 2016 03:08
ok, thanks for the help so far I enabled the cron now. the log continuously displays an error/retrying line..
i@raspberrypi:~ $ tail -F /var/log/openaps/pump-loop.log
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun 9 Oct 22:04:05 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
Starting pump-loop at Sun 9 Oct 22:04:27 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun 9 Oct 22:05:25 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
Starting pump-loop at Sun 9 Oct 22:05:46 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Starting pump-loop at Sun 9 Oct 22:06:19 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
Starting pump-loop at Sun 9 Oct 22:06:40 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
Starting pump-loop at Sun 9 Oct 22:07:14 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
reporting cgm/cgm-glucose.json
cp: cannot stat ‘cgm/glucose.json’: No such file or directory
Error, retrying
Starting pump-loop at Sun 9 Oct 22:07:48 CDT 2016:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
Terri Lyman
@tatigger
Oct 10 2016 03:08
@dougtakeuti Not right now, I am only running it on the desk with water. My real running pump right now is a Tandem. Far far away from PI control, LOL. I am deleting Cron and redoing setup right now. I am getting really good at setup.
Luis Betancourt
@betluis
Oct 10 2016 03:09
is that normal?
Dana Lewis
@danamlewis
Oct 10 2016 03:12
@betluis sometimes it takes a few cycles to pull a full pump history. Give it some time to see if it succeeds.
Luis Betancourt
@betluis
Oct 10 2016 03:12
I see, thanks. will do
Scott Leibrand
@scottleibrand
Oct 10 2016 03:13
@betluis what CGM source are you using?
Luis Betancourt
@betluis
Oct 10 2016 03:16
medtronic
Enlite
is that what you mean by source?
Dana Lewis
@danamlewis
Oct 10 2016 03:17
Yes
Luis Betancourt
@betluis
Oct 10 2016 03:18
ah hold on
Scott Leibrand
@scottleibrand
Oct 10 2016 03:18
@luis you might want to edit your crontab to comment out the pump-loop, and then run its component aliases manually to see what exactly is failing and why
Luis Betancourt
@betluis
Oct 10 2016 03:19
ok, one second, my daughter is actually replacing the sensor now so its not connected to the pump. could this be the problem?
Terri Lyman
@tatigger
Oct 10 2016 03:20
I saw the pump and OpenAPS for a minute on my NS webpage. Then it went away again. Is that normal?
Oh, it's back again. That makes me so happy!
Luis Betancourt
@betluis
Oct 10 2016 03:22
If I want to exit the log and then explore the cron tab.. how can I do this in the terminal?
Scott Leibrand
@scottleibrand
Oct 10 2016 03:23
crontab -e
Ctrl-C to cancel out of the log
Luis Betancourt
@betluis
Oct 10 2016 03:24
ok
dougtakeuti
@dougtakeuti
Oct 10 2016 03:30
@scottleibrand I have a little script by @oskarpearson to read the clock from the pump and set it as the system time. I run it in the loop, but is there a way to run it every time the Edison boots, before the loop starts?
jmcrawford
@jmcrawford
Oct 10 2016 03:32
@dougtakeuti Should be able to put the command into /etc/rc.local to have it run on startup
Scott Leibrand
@scottleibrand
Oct 10 2016 03:32
Or @reboot in cron
dougtakeuti
@dougtakeuti
Oct 10 2016 03:33
@jmcrawford @scottleibrand thanks! Will try those suggestions.
Dana Lewis
@danamlewis
Oct 10 2016 03:44
@betluis yes if the sensor is not running that could be contributing too
Luis Betancourt
@betluis
Oct 10 2016 03:45
thanks. I will wait for the sensor to be online to move on
David
@davidkeddydb
Oct 10 2016 03:47
I have the edison set up for wifi access at home. I access it via ssh with the ip address assigned by the router, so I enter ssh root@192.168.1.whatever. I have the localhost name set in nano /etc/hosts. I can't seem to set up wifi correctly for my iphone. I guess the question I have is once I have the localhost name set in nano/etc/hosts how can I ssh in rather than using the local ip address I am using. Also anyone have how I can set up the second wifi for my phone? Last step before I can mobile with this rig. Tried the few examples on mmeowlink but I guess I just don't get it.
grhulz
@grhulz
Oct 10 2016 04:11
@Hardwick1973 Looped successfully last night. I only run at night, so I changed my crontab to only run the reset portion at night so it isn't resetting my USB wifi all day long (still sending data to nightscout from the PI during the day). I'm going to let this run again tonight. If I have success I will try to make a pull request to document the changes.
Dana Lewis
@danamlewis
Oct 10 2016 04:14
@grhulz did you use the new setup scripts? Speaking of PRs, any edits you'd make to the dev docs? or otherwise want to give the open PR a thumbs up if it worked well for you?
Dana Lewis
@danamlewis
Oct 10 2016 04:27
Here's the PR for anyone to comment on (i.e. Is this better than master currently? Or if not, what needs fixing?) openaps/docs#401
David
@davidkeddydb
Oct 10 2016 04:39
@danamlewis It is WAY easier. The only negative, it may be too easy for someone who hasn't reviewed the docs and understand which each report generates and how those contribute to the enact.json. The new is fantastic. Way quicker.
Dana Lewis
@danamlewis
Oct 10 2016 04:41
:+1: @davidkeddydb i was talking with @scottleibrand tonight about how to rewrite the rest of docs to help people troubleshoot/learn the infrastructure given the easier setup.
Luis Betancourt
@betluis
Oct 10 2016 04:43

I had already some time trying to understand the first instructions when you suggested going through the oref0-set up... so I was exposed to both. My comments so far:

first instructions help you understand the system from a programming point of view, while this could be good for some people for other could be extremely rough I think. The oref0 definitely helps one focus on the actual diabetes care concepts more quickly and with less distractions. I think this is definitely a right move although definitely there are clarifications to do.

As I move on through the process. I'll comment back later on again.

Dana Lewis
@danamlewis
Oct 10 2016 04:43
but need some :+1: on the PR if everyone agrees that dev and new setup is Better than old master version. (Note that much of what's in master is moved around to be under "manual setup" in dev, so still accessible for that method and for troubleshooting and learning purposes)
David
@davidkeddydb
Oct 10 2016 04:44
I am actually supposed to be doing a PR on the troubleshooting which I haven't done. :worried: I think some of the background logging for them to see, and also trying to manually run some of the crontab stuff to see if any of it is getting hung up anywhere
Dana Lewis
@danamlewis
Oct 10 2016 04:44
thanks for the feedback @betluis !
@davidkeddydb if you want to start a new troubleshooting page, I'll help you add to it!
David
@davidkeddydb
Oct 10 2016 04:47
@danamlewis I should have some time in the next day or so to start getting it done and get a PR for it on the docs. I just need to get my wifi settings set up right so I can go mobile with the edison.
Dana Lewis
@danamlewis
Oct 10 2016 04:47
:+1:
grhulz
@grhulz
Oct 10 2016 04:48
@danamlewis I'm sure that my instance is a little cobbled. Initially I followed the old step by step approach, but then I ran the new setup scripts. I then went back and modified my original loop and made a few changes. Scott pointed out the reset-usb and I added that to my loop. Probably not the best test, but the newer approach is considerably easier. I have added my review.
Dana Lewis
@danamlewis
Oct 10 2016 04:48
Thx @grhulz - appreciate the comment on the PR! Ditto for everyone else who just shared feedback.
David
@davidkeddydb
Oct 10 2016 05:27

ok, so here is what I have in my nano /etc/network/interfaces: where is my mistake? Apologize for the wacky formatting upon copying and pasting it in:# interfaces(5) file used byup(8) and ifdown(8)
auto lo iface lo inet loopback

auto usb0

iface usb0 inet static
address 192.168.2.15
netmask 255.255.255.0

auto wlan0
iface wlan0iface wlan0 inet static address 192.168.1.23 netmask
255.255.255.0 gateway 192.168.1.1

allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf
/etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp
allow-hotplug wlan0

And the following 4 lines are for when using hostapd... auto wlan0

iface wlan0 inet staticcant/wpa_supplicant.conf

address 192.168.42.1 netmask 255.255.255.0

Scott Leibrand
@scottleibrand
Oct 10 2016 05:42
I can't tell what's what due to the formatting: you need three ` on their one lines before and after.
But looks like you have a static IP assigned to wlan0. That likely won't work. The other DHCP config is the one you want.
fiberfan
@fiberfan
Oct 10 2016 06:46
Using the new setup script, I enter my 722's serial number, enter for cgm since I need those to come from nightscout (xdrip wixel receiver for G4), enter for mmeowlink (have a carelink stick) and then my nightscout url and api_secret. When openaps mmtune is called I get the error "TypeError: Non-hexadecimal digit found". I tried running openaps mmtune separately and get the same error. I am now reading the dev docs to see if I can figure out where to look for the source that is failing but helps is still very much appreciated.
Tim Street
@tim2000s
Oct 10 2016 09:10
@fiberfan Are you using a worldwide pump?
Mike
@libxmike
Oct 10 2016 11:14
@fiberfan check ni.ini if you habe trailing "/" in NS URL, if yes remove it also check you serial number, make sure you entered just the numbers, on the back of the pump is a serial with letters, dont use then, you need just the numbers
Mike
@libxmike
Oct 10 2016 12:19
@fiberfan typo in previous post, not ni.ini but ns.ini
diabeticgonewild
@diabeticgonewild
Oct 10 2016 12:57
I'm having surgery this morning. My gastric pacemaker's battery was low the last time it was read, and has to be replaced. I suspect as of this past week that the battery is completely dead though. I am basically going in as high as a kite, on a variant of marijuana, that is prescribed to me. This will be an interesting trip...
diabeticgonewild
@diabeticgonewild
Oct 10 2016 13:14
I'm not going to act too blazed though.
live4sw
@live4sw
Oct 10 2016 13:43
Curious if anyone else saw this - concern for those looping with xDrip as uploader? https://www.facebook.com/groups/cgminthecloud/permalink/1074159769371945
Just a little concerned about the possibility of it uploading high #'s on a dying transmitter when they aren't actually high. Or maybe it's just that the receiver outputting those #'s, not xDrip's fault
diabeticgonewild
@diabeticgonewild
Oct 10 2016 14:06
I don't want to do this! 😭
fiberfan
@fiberfan
Oct 10 2016 14:32
@diabeticgonewild Needing surgery sucks
I hope all goes well!
@tim2000s I assume it is a US pump. I bought it from someone who replaced it with a 530g.
fiberfan
@fiberfan
Oct 10 2016 14:37
@libxmike When i read your post I had a 'doh' moment. I was entering the letters as well as the numbers. I will try again with just the numbers. Thanks!
diabeticgonewild
@diabeticgonewild
Oct 10 2016 14:50
Yep. This is surgery #7 due to autonomic neuropathy pretty much.
fiberfan
@fiberfan
Oct 10 2016 15:40
@libxmike The letters were the problem, when I used just the numbers the script completed without errors!
Mike
@libxmike
Oct 10 2016 15:41
@fiberfan excellent! I had same problem yesterday, thats why I could say why you have this problem , the script has to be updated with remark to enter just the number
Scott Leibrand
@scottleibrand
Oct 10 2016 15:44
Yes, please do update that and submit a PR.
fiberfan
@fiberfan
Oct 10 2016 15:51
@scottleibrand I updated the message to say "What is your pump serial number (numbers only)?" and tested it. I can push that to my repo and do a pull request, is there a better way to change the message.
My nightscout web site now sees open aps! I am running with water in the pump and will work further after doing the paid work today.
Scott Leibrand
@scottleibrand
Oct 10 2016 15:55
@fiberfan that sounds exactly right, thx
Does anyone have a non-numerical serial number (with A-F in it?)
Mike
@libxmike
Oct 10 2016 16:00
@fiberfan whats the trick no make NS to see openaps? I'm running my 522 test with Levemir :) I have omnipod as my daily pump
Dana Lewis
@danamlewis
Oct 10 2016 16:01
@libxmike you can use a reservoir with water (or even no reservoir, just stick your finger in so it senses resistance) - no need to use insulin
fiberfan
@fiberfan
Oct 10 2016 16:01
@libxmike openaps in the ENABLE setting
Scott Leibrand
@scottleibrand
Oct 10 2016 16:02
I think MDT only used numbers in the 6-digit portion of the S/N, but they could theoretically be hexadecimal digits.
Mike
@libxmike
Oct 10 2016 16:03
@danamlewis I noticed yesterday, will remove Reservoir today
@scottleibrand ABC123456H thats the format on my 522
fiberfan
@fiberfan
Oct 10 2016 16:04
@scottleibrand, it might make sense then to change to the prompt I just pushed to indicate numbers and A-F.
Mike
@libxmike
Oct 10 2016 16:04
A-F?
@fiberfan still not sure where is "openaps in the ENABLE setting"
you mean in NS?
if yes, then it is enabled but shows unknown in NS
fiberfan
@fiberfan
Oct 10 2016 16:08
@libxmike I went back to the document (http://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-1/nightscout-setup.html#nightscout-setup) - you need to add another variable DEVICESTATUS_ADVANCED=”true”
A-F because hexadecimal valid values are 0-9 and A-F (base 16)
Mike
@libxmike
Oct 10 2016 16:12
@fiberfan ok now got it
I have to find in my mongodb local installation where to set the DEVICESTATUS_ADVANCED=”true”, I use Rpi Zero
fiberfan
@fiberfan
Oct 10 2016 16:18
It isn't done in mongodb, it is a setting for the node app. Set it how you set "ENABLE=openaps"
redjujube
@redjujube
Oct 10 2016 16:22
I'm having trouble getting glucose values from openaps to Nightscout. I've gotten monitor/glucose.json from a Medtronic pump, but when I issue this command:
openaps use ns shell format-recent-type tz entries monitor/glucose.json | json -a dateString | wc -l
I get an output of 0
Scott Leibrand
@scottleibrand
Oct 10 2016 16:23
@fiberfan I think we can leave off the A-F part unless we have evidence anyone actually has a pump S/N with those characters. I don't think I've ever seen one, which is pretty good evidence they don't make them.
redjujube
@redjujube
Oct 10 2016 16:25
@scottleibrand Awesome, thanks Scott, I hadn't found that yet. I'll work through that
Scott Leibrand
@scottleibrand
Oct 10 2016 16:30
It's openxshareble specific, but if you skip those parts it should do what you want.
redjujube
@redjujube
Oct 10 2016 16:42
@scottleibrand , so I think for the Medtronic pump I'm using the iter_glucose command instead of oref0_glucose. Is that correct?
I get a good glucose_zoned.json file, but when I try to run openaps report add nightscout/recent-missing-entries.json JSON ns shell format-recent-type tz entries monitor/glucose-zoned.json it fails
sorry, I meant when I invoke that report it fails. nightscout/recent-missing-entries.json remains empty
it does actually invoke the report and doesn't report any errors, but nightscou/recent-missing-entries.json remains empty
Scott Leibrand
@scottleibrand
Oct 10 2016 16:55
Did you add timezones to the iter_glucose output?
redjujube
@redjujube
Oct 10 2016 16:57
that's this command, right? openaps report add monitor/glucose-zoned.json JSON tz rezone monitor/glucose-oref0.json --date "display_time system_time dateString" --adjust missing
I modified it slightly. I'm getting a monitor/glucose-raw.json (instead of glucose_oref0) with the iter_glucose command, then I use that output with the above command to create the glucose-zoned.json file
Thacher
@thacherT1D
Oct 10 2016 17:13
if I want to test building another version of openAPS, ex. using the new dev docs, can I have two instances of openAPS on one rapsberrypi? using one nightscout site? or do I need an entirely separate rig?
Dana Lewis
@danamlewis
Oct 10 2016 17:14
Yes, many instances are easy. Just name it something different when running setup script!
Thacher
@thacherT1D
Oct 10 2016 17:22
great! I'm going to do an install/walkthrough of the dev docs from scratch, will be taking notes along the way :)
Dana Lewis
@danamlewis
Oct 10 2016 17:24
Excellent thanks
Scott Leibrand
@scottleibrand
Oct 10 2016 17:47
Don't try to run them both at the same time, though. They'll fight over the radio stick. You might want to save and remove your existing crontab entries when you decide to put the new one into cron, to make sure that oref0-setup doesn't skip anything because it's already present.
Mike
@libxmike
Oct 10 2016 17:53
@scottleibrand is crontab the only place to disable 2nd instance of openaps?
Tim Street
@tim2000s
Oct 10 2016 17:56
@scottleibrand I was thinking about implementing square and dual wave boluses after experiencing fish and chips, where you don't really want to be reacting too much to increasing glucose levels due to the insulin delay.
Scott Leibrand
@scottleibrand
Oct 10 2016 17:56
@libxmike yeah, that's the only thing that will run it automatically
@tim2000s did you try a small initial meal bolus and then letting AMA do its thing for the rest?
Tim Street
@tim2000s
Oct 10 2016 17:57
Yes. Still see fairly large rise on that style of food.
Insulin need is substantially larger than carb content.
Dana Lewis
@danamlewis
Oct 10 2016 17:59
@tim2000s if you do a square or dual, the loop won’t be able to set temps
(just saying in case you don’t realize that, in context of your post. if you do know that, then ok :))
Tim Street
@tim2000s
Oct 10 2016 18:00
But if you implement the dual as a set of tbrs controlled by the loop, then it can be increased or decreased by the loop based on feedback.
Kind of preprogrammed AMA.
So you can give AMA some insight.
Dana Lewis
@danamlewis
Oct 10 2016 18:01
same idea. but a dual or a square will prevent any temps from being set.
Scott Leibrand
@scottleibrand
Oct 10 2016 18:01
@tim2000s do you see a fast rise more than carbs can account for? or are you talking about a sustained rise from the fat and protein?
Tim Street
@tim2000s
Oct 10 2016 18:02
I'm talking about a fast initial rise that needs quite a large bolus then an additional sustained rise.
Scott Leibrand
@scottleibrand
Oct 10 2016 18:03
so normally what we'd do is size the initial bolus for the fast initial rise, and then let AMA (which is only aware of carbs, not fat) high-temp for the longer sustained rise on top of the initial bolus
is that what you did? did AMA have trouble keeping up?
Tim Street
@tim2000s
Oct 10 2016 18:04
I was simply thinking you can use NS to set a combo bolus, then oref0 picks up the delay insulin amount in the NS download and period and applies as additional TBR, In addition to the preapplied bolus.
That's right - AMA couldn't keep up.
So I though that with the tools available, you could give it an "intend to AMA" maybe?
Scott Leibrand
@scottleibrand
Oct 10 2016 18:07
I think the main problem with "set a combo bolus in NS" is that it's not a very intuitive or obvious interaction for most people. The other thing we usually do to help with this is set a low temp target (for more than an hour if you want)
we usually just set the default 1h Eating Soon temp target any time we think AMA might not be able to keep up without it
I've yet to see a situation where AMA plus a low temp target couldn't keep up with a sustained rise (unless it was being limited by max basal)
Tim Street
@tim2000s
Oct 10 2016 18:10
What I ended up doing was setting a long temp target and telling it I was going to eat twice as many carbs, which works but is a bit of a kludge!
Scott Leibrand
@scottleibrand
Oct 10 2016 18:10
obviously if you don't do a big enough initial bolus, or do subsequent sugar carbs and don't bolus for those, you'll get a big rise. but I haven't seen it unable to keep up with the 1-4h after-meal rise
one other thing we might consider is somehow telling NS about a long-acting meal, kinda like Loop does with longer carb absorption times
but I worry that such a feature wouldn't be used very often and would be hard to test and tune to get it right
Tim Street
@tim2000s
Oct 10 2016 18:14
It's certainly a tricky one.
Scott Leibrand
@scottleibrand
Oct 10 2016 18:15
do you know the overall fat content (or total calorie count) of that meal?
would your "twice as many carbs" have represented the total calorie content fairly accurately?
live4sw
@live4sw
Oct 10 2016 18:16
Hi all - quick q. How many of you guys are using xDrip with a G4 with Share receiver over BT? I just started using it yesterday instead of my wired rig and it seems superior in almost every way.
Scott Leibrand
@scottleibrand
Oct 10 2016 18:17
how are you getting the BG to openaps? through NS?
live4sw
@live4sw
Oct 10 2016 18:17
yep - G4 with share bluetooth to xdrip app to NS
So, G4 w/share, Moto G with xdrip app set to G4 w/share as data source, then uploading to my NS site
Scott Leibrand
@scottleibrand
Oct 10 2016 18:18
so the xdrip app is not necessary if you're using the Share app: I think that's what most people do
obviously if you can't do Share (like for Android), xDrip is a good alternative
the main advantage of a wired rig over getting BG from NS is that it continues to work if you're offline.
live4sw
@live4sw
Oct 10 2016 18:20
Ah. Yep I'm on Android. I was a little concerned about introducing an additional level of uncertainty b/c I know xDrip has its own algo, but w/G4 with share via bluetooth the docs say that it continues to just use the Dexcom algorithm.
Scott Leibrand
@scottleibrand
Oct 10 2016 18:20
another option is to use openxshareble, and have the openaps rig do the uploading to NS. then you don't rely on NS to be able to loop.
live4sw
@live4sw
Oct 10 2016 18:23
Yeah, that sounds like an interesting idea, I suppose that would allow me to dispense with the uploader phone, just need to spend the time to figure it out.
Thanks! But in the interim, do you know of anyone else using xDrip as their primary uploader for their openaps setup?
Scott Leibrand
@scottleibrand
Oct 10 2016 18:28
nope, but maybe someone will speak up. :)
that might be (part of) what @jasoncalabrese is doing, not sure
live4sw
@live4sw
Oct 10 2016 18:29
Got it - thanks
Andy Sharrow
@dramageek
Oct 10 2016 19:00
I've still yet to get openxshareble working properly on my rig, so I was debating trying the way you're describing- Share Receiver > Phone(xdrip)> Nightscout > Edison
live4sw
@live4sw
Oct 10 2016 19:01
I had used the regular uploader with a USB OTG cable to upload to my NS site for several months but had reliability issues (uploading would randomly stop until I reconnected OTG) so I switched to xDrip yesterday
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:06
I'm not using xdrip anymore, but mostly because an OTA update made pairing with the receiver impossible, I'm only using openxshareble now, but would like to start adding some wixels
live4sw
@live4sw
Oct 10 2016 19:07
Ah. But you didn't have any issues with it? My main concern is basically just xDrip sending something other than what is currently on the receiver, but since it is pulling from the G4 w/Share and using the Dexcom algo (rather than the xDrip one), it seems like that is not an issue.
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:18
the closer you can get them the better, but it should work ok if they have the same trend, but could be a little jumpy
live4sw
@live4sw
Oct 10 2016 19:24
Why should there be any difference if it's using the Dexcom algo rather than the xDrip one? Or is it pulling the raw data from the receiver, then doing its own work using the Dex algo on the phone, in which case I suppose the issue could be how it acts during warmup or when there is noise?
PieterGit
@PieterGit
Oct 10 2016 19:24
@jasoncalabrese : did you manage to have a look at openaps/oref0#243 . I now realise that my work in progress cgm-loop.py does not only work with dexcom usb, but also with medtronic or openxshareble. I found the scripts on https://github.com/openaps/docs/wiki/CGM-Loop-with-openxshareble-scratchpad hard to explain
Scott Leibrand
@scottleibrand
Oct 10 2016 19:24
do you have to calibrate in the xDrip app?
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:25
if xdrip is using a share receiver, than you just need to keep that receiver calibrated the same as any other receiver
Scott Leibrand
@scottleibrand
Oct 10 2016 19:25
:+1:
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:26
you can also use xdrip/share and have the receiver plugged into to a rig via usb at the same time
live4sw
@live4sw
Oct 10 2016 19:26
Yeah. I'm just trying to confirm that all xDrip is doing in this use case is just relaying what would be sent to the Share app if I were using an iPhone - just trying to minimize points where data can get screwy
I have four different rigs (3 at home, one mobile) so I kind of prefer having my receiver going through a single uploader phone rather than connected to any rig
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:27
NS and oref0 can handle multiple cgm sources at the same time
so you don't need to pick 1
live4sw
@live4sw
Oct 10 2016 19:29
true. Also just a matter of trying to keep things simple - e.g., some small chance of dropped data occasionally is acceptable to me, but distorted data that could potentially be acted on definitely isn't
So I just kind of like the simplicity of a single receiver with an uploader phone, especially since I have good cell coverage and multiple wifi networks available almost everywhere I go
As long as xDrip isn't doing anything to the share data, just acting as a relay
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:30
yeah, but it does get stuck sometimes, just like share
if you're with it and can fiddle with it then it's fine, but nice to have extra redundancy
live4sw
@live4sw
Oct 10 2016 19:31
by stuck you just mean not uploading though, right?
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:32
yeah, ble for the receiver to any phone isn't perfect, Android and iOS both try really hard to kill apps, etc
Scott Leibrand
@scottleibrand
Oct 10 2016 19:32
@jasoncalabrese if you're using G4 Share and not entering calibrations in the xDrip app, it will never upload a different number than the Share receiver, right?
live4sw
@live4sw
Oct 10 2016 19:32
yeah, if that's the case, i think that's the kind of thing that's ok for an adult user (like me) who always is with the hardware. I can definitely see why it would not be acceptable at all as the single data source for anyone using a rig with anyone other than themself
@scottleibrand Yep - exactly my question.
Mike
@libxmike
Oct 10 2016 19:34
how do I make NS to show data from openaps/pump ? I have local NS/mongodb on a Rpi Zero, openaps and NS works just to to force them to communicate?
Screenshot 2016-10-10 21.27.15.png
Jason Calabrese
@jasoncalabrese
Oct 10 2016 19:42
yeah, xdrip doesn't use it's own calibrations with a share receiver
David
@davidkeddydb
Oct 10 2016 19:46
Sorry for yet another wifi question. If I set my hostname in nano /etc/hosts as blackdog lets say, (I am on a mac), how can I then ssh into the edison? I just don't know where I put my host name or what the string should look like. ssh root@blackdog.host? Thanks for any help. Last step till I can go mobile with the edison.
live4sw
@live4sw
Oct 10 2016 19:46
Got it - thanks guys. That was really my main question.
Scott Leibrand
@scottleibrand
Oct 10 2016 19:47
@davidkeddydb ssh edison@blackdog.local
make sure you updated /etc/hostname too
Kelly Watson
@kellyisworking
Oct 10 2016 20:11
In case anyone missed, saw this from twitter - www.popsci.com/diy-diabetes
Dana Lewis
@danamlewis
Oct 10 2016 20:44
@kellyisworking :+1:
PieterGit
@PieterGit
Oct 10 2016 20:47
any update on the explorerboard available? eagerly checking my mail for news every day
Dana Lewis
@danamlewis
Oct 10 2016 20:48
@PieterGit we are trying to confirm pricing - hoping to send it out this week! you haven’t missed anything, though.
David
@davidkeddydb
Oct 10 2016 20:48
@scottleibrand Thanks. I think that rectified my wifi issue finally. :+1: I am getting an error message from github? fatal: unable to connect to github.com:
github.com: Name or service not known
PieterGit
@PieterGit
Oct 10 2016 20:50
sent the information out, or ship the explorer board. i think the first one, but hope the latter
Dana Lewis
@danamlewis
Oct 10 2016 20:51
send out the official order form so we can order parts and ship the latter in early November ;)
PieterGit
@PieterGit
Oct 10 2016 20:51

WeAreNotWaiting :)

Dana Lewis
@danamlewis
Oct 10 2016 20:51
i see where this is going ;)
David
@davidkeddydb
Oct 10 2016 20:55
when I run: curl -s https://raw.githubusercontent.com/opecripts/quick-packages.sh | bash - I get nothing
Dana Lewis
@danamlewis
Oct 10 2016 20:56
you’ve probably run it previously, if you’re doing another setup, move on to the next step
redjujube
@redjujube
Oct 10 2016 20:56
On my nightscout page, I am not seeing the openaps pill box. I have nightscout version 0.9.0-dev-20161009 and I have the OpenAps plugin check box enabled. Any ideas on what I'm missing?
David
@davidkeddydb
Oct 10 2016 20:57
@danamlewis Thanks. When I go to the next step, I get this lovely message: Cloning into 'oref0'...
fatal: unable to connect to github.com:
PieterGit
@PieterGit
Oct 10 2016 20:58
@redjujube : sometimes a F5 or CTRL-F5 fixes that. Are other plugins listed on the nightscout page? Use https://gitter.im/nightscout/public for nightscout discussions (although most of the people are here as well)
garykidd
@garykidd
Oct 10 2016 21:04
@davidkeddydb what instructions are you using to set up your edison?
redjujube
@redjujube
Oct 10 2016 21:04
Thanks Pieter. Refreshing didn't work but I'll check out the other forums. Thanks for letting me know
@garykidd I was sort of restarting as I was goofed up with my wifi issue.
garykidd
@garykidd
Oct 10 2016 21:06
@davidkeddydb was talking about before that....for just the initial edison setup and for your rf device---you're using TI stick...right?
David
@davidkeddydb
Oct 10 2016 21:07
@garykidd That is the latest, greatest. Worked easy before but now i am getting error about github. Yes, I am now using a TI stick
garykidd
@garykidd
Oct 10 2016 21:08
curious how you set up your TI stick
did you set up over serial? \
David
@davidkeddydb
Oct 10 2016 21:09
the new set up, well assuming you have already flashed the stick, does everything for you....well before I have now screwed it up :smile: Hopefully get it resolved here fairly quick. I just got the wifi for my phone working too.
garykidd
@garykidd
Oct 10 2016 21:10
hmmmm...just talking about how TI stick interfaces with edison on your rig
David
@davidkeddydb
Oct 10 2016 21:10
works awesome when I haven't screwed it up.
garykidd
@garykidd
Oct 10 2016 21:12
hmmm stillmissing each here.....I was trying to figure out how your ti stick is connected to your edison...I'm guessing maybe you have a board for edison that has a usb port on it?
David
@davidkeddydb
Oct 10 2016 21:12
I have a sparkfun board and I am attached via the otg usb
@danamlewis does the adafruit plug right into the new explorer board?
Dana Lewis
@danamlewis
Oct 10 2016 21:18
the battery? yes, via the jst on the explorer board
Scott Leibrand
@scottleibrand
Oct 10 2016 21:19
@davidkeddydb if your Edison can't connect to github.com, it's not fully online
also the curl URL you pasted had a chunk missing. dunno where that copy-pastafication happened. ;-)
David
@davidkeddydb
Oct 10 2016 21:20
I love my mac, but sometimes :smile:
I will work on it a little later even if I have to plug in via serial to get it resolved. Thanks
garykidd
@garykidd
Oct 10 2016 21:51
@davidkeddydb how bout instructions to flash jubilinux on edison?
David
@davidkeddydb
Oct 10 2016 21:58
@garykidd I followed what @diabeticgonewild had done with windows and flashed it that way. I installed Ubilinux and then upgraded through the mmeowlink instructions

@scottleibrand Ok so I have the edison connected via serial, usb on the mac and still getting the same git error? Cloning into 'oref0'...
fatal: unable to connect to github.com:
github.com: Name or service not known

-bash: cd: oref0: No such file or directory

I will figure it out unless you give me a magic bullet
Scott Leibrand
@scottleibrand
Oct 10 2016 22:04
connecting via serial gets you connected the Edison, but doesn't get it connected to the Internet
David
@davidkeddydb
Oct 10 2016 22:08
Gotcha. That is where I am stuck but I will get it figured. It is likely my network interface stuff isn't right somehow. I thought I had it resolved but not yet.
Scott Leibrand
@scottleibrand
Oct 10 2016 22:12
you can always ping google.com :-)
Dana Lewis
@danamlewis
Oct 10 2016 22:15
Public Service Announcement: everyone can go back to using master docs - they’re now the same as dev, and I went a step further and improved and consolidated, so there’s really 4 phases now. Phase 0 stayed the same (hardware, basic setup). Phase 1 is still visualization and monitoring setup. Phase 2 is the new setup scripts. Phase 3 is consolidating the remainders of 3,4,5 that were separated (but can be lumped together now that setup scripts exist). Phase 4 is the old phase 6. (And if you’re yearning for the old way of doing things, you’ll see the “manual setup”/old directions still there as well.) http://openaps.readthedocs.io/en/latest/index.html
and the setup script ‘testing’ page now directs to the docs: https://github.com/openaps/oref0/wiki/Setup-Script-Testing
Areas that still need improvement: we need to add in a new troubleshooting page to phase 2 to help answer some of the FAQs we’ve been seeing here about setup script questions. Hoping someone beats me to it :D (And I also want to clean up phase 0 and make it easier for people to choose between the hardware options that are right for them, in case anyone wants to take a stab at that, too :))
Jason Calabrese
@jasoncalabrese
Oct 10 2016 22:34
less phases :+1:
Scott Leibrand
@scottleibrand
Oct 10 2016 22:37
and we need to get wip/ama-docs matched up to the new phases and merged into the main docs
and do a release of oref0 probably too
David
@davidkeddydb
Oct 10 2016 22:38
@scottleibrand I went back to my old network/interface file format that was working. Trying to run Cron now Will get the phone wifi set up at some point. Trial and error I will figure it out. Thanks again.
Rachel Sandlain
@audiefile
Oct 10 2016 22:45
@dougtakeuti to my knowledge the CGM Careportal app doesn't handle temp targets at all. You can add temp targets via pebble using https://gist.github.com/audiefile/158a6c87671220276bce5c4dc0492068
David
@davidkeddydb
Oct 10 2016 22:51
@scottleibrand got everything reinstalled but I am getting stopped at listening...apparently I cannot get communication between TI stick and pump
Scott Leibrand
@scottleibrand
Oct 10 2016 22:53
that can be due to misconfiguration too
David
@davidkeddydb
Oct 10 2016 22:54
will see if I can get figured here later tonight
garykidd
@garykidd
Oct 10 2016 23:23
would these be considered the best instruction to follow for preparing edison for openaps and oref0-setup.sh ?
Dana Lewis
@danamlewis
Oct 10 2016 23:25
Yep
dougtakeuti
@dougtakeuti
Oct 10 2016 23:51
@audiefile Thanks for the info!