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

26th
Jan 2017
Brian Rabinovitz
@bdr1177
Jan 26 2017 00:15

Edison is working on my home wifi, but I can't get it to work on the school wifi. I edited /etc/wpa_supplicant/wpa_supplicant.conf according to the openaps instructions and the file now says:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={ ssid="example1" psk="example_password1" } network={ ssid="example2" psk="example_password2" }

Is there anything obviously wrong with this or does anyone have ideas on why the edison won't connect to the second?

John Benjamin
@Bender1061
Jan 26 2017 00:49
So an interesting one, if you are running completely offline for a week, when you get back to the world of internet and you are using MDT, you need to run openaps first-upload in order for nightscout to start working again. yeah I've been struggling with that the past two days!
Wonder if there is a good way to automate that? but I need to find a way to put that in the docs too
Dana Lewis
@danamlewis
Jan 26 2017 01:11
hey @ohbrandon and @JaysonEwer - are you both on dev branch of Nightscout? hearing that it’s being problematic today for a few other people…wondering if ya’ll are on dev or master.
Matt Pressnall
@logichammer
Jan 26 2017 01:39
Anyone know what a super fast red flashing light on the Explorer board means? Did I win a prize? Can't ssh into it via direct serial connection over Putty...I think I should have protected it more.
Dana Lewis
@danamlewis
Jan 26 2017 02:02
@Kdisimone per our convo, I just updated the language and bolded a Note: to draw attention, but this section could probably be improved overall to help make the understanding clear that NS draws values from the pump. (exception is temp targets if the rig is connected to internet, but everything else is pump-driven) http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/nightscout-setup.html#configure-nightscout-profile
@bender1061 thanks for the PR for camping mode. I’ve been meaning to re-do the offline monitoring section, so that was a good impetus for having me do it :) http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/offline-looping-and-monitoring.html (@colinlennon if you’re ready, you could create a PR targeting putting the x-drip content as a section under the Pancreabble content on this page, or as a sub-page in the offline-looping-and-monitoring section… thoughts? or let me know if you want me to kick off the PR)
John Benjamin
@Bender1061
Jan 26 2017 02:07
@danamlewis np, hey did you ever get your bluetooth tether working yet? cause that has been working so well from all my rigs, and It's nice going all day while away from home and not having to worry about my phone battery draining. And it's strange you of all people have been having problems with it.
Dana Lewis
@danamlewis
Jan 26 2017 02:08
@Bender1061 no, haven’t gotten it working yet - tried multiple rigs, my phone, scott’s phone…no go. :( even with Aaybob’s additional instructions, still no go.
It sounds like it’s awesome when it works :D
May try with a freshly flashed Edison, etc. to start over and see if that makes a difference somehow
John Benjamin
@Bender1061
Jan 26 2017 02:22
couple questions,
1, on your edison, when you go to bluetoothctl, and type in paired-devices does your iphone show up there?
2, on your iphone does it show your edison as a paired device? (it will say "Not Connected" until the bt-pan is running)
3, on your iphone turn off the wifi, and go to personal hotspot and turn it off and then turn it back on, it will prompt you to either turn on wifi or run in bluetooth and USB only (push the later).
4, now if the first two were a yes and you've done step 3. and your crontab shows your phones mac address on the
```
* * * * * ps aux | grep -v grep | grep -q "oref0-online 24:F0:94:19:D2:0D" 
and the
* * * * * ps aux | grep -v grep | grep -q "oref0-bluetoothup 24:F0:94:19:D2:0D"
lines
this would be the time to take a walk, or shut off your home wifi
katie disimone
@Kdisimone
Jan 26 2017 02:24
@bdr1177 did you get the edison cleared to be connected by the school? My kid’s school needed the MAC address of the edison and then they cleared it to connect and upload/download.
Dana Lewis
@danamlewis
Jan 26 2017 02:25
1 - yep 2- yep
in the middle of something else right now so will have to test more later
John Benjamin
@Bender1061
Jan 26 2017 02:25
ok, let me know
Brian Rabinovitz
@bdr1177
Jan 26 2017 02:53
@Kdisimone No I haven't done that. It's a "guest" wifi signal, so I assumed it was completely open. We've connected phones and computers many times without any problems. Is there something about the edison that would cause the wifi to not allow it to connect?
apabari
@apabari
Jan 26 2017 02:56
Hello! Quick question... I'm just going through and trying to re-set up an OpenAPS instance (had one, then switched to loop, and now setting up OpenAPS again), and I'm using the instructions here: http://openaps.readthedocs.io/en/master/docs/walkthrough/phase-0/setup-edison.html
On the step that says cd ~/src/oref0/ && npm run global-install, I get this error message:
root@EdisonAPS:~/src# cd ~/src/oref0/ && npm run global-install -bash: npm: command not found
Do I need to do something special to 'install' npm?
katie disimone
@Kdisimone
Jan 26 2017 02:58
@bdr1177 I don’t know the details of what or why…but yes I would suspect you will need to get some IT support form the school to add the edison. At my kid’s school all our devices can connect and do most internet stuff just fine on their wifi. BUT, our kid’s iphone was not allowed to upload to dexcom servers until we got it cleared (phone worked fine otherwise on their wifi). And for the edison it definitely wouldn’t even connect (sat in the parking lot with a laptop and terminal open to watch in fact). I got the MAC address and called the school the next day. They worked it out and added the edison. Only took a minute for them to do it, once we’d found the MAC
Dana Lewis
@danamlewis
Jan 26 2017 02:59
@apabari heya! I think it’s in quick packages?
apabari
@apabari
Jan 26 2017 03:02
@danamlewis -thanks! I see that now. I will put in a request to update the documentation.... I'm going through from scratch and I don't think that's listed anywhere. :) Thank you - it's installing now! :)
Dana Lewis
@danamlewis
Jan 26 2017 03:02
perfect - thanks for PRing! that page needs the most love, so please PR early and often :D
ohh. I found the problem.
the bluetooth section needs to get moved.
we keep talking about that, need to do it
apabari
@apabari
Jan 26 2017 03:07
Ahh... okay... so should I not go through those steps for BT just yet?
Dana Lewis
@danamlewis
Jan 26 2017 03:08
that’s hit or miss - some people get working, some people don’t. so you can try it, but I still don’t have it working so if it doesn’t work I wouldn’t let that slow you down from moving forward, and come back later after your rig is done
apabari
@apabari
Jan 26 2017 03:08
Will do! Thanks :)
Dana Lewis
@danamlewis
Jan 26 2017 03:08
:+1: going now to move that section
Brian Rabinovitz
@bdr1177
Jan 26 2017 03:09
@Kdisimone Got it. I was going to try the same thing with a laptop in the parking lot. If that doesn't work, I'll ask about specifically allowing the MAC address.
@danamlewis If I enable autosens, does it "look back" at historical data from before it was enabled, or does it only begin collecting data once it is enabled?
Dana Lewis
@danamlewis
Jan 26 2017 03:11
@bdr1177 autosens looks at 24h of data, so as soon as you turn it on it’ll start parsing the last 24h...
Brian Rabinovitz
@bdr1177
Jan 26 2017 03:12
@danamlewis Great. Thanks!
katie disimone
@Kdisimone
Jan 26 2017 03:13
@bdr1177 I took the long road to the MAC address, but it is printed on the little plastic box the edison was packed in.
Brian Rabinovitz
@bdr1177
Jan 26 2017 03:13
@Kdisimone Thanks for the tip!
Matt Walker
@walker0
Jan 26 2017 03:16
@bdr1177 you can also just run ifconfig -a and the mac address will be printed as part of that message
Dana Lewis
@danamlewis
Jan 26 2017 03:17
Ok: bluetooth tethering is now properly out of the phase 0 edison setup stuff. Now as part of Phase 4. (High level view of phase 4: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/index.html )(Specifically, the new bluetooth tethering page - same content, just moved: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/bluetooth-tethering-edison.html )
(heads up ^^ re bluetooth section moving to it’s own page, @Bender1061 @Aaybob @apabari and anyone else who’s been helping test and improve the bluetooth tethering instructions)
John Benjamin
@Bender1061
Jan 26 2017 03:22
Oooo Fancy, High Level stuff there!
Dana Lewis
@danamlewis
Jan 26 2017 03:23
:+1:
katie disimone
@Kdisimone
Jan 26 2017 03:32
If I’m running the tail -F /var/log/openaps/pump-loop.log and nothing seems to be getting rig back in action…what shall i try next?
Dana Lewis
@danamlewis
Jan 26 2017 03:33
reboot yet?
katie disimone
@Kdisimone
Jan 26 2017 03:34
I’ll try
j4cbo
@j4cbo
Jan 26 2017 03:36
got my dexcom :D
Dana Lewis
@danamlewis
Jan 26 2017 03:36
@j4cbo woohoo! :)
j4cbo
@j4cbo
Jan 26 2017 03:37
now to figure out the state of xDrip-G5
apabari
@apabari
Jan 26 2017 03:40
Hmmm.... a little confused! Just ran the script to set up my OpenAPS rig, and this is the error I'm seeing in the log....
root@EdisonAPS:~/myopenaps# tail -F /var/log/openaps/pump-loop.log return self.process( ) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 490, in proc ess raw = self.send_force_read( ) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 606, in send _force_read self.link.write(reader.format( )) File "/usr/local/lib/python2.7/dist-packages/decocare/link.py", line 47, in write r = self.serial.write( string ) File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 517, in write raise portNotOpenError serial.serialutil.SerialException: Attempting to use a port that is not open Starting pump-loop at Wed Jan 25 22:39:11 EST 2017: monitor/temp_basal.json raised Attempting to use a port that is not open pump://JSON/read_temp_basal/monitor/temp_basal.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 44, in __c all__ self.before_main(args, app) File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 6 1, in before_main self.setup_medtronic( ) File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 1 60, in setup_medtronic self.uart.open( ) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 874, in open log.info('%s' % self.product_info( )) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 515, in prod uct_info return self.query(ProductInfo) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 509, in quer y return self.process( ) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 490, in proc ess raw = self.send_force_read( ) File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 606, in send _force_read self.link.write(reader.format( )) File "/usr/local/lib/python2.7/dist-packages/decocare/link.py", line 47, in write r = self.serial.write( string ) File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 517, in write raise portNotOpenError serial.serialutil.SerialException: Attempting to use a port that is not open Error, retrying
Using an Explorer Board
Dana Lewis
@danamlewis
Jan 26 2017 03:41
what port did you tell it?
apabari
@apabari
Jan 26 2017 03:42
I didn't actually tell it a port... hmm... did I miss a step in the instructions? I don't remember being asked to tell it a port
Dana Lewis
@danamlewis
Jan 26 2017 03:42
for mmeowlink
did you read the “be prepared to enter the following items” text below that?
apabari
@apabari
Jan 26 2017 03:43
Okay, I see.... I assumed the mmeowlink was for the Pi setup when using the old TI stick; not for the Explorer board
my bad
Dana Lewis
@danamlewis
Jan 26 2017 03:44
@apabari there’s a note at the top of Step 2 that says Note: for explorer board users - PR welcome to clarify that text, because everyone (still) misses that, even with the port listed for explorer board in “be prepared to enter” section
apabari
@apabari
Jan 26 2017 03:46
:) Thank you... I feel less silly when hearing everyone misses that! I will try and issue a PR to make it clearer for folks like me.
Dana Lewis
@danamlewis
Jan 26 2017 03:46
:+1: we keep changing it and it's still the most-missed thing! Not sure what else to do at this point. But, easy fix at least :smile: to rerun script again
Dana Lewis
@danamlewis
Jan 26 2017 04:27
testing to see if gitter is back to normal speed. @scottleibrand @Kdisimone
seems like it on my end. phew.
katie disimone
@Kdisimone
Jan 26 2017 04:39
Yup
@danamlewis and @scottleibrand any ideas on why I’m still not looping? Connected to mifi well.
root@edisonhost:~# tail -f /var/log/syslog
Jan 25 20:38:01 edisonhost CRON[1146]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps ns-loop' || openaps ns-loop | tee -a /var/log/openaps/ns-loop.log)
Jan 25 20:38:01 edisonhost CRON[1145]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps autosens' || openaps autosens | tee -a /var/log/openaps/autosens-loop.log)
Jan 25 20:38:01 edisonhost CRON[1118]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:02 edisonhost CRON[1119]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:02 edisonhost CRON[1117]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:02 edisonhost CRON[1116]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:02 edisonhost CRON[1111]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:03 edisonhost CRON[1113]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:03 edisonhost CRON[1120]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:07 edisonhost CRON[1115]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:38:19 edisonhost SubgRfspyLink opening serial port
Jan 25 20:38:19 edisonhost libmraa[1314]: libmraa version v1.5.1-18-ge386300 initialised by user 'root' with EUID 0
Jan 25 20:38:19 edisonhost libmraa[1314]: gpio214: init: Failed to write to 'export': No such device
Jan 25 20:38:19 edisonhost libmraa[1314]: edison: Arduino board not detected, assuming Intel Edison Miniboard
Jan 25 20:38:19 edisonhost libmraa[1314]: libmraa initialised for platform 'Intel Edison' of type 2
Jan 25 20:38:19 edisonhost subg_rfspy status: OK
Jan 25 20:38:19 edisonhost Version: subg_rfspy 0.8
Jan 25 20:38:20 edisonhost Timed out or other comms error - Received an error response Timeout - retrying: 1 of 3
Jan 25 20:38:20 edisonhost Invalid Packet Received - 'Error decoding FourBySix packet' - retrying: 2 of 3
Jan 25 20:38:22 edisonhost Timed out or other comms error - Received an error response Timeout - retrying: 3 of 3
Jan 25 20:38:24 edisonhost BEGIN POWER CONTROL 538782
Jan 25 20:38:32 edisonhost 1485405512.08 - Response not received - retrying
Jan 25 20:38:33 edisonhost libmraa[1414]: libmraa version v1.5.1-18-ge386300 initialised by user 'root' with EUID 0
Jan 25 20:38:33 edisonhost libmraa[1414]: gpio214: init: Failed to write to 'export': No such device
Jan 25 20:38:33 edisonhost libmraa[1414]: edison: Arduino board not detected, assuming Intel Edison Miniboard
Jan 25 20:38:33 edisonhost libmraa[1414]: libmraa initialised for platform 'Intel Edison' of type 2
Jan 25 20:38:34 edisonhost libmraa[1418]: libmraa version v1.5.1-18-ge386300 initialised by user 'root' with EUID 0
Jan 25 20:38:34 edisonhost libmraa[1418]: gpio214: init: Failed to write to 'export': No such device
Jan 25 20:38:34 edisonhost libmraa[1418]: edison: Arduino board not detected, assuming Intel Edison Miniboard
Jan 25 20:38:34 edisonhost libmraa[1418]: libmraa initialised for platform 'Intel Edison' of type 2
Jan 25 20:38:37 edisonhost CRON[1114]: (CRON) info (No MTA installed, discarding output)
Jan 25 20:39:01 edisonhost CRON[1436]: (root) CMD (sudo wpa_cli scan)
Jan 25 20:39:01 edisonhost CRON[1440]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps autosens' || openaps autosens | tee -a /var/log/openaps/autosens-loop.log)
Jan 25 20:39:01 edisonhost CRON[1439]: (root) CMD (ps aux | grep -v grep | grep -q "oref0-online" || oref0-online >> /var/log/openaps/network.log)
Jan 25 20:39:01 edisonhost CRON[1442]: (root) CMD (cd /root/myopenaps && ( ps aux | grep -v grep | grep -q 'openaps pump-loop' || openaps pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log)
Jan 25 20:39:01 edisonhost CRON[1450]: (root) CMD (cd /root/myopenaps && oref0-truncate-git-history)
Jan 25 20:39:01 edisonhost CRON[1437]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps get-bg' || ( date; openaps get-bg ; cat cgm/glucose.j
I’m a little worried about the BEGIN POWER CONTROL message?
I’ve rebooted several times now
only other thing I notice is that the upbatt is also not showing in NS. I thought I may have had a bad battery wire earlier and switched out batteries. but new one doesn’t seem to get read either??
katie disimone
@Kdisimone
Jan 26 2017 04:54
OK, nm. I’ll just rebuild.
Aaron Michelson
@Aaybob
Jan 26 2017 04:56
@ejoe132 yes second video is an unedited version of the first. did you select download here? did you put the two compressed files in the same empty file folder?
Aaron Michelson
@Aaybob
Jan 26 2017 05:04
@danamlewis did you try "forgetting" the "my devices" before pairing? I would also try getting the latest jubilinux. I will test the latest bluez and then maybe we should move to that too afterwards.
Dana Lewis
@danamlewis
Jan 26 2017 05:05
Yes. Flashing another Edison later so we'll see how it goes
Aaron Michelson
@Aaybob
Jan 26 2017 05:10
@Kdisimonen 25 21:05:07 localhost BEGIN POWER CONTROL 148714
I got a line like that too. I think that output looks good.
katie disimone
@Kdisimone
Jan 26 2017 05:14
Possible my board is just bad?
the battery is not getting warm at all.
Aaron Michelson
@Aaybob
Jan 26 2017 05:15
One or two red lights?
katie disimone
@Kdisimone
Jan 26 2017 05:15
one
Aaron Michelson
@Aaybob
Jan 26 2017 05:16
battery is charged. It only gets warm during the second and last charging stage.
katie disimone
@Kdisimone
Jan 26 2017 05:16
ok.
good to know. thanks
Aaron Michelson
@Aaybob
Jan 26 2017 05:16
what did pump-loop.log show you?
katie disimone
@Kdisimone
Jan 26 2017 05:17
just now started to loop. whew
Aaron Michelson
@Aaybob
Jan 26 2017 05:17
sure....way to hang in there!
katie disimone
@Kdisimone
Jan 26 2017 05:17
Aaron…I’m not saavy on the commands yet…if you give me things to copy and paste, I’m good with that :smile:
Aaron Michelson
@Aaybob
Jan 26 2017 05:18
the commands are overwhelming for the first couple decades of useing them
katie disimone
@Kdisimone
Jan 26 2017 05:18
off to remove my home wifi until i can figure out why it seems to drop so much. seems like the disconnects from the home wifi are what are killing me
jmcrawford
@jmcrawford
Jan 26 2017 05:52
Wrt BT tethering -- what are you all using to start bluetoothctl after a reboot? I've put it in cron as a @reboot line, but a better way might be to have it start up as a system service. I haven't figured out how to do that under systemd yet, curious if anyone else has looking into it?
Aaron Michelson
@Aaybob
Jan 26 2017 06:03

@jmcrawford dana and scott are not able to get BT tethering to work yet following the same directions. My install is doing well. They'll try tonight a newer version of jubilinux. It could just be they're in a noisy environment. I don't think Bluez 5.37 or 5.43 makes any difference. Not sure why oref0-setup.sh calls 5.37. I'm just using what was installed in the scripts which has cron :smile:

@reboot reset_spi_serial.py

          • cd /root/myopenaps2 && ( ps aux | grep -v grep | grep -q 'openaps pump-loop' || openaps pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log
          • ps aux | grep -v grep | grep -q "oref0-bluetoothup 1C:5C:F2:72:B7:60" || oref0-bluetoothup 1C:5C:F2:72:B7:60 >> /var/log/openaps/network.log
          • ps aux | grep -v grep | grep -q "oref0-online 1C:5C:F2:72:B7:60" || oref0-online 1C:5C:F2:72:B7:60 >> /var/log/openaps/network.log
Dana Lewis
@danamlewis
Jan 26 2017 06:11
Yes we are in a noisy Bluetooth environment but so are a lot of other people...
PieterGit
@PieterGit
Jan 26 2017 06:38
@SandraK82 : About your "Error, retrying" errors. I had the same. I noticed that @cjo20 his oskarpearson/mmeowlink#57 makes this almost disappear. Thanks @cjo20 ! My setup: PI3/TI USB/WW-pump. I think if this is not causing problems in others setups this should be released as a mmeowlink release.
Sandra Keßler
@SandraK82
Jan 26 2017 06:41
Ah nice :+1: @PieterGit
I will try it over the weekend to
JaysonEwer
@JaysonEwer
Jan 26 2017 06:44
@danamlewis I"m on Master Nightscout. Its all been working so well. :-D I haven't had time to iron it out. I'm still looping, I just can't see the status of my RIG's.
PieterGit
@PieterGit
Jan 26 2017 06:45
@C-ville @scottleibrand : About wrong port for oref0-subg-ww-radio-parameters you mentioned
https://gitter.im/nightscout/intend-to-bolus?at=5888ebed11e7a7f61de46d8c
The script oref0-subg-ww-radio-parameters /usr/local/bin/oref0-subg-ww-radio-parameters checks if /dev/spidev5.1 exists. If so it returns that.
If not parses dmesg for the USB port. Two possible solution routes:
  • always use /dev/mmeowlink
  • use sed to change the port you mention in oref0-setup.sh in the file oref0-subg-ww-radio-parameters.
    Temp solution is to hard code the port at the top of /usr/local/bin/oref0-subg-ww-radio-parameters
Dana Lewis
@danamlewis
Jan 26 2017 06:56
@JaysonEwer hrmmm, so odd!!
Scott Leibrand
@scottleibrand
Jan 26 2017 06:56
@PieterGit @C-Ville doesn't /dev/spidev5.1 always exist? Seems that we should make it use the port out of the pump.ini that openaps is using...
Scott Leibrand
@scottleibrand
Jan 26 2017 07:15
For anyone who's been trying to plug in a Dexcom receiver to your Explorer board with USB OTG and having issues, please see EnhancedRadioDevices/915MHzEdisonExplorer#14
Colin Lennon
@colinlennon
Jan 26 2017 09:48
@sdneufer Thanks, glad to hear that you have it working now! I don't remember needing to install that package explicitly when setting up my Pi and I think these instructions have worked for others too, so not sure why you needed that. But yeah, it wouldn't do any harm to add a step in there describing how to install that package. Do you have the command that you used? If so, let me know and I will do the update - I need to do some other updates to the docs this weekend anyway.
Tim Street
@tim2000s
Jan 26 2017 11:34
Anyone seeing Heroku site issues? I know @xpucuto has been seeing missing data, and for me, the pump data/IOB/COB is no longer showing up (even though the OpenAPS pill is working).
Matthias
@ceben80
Jan 26 2017 12:23
my Heroku site is working, not at all, no issues @tim2000s
Tim Street
@tim2000s
Jan 26 2017 13:13
Cleared down devicestatus and that seems to have resolved the upload issues.
Now I need to work out why my pumphistory data is empty.
Tim Street
@tim2000s
Jan 26 2017 13:20
Okay then. Odd situation here. My OpenAPS instance doesn't seem to have pulled pumphistory data for more than 12 hours. That's why there's nothing in OpenAPS.
Tim Street
@tim2000s
Jan 26 2017 13:38
Right. The monitor/pumphistory.json has its last entry showing as 10pm last night, however I'm getting updates to enacted.json as oref0 works through. I've an app generated temp basal operating on the pump, but when the data has been supposedly pulled off the pump, there is no data for today.
Tim Street
@tim2000s
Jan 26 2017 15:17
@scottleibrand @danamlewis wonder if you've seen or experienced this. When oref0 pulls pumphistory, what I see in the monitor/pumphistory.json stops more than 12 hours ago, as does the settings/pumphistory24h.json.
What I note is that I did a sensor change last night.
Now the sensor data is pulling of the pump and uploading to Nightscout with no issues, and oref0 has been setting TBRs.
I see no errors in Syslog or pump-loop.log other than the previously mentioned error when trying to refresh data. I guess the question is, has my pump had it? Or is there some way to get this moving again?
Eric
@ecc1
Jan 26 2017 15:30

/dev/spidev5.1 will always exist on the Edison (with the Linux kernels in yocto, ubilinux, and jubilinux at least), whether or not anything is connected to the SPI pins

I'm another of those who has never gotten BT tethering to work. I've tried it on 3 Edisons, with the latest bluez versions in Debian. And it's not my phone, because I can BT tether another Linux device to it without problems, so I'm stumped.

Tim Street
@tim2000s
Jan 26 2017 15:45
I can BT tether a pebble, but not my phone @ecc1 Go figure! 😳
Chris Oattes
@cjo20
Jan 26 2017 16:24
did you try building it from source?
Eric
@ecc1
Jan 26 2017 16:28
bluez, you mean? no, but the successful BT tethering from my Linux desktop uses the same Debian package. Only kernel (and BT hardware) are different
Chris Oattes
@cjo20
Jan 26 2017 16:30
Try building it with the --experimental and --disable-systemd flags
Saying it should work because you're using the same package for the driver when the kernel and hardware are both different is like saying that a skoda should be as fast as a ferrari because you had the same accelerator pedal fitted to both :P
Eric
@ecc1
Jan 26 2017 17:00
I'm dubious, since the experimental features have been turned on by default in the latest version, and my desktop runs the version with systemd just fine. But will give it a try.
Heiner1
@Heiner1
Jan 26 2017 17:03
Does anybody know if the (for Dexcom G5 recommended) LG G4 or G5 is working well with the Dexcom G4 and xdrip? A friend will get the Dexcom G5 later and is using now Dexcom G4.
Scott Leibrand
@scottleibrand
Jan 26 2017 17:21
@tim2000s can you try doing a shorter pumphistory query? Maybe openaps use pump iter_pump 10 or similar?
You might also try setting a bunch of identical temp basals to clear the problematic history record off the first page...
Luis Betancourt
@betluis
Jan 26 2017 17:23
hello, finally in the process of setting up the edison explorer board... I think I've done all well according to the instructions. Just one quick question for the oref0 setup script, one uses mmeowlink=yes port=spi_link? or there is something else related to the explorer that needs to be done before this stage?
Luis Betancourt
@betluis
Jan 26 2017 17:39
ok, never mind. the rig is working ok so far
Tim Street
@tim2000s
Jan 26 2017 17:40
@scottleibrand The shorter query made no difference. Multiple identical temp basals has done the job though.
Thanks for that.
Scott Leibrand
@scottleibrand
Jan 26 2017 17:45
@tim2000s that was my very first workaround the very first time I tried to close the loop with DIYPS. :smile:
Tim Street
@tim2000s
Jan 26 2017 17:48
It's an annoying bug.
Scott Leibrand
@scottleibrand
Jan 26 2017 17:51
You might want to capture the raw pump pages for future decoding. I think there are directions on the decocare repo that you could adapt for mmeowlink.
Tim Street
@tim2000s
Jan 26 2017 17:56
That's also been the driver of why I was seeing issues errors with pulling pumphistory.
Will have to tamale a look 👍
How did autocorrect get tamale from take? 😮
Luis Betancourt
@betluis
Jan 26 2017 18:08
edison-explorer working well in its first hour! this is exciting. the rig is tiny... thank you @scottleibrand , @danamlewis and the whole community for this huge achievement
and the setup process was reasonably not that difficult for a non-expert like me...
Eric
@ecc1
Jan 26 2017 18:32
@cjo20 Same behavior, unfortunately, with self-compiled bluez etc.:
bnep: Could not bring up bnep0: Cannot assign requested address(99)
connect failed Input/output error
PieterGit
@PieterGit
Jan 26 2017 18:33
@scottleibrand @ecc1 @C-Ville : there is no way to find the current openaps dir from a script. We could require an environment variable OPENAPS_HOME or OPENAPS_DIRECTORY or something, but on the other hand we are trying to remove the need of environment variables (see openaps/oref0#299 )
i assumed most systems with /dev/spidev5.1 are edisons board, and therefore use that for communicating with the TI-chip. Because the Explorer board (for which this is valid, and the only one I got a TI-chip) this seemed the best implemenation
jmcrawford
@jmcrawford
Jan 26 2017 18:36
@ecc1 @cjo20 There have been a number of comments about different model/partnumbers for Edison floating around, but nothing identifying the differences. Could there be a difference in the BT chip/stack onboard the Edison that lets some people connect, while others are struggling?
Eric
@ecc1
Jan 26 2017 18:38
Maybe, but it seems to be much higher level than that. These Edisons can all use BLE just fine to talk to my Dexcom G4 receiver, for example.
And the protocol for PAN gets as far as requesting the bnep0 interface to be created ...
Tim Street
@tim2000s
Jan 26 2017 18:43
Well. There's an interesting one. If you remove (rm -rf) the oref0 directory having installed it with Bluetooth, the hci0 interface disappears from the Edison.
Scott Leibrand
@scottleibrand
Jan 26 2017 18:43
@PieterGit maybe just check for pump.ini in the cwd first, and then default to spidev5.1 if not found?
I believe all of our cron lines have to cd into myopenaps before running any openaps commands.
Tim Street
@tim2000s
Jan 26 2017 18:46
Or at least, when you reinstall with BT it disappears.
Brian Rabinovitz
@bdr1177
Jan 26 2017 21:36
Can I download and use autotune without switching over completely to the dev branch?
Scott Leibrand
@scottleibrand
Jan 26 2017 21:36
if you do it on a new VM
Brian Rabinovitz
@bdr1177
Jan 26 2017 21:37
Got it. Thanks.
Scott Leibrand
@scottleibrand
Jan 26 2017 21:37
if you want to use it in your actual loop, you'll need to switch to the dev branch. you don't have to enable any new advanced features though.
Brian Rabinovitz
@bdr1177
Jan 26 2017 21:39
Is the dev branch otherwise stable enough for use as opposed to just testing?
Dana Lewis
@danamlewis
Jan 26 2017 21:40
general rule of thumb is master is better, but there’s a bunch of advanced features being tested on dev…so for now the answer is yes dev should be fine for use
(also a good rule of thumb to have at least two rigs, and keep one stable on master if you want to switch one to dev, but you should be ok on dev right now if you only have one rig)
Scott Leibrand
@scottleibrand
Jan 26 2017 21:41
if you don't enable advanced features, dev is almost identical to master. I wouldn't run it on your only rig, but running it on a dev rig with a production pump should be fine. yeah, what she said. :)
danamlewis @danamlewis lol's
Brian Rabinovitz
@bdr1177
Jan 26 2017 21:43
Only problem is that my second rig is rpi with carelink, which is barely usable. I was considering buying a TI stick just to use it for this type of scenario, but there not exactly cheap.
Scott Leibrand
@scottleibrand
Jan 26 2017 21:44
yeah. a zero-range rig should be great for autotuning though
you can also jump over to https://gitter.im/openaps/autotune for autotune-specific questions.
Brian Rabinovitz
@bdr1177
Jan 26 2017 21:53
Makes sense.