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

4th
Mar 2017
Arsenijs
@CRImier
Mar 04 2017 00:00
I have experience with all things Raspberry Pi, and I do a lot of Python. Also, I have acute pancreatitis, and there's quite a chance I'll end up needing an OpenAPS setup, too =) I saw Mike working on a Pi Zero portable setup, which looks awesome - that is, the way I'd go about this =D
Dana Lewis
@danamlewis
Mar 04 2017 00:01
cool. Most people are using Edison/Explorer Board setups these day (or moving toward it), but the underlying code for OpenAPS (core algorithm is called oref0) is all the same regardless :)
Arsenijs
@CRImier
Mar 04 2017 00:01
@peterfulvi I'd leave the key_mgmt=None in there, in my experience, it was necessary for the open networks (I wrote a Python interface for wpa_cli).
Dana Lewis
@danamlewis
Mar 04 2017 00:02
if you do start with a Pi, we recommend skipping the carelink and going straight to a TI stick to get decent range
Arsenijs
@CRImier
Mar 04 2017 00:04
@peterfulvi As about the priorities, wpa_supplicant is problematic in this regard - so far, I haven't found anything related to priorities, but I'll look again and report back. You can manually enable and disable networks, but I guess it wouldn't work for a headless setup.
Dana Lewis
@danamlewis
Mar 04 2017 00:04
thx to @live4sw for adding this note about timezone changes to the docs! http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/Usability-considerations.html#what-do-you-do-with-your-loop-when-you-travel-across-timezones PRs like this go a long way :) esp. if you spot something getting asked/answered in channel here, it’s great if you can capture that and add it to the docs!
Arsenijs
@CRImier
Mar 04 2017 00:06
@danamlewis For now, I'm most likely going to have a test environment than anything else =) Why Edison over Pi, better battery life?
Dana Lewis
@danamlewis
Mar 04 2017 00:08
@CRImier smaller in general plus that smaller means less battery :) most people still keep their Pi’s running as a home/bedside rig, but for those getting started nowadays will probably do 2+ Edison rigs because of size/convenience factors
Arsenijs
@CRImier
Mar 04 2017 00:09
Also, may I ask - what kind of interface are you using when issuing commands to OpenAPS? Web UI, commands over SSH, monitor&keyboard or something else?
Dana Lewis
@danamlewis
Mar 04 2017 00:09
most people are SSHing in
Mike
@libxmike
Mar 04 2017 00:09
@CRImier and there is also Explorer Board which have the Ti comm on board and piggy back Edison
peterfulvi
@peterfulvi
Mar 04 2017 00:11
Thanks @CRImier
Mike
@libxmike
Mar 04 2017 00:11
@CRImier Carbs input and some other stuff will be input over nightscout (screenshot on hackaday chat)
Mike
@libxmike
Mar 04 2017 00:12
@CRImier I'm working currently on OLED 0.96" for monitoring, for Rpi and Edison
Arsenijs
@CRImier
Mar 04 2017 00:12
Shameless plug - this is pyLCI, an interface framework I've developed, lets you control your Raspberry Pi/other Linux using 5$ board with a display and buttons =)
I'm also now adding drivers for OLED screens.
luma.oled library is wonderful for that, BTW.
So, if you're interested in adding an interface like that to it, I can help.
Mike
@libxmike
Mar 04 2017 00:14
I'm waiting for my 128x32, for now with 128x64 OLED
Arsenijs
@CRImier
Mar 04 2017 00:14
For even smaller size?
Mike
@libxmike
Mar 04 2017 00:14
sure
yes, 128x32 is tiny
also needs less power
Arsenijs
@CRImier
Mar 04 2017 00:15
Yeah, I have a 128x32 I2C display, possibly, it's luma-oled compatible, too =)
Mike
@libxmike
Mar 04 2017 00:16
yes I2C,
Arsenijs
@CRImier
Mar 04 2017 00:25
Okay, I'm going to retreat to Hackaday, ask some questions from Mike and join some part of Pi-related development this or the next week. Meanwhile, will monitor this space to get a feeling of this project, as well as answer some questions which I'd be competent to answer =)
Dana Lewis
@danamlewis
Mar 04 2017 00:26
:D awesome!
Arsenijs
@CRImier
Mar 04 2017 00:28
Quick question - is there some kind of "minimal hardware setup" I could have for testing? I don't yet have anything implanted, I'd just want to like to test the software, see if I can optimize anything for the Mike's setup for the Pi, design some boards for Pi Zero, maybe get pyLCI on it =)
Dana Lewis
@danamlewis
Mar 04 2017 00:28
we don’t have anything implanted either ;)
but yea, if you find a pump and can spoof (or borrow someone’s) CGM data stream, you can get a setup rolling.
Arsenijs
@CRImier
Mar 04 2017 00:29
What's the cost for pumps I could use?
Dana Lewis
@danamlewis
Mar 04 2017 00:29
(re: borrowing, i.e. talk Mike or someone into letting you use their Nightscout for BG purposes)
Scott Leibrand
@scottleibrand
Mar 04 2017 00:30
@CRImier check out openaps/oref0#403 - we could use some python eyes on that. :)
Arsenijs
@CRImier
Mar 04 2017 00:30
Like, a file with stream recording I could replay?
Dana Lewis
@danamlewis
Mar 04 2017 00:30
$200-$500 is ideal, but we’re starting to see prices creep up to $500-1000. but, you could probably do the x12 setup (just requires a few extra steps) and those are more readily available and likely cheaper
no, like the live stream of BGs to use in your test setup
Scott Leibrand
@scottleibrand
Mar 04 2017 00:32
@zekeat09 looks like your root directory (/) is full, so we need to cd / and then run something like du -sh * | grep [0-9][0-9][0-9]M to see what is using the most space
Arsenijs
@CRImier
Mar 04 2017 00:33
Hmm, okay. I won't dive into that yet. Maybe it could make sense to write some kind of emulator for a device - as I understand, it's all either serial or SPI, collect enough data and you can have an emulator =)
Scott Leibrand
@scottleibrand
Mar 04 2017 00:33
@zekeat09 actually, try du -xh -d 3 | egrep "[0-9][0-9][0-9]M" instead: it will get you more details on subdirectories and less extra stuff you don't need
Dana Lewis
@danamlewis
Mar 04 2017 00:33
^this would be another good chunk for someone to PR into troubleshooting docs
Scott Leibrand
@scottleibrand
Mar 04 2017 00:33
yes please. :)
output on one of our rigs looks like this:
root@edison-eb5 / # du -xh -d 3 | egrep "[0-9][0-9][0-9]M"
108M    ./root/src
147M    ./root
199M    ./var/log
173M    ./var/cache/apt
176M    ./var/cache
456M    ./var
709M    .
if your Edison's / drive is full, your total usage should be about double that, so you'll want to figure out which directory accounts for most of the difference
zekeat09
@zekeat09
Mar 04 2017 00:36
@scottleibrand 301M ./usr/share
311M ./usr/lib
786M ./usr
108M ./root/src
235M ./root
104M ./var/log
279M ./var
Arsenijs
@CRImier
Mar 04 2017 00:41
Hmm, apt-get leaving lots of package files behind?
Scott Leibrand
@scottleibrand
Mar 04 2017 00:43
@zekeat09 looks like you installed ubilinux instead of jubilinux?
per http://www.robinkirkman.com/jubilinux/, in the jubilinux image /usr is now a symbolic link to /home/.rootfs/usr, since /home has a lot more space on it than / does
so you could either re-flash your system with jubilinux instead of ubilinux, or you could try to do that manually
Mike
@libxmike
Mar 04 2017 00:47
for reference , this is my
root@edison1:/# du -xh -d 3 | egrep "[0-9][0-9][0-9]M"
292M    ./var/log
167M    ./var/cache/apt
171M    ./var/cache
545M    ./var
658M    .
zekeat09
@zekeat09
Mar 04 2017 00:53
@scottleibrand Yes. I was using ubilinux to flash edison after many times failure. I tried to re-flash edison as per openaps using Pi again, but still hv same file system or flash not successful.
Scott Leibrand
@scottleibrand
Mar 04 2017 00:53
ok, then let's leave it on Ubilinux and fix it manually
zekeat09
@zekeat09
Mar 04 2017 00:55
@scottleibrand Did upgrade the ubilinux as per openaps doc when setup.
@scottleibrand How to fix manually ? Any guide ?
Scott Leibrand
@scottleibrand
Mar 04 2017 00:59
what I used to do was something like: mv /usr/share/ /home/ && ln -s /home/share/ /usr/
that moves the /usr/share directory over to the /home partition, and then creates a symlink pointing to the new location
zekeat09
@zekeat09
Mar 04 2017 01:02
@scottleibrand Done mv, how to create a sysmlink ?
Arsenijs
@CRImier
Mar 04 2017 01:04
the ln-s part should create the symlink
ln -s /home/share/ /usr/
Scott Leibrand
@scottleibrand
Mar 04 2017 01:04
you can confirm it worked by doing ls /usr/share/
zekeat09
@zekeat09
Mar 04 2017 01:06
root@myedison:/# ls /usr/share/
aclocal file pam
aclocal-1.14 gcc-4.9 pam-configs
acpi-support gdb perl
adduser GeoIP perl5
applications git-core pixmaps
apport gitweb pkgconfig
apps glib-2.0 pkg-config-crosswrapper
aptitude gnupg polkit-1
autoconf groff pyshared
automake-1.14 gtk-doc python
avahi i18n python3
base-files icons python-apt
base-passwd info python-pycparser
bash-completion initramfs-tools python-support
binfmts insserv readline
bug iptables screen
build-essential javascript sgml
ca-certificates keyrings sgml-base
calendar libc-bin ssh
cmake-3.0 lintian swig2.0
common-licenses locale sysvinit
dbus-1 man sysv-rc
debconf man-db tabset
debhelper menu tasksel
debianutils mime terminfo
dh-python misc unattended-upgrades
dict nano vim
doc node-gyp X11
doc-base node-mime xml
dpkg npm xml-core
emacs numpy zoneinfo
Scott Leibrand
@scottleibrand
Mar 04 2017 01:06
:+1:
now your df -h output should show a couple hundred MB free on /
zekeat09
@zekeat09
Mar 04 2017 01:08
root@myedison:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.4G 1.1G 237M 83% /
devtmpfs 480M 0 480M 0% /dev
tmpfs 97M 320K 96M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 193M 0 193M 0% /run/shm
tmpfs 481M 0 481M 0% /tmp
/dev/mmcblk0p7 32M 5.3M 27M 17% /boot
/dev/mmcblk0p10 1.3G 303M 989M 24% /home
@scottleibrand ok ? I can re-run the setup again ?
Scott Leibrand
@scottleibrand
Mar 04 2017 01:55
Yeah, looks better now. You could mv and symlink another directory if needed, but that might be sufficient.
RedCyclist1
@RedCyclist1
Mar 04 2017 02:09
Hey there, trying to connect bluetooth to take my rig for a test drive outside of the house.. Got through the initial steps but after I followed, "Now launch the Bluetooth control program: bluetoothctl" I start typing power off but nothing is showing up on the sceen. Basically it is not allowing me to continue on with the instructions to do the following....And run: power off,
then power on
thinking I missed a step??
feraridurango
@feraridurango
Mar 04 2017 02:41
Not an openaps environment, run: openaps init Starting pump-loop at Fri 3 Mar 21:15:04 EST 2017: Not an openaps environment, run: openaps init Error, retrying Not an openaps environment, run: openaps init Starting pump-loop at Fri 3 Mar 21:15:07 EST 2017: Not an openaps environment, run: openaps init Error, retrying
what have I done ?
Dana Lewis
@danamlewis
Mar 04 2017 02:53
are you in the wrong directory?
Apologies for the cross-post, but for those of you using autotune, please see this post in the autotune channel regarding sharing some of your experiences with autotune for a small study we’re doing in the next week: https://gitter.im/openaps/autotune?at=58ba2c0a7ceae5376a6b5c04
jdunn42
@jdunn42
Mar 04 2017 03:06
Anyone have an idea why treatment entries to Nightscout would stop? Loop is running fine, and status in NS is up to date, but basal rate is not. There are recent entries in pumphistory.json and pumphistory-zoned.json that are not in ns.
Stephen Chandler
@stephenc95
Mar 04 2017 03:08
Does anyone have any tips for what battery to use in the medtronic pump? And how often does it usually last?
Dana Lewis
@danamlewis
Mar 04 2017 03:08
alkaline will likely give you 2-3 days, but switching to lithium will likely get you 5-7 (or more) days, depending on your usage.
Stephen Chandler
@stephenc95
Mar 04 2017 03:09
Anyone tried rechargeable?
Dana Lewis
@danamlewis
Mar 04 2017 03:09
yep and those people switched to lithiums
jdunn42
@jdunn42
Mar 04 2017 03:10
Rechargeables drain faster than alkaline.
Stephen Chandler
@stephenc95
Mar 04 2017 03:11
I am sure going to miss being able to recharge my pump once I stop using my tslim.
Dana Lewis
@danamlewis
Mar 04 2017 03:12
tradeoff worth not waking up to highs and lows and highs and lows ? ;)
feraridurango
@feraridurango
Mar 04 2017 03:12
@danamlewis I removed all of my directories and started with a new one it doenst seem to like the way I added------> /dev/tty/AMC0

``` File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 20] could not open port /dev/tty/AMC0: [Errno 20] Not a directory: '/dev/tty/AMC0'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Listening: .............................................................Starting pump-loop at Fri 3 Mar 22:13:09 EST 2017:

```

Scorponok
@Scorponok
Mar 04 2017 03:13
I think rechargable batteries aren't a good idea because of the voltages, right? Even the voltage of lithiums is kinda low
Stephen Chandler
@stephenc95
Mar 04 2017 03:13
It'll definitely be worth it lol
Dana Lewis
@danamlewis
Mar 04 2017 03:14
@feraridurango did you copy and paste the port name? and is your radio stick plugged in?
feraridurango
@feraridurango
Mar 04 2017 03:14
yes my ti stick is in
RedCyclist1
@RedCyclist1
Mar 04 2017 03:14
anyone know about tethering with bluetooth? Can't seem to be able to get the next command after bluetoothctl to take
feraridurango
@feraridurango
Mar 04 2017 03:16
this is the whole port name ? /dev/tty/AMC0
Dana Lewis
@danamlewis
Mar 04 2017 03:16
@feraridurango is that YOUR port, or are you using the example from the docs?
feraridurango
@feraridurango
Mar 04 2017 03:16
shoot no
jdunn42
@jdunn42
Mar 04 2017 03:24
@RedCyclist1 Do you get the [bluetooth] prompt?
RedCyclist1
@RedCyclist1
Mar 04 2017 03:25
@jdunn42 yes
But I don't seem to be able to do anything after that
jdunn42
@jdunn42
Mar 04 2017 03:26
Do you get the prompt back after each command?
RedCyclist1
@RedCyclist1
Mar 04 2017 03:28
no, I can't write or copy and paste once I get the [bluetooth] prompt
jdunn42
@jdunn42
Mar 04 2017 03:29
Are you losing the SSH connection?
RedCyclist1
@RedCyclist1
Mar 04 2017 03:30
I am using a serial connection. I have never got ssh to work
jdunn42
@jdunn42
Mar 04 2017 03:31
What hardware are you using?
RedCyclist1
@RedCyclist1
Mar 04 2017 03:31
edison/explorer board, g5 & iphone 6s
Scott Leibrand
@scottleibrand
Mar 04 2017 03:33
@jdunn42 check NS for future treatments.
jdunn42
@jdunn42
Mar 04 2017 03:34
@scottleibrand 0 future entries.
Arsenijs
@CRImier
Mar 04 2017 03:35
@scottleibrand Read through the code, it looks pretty good. I'll read through it more carefully tomorrow to spot any possible important bugs, and maybe I could also quickly write some of the TODOs (though it could only be fully tested by somebody with a working setup).
fjungman
@fjungman
Mar 04 2017 03:38
@stephenc95 to be clear, when people say "Lithium" here, they are referring to the NON-rechargeable Li batteries you can find (if you are lucky) at the large battery displays in department stores or Home Depot. They last a long time pumping, but are not rechargable. They start out around 1.65V, which is as high as an Alkaline battery.
Stephen Chandler
@stephenc95
Mar 04 2017 03:39
That's what I figured. I used the energizer lithiums on my old medtronic pump
fjungman
@fjungman
Mar 04 2017 03:40
:+1:
jdunn42
@jdunn42
Mar 04 2017 03:43
@RedCyclist1 Did you comment out the "auto usb0" line in /etc/network/interfaces?
RedCyclist1
@RedCyclist1
Mar 04 2017 03:45
@jdunn42 not sure
jdunn42
@jdunn42
Mar 04 2017 03:46
@RedCyclist1 Try it, then reboot and try to SSH to it.
feraridurango
@feraridurango
Mar 04 2017 03:47
@danamlewis sudo shutdown -h now sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: Input/output error pi@raspberrypi:~ $
I cant even shut it down the pi is really hot
Scott Leibrand
@scottleibrand
Mar 04 2017 03:49
@feraridurango I would power it off
you can power it back on when it cools off and see if it boots up OK (and if it gets hot again). you might have a corrupted SD card that needs reimaged
@ejoe132 you still up? want to go through your flash stuff now?
RedCyclist1
@RedCyclist1
Mar 04 2017 03:51
@jdunn42 Is this right?

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

# For WEP
#wireless-essid Emutex
#wireless-mode Managed
#wireless-key s:password

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

feraridurango
@feraridurango
Mar 04 2017 03:51
ok thank you @scottleibrand
jdunn42
@jdunn42
Mar 04 2017 03:56
@RedCyclist1 I would comment out or delete "auto usb0" and the 3 lines after it. Same for the last 4 lines.
Scott Leibrand
@scottleibrand
Mar 04 2017 03:56
usb0 is only a problem if your wireless network uses the 192.168.2.x network
leaving it in there makes it possible to ssh over a USB OTG cable, if you ever need to do that
everything else looks good in there, so I would check the contents of /etc/wpa_supplicant/wpa_supplicant.conf next
jdunn42
@jdunn42
Mar 04 2017 04:00
Having 2 wlan0's isn't an issue?
Arsenijs
@CRImier
Mar 04 2017 04:05
Nope, it's the way it usually is with /etc/network/interfaces
RedCyclist1
@RedCyclist1
Mar 04 2017 04:30
@scottleibrand This is what is in the file with the appropriate values filled in
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="my network"
psk="my wifi password"
}
Scott Leibrand
@scottleibrand
Mar 04 2017 04:31
what does grep wpa_supplicant /var/log/syslog | tail show?
RedCyclist1
@RedCyclist1
Mar 04 2017 04:33
root@pt1d:~# grep wpa_supplicant /var/log/syslog | tail
Mar 3 20:49:42 pt1d wpa_supplicant[273]: wlan0: CTRL-EVENT-CONNECTED - Connecti on to 58:6d:8f:4f:e4:47 completed [id=0 id_str=]
Mar 3 20:49:42 pt1d kernel: [ 12.358644] wpa_supplicant (272) used greatest s tack depth: 5080 bytes left
Mar 3 20:53:15 pt1d wpa_supplicant[273]: wlan0: WPA: Group rekeying completed w ith 58:6d:8f:4f:e4:47 [GTK=CCMP]
Mar 3 21:05:59 pt1d wpa_supplicant[272]: Successfully initialized wpa_supplican t
Mar 3 21:05:59 pt1d wpa_supplicant[273]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=B EACON_HINT type=UNKNOWN
Mar 3 21:05:59 pt1d wpa_supplicant[273]: wlan0: Trying to associate with 58:6d: 8f:4f:e4:47 (SSID='TieHome' freq=2437 MHz)
Mar 3 21:05:59 pt1d wpa_supplicant[273]: wlan0: Associated with 58:6d:8f:4f:e4: 47
Mar 3 21:05:59 pt1d wpa_supplicant[273]: wlan0: WPA: Key negotiation completed with 58:6d:8f:4f:e4:47 [PTK=CCMP GTK=CCMP]
Mar 3 21:05:59 pt1d wpa_supplicant[273]: wlan0: CTRL-EVENT-CONNECTED - Connecti on to 58:6d:8f:4f:e4:47 completed [id=0 id_str=]
Mar 3 21:05:59 pt1d kernel: [ 12.160156] wpa_supplicant (272) used greatest s tack depth: 5080 bytes left
Scott Leibrand
@scottleibrand
Mar 04 2017 04:39
and if you run wifi what does the most recent run show?
Ctrl-C to exit out when you're done
RedCyclist1
@RedCyclist1
Mar 04 2017 04:43
It shows the current date, my wifi network name and ip address then Finished oref0-online.
Scott Leibrand
@scottleibrand
Mar 04 2017 04:45
so, sounds like you're online
you should be able to ssh to that IP address, even if you can't get the edison.local type hostname to work
RedCyclist1
@RedCyclist1
Mar 04 2017 04:45
Yes but I want to setup bluetooth teethering
Scott Leibrand
@scottleibrand
Mar 04 2017 04:45
(ssh to the local IP address, not the public one)
RedCyclist1
@RedCyclist1
Mar 04 2017 04:46
ok, I'll try that
Scott Leibrand
@scottleibrand
Mar 04 2017 04:46
we've been helping you get ssh to work, not set up bluetooth. :)
once you get off serial console, it should be a lot easier to follow the rest of the directions
RedCyclist1
@RedCyclist1
Mar 04 2017 04:55
@scottleibrand I think I'm in
Scott Leibrand
@scottleibrand
Mar 04 2017 04:56
:+1:
fjungman
@fjungman
Mar 04 2017 05:06
A really strange thing just started happening , and rebooting does not fix it. It get through suggested.json just fine, but now can't find enact.json. Maybe it deleted it right as I rebooted? If so, it should just create a new one, right? Is this the kind of problem the reason people just reflash every day?
Mar 03 21:00:16 ubilinux ns-loop.log: ns://JSON/shell/cgm/ns-glucose.json
Mar 03 21:00:16 ubilinux ns-loop.log: reporting cgm/ns-glucose.json
Mar 03 21:00:22 ubilinux pump-loop.log: rm: cannot remove ‘enact/enacted.json’: No such file or directory
Mar 03 21:00:22 ubilinux pump-loop.log: enact/enacted.json raised byte must be in range(0, 256)
Mar 03 21:00:22 ubilinux pump-loop.log: pump://JSON/set_temp_basal/enact/enacted.json
Mar 03 21:00:22 ubilinux pump-loop.log: Traceback (most recent call last):
Mar 03 21:00:22 ubilinux pump-loop.log: ValueError: byte must be in range(0, 256)
Mar 03 21:00:22 ubilinux pump-loop.log: grep: enact/enacted.json: No such file or directory
Mar 03 21:00:22 ubilinux pump-loop.log: enact/enacted.json raised byte must be in range(0, 256)
Mar 03 21:00:22 ubilinux pump-loop.log: pump://JSON/set_temp_basal/enact/enacted.json
Mar 03 21:00:22 ubilinux pump-loop.log: Traceback (most recent call last):
Mar 03 21:00:22 ubilinux pump-loop.log: ValueError: byte must be in range(0, 256)
Mar 03 21:00:22 ubilinux pump-loop.log: cat: enact/enacted.json: No such file or directory
Mar 03 21:00:30 ubilinux ns-loop.log: Refreshed temptargets and meal-carbs
Mar 03 21:00:33 ubilinux pump-loop.log: Settings refreshed
Mar 03 21:00:44 ubilinux ns-loop.log: Uploaded
Mar 03 21:00:46 ubilinux pump-loop.log: pumphistory-24h refreshed
Mar 03 21:00:46 ubilinux pump-loop.log: Completed pump-loop at Fri Mar 3 21:00:46 PST 2017
RedCyclist1
@RedCyclist1
Mar 04 2017 05:06
Does this look ok: /usr/local/bin/bluetoothd --experimental &
[1] 23148
root@pt1d:~# sudo: /usr/local/bin/bluetoothd: command not found
Scott Leibrand
@scottleibrand
Mar 04 2017 05:06
@RedCyclist1 nope, that means you didn't install bluetooth properly
@fjungman enact/enacted.json raised byte must be in range(0, 256) looks like your real problem there
RedCyclist1
@RedCyclist1
Mar 04 2017 05:07
So rerun this cd && ~/src/oref0/bin/oref0-setup.sh --btmac=AA:BB:CC:DD:EE:FF
Scott Leibrand
@scottleibrand
Mar 04 2017 05:08
@RedCyclist1 yeah, or add that --btmac= to the end of your oref0-runagain contents if you don't want to re-do the interview
@fjungman is it trying to set a temp > 6.3 U/hr?
fjungman
@fjungman
Mar 04 2017 05:09
There is no file enact/enacted.json root@ubilinux:~/vmaxaps/enact# ls
suggested.json
root@ubilinux:~/vmaxaps/enact#
RedCyclist1
@RedCyclist1
Mar 04 2017 05:09
How do I find runagain contents?
Scott Leibrand
@scottleibrand
Mar 04 2017 05:09
@fjungman there won't be an enacted.json if nothing was enacted this run
fjungman
@fjungman
Mar 04 2017 05:10
Yes, it is trying to set 7.5u/hr
Scott Leibrand
@scottleibrand
Mar 04 2017 05:10
@fjungman then you probably need to upgrade your decocare to support that
or set your pump max basal to 6.3
re-flashing and reinstalling everything would probably get you the latest decocare, as it happens
fjungman
@fjungman
Mar 04 2017 05:11
Oh. Didn't know there was a hard limit. What is the limit now?
If I reflash, that is...
Scott Leibrand
@scottleibrand
Mar 04 2017 05:12
originally decocare only knew about the first 256 bits of the basal rate. so the maximum basal rate with that version of decocare is 255 * 0.025 U/hr = 6.375 U/hr
it has since been updated to know where the bits representing higher rates live
fjungman
@fjungman
Mar 04 2017 05:13
This is RiledUp, so I'll have to have Mr. Schwamb update that for me.
Scott Leibrand
@scottleibrand
Mar 04 2017 05:13
?
fjungman
@fjungman
Mar 04 2017 05:14
I'm using the RiledUp board, not a Decocare stick.
Scott Leibrand
@scottleibrand
Mar 04 2017 05:14
you're using openaps, right? that uses decocare to decode the data coming from mmeowlink
fjungman
@fjungman
Mar 04 2017 05:14
Oh, that is what that means? Got it.
Scott Leibrand
@scottleibrand
Mar 04 2017 05:14
it was originally "decoding carelink"
fjungman
@fjungman
Mar 04 2017 05:14
Oh. Learning, learning, learning...
zekeat09
@zekeat09
Mar 04 2017 05:16
Hi, need help again. My Temp Basal not render in NS and the Basal pill also not working as per openaps, any solution?
RedCyclist1
@RedCyclist1
Mar 04 2017 05:18
@scottleibrand IT is asking if I should remove my exisiting crontab first, don't I need to keep that?
Scott Leibrand
@scottleibrand
Mar 04 2017 05:20
if you choose to remove, it will replace it for you (assuming you gave all the same answers).
fjungman
@fjungman
Mar 04 2017 05:38
Thanks, Scott! It is working now with the reduced max basal.
Scott Leibrand
@scottleibrand
Mar 04 2017 05:45
:+1:
zekeat09
@zekeat09
Mar 04 2017 05:51
Using dev branch, it seem not get COB from pump during meal bolus.
COB remain 0 all the time
Scott Leibrand
@scottleibrand
Mar 04 2017 05:51
did you enable AMA?
zekeat09
@zekeat09
Mar 04 2017 06:05
Yes. Enable AMA.
No iob show on iob pill
Scott Leibrand
@scottleibrand
Mar 04 2017 06:06
I would look at the pump-loop.log first and see if the rig is doing the right things. if not, we can troubleshoot that. if so, and it's just not uploading to NS correctly, we can troubleshoot that.
zekeat09
@zekeat09
Mar 04 2017 06:09
I change to pi, same problem, no COB, IOB, temp basal not render
Scott Leibrand
@scottleibrand
Mar 04 2017 06:13
let's ignore Nightscout until we've confirmed whether the rig is working properly via pump-loop.log
Lorenzo Sandini
@lsandini
Mar 04 2017 12:47
Hey folks. I have been away for a while and I am back at the workbench. I made a clean install and ran the install script, but I found there was no option to pull glucose data from my NS site. How do I modify my rig to get this function ?
PieterGit
@PieterGit
Mar 04 2017 12:48
@lsandini : what is your setup?
G4/G5 / share / connected to usb / do you use explorer board? etc
Lorenzo Sandini
@lsandini
Mar 04 2017 12:49
Pi, 715 pump, G4 and xdrip
it's a test setup for the moment :)
PieterGit
@PieterGit
Mar 04 2017 12:49
did you try the xdrip setup, https://github.com/colinlennon/xDripAPS
what do you use to communicate with the pump? TI-stick or carelink stick?
Lorenzo Sandini
@lsandini
Mar 04 2017 12:50
yes I had a look at it, but I would like (if possible) to have my pi download the glucose from NS and not listen to the xdrip directly, if possible ?
carelink here
PieterGit
@PieterGit
Mar 04 2017 12:51
the path is smartphone -> xdripaps -> nightscout, because that will make the pump loop work offline
if you just want to use the nightscout, i assume you can also select G4 or G4-raw as CGM, because they download from nightscout
and then don't use xdripaps / xdrip option in oref0-setup.sh
carelink sucks. please consider to buy a ti stick or even better an edison with explorerboard
even for testing
Lorenzo Sandini
@lsandini
Mar 04 2017 12:53
oh alright I'll try with G4, and let my dexcom receiver unconnected, let's see if the data comes down from NS.
I'll be going the edison way soon, but I am still waiting for my explorer board... I am in Finland :/
PieterGit
@PieterGit
Mar 04 2017 12:54
do you have G4 share in finland, or G4 without bluetooth?
why don't you use G4-raw, that's quite a stable option for pi usage and the dexcom on usb works quite good on a pi
Lorenzo Sandini
@lsandini
Mar 04 2017 13:00
no share here, that's why I built an xdrip. The receivr on USB is fine, but I would like to get rid of it
PieterGit
@PieterGit
Mar 04 2017 14:00
@lsandini let me know if using G4 or G4-raw works for you. note that g4 and g4-raw will be renamed to g4-local and g4-upload in future, see https://github.com/openaps/oref0/commits/g4-upload. G4/G4-local will not upload to nightscout afaict
zekeat09
@zekeat09
Mar 04 2017 14:23
@scottleibrand I did re-run the steup, rig is working now. Just the NS basal & basal render not working.
ejoe132
@ejoe132
Mar 04 2017 14:53
@scottleibrand Sorry scott I had a church event overnight
jcorbett80
@jcorbett80
Mar 04 2017 15:01
@danamlewis Good morning Dana. I singled you out because we talked about this the other night. Ok I have setup my open apps closed looping using Windows as a closed system, as I told you. I went back and completely reset the edison to factory default and followed my notes to re-set it up again based on what I did. Made a few updates on my notes and then reset to factory defaults and 3rd time following my notes was very easy. Soooo as I said to you earlier, I want to make a PR of how to set up on Wndows instead of "if mac do this" "if pi do this"...to much trying to chase in my opion. If I am wrong and people like it that way let me know. I know how to maintain and run a mac but I dont own one so someone esle will have to do that one if people like what I do. But my main question is Is there a template setup that I use to keep formatting exactly as it is so it it easy to do without chasing? If so; where?
RedCyclist1
@RedCyclist1
Mar 04 2017 16:20
Ok Team, I am going to ask a really dumb question.. I thought I could tether bluetooth to my iphone 6s through the personal hotspot... I am thinking this is not correct as it would use more of my ph batter.. So how do I know if I can bluetooth tether into my phone?
John Benjamin
@Bender1061
Mar 04 2017 17:00
@RedCyclist1 make sure your wifi is turned off. When you turn on the Personal Hotspot(this will be blow the Airplane mode, and if it's their you can hotspot), it will ask if you want your wifi turned on or to allow with Bluetooth.
Brian Rabinovitz
@bdr1177
Mar 04 2017 17:28
Beyond what's in the documentation, any advice on doing the 915 antenna trace cut on the explorer board?
John Benjamin
@Bender1061
Mar 04 2017 17:32
I never cut mine, and it works fine.
Brian Rabinovitz
@bdr1177
Mar 04 2017 17:35
Ours works fine most of the time, but we have some problems when my daughter is at school. They keep it close enough for cgm to pick up but that doesn't always seem close enough for the Edison.
John Benjamin
@Bender1061
Mar 04 2017 17:44
just a question, but do you keep the white part of the antenna towards or away from the battery? I find it works better if it's away from the battery in a higher EM area.
Brian Rabinovitz
@bdr1177
Mar 04 2017 17:46
We don't consistently do anything because we have it in a soft case with the cgm rather than in a hard case. Btw, what is EM?
John Benjamin
@Bender1061
Mar 04 2017 17:54
Electromagnetic, and if there are a lot of electronics or signals in the area. Anything electric has an electromagnetic field around it. those can effect the radio waves between the pump and the Edison.
one of the advantages of the faster freq that the newer pumps use is it takes more EM noise to interrupt the signal. but we only can loop on the older stuff.
Brian Rabinovitz
@bdr1177
Mar 04 2017 17:59
Got it. Thanks.
Scott Leibrand
@scottleibrand
Mar 04 2017 18:00
@zekeat09 ok. Have you verified all the ENABLE variables in NS? Have you tried re-running the oref0-setup to make sure you got the NS URL right?
@jcorbett80 have you seen @Kdisimone's newer pages in the docs for setting up the Edison with a Mac? You could do an equivalent quick guide for Windows if you wanted...
Mike Stebbins
@mikestebbins
Mar 04 2017 18:33
@david-t1 Did you ever have any luck getting your S5 with marshmallow to work with the BT tethering on Edison? I ran through the steps at the link provided by @ecc1, but am still unsure if it's the phone or the edison that is the problem. If you didn't figure it out, I'll try to find someone else's phone for testing.
Dana Lewis
@danamlewis
Mar 04 2017 18:35
@jcorbett80 no template, but you can look at the raw version of another page to get ideas for header formatting. We use markdown, which is pretty standard. Also, if it's bugging you too much, I'd say don't worry about that and focus on getting content into the page and I'm happy to help clean up formatting whenever a PR comes in!
@lsandini with the oref0-setup.sh, it's designed to try to pull from NS first if you've given it your NS info
Brian Rabinovitz
@bdr1177
Mar 04 2017 18:37
So has anyone actually done the antenna trace cut?
Dana Lewis
@danamlewis
Mar 04 2017 18:43
I think I remember 1-2 people have; I also think I remember one over-cut or had issues? Can't remember who, though.
Brian Rabinovitz
@bdr1177
Mar 04 2017 18:47
Ok. Thanks. I'll wait and see if one of those people pipes up. I'd like to get more range but I'm a little nervous about cutting into the board. Especially if the improved range is minimal.
Dana Lewis
@danamlewis
Mar 04 2017 19:24
Ah, you mean the cut for range, not the cut for offline-ing the old boards. Sorry, was referring to the latter, but regarding the former, we don’t see a big difference between cut/not cut on one of our test boards - not sure it’s worth it.
diabeticgonewild
@diabeticgonewild
Mar 04 2017 19:58
Are there newer Explorer Boards out that have an OTG port that takes microSD card input, so we could theoretically have an offline Nightscout implementation?
Also, I heard we could theoretically install Ubuntu on the Intel Edison processor? Is this true? And are there any sort of rudimentary install instructions on that? I will take anything I can get...
Hardwick1973
@Hardwick1973
Mar 04 2017 20:15
Hi, I am trying to get the battery level on my rig appearing in Nightscout. What settings should i use?
diabeticgonewild
@diabeticgonewild
Mar 04 2017 20:26
Advanced settings. There should be info about that in the advanced settings for oref0 in OpenAPS docs
You must enable advanced features using oref0 setup script
Hardwick1973
@Hardwick1973
Mar 04 2017 20:30
@diabeticgonewild - I've got the pump voltage displaying nicely...it's the explorer board battery I'm keen to see
diabeticgonewild
@diabeticgonewild
Mar 04 2017 20:31
OK. I don't know about NS setup. Let me take a look.
@Hardwick1973 NS setup for Rig Battery levels are in the link I posted above. I just read it (I usually don't read.)
@Hardwick1973 sorry I am wrong about what I just said. I don't read.
Brian Rabinovitz
@bdr1177
Mar 04 2017 20:36
@danamlewis Okay. If range isn't significantly improved I'll hold off on the antenna cut. Thanks.
diabeticgonewild
@diabeticgonewild
Mar 04 2017 20:37
@Hardwick1973 I searched properly and read some. Instructions for Edison/Explorer board Voltage are here: https://github.com/cjo20/EdisonVoltage/blob/master/README.md
I don't think it requires another environment variable in Nightscout setup/configuration
Based on the looks, and from searching and what I have read so far, it doesn't appear to me that it requires additional setup in NS
diabeticgonewild
@diabeticgonewild
Mar 04 2017 20:43
@Hardwick1973 Just FYI I searched this in Google openaps AND edison AND voltage AND Nightscout
Does anyone know if the new explorer boards take microSD card input yet?
dan lightner
@danimaniac
Mar 04 2017 21:19
@diabeticgonewild subject to the minimum requirements, listed for the particulat OS, you can install any OS you want on the Edison. Jubilinnux is simply a lightweight Linux distribution, Ubuntu is slightly more resource heavy. The install process would be similar.
diabeticgonewild
@diabeticgonewild
Mar 04 2017 21:21
@danimaniac Amazing! Thanks! I totally forgot that it was an x86 processor! 😍😊
jmcrawford
@jmcrawford
Mar 04 2017 21:30
@diabeticgonewild I've not tried it, but you could probably use a microSD/USB adapter plugged into OTG. Or just use a USB storage device
diabeticgonewild
@diabeticgonewild
Mar 04 2017 21:31
@jmcrawford That doesn't work with the November 2016 distribution of the boards. But thanks!
fiberfan
@fiberfan
Mar 04 2017 22:09
@diabeticgonewild Sparkfun sells a microSD board for the edison. It should stack between the edison and the explorer board.
@danamlewis I want to do a PR tell what I did so i can have basal rates higher than 6.3. Where should that go?
Dana Lewis
@danamlewis
Mar 04 2017 22:23
@fiberfan is this with a fresh install, or an older rig? I think it's taken care of with the newer installs now.
fjungman
@fjungman
Mar 04 2017 22:30
What do you want to do with the MicroSD card? Do you want it to be there, like on the RPi, or just to work when attached to the USB OTG? In other words, to you want the SD Card ambulatory, or just occasionally available to transfer files?
diabeticgonewild
@diabeticgonewild
Mar 04 2017 22:34
@fiberfan I'm sorry if I accidentally typed Edison, but I meant a microSD card input via OTG port for the Explorer Board.
@fjungman I want a microUSB input via OTG port in order to have enough data storage for Nightscout on the Explorer Board. Thank you for asking! 😍😊👍
fjungman
@fjungman
Mar 04 2017 22:36
How much is "enough"?
diabeticgonewild
@diabeticgonewild
Mar 04 2017 22:38
Well probably like 8-16 GB, overall, to account for accumulation of data
Lorenzo Conte
@Lofriendzo_twitter
Mar 04 2017 23:12
I'm playing around with setting up pancreabble-- can anyone give me some pointers to what the oref0-setup script way of making it work is? thks!