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

14th
Oct 2017
garykidd
@garykidd
Oct 14 2017 00:11
@jaylagorio regarding my rig cases and question about shaving down the molding that holds the batteries in place..yes, i did...just used an Xacto knife and took my time on the latest--at first used dremel--that works too but was trying to be quiet last nite--so went the manual route.
jquitos
@jquitos
Oct 14 2017 00:23
@scottleibrand I'm still having issues with the one rig not being able to get a IP address with BT tethering. I was able to get my other rig up and running with BT tether and it actually work like it's supposed to (BT tether outside of WiFi Range and then drop when in WiFi). @Kdisimone suggested that a re-flash may work with the BT issue I have with the original rig. The only problem with that is that I bought one that was pre-flashed. Since I'm a total newb and don't know anything really how difficult is it to reflash and do you think that will help?
garykidd
@garykidd
Oct 14 2017 00:28
assuming the order of items in preferences.json doesn't matter--can someone confirm, please? thx..
Glenn Primack
@primags
Oct 14 2017 00:31
I printed a case today and was working on fitting my rig into it, and from losing power suddenly to now, something doesn't seem right.
When I type openaps mmtune, I get no such file or Directory
also this from the logs: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Pump and Edison have been right next to eachother
Paul Dickens
@thebookins
Oct 14 2017 00:35
@garykidd that's right - the json just gets loaded as an object with properties - the order doesn't matter
garykidd
@garykidd
Oct 14 2017 00:35
@primags check seating of edison
also see…under troubleshooting… search for rfpyCould not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Glenn Primack
@primags
Oct 14 2017 00:36
@garykidd thanks..I tried that, I took the explorer board and edison completely apart and put back together :(
garykidd
@garykidd
Oct 14 2017 00:36
did you reflash the radio too?
Glenn Primack
@primags
Oct 14 2017 00:37
Yes, I am going down the list of steps for that, and openaps mmtune is one of the reccomedations but I get file/dir not found so its not recognizing my command.
@garykidd I was just trying to find how to do that since I was reading previous chats....do you have any instructions on that?
garykidd
@garykidd
Oct 14 2017 00:38
yes...

Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Basic steps using an Intel Edison with Explorer Board, checking with openaps mmtune to see if it is resolved yet:

Make sure the Explorer board has not become loose and is sitting correctly on the Edison board
Double check that your port in pump.ini is correct
Check that your pump battery is not empty
Run oref0-runagain
Fully power down and start up your rig
If you are using an Intel Edison with Explorer Board, and that does not resolve your issue, or if the two LEDs next to the microUSB ports on your Explorer board stay on even after an mmtune, you may need to re-flash your radio chip:

Install ccprog tools on your Edison: cd ~/src; git clone https://github.com/ps2/ccprog.git
Build (compile) ccprog so you can run it: cd ccprog; make ccprog
./ccprog -p 19,7,36 erase
./ccprog -p 19,7,36 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
Reboot, and try openaps mmtune to make sure it works

see htat section in the docs
Glenn Primack
@primags
Oct 14 2017 00:38
@garykidd Thanks, I'll try that
garykidd
@garykidd
Oct 14 2017 00:39
that's what's in the first link above I pasted...worked for me...though i did have a rig that totally flaked out on me with repeated errors of that type...
let me know if you get it to work, Glenn
Glenn Primack
@primags
Oct 14 2017 00:44
@garykidd Will do, I just finished flashing and I'm rebooting
garykidd
@garykidd
Oct 14 2017 00:44
the section is down toward the bottom of the page on that first link
high confidence level it will work--
David Rimmer
@zjedr
Oct 14 2017 00:46
I'm helping to set up a friends rig (edison/xdrip), we are having issues with data feed to NS, we are getting data in mongo 'devicestatus' but no data in 'entries'. Any ideas what could be stopping the BG data ?
Glenn Primack
@primags
Oct 14 2017 00:46
I think I'm hosed beyond a flash repair...check out what I am getting:
garykidd
@garykidd
Oct 14 2017 00:47
what's the size of your db?
Scott Leibrand
@scottleibrand
Oct 14 2017 00:48
@garykidd Excel can import |-delimited data just fine: you just need to use the Text to Columns function (or Use Text Import Wizard when pasting) and select Delimited by and type in | as the "Other" Delimiter (unselecting comma and space).
Glenn Primack
@primags
Oct 14 2017 00:48
I have already re-run oref0-setup a couple of times too...I have no idea how that command would go missing
garykidd
@garykidd
Oct 14 2017 00:49
you the f'd up thing @scottleibrand ....the mac version fo windows office is totally different than the PC version....
Scott Leibrand
@scottleibrand
Oct 14 2017 00:49
@jquitos reflashing will almost certainly fix it. I would try following the flashing instructions: If you can get it to work to the point that it does anything at all, you should have no trouble completing the process. If not, you still have your not-quite-working rig.
jaylagorio
@jaylagorio
Oct 14 2017 00:50
@garykidd That's cool! I used a dremel and it worked well enough.
Scott Leibrand
@scottleibrand
Oct 14 2017 00:50
@primags you need to cd ~/myopenaps first before running any openaps commands
@garykidd yeah, you might have to Google to find that function on your version, but I've used both and know it's available (somewhere) in both
garykidd
@garykidd
Oct 14 2017 00:52
OH cool, you did the same thing...It works awesome for me so far...there's just enough of an air gap that I have no heat issues
jquitos
@jquitos
Oct 14 2017 00:52
@scottleibrand Ok... guess it's something I'll try... good to have a back up I guess... so... follow instructions from the docs here? : http://openaps.readthedocs.io/en/latest/docs/Resources/Edison-Flashing/all-computers-flash.html
garykidd
@garykidd
Oct 14 2017 00:52
@scottleibrand thx
Dana Lewis
@danamlewis
Oct 14 2017 00:52
@jquitos what computer are you using? mac or PC?
garykidd
@garykidd
Oct 14 2017 00:52
is anyone else concerned that we are all being manipulated --to an extent--by google searches...
?
Glenn Primack
@primags
Oct 14 2017 00:52
@scottleibrand Wow, I feel dumb. Thanks. OK, so I am able to run that now and get this output -
Scott Leibrand
@scottleibrand
Oct 14 2017 00:53
@garykidd you can always Bing it if you prefer. :-p
@primags ok, back to that page of the troubleshooting that everyone else pointed you to. :)
Glenn Primack
@primags
Oct 14 2017 00:54
@scottleibrand That was the word of the year at 2016 Microsoft Ignite conference, didn't hear it so much this year :)
Dana Lewis
@danamlewis
Oct 14 2017 00:55
@jquitos (yes, that page, but there's also some easier to follow pc-specific and mac-specific flashing instructions that may be easier to follow. let me know if you need help finding the right page.)
garykidd
@garykidd
Oct 14 2017 00:55
right---for sure...I even remember alta vista....it's jus tthat 99% of people dont really research anything anymore... I'm honestly OK with that...it's just makes me think sometimes...
katie disimone
@Kdisimone
Oct 14 2017 00:57
@jquitos Here’s a video of how to Flash on mac…very easy https://www.youtube.com/edit?o=U&video_id=YHlfoUH0OEw
garykidd
@garykidd
Oct 14 2017 00:59
FWIWTO…….
Steps
Copy all of your tab-delimited text. ...
Select the cell in Excel that you want to paste into. ...
Paste the data. ...
Select the entire column of data. ...
Open the Data tab and click "Text to Columns". ...
Select "Delimited" and click "Next". ...
Select the character that your data is separated by.
Glenn Primack
@primags
Oct 14 2017 01:01

@scottleibrand Here is the summary of those troubleshooting steps. This all happened after I worked to fit my explorer board into a case. Also the date and time was reset. Maybe I damaged my explorer board somehow while manhandling it.

Make sure the Explorer board has not become loose and is sitting correctly on the Edison board - Reseated to be sure

Double check that your port in pump.ini is correct - I'm unsure what the value should be, but I have a minimed pump - Here is my output:
[device "pump"]
serial = XXXXX (removed)
port = /dev/spidev5.1

Check that your rig is in close range of your pump - Right next to each other
Check that your pump battery is not empty - New battery last night, showing full
Run oref0-runagain - Done several times
Fully power down and start up your rig - Turned off, disconnected battery
Flashed Device - Yes

I'll give it a break for now and come back to this later, thanks for the help
Jieseldeep
@Jieseldeep
Oct 14 2017 01:07
Ok, I'm trying to flash my Edison to Jubilinux, it was supposed to have come with Ubilinux installed, but when I got into the Putty console, it says "Debian GNU/Linux 8 jubilinux ttyMFD2" Does that mean I've already got Jubilinux installed?
Dana Lewis
@danamlewis
Oct 14 2017 01:08
if you bought it pre-flashed, it's fine to go
Jieseldeep
@Jieseldeep
Oct 14 2017 01:08
I didn't buy it pre-flashed...at least it wasn't supposed to be pre-flashed
Dana Lewis
@danamlewis
Oct 14 2017 01:08
wait, you bought it pre-flashed from hamshield? or somewhere else?
ah
k
then yea, you need to flash it
Jieseldeep
@Jieseldeep
Oct 14 2017 01:09
Hmm...I thought I bought it from Mouser, but looking back at my email receipt, I DID get it from Hamshield!
on to the next steps!
Dana Lewis
@danamlewis
Oct 14 2017 01:10
heh. there's a price difference - should have been $75 for pre-flashed, so that would make sense if it shows jubilinux Jieseldeep @Jieseldeep Oct 14 2017 01:11 I think it was originally out of stock when I first wanted to order it, but was back in stock by the time I actually pulled the trigger. Thanks Dana! Dana Lewis @danamlewis Oct 14 2017 01:11 :+1: on to the fun stuff :) Jieseldeep @Jieseldeep Oct 14 2017 01:11 Yeah, I want to get it set up. I' garykidd @garykidd Oct 14 2017 01:11 @primags maybe post the results of each step of the troubleshooting from the section in the docs I shared....when you get chance.. Jieseldeep @Jieseldeep Oct 14 2017 01:12 m currently on MDI, but have an appointment to get to know my MiniMed pump with my CDE. I'm assuming she will help me figure out basals at that point. garykidd @garykidd Oct 14 2017 01:13 @scottleibrand maybe just a small error on my side but on 2 occasins noticed that the total daily basal rate didnt match exactly what I had in excel after pasting into excel...is there anything obvious that I am missing? Dana Lewis @danamlewis Oct 14 2017 01:18 @Jieseldeep she'll likely have some suggestions. you could also try using Autotune (take your MDI dose and split it into hourly basals), assuming you're logging some carb and meal injection data, and share that with her too to give you a better starting point. plus using autotune after you start pumping and looping will help, too jquitos @jquitos Oct 14 2017 01:18 Thanks @danamlewis @Kdisimone @scottleibrand ... I'll flash it tomorrow when I'm more awake lol. At least the one rig is working like it's supposed to Jieseldeep @Jieseldeep Oct 14 2017 01:18 Thanks! jquitos @jquitos Oct 14 2017 01:22 One last quick question.... When wanting to run SMB UAM and autotune you have to re-run set up? Or can you change in preferences? Jieseldeep @Jieseldeep Oct 14 2017 01:23 ok, goofed up setting up wifi, how do I exit the editor without writing? garykidd @garykidd Oct 14 2017 01:23 While the instructions are pretty straight-forward and broadly peer-reviewed.... I still behappy to flash for to whatever version of jubilinux anybody may want (of course, for free)...just PM me if interested.... Also, happy to solder anything if folks aren't comfortable doing so....again...feel free to just PM Dana Lewis @danamlewis Oct 14 2017 01:25 @Jieseldeep control-c to cancel out of any script running , then just re-run and it'll wipe over whatever's there Jieseldeep @Jieseldeep Oct 14 2017 01:25 @danamlewis Thanks! Dana Lewis @danamlewis Oct 14 2017 01:26 @jquitos autotune you need to add to your run again enable line. ditto for SMB (and you then need to change the preferences). so for that level of change i'd re-run oref0 setup again, but in the future you'll be able to turn it off or tweak which setting by what's in preferences. Jieseldeep @Jieseldeep Oct 14 2017 01:27 @danamlewis Hmm...not working for me, still in editing mode...Ctrl+C initially brought up something about typing quit, but when I started typing that, it was just editing the file text again Dana Lewis @danamlewis Oct 14 2017 01:27 oh, you're in nano? Jieseldeep @Jieseldeep Oct 14 2017 01:27 I don't know what nano is Dana Lewis @danamlewis Oct 14 2017 01:28 hit the escape key probably. then control-x to exit then yes to exit without saving Jieseldeep @Jieseldeep Oct 14 2017 01:28 will try thanks Dana Lewis @danamlewis Oct 14 2017 01:28 pause for a sec - what step are you on? have you already set up your initial wifi and done oref0-setup, and adding more wifi? or are you trying to do manual wifi setup before all that? garykidd @garykidd Oct 14 2017 01:29 sorry, perhaps someone has already answered...can you ssh into rig via BT while on the go from the phone that provides your hotspot..or do you need to force wifi connection? Dana Lewis @danamlewis Oct 14 2017 01:29 (I would start with http://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/OpenAPS-install.html to start, which will help you do your first wifi and the basic install for everything, then come back later and add wifi) Jieseldeep @Jieseldeep Oct 14 2017 01:29 I thought I was following the steps in order. I had just completed the "Initial Edison Setup" step Scott Leibrand @scottleibrand Oct 14 2017 01:30 @garykidd yes, you can ssh over bluetooth hotspot Dana Lewis @danamlewis Oct 14 2017 01:30 @Jieseldeep what page of the docs are you on? paste a link? Jieseldeep @Jieseldeep Oct 14 2017 01:30 Ahh, I think I was following the steps for the unflashed edison. Didn't realize it until just now so I'm in totally the wrong section for the edison I have Thanks! Dana Lewis @danamlewis Oct 14 2017 01:30 yea. you don't need to be there. that's the manual process for flashing. start with http://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/OpenAPS-install.html, it'll be easier to get your first wifi and get going. (but don't worry, what you're learning will be useful later!) :+1: garykidd @garykidd Oct 14 2017 01:34 @scottleibrand been having so much trouble with that....will try again when I'm out tomorrow--haven't been able to get it to work yet...is there anything different you need to do on Terminus? Jieseldeep @Jieseldeep Oct 14 2017 01:34 hmm, I ended up unplugging the cables to get out of editing that file and reconnected, but now it doesn't say root@jubilinux, it says root@localhost I'm learning all sorts of what not to do today... garykidd @garykidd Oct 14 2017 01:36 Oh and wanted to make sure that script will run fine on RP3/TI stick rig? Dana Lewis @danamlewis Oct 14 2017 01:36 @garykidd someone mentioned the other day their Pi3/TI was fine on 0.6.0 Scott Leibrand @scottleibrand Oct 14 2017 01:37 @garykidd it's Termius. No n. :-p Dana Lewis @danamlewis Oct 14 2017 01:37 still serverauditor on my phone :laughing: Scott Leibrand @scottleibrand Oct 14 2017 01:38 #wearenotwaiting #excepttoupdateourapps Jieseldeep @Jieseldeep Oct 14 2017 01:38 lol Scott Leibrand @scottleibrand Oct 14 2017 01:39 @garykidd I would try the iNet app to figure out the IP of the rig, and try ssh'ing directly to that instead of the hostname. Jieseldeep @Jieseldeep Oct 14 2017 01:43 Sigh, Wifi setup not going well Do you need to have a password for your network? err, wifi rather Scott Leibrand @scottleibrand Oct 14 2017 01:44 If your wifi doesn't have a password you have to configure it manually and we don't recommend that Dana Lewis @danamlewis Oct 14 2017 01:44 @Jieseldeep worth adding a password to your wifi temporarily? or turn your phone hotspot on and use that for your first network? Jieseldeep @Jieseldeep Oct 14 2017 01:45 it is my phone hotspot, but I don't have a PW Scott Leibrand @scottleibrand Oct 14 2017 01:45 since anyone sniffing your wifi could potentially take over your insulin pump if you do it unencrypted Jieseldeep @Jieseldeep Oct 14 2017 01:45 ok, gotcha I'll add one Dana Lewis @danamlewis Oct 14 2017 01:45 :+1: Jieseldeep @Jieseldeep Oct 14 2017 01:50 Paste is just Ctrl+V right? It has worked sometimes, but not always. Working in PuTTY from Windows 7. Seems like sometimes there is just a delay in pasting, but other times it doesn't do anything Jieseldeep @Jieseldeep Oct 14 2017 01:57 Ok, figured it out finally. Right mouse button. garykidd @garykidd Oct 14 2017 01:59 @scottleibrand thx---will give that a try I think I have a different app loaded already that provides the IP..if not straight to iNet...thx funny about the spelling... Jieseldeep @Jieseldeep Oct 14 2017 02:01 @danamlewis Hmm, I thought I had it made, finally. Now it doesn't seem to want to hook up to the wifi. I get this: # !/bin/bash ( dmesg -D echo Scanning for wifi networks: ifup wlan0 wpa_cli scan echo -e "\nStrongest networks found:" wpa_cli scan_res | sort -grk 3 | head | awk -F '\t' '{print$NF}' | uniq
set -e
echo -e /"\nWARNING: this script will back up and remove all of your current wifi configs."
read -p "Press Ctrl-C to cancel, or press Enter to continue:" -r
SSID=$REPLY read -p "Enter your network password: " -r PSK=$REPLY
cd /etc/network
cp interfaces interfaces.$(date +%s).bak echo -e "auto lo\niface lo inet loopback\n\nauto usb0\niface usb0 inet static\n address 10.11.12.13\n netmask 255.255.255.0\n\nauto wlan0\niface wlan0 inet dhcp\n wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf" > interfaces echo -e "\n/etc/network/interfaces:\n" cat interfaces cd /etc/wpa_supplicant/ cp wpa_supplicant.conf wpa_supplicant.conf.$(date +%s).bak
echo -e "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\nnetwork={\n ssid=\"$SSID\"\n psk=\"$PSK\"\n}" > wpa_supplicant.conf
echo -e "\n/etc/wpa_supplicant/wpa_supplicant.conf:\n"
cat wpa_supplicant.conf
echo -e "\nAttempting to bring up wlan0:\n"
ifdown wlan0; ifup wlan0
sleep 10
echo -ne "\nWifi SSID: "; iwgetid -r
sleep 5

# TODO check for options to fix the certificate activation error message for https

cd /tmp/; wget --no-check-certificate https://raw.githubusercontent.com/openaps/docs/dev/scripts/openaps-install.sh; bash ./openaps-install.sh
)

whoops, that didn't work!

Attempting to bring up wlan0:

Killed old client process
Internet Systems Consortium DHCP Client 4.3.1

Listening on LPF/wlan0/90:b6:86:01:06:cc
Sending on LPF/wlan0/90:b6:86:01:06:cc
Sending on Socket/fallback
DHCPRELEASE on wlan0 to 192.168.43.1 port 67
Internet Systems Consortium DHCP Client 4.3.1

Listening on LPF/wlan0/90:b6:86:01:06:cc
Sending on LPF/wlan0/90:b6:86:01:06:cc
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
No working leases in persistent database - sleeping.

Wifi SSID: root@localhost:~#

Paul Dickens
@thebookins
Oct 14 2017 02:12
Is there any way to get the Edison onto a wifi network with guest access controlled by a HTML login page? Son going on camp in remote area and keen to get on to wifi at campsite if possible. Assuming I'd have to make a bot to fill in the credentials on the page?
jaylagorio
@jaylagorio
Oct 14 2017 02:16
@thebookins I haven't found a way to get it to sign into captive portals, not for lack of searching
Martin Haeberli
@mhaeberli
Oct 14 2017 02:17
@garykidd that seems to be exactly my issue ...
cameronrenwick
@cameronrenwick
Oct 14 2017 02:18
@ecc1 I'm using the HM-17/wixel to pick up my G4 signal. I don't have G5 or iphone or dexcom receiver so building an xbridge+ into this rig has been my approach
Dana Lewis
@danamlewis
Oct 14 2017 02:19
@thebookins only using a hootoo type thing
@Jieseldeep what kind of phone do you have?
Doesn't look like its spotting your wifi. If it's an iPhone, you'll need to be in your hotspot screen when that script is running for it to see your hotspot
when I was away at school I had what sounds like the same scenario and the link above (about half way down the page) got me logge into the captive portal
Jieseldeep
@Jieseldeep
Oct 14 2017 03:35
@danamlewis Sorry, it finally started working. I had hidden the SSID previously and once I reenabled it, it worked fine. I feel like the wording surrounding the alternative to API_Secret...some kind of token, should be adjusted. It asks if you would like to use it, not whether you had previously used it to setup your nightscout. When you haven't used it, the program runs for a long time before closing and failing.
I'll post when they complete and the screen stops scrolling.
Paul Dickens
@thebookins
Oct 14 2017 03:42
@cameronrenwick thx, sounds like it's worth a try
Dana Lewis
@danamlewis
Oct 14 2017 03:48
@Jieseldeep nope ignore the npm warnings
Jieseldeep
@Jieseldeep
Oct 14 2017 04:01
@danamlewis I have a Moto Z2 Play. Don't think that it matters now that everything's installed ok
Dana Lewis
@danamlewis
Oct 14 2017 04:14
Yea as long as you got your wifi you're good to go
Jieseldeep
@Jieseldeep
Oct 14 2017 04:15
@danamlewis Thanks Dana! It's ready to roll! I look forward to learning to run this pump in manual mode. Is there any way to see OpenAPS's suggestions for rates on my phone?
Dana Lewis
@danamlewis
Oct 14 2017 04:16
Yup. You can ssh into the log; or probably easiest to watch it via the NS pill
Jieseldeep
@Jieseldeep
Oct 14 2017 04:16
ahh, thanks!
Oct 14 2017 04:16
strange error while trying to upgrade a rig:

npm ERR! Linux 3.10.98-jubilinux-edison
npm ERR! argv "/home/.rootfs/usr/bin/node" "/usr/bin/npm" "install" "-g"
npm ERR! node v6.11.3
npm ERR! npm  v3.10.10
npm ERR! path /home/.rootfs/usr/lib/node_modules/.staging/aws-sign2-13a73de6
npm ERR! code EXDEV
npm ERR! errno -18
npm ERR! syscall rename

npm ERR! EXDEV: cross-device link not permitted, rename '/home/.rootfs/usr/lib/node_modules/.staging/aws-sign2-13a73de6' -> '/home/.rootfs/usr/lib/node_modules/oref0/node_modules/aws-sign2'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
Jieseldeep
@Jieseldeep
Oct 14 2017 04:17
Ok, the kids are home and I'm done just in time! Nice to work a 4 day work week and have Fridays to do my own stuff!
have a good night y'all!
Oct 14 2017 04:30
ah, renaming oref0 directory and pulling again gets the install working
npm doesn't seem completely happy:
root@benaps3:~/src/oref0# npm list -g oref0
/home/.rootfs/usr/lib
└─┬ oref0@0.6.0-dev1  -> /root/src/oref0
└── oref0@0.6.0-dev1  extraneous

npm ERR! extraneous: oref0@0.6.0-dev1 /home/.rootfs/usr/lib/node_modules/oref0/node_modules/oref0
Scott Leibrand
@scottleibrand
Oct 14 2017 04:43
Oct 14 2017 04:49
what's that?
root@benaps3:~# npm list -g npm
/home/.rootfs/usr/lib
└── npm@3.10.10
seems to be working anyway, despite npm not being perfectly happy
at some point i can reflash
Scott Leibrand
@scottleibrand
Oct 14 2017 05:02
root@edison-eb ~/myopenaps # npm -v
1.4.21
root@edison-eb ~/myopenaps # node -v
v0.10.29
if you have anything newer you'll get weird stuff like that, but it'll probably work
at some point we need to upgrade to node 8, but haven't done all the compatibility checking work yet
Martin Haeberli
@mhaeberli
Oct 14 2017 05:36
@scottleibrand @garykidd not to be contrary but I have NOT been able to ssh over bluetooth hotspot when hotspot is iPhone - unless I ssh FROM iPhone proper. IMHO some kinda (annoying) magic security stuff from Apple
Scott Leibrand
@scottleibrand
Oct 14 2017 05:45
@mhaeberli sounds like you're expecting the iPhone to magically bridge the wifi and bluetooth interfaces? not sure they have any reason to do that
but @garykidd was asking about doing it with Termius, which should work
@mhaeberli if you have a laptop on your phone's hotspot via wifi, why not let the rig join the same phone wifi network?
Martin Haeberli
@mhaeberli
Oct 14 2017 05:47
@scottleibrand thx 4 clarification - my use case was macbook tethering through iPhone (but probably carelessly on WiFi side) and Edison on BT (because AWAY from home WiFi network) so I’ll stand happily corrected unless / until I retry it ...
Scott Leibrand
@scottleibrand
Oct 14 2017 05:47
@mhaeberli I'm suggesting your rig should be configured with your phone's wifi hotspot
if you haven't done that, it won't work. if you do, then as soon as you activate the wifi hotspot for your laptop, the rig can join it too
Martin Haeberli
@mhaeberli
Oct 14 2017 05:50
hmmm ok - had been BT tethering for phone / rig power conservation … but I’ll go look at that recipe, too ...
Scott Leibrand
@scottleibrand
Oct 14 2017 06:00
you generally want to leave your phone's wifi hotspot off and just use BT hotspot: when you activate personal hotspot in iOS settings, immediately go back to the main settings screen. when you're not in the personal hotspot screen, only bluetooth can initiate hotspot connections
or you can briefly turn wifi off to disconnect wifi hotspot users and then turn it back on so your phone can do normal wifi
Martin Haeberli
@mhaeberli
Oct 14 2017 06:01
k thx
philipgo
@philipgo
Oct 14 2017 07:34
Our rig stopped working 10 hours ago. It seems to be confused by an entry in the pump history: File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") The radio connection is strong. Is there anything we can do to fix this?
Scott Leibrand
@scottleibrand
Oct 14 2017 07:36
Do you have multiple rigs?
If not, you might want to drill down to confirm which command is giving that error.
garykidd
@garykidd
Oct 14 2017 07:57
@danamlewis suppose you're using hootoo mobile router often?
or something comparable?
philipgo
@philipgo
Oct 14 2017 08:41
Thanks, Scott! The cause was much simpler: there was one letter too much in preferences...the rig is back and now I know how drilling down works ;)
Oct 14 2017 10:12
Dears what is differences between glucose.json and glucose-unzoned.json?
Velibor Maric
@vebaba
Oct 14 2017 11:14

Hi all. I use xdrip+ to get BG from Blukon. I use Edison+Explorer for Rig. I followed instruction for BT tethering and it works in case WiFi drops out.
Now, I tried to set Rig<-->Internet connection without WiFi but with BT tethering only. I commented out line
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Now, after some time BT tethering kicks in but it won't stay on for long. I set up Xdrip+ to send data locally to rig via settings in xdrip

(I exchanged data to my setup) and if xdrip misses to send data on time, my Rig misses BG data and fail to enact Looping as BG data was too old. In the end on NS site I have info that BG data was too old for Loop to enact.
auto pan0
iface pan0 inet static

to /etc/network/interfaces but didn't help to make permanent BT connection to my phone.
My question is: how to make permanent BT connection between my Rig and Phone? The idea is to have Rig offline looping
I hope that I made myself clear :/

kempera
@kempera
Oct 14 2017 12:30
Hi all. Running OpenAPS with oref1 successfully, but get some strange warnings that concern me: Profile less than 60m old. pump_loop_completed less than 5m ago. Refreshed pumphistoryWarning: clock input Invalid Date is unzoned; please pass clock-zoned.json instead
and meal.json
Anything that should concern me? How do I solve it? Thanks, Andreas
ttroutman
@ttroutman
Oct 14 2017 14:46
@kempera I'm new at this myself but...The clock is correct on both the pump and the board running OpenAPS and OpenAPS is set to the correct timezone? openaps use pump set_date was helpful for me.
Savek-CC
@savek-cc
Oct 14 2017 14:55
@all I was just wondering how many ppl still got an Accu Chek Combo - and if it could be interesting to be able to loop with that
ttroutman
@ttroutman
Oct 14 2017 14:55
I'm so overwhelmed by how amazing this project is that I can't even begin to express how much I appreciate the trail blazing work that you all have done. I'm working on management for my mother who got type 1 in 1999. Her diabetes management was always awful. She looped the last 24 hrs for the first time. When I look at nightscout and see that she woke up at 3am and obviously ate something with too much carbs - and OpenAPS kicked in to help her - the relief that I experience is tremendous.
Savek-CC
@savek-cc
Oct 14 2017 14:55
(yes, I do know that it's currently not being sold in the US any more)
ttroutman
@ttroutman
Oct 14 2017 14:57
@savek-cc I doubt it, it's not on the hardware list. The device has to support remotely setting temp basals.
Savek-CC
@savek-cc
Oct 14 2017 14:59
@ttroutman it does (via Bluetooth and up to 500% - also remote Bolus) - my question is not that I want to do it right now and don't know how to - I'd like to know if adding support for the combo to openAPS would be worth it
ttroutman
@ttroutman
Oct 14 2017 14:59
@savek-cc Oh, I understand now.
I don't know the history here, just started doing this three days ago, hoping to become helpful : )
cameronrenwick
@cameronrenwick
Oct 14 2017 15:48
ok..this is soo odd.. I just donated all my data to openhumans.. and I have this funny feeling like when I used to be able to give blood (but can't now due to T1D dx..) Lost my dad to cancer many years ago and donating blood was my way to pay it forward.. he needed many units for several surgeries. Anyway, having seen "me" (or my data I suppose..) go to open humans it had an odd... pay it forward feeling... I'd encourage others to do so if you're so inclined.
Niels Hartvig
@hartvig
Oct 14 2017 15:55
Dexcom users - what are your preferred setup with the rig. Do you connect it directly to the edison or do an online loop (if so, how)?
garykidd
@garykidd
Oct 14 2017 15:56
MM723...basal rate less than one can be set to nearest .025 but >1..only to nearest .05...is that configurable?
@hartvig dex4 or 5?
Niels Hartvig
@hartvig
Oct 14 2017 15:58
dex5
garykidd
@garykidd
Oct 14 2017 15:59
you can use xdrip+ or you can use bridge feature to dexcom server
I use the latter...I like being able to use standard dex reporting
Scott Leibrand
@scottleibrand
Oct 14 2017 16:15
@savek-cc there is work ongoing to make the Combo loopable with AndroidAPS, which uses oref0 under the hood. They have prototypes looping but are still working out some kinks with error handling.
@ttroutman thanks for sharing your story and already working on paying it forward. That is the kind of thing that keeps us motivated to keep making things better. :smile:
garykidd
@garykidd
Oct 14 2017 16:18
@hartvig you can connect directly in either case (g4/g5) and offline loop when necessary.
Scott Leibrand
@scottleibrand
Oct 14 2017 16:19
It would probably be good if someone could document the work that's already been done to understand the problem in an issue at https://github.com/openaps/oref0/issues
garykidd
@garykidd
Oct 14 2017 16:24
@scottleibrand hmm^?
jaylagorio
@jaylagorio
Oct 14 2017 16:31
@hartvig I directly connect using a USB OTG cable and external USB battery
Savek-CC
@savek-cc
Oct 14 2017 16:39
@scottleibrand PM
Dana Lewis
@danamlewis
Oct 14 2017 17:53
@ttroutman thanks for sharing with us :smile:
@cameronrenwick :clap: thanks for sharing your data, and for encouraging others too!
@garykidd I use hootoo mostly when I want to add my rigs to a network with a portal. Don't actually use it as much as you would expect, because if I'm in a place for one night per my usual travels it's just as easy for me to leave it on my hotspot. But for things like planes, hotels, etc is when most people would see a benefit
Scott Leibrand
@scottleibrand
Oct 14 2017 18:13
@savek-cc sorry for explaining what you already know better than I do. I think the main limitation to implementing something for the Combo on OpenAPS would be having to deal with BlueZ. And secondarily having to figure out all the interface bits. Probably best to stick with phone based solutions for Bluetooth-capable pumps IMO. Wouldn't hurt to have both Android and iOS options though.
Savek-CC
@savek-cc
Oct 14 2017 18:25
@scottleibrand no offense taken - no way for you to know what I am up to. Thank you and Dana for all your work and support though! Without your determination we'd all still be using a normal pump and might be woken in the night by high and low alarms ;)
Tim Street
@tim2000s
Oct 14 2017 18:50
@savek-cc I think it’s fair to say there are plenty of people in the UK looking forward to the Combo being available on AndroidAPS. I’ve just finished chatting to a couple.
Oct 14 2017 18:52
i managed to get a combo here in US, but without a backup i may just stick with the medtronics. in any case, i wouldn't switch unless androidaps had autotune/autosens/smb/etc..
Katie Aldridge
@kcrcgm
Oct 14 2017 19:20
I know that I've read that if you have Autotune enabled you can't implement basal changes mid day. But is there a way to run the command for it manually (not as a one off but to update the profile its using for today)?
garykidd
@garykidd
Oct 14 2017 19:38
@danamlewis thx. Cause I was htinking...wait what's the benefit if I can share BT or wifi internet connection from my phone? If you are plugging in to LAN line at a hotel, for instance, I'm assuming that mobile app would allow you to setup the rest (and not need a computer)?
Dana Lewis
@danamlewis
Oct 14 2017 19:39
@garykidd benefit is a) not having to use mobile data and b ) log in once via the hootoo and allow multiple things to connect. Allows you to surpass device limits, and easier than connecting via each device. (So log in via phone and then all rigs, laptop, etc can latch on)
@savek-cc :purple_heart:
@kcrcgm yup, run the command manually on the rig and it'll update based on the current active basal pattern. But keep in mind Autotune makes incremental changes, so if you feel strongly that you need x% more and change your underlying basals, depending on the data for that one day, Autotune may note tune that much. But, it'll help Autosens as well.
garykidd
@garykidd
Oct 14 2017 19:41
right…but can’t you share wifi on android…haven’t done so actually—but thought you could…thx
Dana Lewis
@danamlewis
Oct 14 2017 19:43
@garykidd the difference is whether you're using your phone's data plan vs the hotel or airplane wifi
garykidd
@garykidd
Oct 14 2017 19:45
yup, I get that part...but I thought, perhaps incorrectly, that if I connected my phone to wifi network (say at hotel) that I could share that wifi access with other devices....thought this was possible on android phones..no?
Dana Lewis
@danamlewis
Oct 14 2017 19:47
Not sure, as I don't use android
John Benjamin
@Bender1061
Oct 14 2017 19:56
anyone know if there is any work going on about getting nightscout on the Fitbit ionic? cause that looks like a pretty sweet watch and I would use it if I could get nightscout and IFTTT running on it.
Dana Lewis
@danamlewis
Oct 14 2017 19:58
Check on cgmitc - there was someone working on a basic NS watchface, but not sure how fast they're progressing
John Benjamin
@Bender1061
Oct 14 2017 19:59
Thanks
Dana Lewis
@danamlewis
Oct 14 2017 19:59
Also don't think they're a looper, so if you want to jump in and add more data :smile: to the display, other folks will likely want to use, too!
garykidd
@garykidd
Oct 14 2017 19:59
yeah...hoping android 2 gets some more attention soon...lots of options...
for watches at least..
@danamlewis did you happen to see my post from I think...856 your time on MM basal rate, above?
Dana Lewis
@danamlewis
Oct 14 2017 20:04
Looking...I have no idea
garykidd
@garykidd
Oct 14 2017 20:05
found it finally...
that kind of stinks...I think it's pretty much insignificant for me, however....still, would've liked that accuracy even if greater than 1unit/hr (or 0.95 or whatever)....anyway..never knew that...
thanks @danamlewis
Katie Aldridge
@kcrcgm
Oct 14 2017 20:09
@danamlewis Thanks! What is the command?
garykidd
@garykidd
Oct 14 2017 20:20
can you simply change max_IOB in preferences and not have to re-run script for it to take effect?
Niels Hartvig
@hartvig
Oct 14 2017 20:39
@jaylagorio how do you carry all that around? :-)
dmdfreak
@dmdfreak
Oct 14 2017 21:20
I'm running about 113 BG but my target is set to 88-93 on my pump and in NS. The openaps pill in NS is showing the target set to 101. I'm curious as to whats causing it to not be 88-93?
garykidd
@garykidd
Oct 14 2017 21:22
@dmdfreak that's how aitosens works.
Autosens
dmdfreak
@dmdfreak
Oct 14 2017 21:24
I just haven't noticed that before. But maybe I'm paying more attention right now and its just sticking out.
Oct 14 2017 21:38
@scottleibrand took me about a day but i just realized i did upgrade nodejs for xdrip-js on this rig. its been working for a month, other than the npm error though.
i'm about to do it to another rig - any reason i shouldn't?
Dana Lewis
@danamlewis
Oct 14 2017 21:41
If it's working...sure why not, but would be helpful if you document anything weird
(Maybe by creating an issue and logging notes there so they don't get lost in channel)
Which version are you upgrading to btw?
Oct 14 2017 21:44
dunno, its the one pointed to here https://github.com/thebookins/xdrip-js/wiki
i'll open an issue, although i don't know if its related, Scott asked so maybe he knew it was
Dana Lewis
@danamlewis
Oct 14 2017 21:44
Open an issue if you have problems to document, not just because :smile:
Oct 14 2017 21:45
ok, its not a problem, just an oddity, if it happens on this next rig too i'll open one

ah, rig without update:
root@benaps:~# nodejs --version
v0.10.29

rig with updated nodejs:
root@benaps3:~# nodejs --version
v6.11.3

ZandMarc
@ZandMarc
Oct 14 2017 21:48
I've switched from OpenAPS master to dev yesterday. Everything seems to be working fine, only Autotune doesn't. It goes into a loop, saying "Warningn; adjusting DIA from 2 to minimum of 3 hours". It has been in this loop for 2,5 hours last night. The autotune.log itself seems to be empty. Anyone know what causes this?
Dana Lewis
@danamlewis
Oct 14 2017 21:48
Oct 14 2017 21:49
Dana Lewis
@danamlewis
Oct 14 2017 21:49
@ZandMarc apparently that blocks Autotune from running. Try switching pump dia to 3 and see if that fixes it. If you're on dev, you should read the Pr about exponential curves and considering switching to those, too.
ZandMarc
@ZandMarc
Oct 14 2017 21:50
@tynbendad No, the DIA on my pump is 6 hrs.
Dana Lewis
@danamlewis
Oct 14 2017 21:51
@ZandMarc sounds like profile didn't get updated somehow then
ZandMarc
@ZandMarc
Oct 14 2017 21:53
@danamlewis that's the profile.json, u mean? Was checking just now: that's the last file that is called for before the loop starts. Probably the error is there. Can I edit this json file manually?
Dana Lewis
@danamlewis
Oct 14 2017 21:54
Try it but if there's a fluke elsewhere it may get written over
ZandMarc
@ZandMarc
Oct 14 2017 22:04
@danamlewis no, the DIA in my profile.json is set at 6, so that's right. I'll search on.
Dana Lewis
@danamlewis
Oct 14 2017 22:27
@ZandMarc k. sounds like you're doing ok poking around and investigating - let us know if you end up needing other ideas (and if so, let us know what you've already checked out). haven't heard of this happening before, so will be good to figure out what might be causing it, and/or how to resolve in case we can automate a fix for future casees.
garykidd
@garykidd
Oct 14 2017 22:51
@danamlewis can you please point me in the direction where latest log output is explained for running l` in latest dev. for instance.... minGuardBG among others
Dana Lewis
@danamlewis
Oct 14 2017 22:54
The dev Pr has the documentation/notes
Let us know if there's anything missing
In general, I would love for someone running dev to put together a Pr for the understanding determine-basal page (and target dev docs with that Pr). It needs updates regardless and hasn't been touched in a while.
ZandMarc
@ZandMarc
Oct 14 2017 23:30
Hmm, can't find where my problem with autotune comes from. Autotune calls for the file "profile.pump.json". I can't find that file. Somebody know where that is?
Found it
Deweyoxberg
@Deweyoxberg
Oct 14 2017 23:45
Hi all, has anyone seen an error like this in Nightscout before?
The BG values are completely incorrect... spamming 39 repeatedly is not correct, nor is going up then down in a few moments to exactly the same values (left side of graph)
Trying to narrow down what is causing this.