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

12th
Feb 2017
Scott Leibrand
@scottleibrand
Feb 12 2017 00:02
can y'all take a look at openaps/oref0#387, and try / add your comments on the proposed solutions (openaps/oref0#375 or https://github.com/openaps/oref0/issues/387#issuecomment-277869457 )? we don't use the bolus wizard ourselves, so we can't make this happen without some help and input from the people who actually do use the feature and are affected by the issue.
hilarykoch
@hilarykoch
Feb 12 2017 00:03
Sure. Can you tell me how you bolus?
I mean without the bolus wizard?
Scott Leibrand
@scottleibrand
Feb 12 2017 00:03
@danamlewis uses the easy bolus (up arrow)
Dana Lewis
@danamlewis
Feb 12 2017 00:05
(I have an easy carb ratio of 1:10 and my easy bolus is set to .5u)
@Kdisimone also please review/comment ^ , along w anyone else who's had a double carb appear in NS treatments.
hilarykoch
@hilarykoch
Feb 12 2017 00:07
Got it. Thanks!
Dana Lewis
@danamlewis
Feb 12 2017 00:08
:+1: thx for providing feedback so we can move forward w a potential solution
hilarykoch
@hilarykoch
Feb 12 2017 00:10
Of course!
Dana Lewis
@danamlewis
Feb 12 2017 00:23
@hilarykoch that screenshot is helpful, thanks. Can you confirm - for loop do you have event history or reservoir on?
@Kdisimone also - event history or reservoir ?
(For Loop I mean, for the way to get iob)
hilarykoch
@hilarykoch
Feb 12 2017 00:24
In the Loop app, resevior history. @danamlewis
Dana Lewis
@danamlewis
Feb 12 2017 00:24
Because I think based on that screenshot the duplicates are coming from Loop - it's reading but not using it in Loop, yet sending it to NS which OpenAPS then reads.
hilarykoch
@hilarykoch
Feb 12 2017 00:25
Despite the 40 Carbs being entered through the pump and not Loop?
Dana Lewis
@danamlewis
Feb 12 2017 00:25
*which the human then reads but OpenAPS doesn't
Yes. See where the 6:03 entries are? A lot of those are Loop
40 comes from OpenAPS only once. So I think Loop sees that pump history and sends t to NS even if Loop doesn't loop off of it because no CA time.. So that's how the duplicates end up in NS.
Can you also post your OpenAPS pill from 6:03 or later where you saw pill showing the carbs?
hilarykoch
@hilarykoch
Feb 12 2017 00:28
Really interesting. Hmm. I do think I used open Loop last weekend when I was trying OpenAPS. Ok, going to eat dessert in a few. Why don’t I try closing Loop app and see if that makes the difference?
Dana Lewis
@danamlewis
Feb 12 2017 00:29
Sure. Close it, and do the bolus wizard for carbs/bolus and let's check NS reports and OpenAPS pill before re opening Loop.
@ELUTE - have you seen any double carb in Nightscout when running both rigs?
(If what we just found is the root cause, I imagine not because it sounds like you're still bolusing and carb entering through Loop?)
hilarykoch
@hilarykoch
Feb 12 2017 01:27
@danamlewis Ok. Closing the Loop app resolved the problem. Did dessert. Bolused for 22 carbs through pump and accurate carbs show in NS COB and OpenAPS COB. Happy dance! 💃
Bolusing through Loop app does not seem to result in double carb entry. Not sure but think @ELUTE boluses through Loop. It only seems to happen if Loop app is "on" (either closed or open Loop), but bolusing through the pump.
Dana Lewis
@danamlewis
Feb 12 2017 01:33
Ok. can you also comment w that on that issue one more time, just to track this to completion? Then once I validate w one other person we can update the docs to clarify for people running multi system what the options are . Thanks for helping narrow it down to figure it out!
hilarykoch
@hilarykoch
Feb 12 2017 01:39
Will do. I just followed orders ;) You're the one who really connected the dots here!
katie disimone
@Kdisimone
Feb 12 2017 01:58

So am I understanding right? Seems like you can run Loop in open mode plus use Loop app for meal entry, and OpenAPS for closed loop.

But cannot use Loop app in open mode and bolus from pump wizard, and OpenAPS for closed loop. That situation will result in double carbs because each loop program will pull the carbs from pump read and provide to NS.

Dana Lewis
@danamlewis
Feb 12 2017 01:59
I think that's what we are discovering is the reality as of now, but you may be able to test and confirm for us. Hillarys screenshot from NS treatments is what helped figure this out.
katie disimone
@Kdisimone
Feb 12 2017 02:00
That's very much what makes sense.
Dana Lewis
@danamlewis
Feb 12 2017 02:00
There may be something we un-did (or broke) that can be easily fixed to not allow NS carbs if meal carbs register from pump, but until we investigate further, what you described will be the 2 scenarios for bolusing w/out seeing duplicates in NS
katie disimone
@Kdisimone
Feb 12 2017 02:01
Is it possible to not allow carbs from sources? A filter for source "Loop"?
Or I suppose that would be uploader?
Dana Lewis
@danamlewis
Feb 12 2017 02:02
@Kdisimone do you want to test w spare pump and rigs, or real pump and rigs w a small carb entry? (I.e. Have loop running open loop and do 1g via bolus wizard on pump; then close loop app and do a 2g via bolus wizard and screenshot NS treatments a few minutes later)
katie disimone
@Kdisimone
Feb 12 2017 02:02
Sure. I can do.
Dana Lewis
@danamlewis
Feb 12 2017 02:02
Let's test and confirm first w at least one other person before we tackle solutions.
Ty!
katie disimone
@Kdisimone
Feb 12 2017 02:03
The other thought I had is that you might just be able to disable Loop's uploading To NS. That's a pretty straight forward solution if you really wanted to bolus from Loop app. You'd have to add the carbs through careportal, but that would work to keep pump in pocket
Dana Lewis
@danamlewis
Feb 12 2017 02:05
Yea. And given IFTTT integration w NS and OpenAPS That means people can enter carbs via watch and Alexa and Siri etc, too, not just traditional care portal
katie disimone
@Kdisimone
Feb 12 2017 02:07
Exactly. That would be the cleanest easiest way
Dana Lewis
@danamlewis
Feb 12 2017 02:07
IFTTT widget on iPhone Today screen, etc.
Ok. If your test confirms that, We can update the docs about the recommended methods and clarify the unsupported method.
:+1:
katie disimone
@Kdisimone
Feb 12 2017 02:07
👍🏻
Kate Farnsworth
@ELUTE
Feb 12 2017 02:10
We see duplicate bolus entries in NS if she boluses through pump
One as correction
And one as meal
Dana Lewis
@danamlewis
Feb 12 2017 02:11
K. And not if you bolus via Loop?
Kate Farnsworth
@ELUTE
Feb 12 2017 02:11
Correct
Dana Lewis
@danamlewis
Feb 12 2017 02:12
K. Happy for having enough data to have finally narrowed down on the root cause
Kate Farnsworth
@ELUTE
Feb 12 2017 02:12
I Totally did not put two and two together on this.
We see double bolus though... not always double carbs
Dana Lewis
@danamlewis
Feb 12 2017 02:14
I bet if you check NS treatments reports though, it'll be because it was uploaded by both rigs even if it came from one or the other
Paul Dickens
@thebookins
Feb 12 2017 02:23
Following the docs around temp targets, but it doesn't seem to do anything. Is support for temp targets in dev only? Any configuration needed in openaps or NS?
Dana Lewis
@danamlewis
Feb 12 2017 02:23
No, shouldn't be anything from dev
Is your rig online?
Paul Dickens
@thebookins
Feb 12 2017 02:25
yes it's online
I'll have a look in the reports - can you give me a head start re which process or report to start looking in?
Dana Lewis
@danamlewis
Feb 12 2017 02:29
I think I saw someone else on fbk comment about having a problem w/ temp targets, too. you have care portal enabled, right? (does your other care portal entries work? i.e. if you enter carbs, does the rig end up finding out about them?)
Paul Dickens
@thebookins
Feb 12 2017 02:30
yep careportal is enabled - not sure about other care portal entries - will check
Dana Lewis
@danamlewis
Feb 12 2017 02:30
yea, please test that next. Thanks.
1g carb entry or something to see if the rig gets it
Paul Dickens
@thebookins
Feb 12 2017 02:32
how will i know if the rigs gets it? monitor/carbhistory.json?
Dana Lewis
@danamlewis
Feb 12 2017 02:37
@thebookins although that might not work if you have a recent carb entry on your pump
Paul Dickens
@thebookins
Feb 12 2017 02:38
yeah there's plenty of recent pump carbs
Dana Lewis
@danamlewis
Feb 12 2017 02:38
k, the other thing would be to dig up the temp target file and see what it’s saying
Paul Dickens
@thebookins
Feb 12 2017 02:39
temptargets.json is empty
I'll see what writes to that file and follow it backwards
Scott Leibrand
@scottleibrand
Feb 12 2017 02:41
yeah, that's the approach I'd take. LMK if you get stuck
Dana Lewis
@danamlewis
Feb 12 2017 02:43
@ELUTE @Kdisimone @hilarykoch just put together a quick PR for the docs to illustrate what ya’ll helped identify and what the short term solution is to avoid double entries. Can someone review and give it a thumbs up before I merge this? You can also add additional PRs to help improve this further, but I want to get something about this in tonight to prevent future double entries. thanks again! openaps/docs#650
Paul Dickens
@thebookins
Feb 12 2017 02:45
Will do ta.
hilarykoch
@hilarykoch
Feb 12 2017 02:51
@danamlewis Looks good to me. (I personally don't know how to turn off Loop's ability to write to NS.) But turning off the app works for me.
Wait! Found a typo.
FullSizeRender.jpg
Dana Lewis
@danamlewis
Feb 12 2017 03:06
fixed the typo, thanks @hilarykoch !
hilarykoch
@hilarykoch
Feb 12 2017 03:14
:+1:
Paul Dickens
@thebookins
Feb 12 2017 03:22
So, interestingly, ns-temptargets returns [] but if I filter treatments.json in the browser (something like NS_HOST/api/v1/treatments.json?find[eventType][$regex]=Target) I get a list of all my temporary targets.
Interesting because that's exactly what the alias is doing anyway.
Exercise management in type 1 diabetes: a consensus statement it's free with registration though
Paul Dickens
@thebookins
Feb 12 2017 04:02
So get-ns-glucose works, as does ns-meal-carbs, but ns-temptargets returns an empty array, despite having temporary targets defined in the last 6 hours. Any ideas @scottleibrand ?
Scott Leibrand
@scottleibrand
Feb 12 2017 04:11
I wonder if this is due to your GMT + a whole bunch timezone...
Matt Walker
@walker0
Feb 12 2017 04:11
@danamlewis I have run both at the same time and there don't appear to be double carb entries in NS. That is only bolusing through loop and not entering carbs anywhere else.
Dana Lewis
@danamlewis
Feb 12 2017 04:12
where are you entering carbs, though? Loop?
Matt Walker
@walker0
Feb 12 2017 04:12
Yes only through loop.
Dana Lewis
@danamlewis
Feb 12 2017 04:12
k, yea. it’s only those who are trying to enter carbs for openaps via the pump or NS that are seeing this
yours is behaving as expected if you are using Loop and carb entry there
Matt Walker
@walker0
Feb 12 2017 04:14
In general running loop you should only enter carbs in loop and only loop. I don't see any advantage to entering in both loop and pump while running openaps too but I now understand the issue.
Dana Lewis
@danamlewis
Feb 12 2017 04:15
you absolutely shouldn’t enter multiple places - you need to pick one system or the other to drive your carb entry, which is what we confirmed today
(which I know you know, but just clarifying)
Paul Dickens
@thebookins
Feb 12 2017 04:16
yeah @scottleibrand was wondering if our weird timezone had something to do with it...
but running the curl command without any date filtering still returned an empty array
Scott Leibrand
@scottleibrand
Feb 12 2017 04:17
hmm. what if you just put the treatments URL into your browser?
Paul Dickens
@thebookins
Feb 12 2017 04:17
in the browser it returns the treatments as expected
Scott Leibrand
@scottleibrand
Feb 12 2017 04:18
might be a " escape thing on your curl then
Paul Dickens
@thebookins
Feb 12 2017 04:18
yep, but ns-meal-carbs works fine - it's escaped the same way
not something about the $regex business?
Scott Leibrand
@scottleibrand
Feb 12 2017 04:23
try changing the 6 hours ago in openaps alias show ns-temptargets to 24 hours ago
maybe easiest to edit the openaps.ini
Paul Dickens
@thebookins
Feb 12 2017 04:24
I might be getting somewhere...
Scott Leibrand
@scottleibrand
Feb 12 2017 04:24
I think I saw this issue when we went to Finland and St. Petersburg, which isn't 6 hours east of GMT, but more than 6 hours east of our home timezone...
Paul Dickens
@thebookins
Feb 12 2017 04:25
curl -g "NS_HOST/api/v1/treatments.json?find[eventType]=Temporary%20Target" works
but curl -g "NS_HOST/api/v1/treatments.json?find[eventType][$regix]=Target" doesn't work
Scott Leibrand
@scottleibrand
Feb 12 2017 04:26
regex not regix, although regex doesn't work either
Paul Dickens
@thebookins
Feb 12 2017 04:26
which is why I'm suspicious of the regex bit
sorry, meant regex, which is what is in the alias at the moment
Scott Leibrand
@scottleibrand
Feb 12 2017 04:27
you just need a \ in front of $regex
/api/v1/treatments.json?find[eventType][\$regex]=Target"
Paul Dickens
@thebookins
Feb 12 2017 04:28
let me try that
awesome! that works
so, my next question,
the alias has two \s in front of $regex. Replace with one?
Scott Leibrand
@scottleibrand
Feb 12 2017 04:31
no, what's in the alias is battle-tested for syntax
it's just different when you run it manually
did you try editing openaps.ini to just change the 6 hours ago to 24?
Paul Dickens
@thebookins
Feb 12 2017 04:32
sorry, side-tracked, will do now
it worked!
Scott Leibrand
@scottleibrand
Feb 12 2017 04:34
cool. try 12 too?
meh, nevermind
probably no reason we can't just do 24
Paul Dickens
@thebookins
Feb 12 2017 04:35
OK. Would you call that a fix, or more digging required?
timezones do my head in
Scott Leibrand
@scottleibrand
Feb 12 2017 04:36
it's the best fix we're going to get until someone does openaps/oref0#299
so please go ahead and PR it into oref0 dev branch
Paul Dickens
@thebookins
Feb 12 2017 04:37
Will do.
Scott Leibrand
@scottleibrand
Feb 12 2017 04:37
thx
Paul Dickens
@thebookins
Feb 12 2017 04:37
Thanks for your help @scottleibrand now we can temp in Australia
Scott Leibrand
@scottleibrand
Feb 12 2017 04:37
:-D
not sure I ever would've figured this one out if I hadn't spent a bunch of time in Helsinki working on it. :)
Paul Dickens
@thebookins
Feb 12 2017 04:40
:smile:
still confused why a 24 hour lookback fixes things... but hey let's go with it!
Scott Leibrand
@scottleibrand
Feb 12 2017 04:42
because the comparison is on the string representation of the date, not the actual date
Paul Dickens
@thebookins
Feb 12 2017 04:43
Ahh, I remember stumbling over that doing some mongodb filtering - makes sense
Scott Leibrand
@scottleibrand
Feb 12 2017 04:44
while you were troubleshooting this, I actually just finished working with @JELCRAWFORD and @jmcrawford to find another unrelated thing where we needed to sort based on the actual date rather than the string representation of the date. common problem I guess. :)
Dana Lewis
@danamlewis
Feb 12 2017 04:46
@chrisharris751 or another chris harris (sorry if I tagged the wrong one) was also expressing issues w/ temp targets on Fbk earlier today - not sure where geo located but if you’re still having trouble w/ temp targets you will want to check out ^ the above conversation
Paul Dickens
@thebookins
Feb 12 2017 04:47
:smile: good to bear in mind
peterfulvi
@peterfulvi
Feb 12 2017 05:14

@scottleibrand . Hi, tonight i was acually going over the tutorials on understanding the openaps toolkit, just to get familiar with how it work, im waiting on a 722 which i will have on monday so i thought i would learn the basics. I was doing the howdy processes seeing how the howdy device interacts with the use commands-and so forth. When i went to add the medtronic vendor i got that error that igot back when i was fooling around with the 512. I don't know if this could have something to do with why i was having trouble with the the 512. I just thought i would run it by you
```root@petersedison:~/tutorial-hello# openaps device add pump medtronic -h
Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 35, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 47, in call
self.configure_parser(self.parser)
File "/usr/local/bin/openaps-device", line 21, in configure_parser
self.commands = devices.configure_commands(parser, parent=self)
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/init.py", line 36, in configure_commands
parent.devices = get_device_map(parent.config)
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/init.py", line 21, in get_device_map
for device in Device.FromConfig(vendors, conf):
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/device.py", line 79, in FromConfig
device.read(config=config)
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/device.py", line 36, in read
self.extra.fields.update(dict(extra.items(self.section_name( ))))
File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: u'device "name"'

```

Scott Leibrand
@scottleibrand
Feb 12 2017 05:14
sounds like you corrupted your openaps.ini somehow?
peterfulvi
@peterfulvi
Feb 12 2017 05:21
this is a separate instance file under a separate directory cd/tutorialhello-world, this is just relating to the instance i just created correct? not the instance that has the 512 configured into it?
Scott Leibrand
@scottleibrand
Feb 12 2017 05:27
right
peterfulvi
@peterfulvi
Feb 12 2017 05:29

Thats what i thought. Im taking sometime to get familiar with interacting with devices,invoking reports. and some of the basics.

Thanks

Paul Dickens
@thebookins
Feb 12 2017 06:08
@scottleibrand having another look at the temp targets issue - it appears that the NS times are UTC, while the alias reports time in the user's timezone. So another option is to add the option -u to the alias and tell it to report the date in UTC. That way we could keep the 6 hour lookback. I'll mention both in the PR.
Scott Leibrand
@scottleibrand
Feb 12 2017 07:52
@thebookins ah, yeah, that might be better
Paul Dickens
@thebookins
Feb 12 2017 10:02
PR'd as openaps/oref0#399
joannestevens
@joannestevens
Feb 12 2017 12:10
I am just flashing the Edison on windows and when putting in the flashall.bat it comes up with not recognised as an internal or external command - what might be wrong?
glenrob1940
@glenrob1940
Feb 12 2017 13:34
How do you best handle a mistake? As in, you miscalculated , or forgot to enter carbs. iob appears to fight you from that point on if you manually bolus.
Lukasz Kaniowski
@lukasz-kaniowski
Feb 12 2017 17:07

guys, I'm trying to setup bluetooth on my edison with explorer board, I'm fallowing this guide https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/bluetooth-tethering-edison.html , I'm able to connect from bluetoothctl but then when I'm trying to execute sudo bt-pan client XX:XX:XX:XX I'm getting this error

Traceback (most recent call last):
  File "/usr/local/bin/bt-pan", line 228, in <module>
    if __name__ == '__main__': sys.exit(main())
  File "/usr/local/bin/bt-pan", line 196, in main
    try: iface = net.Connect(opts.uuid)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Input/output error
root@edi:/home/edison/iza-openaps-2# sudo bt-pan client DC:86:D8:18:37:07
Traceback (most recent call last):
  File "/usr/local/bin/bt-pan", line 228, in <module>
    if __name__ == '__main__': sys.exit(main())
  File "/usr/local/bin/bt-pan", line 196, in main
    try: iface = net.Connect(opts.uuid)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Input/output error

Anyone knows what to do?

kenstack
@kenstack
Feb 12 2017 18:48
@lukasz-kaniowski check you /etc/rc.local and make sure screen -S "brcm_patchram_plus" -d -m
/usr/local/sbin/bluetooth_patchram.sh is uncommented, and then do a ps aux and make sure its running - I had the same error until I realized this
Scott Leibrand
@scottleibrand
Feb 12 2017 18:51

@lukasz-kaniowski is this a freshly flashed rig? Had you ever tried to set up Bluetooth on it before?

You'll probably need to try re-running the setup steps. We had to go so far as to re-flash all our rigs: something about the old setups made it impossible to get it working.

@glenrob1940 you can enter carbs into NS and then use the edit mode to drag them back to the correct time...
If you entered too many carbs, it's usually best to set a high temp target (activity mode) until the extra ones have decayed. Or, if you end up doing rescue carbs due to a previous carb overestimate, don't enter those.
kenstack
@kenstack
Feb 12 2017 18:55
@scottleibrand I not sure what brcm_patchram_plus does but Ive gotten my setups working when I enabled this - but I found it only by looking to see what was different between your latest install scripts and my older installs (yours has it enabled - my other instals had it commented out). If I take it out I get that error. also - one quick thing I noticed - but again could be my setups - I couldnt get oref0-online working until I put the full path in for things like ifconfig - all my other setups seemed to have cron using the path already - again could have been something I did
kws1969
@kws1969
Feb 12 2017 18:58
Quick question? Currently I have to 1000 batteries I'm rotating on Edison rig. Is it ok to use power button to power down or should I be in console to power down or does it matter ?
glenrob1940
@glenrob1940
Feb 12 2017 18:59
I am concerned about the problem from the other direction - the loop thinks I have less or no carbs on board. If I bolus using the pump wizard then the loop sets a temp basal of 0. I am looking for the best method to handle that situation
Scott Leibrand
@scottleibrand
Feb 12 2017 19:02
@glenrob1940 you can enter carbs into NS and then use the edit mode to drag them back to the correct time. - does that not address that concern?
or, if you are offline and can't use NS, enter the COB that you think is remaining via the bolus wizard.
also, it should not zero temp you after a bolus: bolus snooze will kick in, and it will wait to see what BG does.
@kws1969 a short press of the power button is supposed to do a graceful shutdown via acpid. not sure if that is working or not. if not, I've never seen problems on an Edison via a hard shutdown. another alternative is to plug in USB power while disconnecting the JST.
glenrob1940
@glenrob1940
Feb 12 2017 19:05
@scottleibrand Thanks I didn't know about edit mode allowing me to backtrack in time
Scott Leibrand
@scottleibrand
Feb 12 2017 19:07
now one challenge with that is it will be ignored if you originally entered the carbs via the bolus wizard. in that case, it's better to just add the missing COB with the bolus wizard and not try to edit.
GreatEscape
@GreatEscape
Feb 12 2017 19:08
Hi, wondering if anyone can point me in the right direction. I'm trying to flash jubilinux on my Edison. I'm seeing errors like
"Battery Over heat excption"
"Battery0 temperature outside boundary"
"Failed to start Load Kernel Modules" and
"request f63d2900 was not queued to ep6in-bulk"
kws1969
@kws1969
Feb 12 2017 19:08
Oh thanks I never thought about doing that. 👍. Yea being new I just didn't know if it would corrupt the files. 😎
ig888ack
@ig888ack
Feb 12 2017 19:09
Hi everyone, quick question...I'm going through the docs and I'm on http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/troubleshooting-loop.html#what-should-bg-target-range-be - It talks about setting the target BG range...is that done on the pump or on your OpenAPS? I looked through the preferences.json but didn't see it there.
Scott Leibrand
@scottleibrand
Feb 12 2017 19:09
@kws1969 on a Pi file system corruption is a real concern. doesn't seem to be on the Edison
@ig888ack that's done in the pump bolus wizard setup. please submit a PR if you think the docs should be clearer there.
kws1969
@kws1969
Feb 12 2017 19:10
Oh thank goodness. My 2500 is coming Tuesday. 👍😎
Scott Leibrand
@scottleibrand
Feb 12 2017 19:10
@GreatEscape the kernel modules one is normal, and I wouldn't worry about the ep6in-bulk one unless it's the last thing it says before stopping the boot process. not sure what to make of the heat/temp ones: Is the Edison physically hot to the touch?
alternateal
@alternateal
Feb 12 2017 19:11
Been trying to get Pancreabble running on latest version of master on Edison with Explorer. I have the pebble connected on bluetooth and I can pass notifications to it, but can't seem to get urchin to work effectively. This is the error messages that I get....any suggestions
pbbl://JSON/format_urchin_data/upload/urchin-data.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/root/.local/lib/python2.7/site-packages/pancreabble/urchin.py", line 123, in main
    cgm_history = json.loads(open(args.glucose_history).read())
IOError: [Errno 2] No such file or directory: 'monitor/glucose-unzoned.json'
ig888ack
@ig888ack
Feb 12 2017 19:12
@scottleibrand Will do, thanks!
Scott Leibrand
@scottleibrand
Feb 12 2017 19:13
@alternateal I think that is a file used only in the MDT setup. You or someone using Pancreabble with Dexcom will need to figure out how to fix the oref0-setup aliases to correct that, and hopefully PR in a fix.
GreatEscape
@GreatEscape
Feb 12 2017 19:13
@scottleibrand - thanks, yes the edison is fairly warm
alternateal
@alternateal
Feb 12 2017 19:13
@scottleibrand I will keep playing then - been winding me up for two days :-(
Scott Leibrand
@scottleibrand
Feb 12 2017 19:19
@greatescape "fairly warm" shouldn't be a problem. the cutoff temperature for the CPU (well inside) is 90C. One of my rigs is 76C right now, but they usually run closer to 60C.
katie disimone
@Kdisimone
Feb 12 2017 19:19
@GreatEscape do you have your Edison sitting close on the explorer board? Twice I've gotten those same errors. I suspect it is actually the explorer board getting too hot (I'm hoping new explorer board design will resolve this with the new regulator) and that heat going into the Edison board. As a result of mine doing that, I no longer rubber band my Edison and explorer board together. I let them stay a little apart
GreatEscape
@GreatEscape
Feb 12 2017 19:19
@scottleibrand should I have the battery plugged in while flashing? I don't currently. Although, when I did plug the battery in that didn't help. Searching I saw that maybe I should plug it into the wall.
katie disimone
@Kdisimone
Feb 12 2017 19:20
Sorry...battery and board together.
GreatEscape
@GreatEscape
Feb 12 2017 19:20
@Kdisimone I don't have screws in it yet but there is a gap between the board and the edison
katie disimone
@Kdisimone
Feb 12 2017 19:20
And yes...it's when battery is chArging that it has happened
Scott Leibrand
@scottleibrand
Feb 12 2017 19:20
@GreatEscape you can try plugging in the battery, but it shouldn't make a difference for ability to flash. as @Kdisimone mentioned, most of the heat issues come from charging the battery. once it's fully charged the Explorer board doesn't generate much heat
kws1969
@kws1969
Feb 12 2017 19:21
i had the same issure on last three flashes to but they seemed to work themseves out.
GreatEscape
@GreatEscape
Feb 12 2017 19:22
I also see a bunch of "failed reading register messages". Before the "Battery Over heat exception" there is another one that says "Error reading battery profile from battid frmwrk"
Scott Leibrand
@scottleibrand
Feb 12 2017 19:23
none of those should be problems. ignore the warnings, and focus on what it's doing: is it rebooting over and over? is it getting to a certain point and stopping?
GreatEscape
@GreatEscape
Feb 12 2017 19:24
Thanks @scottleibrand - I will go through it again and pinpoint where it stops. It typically rebooting about three times and then stopping
Lukasz Kaniowski
@lukasz-kaniowski
Feb 12 2017 19:24

@scottleibrand I have brand new installation. I couldn't flash jubilinux for some reason so I've flashed ubilinux instead and followed instructions to update it more or less same way that jubilinux was created.

One thing after I applied oref setup script with bt_mac option and I try to execute bt-pan I had errors about missing dbus so I've installed it apt-get install python-dbus

GreatEscape
@GreatEscape
Feb 12 2017 19:25
what is the best way to copy the messages so that they appear nicely formatted on black here in gitter
Scott Leibrand
@scottleibrand
Feb 12 2017 19:25
@GreatEscape also, re-read the troubleshooting section of the docs, particularly on rescue mode.
GreatEscape
@GreatEscape
Feb 12 2017 19:25
yes, ok i'll look at the rescue mode section again
Scott Leibrand
@scottleibrand
Feb 12 2017 19:26
you can insert three backticks (`, the same key as ~) on their own line, hit shift-enter, paste, shift-enter again, and then three more backticks
GreatEscape
@GreatEscape
Feb 12 2017 19:26
thanks Scott
hilarykoch
@hilarykoch
Feb 12 2017 19:26
First night with OpenAPS ok. Our wireless upstairs always works with our phones, tablets, computers, but when my son went to bed, the rig immediately started using his phone as a hotspot. Any tips on fixing this?
Lukasz Kaniowski
@lukasz-kaniowski
Feb 12 2017 19:26
@kenstack so you have this line screen -S "brcm_patchram_plus" -d -m /usr/local/sbin/bluetooth_patchram.sh uncommented? seems that the oref setup script is commenting it out https://github.com/openaps/oref0/blob/master/bin/oref0-setup.sh#L436
kws1969
@kws1969
Feb 12 2017 19:27
I went through 10 flashes and finally just walked away from the computer for about an hour..lol.. sometimes it looks like its stuck and all the sudden it will start doing something again…just a thought im still new to this to
Scott Leibrand
@scottleibrand
Feb 12 2017 19:27
@hilarykoch check the network.log for that time period to see why it did that. less /var/log/openaps/network.log
hilarykoch
@hilarykoch
Feb 12 2017 19:27
Ok. On it! @scottleibrand
kenstack
@kenstack
Feb 12 2017 19:31
@lukasz-kaniowski my rigs only seem to work when that is running - I was commenting it out before and I got the same error you did - Id give it a try on boot and see what happens - when I started up a new edison with @scottleibrand oref0-setup (I had not used t before) Im pretty sure it was uncommented, but I could be wrong …
@lukasz-kaniowski are you in dev? I had used dev about a week ago
GreatEscape
@GreatEscape
Feb 12 2017 19:32
@scottleibrand - the docs mention this: "If you get an error that says 'Ready to receive application' on the Edison the problem is you don’t have enough power to properly boot up the Edison." Ready to receive application does appear at times. Does this imply that a success flash process should never receive this message? I thought that this is just what it says while it's waiting for a reboot in order to receive the flash.
Lukasz Kaniowski
@lukasz-kaniowski
Feb 12 2017 19:33
@kenstack on dev of oref?
kenstack
@kenstack
Feb 12 2017 19:40
@lukasz-kaniowski yes
Lukasz Kaniowski
@lukasz-kaniowski
Feb 12 2017 19:40

this is how my /etc/rc.local looks like

bluetooth_rfkill_event >/dev/null 2>&1 &
rfkill unblock bluetooth
bluetoothd &

I will experiment with it as I'm not sure if this is correct, i.e. i think I should be using /usr/local/bin/bluetoothd --experimental & instead of bluetoothd

hilarykoch
@hilarykoch
Feb 12 2017 19:41
@scottleibrand It’s all Greek to me.
Scott Leibrand
@scottleibrand
Feb 12 2017 19:41
@GreatEscape I think you are correct. If it gets stuck at 'Ready to receive application' that could indicate that the last flash was incorrect. But it will fly by every boot. Might want to PR to clarify that
hilarykoch
@hilarykoch
Feb 12 2017 19:41
Screen Shot 2017-02-12 at 2.40.13 PM.png
kenstack
@kenstack
Feb 12 2017 19:41
@lukasz-kaniowski yes but that didnt seem to effect anything for me - the ke for me was the bcrm
key
Scott Leibrand
@scottleibrand
Feb 12 2017 19:42
@hilarykoch That is indicating it's on wifi and getting good Internet via RoadRunner (your cable co)
Lukasz Kaniowski
@lukasz-kaniowski
Feb 12 2017 19:42
@kenstack git status indicates that I'm in master branch so I guess not
hilarykoch
@hilarykoch
Feb 12 2017 19:42
@scottleibrand Is that for right now? Or is that for last night?
Scott Leibrand
@scottleibrand
Feb 12 2017 19:42
neither: that's 10 days ago
kenstack
@kenstack
Feb 12 2017 19:43
@lukasz-kaniowski Im not really famillar iwh the differences but was just letting you know what I did - for a test uncomment it and reboot - see if you can get a non error bt-pan after that
hilarykoch
@hilarykoch
Feb 12 2017 19:43
oh. weird. Ok. So if it connects upstairs via hotspot, then the iphone isn’t using wireless, rather data, right?
Scott Leibrand
@scottleibrand
Feb 12 2017 19:43
@hilarykoch you can use the PgDn key to scroll down quickly, or do something like /Feb 12 to search for today's logs
Dana Lewis
@danamlewis
Feb 12 2017 19:43
@lukasz-kaniowski @kenstack we did a release on 2/7 so Bluetooth is in master now if you pulled master after that
hilarykoch
@hilarykoch
Feb 12 2017 19:43
Ok
Scott Leibrand
@scottleibrand
Feb 12 2017 19:44
or it might be faster to do G (capitalized) to go to the end (now) and scroll up with PgUp
kenstack
@kenstack
Feb 12 2017 19:44
@danamlewis can you check your rc.local and see if bcrm is uncommented? That is what worked for me to get past the famous bt-pan error
Scott Leibrand
@scottleibrand
Feb 12 2017 19:45
# grep brcm /etc/rc.local
screen -S "brcm_patchram_plus" -d -m /usr/local/sbin/bluetooth_patchram.sh
we didn't do anything manually, just used oref0-setup
(I highly recommend that approach for Bluetooth: re-flash your rig and follow the directions exactly)
once you have Bluetooth working you can do your own customizations
hilarykoch
@hilarykoch
Feb 12 2017 19:46
Screen Shot 2017-02-12 at 2.45.16 PM.png
Ok, so I can see the change to Hotspot last night. @scottleibrand
Scott Leibrand
@scottleibrand
Feb 12 2017 19:51
@hilarykoch yep. Looks like you had a glitch and couldn't reach the Internet over wifi, so it tried Bluetooth. does it ever switch back to wifi after that?
hilarykoch
@hilarykoch
Feb 12 2017 19:53
@scottleibrand Yes, once he woke up and came back downstairs. All our other devices used wifi upstairs though.
katie disimone
@Kdisimone
Feb 12 2017 19:54
@hilarykoch @scottleibrand I have another family that seems to have the same issue. Rig picks up onto hotspot due to what seems like a temporary wifi issue on home network, and then won’t hop back off when it is resolved. They haven’t done a lot of troubleshooting for it yet though.
Dana Lewis
@danamlewis
Feb 12 2017 19:57
Master or dev?
(And when was your rig last updated?)
hilarykoch
@hilarykoch
Feb 12 2017 19:58
@danamlewis Not sure if you’re talking to me… But updated last weekend and master.
Dana Lewis
@danamlewis
Feb 12 2017 19:59
K. Before 2/7 evening?
(Yes, and Katie, too)
hilarykoch
@hilarykoch
Feb 12 2017 19:59
Yes.
2/4
Dana Lewis
@danamlewis
Feb 12 2017 20:00
Wondering if some of the wifi fixes we did in patch release 2/7 are best fix for this or something else. @Kdisimone also plz let me know what branch.
katie disimone
@Kdisimone
Feb 12 2017 20:00
Master branch 2/8
BUT….I will say, I am asking the mom to figure out whether she may have a firewall installed. So…i’m not hanging 100% of my hat that she has a good upstairs wifi for rig to go to yet.
She has some computer tech guys coming to her house on tuesday to check (they had a company setup their wifi networks at home)
Dana Lewis
@danamlewis
Feb 12 2017 20:02
Ok @hilarykoch might be worth updating, might be something else we will need to do but getting the freshest master won't hurt in meantime. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/update-your-rig.html (and after you do that and rerun setup remember to reset maxiob etc)
hilarykoch
@hilarykoch
Feb 12 2017 20:04
@danamlewis Will do right now. And report back later.
Dana Lewis
@danamlewis
Feb 12 2017 20:05
:+1: great. And will check later and see what else we can test for the wifi switchback. But, I am glad it successfully got hotspot vs no connectivity at all :smile:
kenstack
@kenstack
Feb 12 2017 20:06
@scottleibrand @danamlewis that's what I thought - so I've tested it with and without that running - I get the bt-pan error when it's not running from rc.local but it's been rock solid since it has - and I totally agree @scottleibrand your suggestion of running a "minimal" oref0 setup that included bluez etc then customization after was the right call - thanks ! Now the kid doesn't have to remember to turn the hotspot on anymore :)
Dana Lewis
@danamlewis
Feb 12 2017 20:06
:+1: it's soooooo nice
Scott Leibrand
@scottleibrand
Feb 12 2017 20:14
:+1: @kenstack
joannestevens
@joannestevens
Feb 12 2017 20:18

root@ubilinux:~# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
root@ubilinux:~# vi /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/wpa_supplicant/wpa_supplicant.conf" 7L, 110C written
root@ubilinux:~# vi /etc/network/interfaces

interfaces(5) file used by ifup(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 wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

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

auto wlan0

iface wlan0 inet static

address 192.168.42.1

netmask 255.255.255.0

~
~
~
~
"/etc/network/interfaces" 19L, 408C 1,1 All

Can someone please tell me if the above looks correct? I can't see any errors in it?
Scott Leibrand
@scottleibrand
Feb 12 2017 20:22
you didn't add any networks to your wpa_supplicant.conf yet
joannestevens
@joannestevens
Feb 12 2017 20:25
@scottleibrand, yes I have done that
hilarykoch
@hilarykoch
Feb 12 2017 20:26
there used to be a frequency for mmeowlink in the “read the docs.” I can’t find it now. It’s probably right in front of my nose. Anyone got a link to it?
katie disimone
@Kdisimone
Feb 12 2017 20:27

root@ubilinux:~# vi /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/wpa_supplicant/wpa_supplicant.conf" 7L, 110C written

That’s an empty network list. Doesn’t look like you added any wifi networks @joannestevens

joannestevens
@joannestevens
Feb 12 2017 20:29

root@ubilinux:~# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
root@ubilinux:~# vi /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

network={
ssid=BTHub5-RP8T
psk=86489293cf
}

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/wpa_supplicant/wpa_supplicant.conf" 7L, 110C written
root@ubilinux:~# vi /etc/network/interfaces

interfaces(5) file used by ifup(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 wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

~
~
~
~
~
~
~
~
~
"/etc/network/interfaces" 14L, 260C written
root@ubilinux:~# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
root@ubilinux:~# reboot
[ OK ] Stopped target Bluetooth.
[ OK ] Removed slice system-systemd\x2dfsck.slice.
Stopping User Manager for UID 0...
[ OK ] Stopped target Multi-User System.
Stopping OpenBSD Secure Shell server...
Stopping Regular background program processing daemon...
[ OK ] Stopped target Login Prompts.
Stopping Getty on tty1...
Stopping Serial Getty on ttyMFD2...
Stopping LSB: Start busybox udhcpd at boot time...
Stopping LSB: Advanced IEEE 802.11 management daemon...
Stopping LSB: Start NTP daemon...
Stopping LSB: Run /etc/init.d/galileod.sh if it exist...
Stopping Avahi mDNS/DNS-SD Stack...
Stopping D-Bus System Message Bus...
Stopping System Logging Service...
[ OK ] Stopped OpenBSD Secure Shell server.
[ OK ] Stopped Regular background program processing daemon.
[ OK ] Stopped Avahi mDNS/DNS-SD Stack.
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Serial Getty on ttyMFD2.
[ OK ] Stopped User Manager for UID 0.
[ OK ] Stopped LSB: Start busybox udhcpd at boot time.
[ OK ] Stopped LSB: Advanced IEEE 802.11 management daemon.
[ OK ] Stopped LSB: Start NTP daemon.
[ OK ] Stopped LSB: Run /etc/init.d/galileod.sh if it exist.
[ OK ] Stopped target Network is Online.
Stopping Login Service...
[ OK ] Removed slice user-0.slice.
[ OK ] Removed slice system-serial\x2dgetty.slice.
[ OK ] Removed slice system-getty.slice.
Stopping /etc/rc.local Compatibility...
Stopping Permit User Sessions...
[ OK ] Stopped Login Service.
[ OK ] Stopped /etc/rc.local Compatibility.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped target Remote File Systems (Pre).
[ OK ] Stopped target Network.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Slices.
[ OK ] Stopped target Paths.
[ OK ] Stopped target Timers.
[ OK ] Stopped target Sockets.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed Syslog Socket.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
Stopping Load/Save RF Kill Switch Status of rfkill3...
Stopping Load/Save RF Kill Switch Status of rfkill1...
Stopping Load/Save RF Kill Switch Status of rfkill2...
Stopping Load/Save RF Kill Switch Status of rfkill0...
Stopping Update UTMP about System Boot/Shutdown...
Stopping Apply Kernel Variables...
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped target Encrypted Volumes.
Stopping LSB: Raise network interfaces....
[ OK ] Stopped target Swap.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped Load/Save RF Kill Switch Status of rfkill3.
[ OK ] Stopped Load/Save RF Kill Switch Status of rfkill1.
[ OK ] Stopped Load/Save RF Kill Switch Status of rfkill2.
[ OK ] Stopped Load/Save RF Kill Switch Status of rfkill0.
[

I can see it in there
katie disimone
@Kdisimone
Feb 12 2017 20:30

@joannestevens format of networks includes quotes as shown

network={
    ssid="my network"
    psk="my wifi password”
}

Edit your wpa_supplicant to add the quotes.

joannestevens
@joannestevens
Feb 12 2017 20:32
Ahh I took them out, thanks
Thanks @Kdisimone that's sorted it
Scott Leibrand
@scottleibrand
Feb 12 2017 20:37
You're not the first person to do that, so I suspect the docs are unclear on the need to include the quotes. Want to PR in a clarification?
hilarykoch
@hilarykoch
Feb 12 2017 20:38
please ignore previous question. I think if I’m using an explorer board, I do not need to enter a mmeowlink frequency.
joannestevens
@joannestevens
Feb 12 2017 20:39
@scottleibrand yes, no problem, will do
katie disimone
@Kdisimone
Feb 12 2017 20:44
@hilarykoch true
GreatEscape
@GreatEscape
Feb 12 2017 20:46
@scottleibrand - I've come a long way in the last half hour! Not sure what was going on, but your comment to ignore the warnings and errors helped I'm sure
I'm now on the setup and could use some on advice re: "what kind of CGM are you using"
we are in Canada using G4 and xdrip. Because I had been playing with Loop, I do have the xdrip sending data to dexcom servers
so I'm not sure if I choose G4, G4-raw or xdrip at this point
Dana Lewis
@danamlewis
Feb 12 2017 20:51
Xdrip if that's how you'll be getting data to Nightscout
G4 if you want to pull G4 via share server to Nightscout or plug in G4 received
GreatEscape
@GreatEscape
Feb 12 2017 20:53
okay thanks @danamlewis yes seems like i should go with xdrip
Matthias
@ceben80
Feb 12 2017 21:00
@GreatEscape but keep in mind choosing xdrip the BGs were locally uploaded from xdrip to your rig, the BGs don't come from nightscout, but this is all mentioned in rtd
GreatEscape
@GreatEscape
Feb 12 2017 21:04
@ceben80 - is that an advantage to have BGs locally uploaded rather then from nightscout? I'm thinking xdrip will feed that data to the openaps rig and also nightscout?
another Q - "for BT tethering enter phone mac id" - is this the wifi Mac ID displayed in phone settings or the Bluetooth ID I included when starting the script
Matthias
@ceben80
Feb 12 2017 21:10
In case you don't have internet, yes, we are talking here from xdrip-offline component, but it's written in the documentation, rtd (read the doc) :wink: - good night from Germany
John Benjamin
@Bender1061
Feb 12 2017 21:10
@GreatEscape it's the bluetooth mac ID from your phone that you included when starting the script
GreatEscape
@GreatEscape
Feb 12 2017 21:11
@Bender1061 thanks! doh! I thought it must be the wifi Mac ID
I will re-run
@ceben80 good night to you - i will read through that part of the docs again
John Benjamin
@Bender1061
Feb 12 2017 21:31
So something I've been using that I find extremely helpful is using the .bash_profile to put in commands that I run most often (mostly the logging strings) so when I'm out and about, I can view my logs without having to type a long string on my phones terminal program.
does anyone think this might be a good idea to add all the logs defaultly using oref0-setup, or just something we might want to add to the docs?
Dana Lewis
@danamlewis
Feb 12 2017 21:39
Please write up a how to for docs, I added l for logs and wifi for everyone in the last release (2/7 patch release to master)
John Benjamin
@Bender1061
Feb 12 2017 21:47
I'm a little confused on your docs, are you saying you've already added the pump-loop.log in with the l command?
or is that supposed to be a 1 (one) vs Lowercase L
katie disimone
@Kdisimone
Feb 12 2017 21:49
@Bender1061 she did!
It's in the master branch now. And it is great
John Benjamin
@Bender1061
Feb 12 2017 21:49
where is that added in? was it in the oref0-setup?
katie disimone
@Kdisimone
Feb 12 2017 21:50
I'd look through the commits to see...not sure off top of my head
openaps/oref0@7aa485f
John Benjamin
@Bender1061
Feb 12 2017 21:55
yeah I just found it, she made it as a .sh and added it to packages. Not a bad way to go about it, but seems like a lot more work than just added attached to the .bash_profile
alias autosens-loop=" tail -f /var/log/openaps/autosens-loop.log"
alias autotune=" tail -f /var/log/openaps/autotune.log"
alias network=" tail -f /var/log/openaps/network.log"
alias ns-loop=" tail -f /var/log/openaps/ns-loop.log"
alias pump-loop=" tail -f /var/log/openaps/pump-loop.log"
alias urchin-loop=" tail -f /var/log/openaps/pump-loop.log"
katie disimone
@Kdisimone
Feb 12 2017 21:56
Can you show me how you’ve been doing it?
Doooh
John Benjamin
@Bender1061
Feb 12 2017 21:57
do nano .bash_profile and then add any alias you want
katie disimone
@Kdisimone
Feb 12 2017 21:57
Just had a synapse start working. I could edit out my brain fart, but that would be silly
John Benjamin
@Bender1061
Feb 12 2017 21:58
I'll add it to the docs my way, not that there is anything bad about Dana's way, always plenty of ways to skin a cat
you may need to run before the change starts working source ~/.bash_profile
Dana Lewis
@danamlewis
Feb 12 2017 22:00
:+1:
I like that ways that make it work :smile:
Ps well done @Kdisimone digging up commit history
John Benjamin
@Bender1061
Feb 12 2017 22:00
it's always good about seeing how others do things, you tend to learn a lot that way as well
katie disimone
@Kdisimone
Feb 12 2017 22:01
that’s my entire way of learning right now.
Dana Lewis
@danamlewis
Feb 12 2017 22:10
:+1: me too
Scott Leibrand
@scottleibrand
Feb 12 2017 22:13
@Bender1061 the main disadvantage with the .bash_profile method is it's harder to automate
John Benjamin
@Bender1061
Feb 12 2017 22:17
@scottleibrand yeah if I was to add it to the script I would be using grep first, so check if it's not already there before writing to it.
joannestevens
@joannestevens
Feb 12 2017 22:18
OK, being thick here I know - trying to tether the explorer to my phone - Bluetooth or MAC address?
John Benjamin
@Bender1061
Feb 12 2017 22:20
every device has a mac address. if you have wifi or bluetooth you have a mac address for both devices in your phone.
as for when you are running the script, you need the blueooth mac address for your phone when you run oref0-setup
joannestevens
@joannestevens
Feb 12 2017 22:21
Thanks - docs aren't too clear.
Dana Lewis
@danamlewis
Feb 12 2017 22:23
PR to clarify then please :smile:
GreatEscape
@GreatEscape
Feb 12 2017 22:25
@danamlewis this is where I was confused earlier too. The best place to fix this would be in the setup script to state "bluetooth MAC" instead of just "MAC". I just tried my first PR of the docs for something else but not sure how to PR a suggestion for the setup script
Dana Lewis
@danamlewis
Feb 12 2017 22:27
You can do a pr the same way for the setup script code :smile:
GreatEscape
@GreatEscape
Feb 12 2017 22:33
@danamlewis I'm willing to give doing a PR of the setup script a shot based on the instructions for a PR of the docs. But I'm looking for the script in github and not seeing it. Can you paste the github URL and then I'll try to take it from there?
@GreatEscape It is in the oref0 repo
GreatEscape
@GreatEscape
Feb 12 2017 22:38
okay @Kdisimone I guess I wasn't too far off, i was looking in lib, not bin
GreatEscape
@GreatEscape
Feb 12 2017 22:43
@Kdisimone re: creating PRs. After creating the pull request, the doc says: "The edit will now be in a list of PR’s that the team will review and potentially give feedback on before committing to the main documentation for openaps!"
But I'm a bit confused by what the second part of the PR doc is trying to instruct me on.
Scott Leibrand
@scottleibrand
Feb 12 2017 22:44
@Bender1061 yeah, that would probably work to do in oref0-setup
GreatEscape
@GreatEscape
Feb 12 2017 22:44
http://openaps.readthedocs.io/en/latest/docs/Resources/my-first-pr.html -- the part after -- "Congrats, you made your first contribution!"
katie disimone
@Kdisimone
Feb 12 2017 22:45
It’s just saying that scott and dana will review the changes. If they have something to add, they will leave a comment that you’ll be notified of. Sometimes the PR might not be accepted if new info contradicts the PR changes or such...
GreatEscape
@GreatEscape
Feb 12 2017 22:47
@Kdisimone After I've made the Pull Request, the doc continues after the "Congrats" to say
Go to https://github.com/[YOUR_GITHUB_USERNAME]/docs
1) Click the “New pull request” button
..
5) Click the green “Create pull request” button.
6) Click the green “Create pull request” button.
I'm confused why I'm instructed to create more pull requests after I've submitted the suggested change
katie disimone
@Kdisimone
Feb 12 2017 22:52
@GreatEscape I’m not sure I’m seeing the same thing that you are when I do that…but then again, I’m a little used to seeing those screens now so maybe it’s there and I don’t notice. I’ll look for it when I make my next PR and see if I see the same thing.
Sacha M
@coolestkidsever
Feb 12 2017 22:54
@GreatEscape I noticed the same thing the other day
John Benjamin
@Bender1061
Feb 12 2017 22:54
yeah git is the bane of our existence
think @scottleibrand has a comic that pretty much sums it up
katie disimone
@Kdisimone
Feb 12 2017 22:56
@GreatEscape @coolestkidsever I see where you are now. Yes…I suppose that is a little confusing. The second part is about the Compare tool. That is not included in the first part.
joannestevens
@joannestevens
Feb 12 2017 22:58
@danamlewis - will do tomorrow, bedtime here. Thanks all, I am now looping with the explorer board :smile:
katie disimone
@Kdisimone
Feb 12 2017 23:00

That said…there is a much easier way to do PRs in general and maybe that could be my next PR (I hear @danamlewis saying that already).

The confusion (I’ve already made this mistake before), is that if you make edits to YOUR repo in the master branch that you don’t necessarily want to commit to the OpenAPS docs master branch…the compare and PR may bring in more than you intended.

The easiest way to make a PR is to

  1. Fork a copy of the repo into your GitHub.
  2. Start edits in the openaps repo (not yours) and when you do that it will prompt you that you aren’t allowed to edit directly in the openaps repo. Therefore it will create a separate branch in YOUR repo specifically for that PR.
  3. Make your edits.
  4. Click the button to create the PR and it will automatically put your new branch in the head and openaps in the base.
  5. You can delete the branch in your repo once the PR has been merged.

Periodically I will update (using that compare tool) my own repo…but this doesn’t REQUIRE me to do that. And creates a PR pretty cleanly from the most current version of the docs.

Scott Leibrand
@scottleibrand
Feb 12 2017 23:00
@Bender1061 is talking about: https://xkcd.com/1597/
GreatEscape
@GreatEscape
Feb 12 2017 23:04
@Kdisimone - interesting - sounds like a simpler approach. I'm going to copy that down for the next time I want to try one.
John Benjamin
@Bender1061
Feb 12 2017 23:08
@Kdisimone yeah I always fork or update my fork first then make changes and do the PR, it's much easier to keep track of in my opinion.
and @scottleibrand yep that's it, it just explains git so simply!
Scott Leibrand
@scottleibrand
Feb 12 2017 23:08
@Kdisimone :+1: to updating the PR instructions to use that method. I think @Aaybob had to figure that out the hard way, and probably would've had an easier time if the docs had your method.
katie disimone
@Kdisimone
Feb 12 2017 23:09
this way @Bender1061 is much easier than updating your fork each time. And for me, I have some added documents that I don’t want merged in. So this is a great way to create the branch passively
@scottleibrand adding it now...
Darrell Wright
@beached
Feb 12 2017 23:10
git reset --hard
Unless its untracked files at issue
Scott Leibrand
@scottleibrand
Feb 12 2017 23:12
@Kdisimone is talking about making it easy for people who would rather never run command-line git at all
for docs, you shouldn't have to
GreatEscape
@GreatEscape
Feb 12 2017 23:14
@Kdisimone if you are updating the my first PR documentation, I think the simpler you can make a PR seem the more people will take a few seconds to submit a clarification suggestion. So if there is something optional like the comparison tool, maybe move those steps to the next page or make it clear they are optional
katie disimone
@Kdisimone
Feb 12 2017 23:14
:+1:
Sacha M
@coolestkidsever
Feb 12 2017 23:16

Hi all, I've moved over to Heroku app, but haven't been able to get OpenAPS running since, I've run oref0 setup, with the new info (a few times). The trial pump is next to teh Pi, but I don't have any data going in as the PWD is at school.. Long story long, but is the error I'm getting due to the fact that the pump isn't getting any data, or a setup error I haven't resolved yet? (wondering whether to leave it alone for now or not)

error is:

Starting pump-loop at Mon 13 Feb 12:13:23 NZDT 2017:
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
MDT cgm data retrieveError, retrying

hilarykoch
@hilarykoch
Feb 12 2017 23:25
@danamlewis @Kdisimone We updated the master branch. I had Leo run upstairs to different rooms and wireless kept working! I'll monitor tonight just to verify, but I think the update might be the fix to that hotspot issue. :smile:
Dana Lewis
@danamlewis
Feb 12 2017 23:25
nice job on all the PRs, everyone!
@hilarykoch oh great! thanks for confirming :) please let us know if you do see it again (and check the log), and we can do other troubleshooting/fixing if needed
hilarykoch
@hilarykoch
Feb 12 2017 23:26
@danamlewis Will do!
RedCyclist1
@RedCyclist1
Feb 12 2017 23:42
@hilarykoch I tried to move nightscout from Azure to Heroku yesterday and could never get it to load. It told me the status was not loaded on the profile manager page. Any ideas how to troubleshoot it or should I just delete the app and start over?
hilarykoch
@hilarykoch
Feb 12 2017 23:48
@RedCyclist1 I'm actually not very familiar with moving from Azure to Heroku. Ive always used Heroku. I'd say only ever delete and start again as a last resort. Think someone made a great doc on this. @Kdisimone did you make that?
RedCyclist1
@RedCyclist1
Feb 12 2017 23:51
Thnaks @hilarykoch I followed Kate's pdf but obviously did something wrong. I will probably dive in again tomorrow and see if I can find my error.
Sacha M
@coolestkidsever
Feb 12 2017 23:53
@RedCyclist1 I've just moved over from Azure to Heroku in the last 2 days, so still fresh in memory. I've got NS working on Heroku but not openAPS. How far have you gotten?
RedCyclist1
@RedCyclist1
Feb 12 2017 23:54
@coolestkidsever I got to the end but when I click on open app I just get a black ns screen with the 2 lines and it doesn't let me edit anything.
Sacha M
@coolestkidsever
Feb 12 2017 23:56
Did you add in all the variables (connection strings) from Azure that you have, into Heroku?
and did you include your mongo dbase string (to pick up your old data)
RedCyclist1
@RedCyclist1
Feb 12 2017 23:57
Yes
Did you disconnect your azure site from ns? I didn't want to do that until I got heroku up and running.