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

13th
May 2019
Scott Leibrand
@scottleibrand
May 13 03:30
Looks like you need to install mraa? It’s not installed by default on dev, but the install scripts for master have the lines you need.
jonny772
@jonny772
May 13 10:32
Does anyone know if i can just swap out the SN of the pump to change it from a 712 in dev070? My "new" 722 just arrived
CJay9209
@CJay9209
May 13 11:53

Hey guys. Super new to openaps and had some issues setting up the loop. Under the options for radio I have been selecting rfm69hcw (DIY SPI) as my radio unit. I'm using the adafruit rfm69hcw without the led (the one on the instructional). All attached to a pi zero w.

Is this the correct option for me? Also after that it asks me about the radio tags. Admittedly I know nothing and just selected the radiofuit option so I may be way off on this. I'm very techy and build a lot of my own electronics but I'm a bit stumped by this. Transceivers are something I've never even touched tbh.

In my logs for the loop I'm getting a failed preflight and after a few of those I get a message about being unable to connect to the rfm69hcw. Unexpected hardware version 0000 (expected 0204)

I can usually debug and work things out but I'm a wee bit lost here. Help would be appreciated thanks!

Jon Cluck
@cluckj
May 13 12:36
@CJay9209 did the diagram you used have CE0 or CE1 on it?
Scott Leibrand
@scottleibrand
May 13 13:58
@jonny772 no, you should rerun oref0-setup to switch pump models.
jonny772
@jonny772
May 13 13:58
@scottleibrand Cheers, will be my evening project!
Eric
@ecc1
May 13 14:24
@CJay9209 the unexpected hardware error almost always means the radio module wasn't connected in the way that the software expects. The software supports 2 wiring schemes, an older one (the "walrus" tag) and the newer one that's compatible with the Adafruit bonnet module
CJay9209
@CJay9209
May 13 16:07
@ecc1 I'll give that a shot. I have the basic board and not the bonnet. Sounds like I picked the wrong option.
David
@davidkeddydb
May 13 18:34
Does anyone here know if anyone is working on getting the OpenAPS algo into a "Loop like" app for iphone, using Rileylink, etc?
j4cbo
@j4cbo
May 13 18:56
there's AndroidAPS... running oref0 on iOS would be a big pain since AIUI it's written with node.js
David
@davidkeddydb
May 13 19:00
@jcbo I bountied up for OmniLoop. I think I see a OpenAPS working with a Loop like app with RileyLink bounty coming up. I miss UAM and I miss SMB. I don't miss carrying the rig or being tubed though. Control is good, just not as great.
David
@davidkeddydb
May 13 19:53
@ecc1 If memory serves, with AAPS then you still carry a rig with an RL. I would rather see just the RL with the app on the phone. The ability to loop without WIFI, internet is also super great. (I have been to spoiled going from OpenAPS to Open Omni)
Eric
@ecc1
May 13 20:00
Memory fails :-)
AAPS on phone talks to RL talks to pump, no rig
David
@davidkeddydb
May 13 20:01
@ecc1 I don't where the heck I got it that you needed another rig as well. Fake news!
I will look into this. I don't particularly care that much about 2 phones
Jon Cluck
@cluckj
May 13 20:04
are you thinking of omnipy? that does need a pi at the moment
David
@davidkeddydb
May 13 20:04
@cluckj I probably am mixing up the 2
so AAPS no pi, omnipy = pi
Jon Cluck
@cluckj
May 13 20:05
I think omnipy uses a rileylink + pi + AAPS to loop with omnipods on android
rileylinkAAPS will use a rileylink + AAPS to loop with compatible medtronic pumps on android
David
@davidkeddydb
May 13 20:08
I think AAPS is also working to try and work with Omni and an RL also, no pi
pmgauthier
@pmgauthier
May 13 20:46

I am having trouble upgrading my Edison rig to the latest Dev. I have (multiple times) reflashed my Edison to Jubilinix 0.3.0 and successfully ran the wifi/dependencies script and the interactive setup script to install Master version of oref0.

Since then I have followed the steps to upgrade to Dev build and global-install. All of this was done with limited troubleshooting.

However, when I run a fresh interactive setup script on the dev oref0 install, I run into diskspace issues time and time again (even with following guides to troubleshoot diskspace issues from the OpenAPS docs.

The Warning:

No space left on device
Couldn't copy go/bin

Running df -h shows this:

Filesystem Size Used Avail Use% Mounted on
/dev/root 1.4G 603M 713M 46% /
devtmpfs 481M 0 481M 0% /dev
tmpfs 481M 0 481M 0% /dev/shm
tmpfs 481M 6.7M 474M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 481M 0 481M 0% /sys/fs/cgroup
tmpfs 481M 106M 376M 22% /tmp
/dev/mmcblk0p7 32M 4.8M 28M 16% /boot
/dev/mmcblk0p10 1.3G 1.3G 36K 100% /home
tmpfs 97M 0 97M 0% /run/user/0

I feel like the /home directory at 1.3G and 100% full does not make sense. Has anyone experienced this or have any ideas?

jonny772
@jonny772
May 13 20:48

@pmgauthier Same here, the dev doesnt fit on the edison. Here is the fix Jon Cluck gave me:

Install Jubilinux then change partition by:

cd /usr/local && mkdir go
mount /dev/mmcblk0p9 /usr/local/go

then run bootstrap

Jon Cluck
@cluckj
May 13 20:49
yeah oops, forgot to get that merged :eyes:
jonny772
@jonny772
May 13 20:50
@cluckj What ive found with the fix is that it works but only on a clean install. I couldn't re-run the setup script even if i mounted the partition first
Jon Cluck
@cluckj
May 13 20:50
echo 'Removing golang from /usr partition...' && rm -rf /usr/local/go && mkdir -p /usr/local/go
echo 'Adding Edison FAT32 partition to /etc/fstab...' && echo "/dev/mmcblk0p9 /usr/local/go auto defaults 1 1" >> /etc/fstab
echo 'Mounting Edison FAT32 partition...' && mount -a
that'll make it persistent ^
@jonny772 the last 2 lines are what you want, skip the first :)
@pmgauthier use all three of those lines, and then re-run setup
jonny772
@jonny772
May 13 20:53
Thanks @cluckj
pmgauthier
@pmgauthier
May 13 20:54
Wow. You guys are great. Just did what @cluckj recommended and rerunning setup script. Here's hoping!!
pmgauthier
@pmgauthier
May 13 21:12

No Luck :( Going to try again with a fresh flash/install.

Just so I have it straight, I should do as follows:

1) Flash Edison
2) Install dependencies/Wifi Setup
3) cd ~/src/oref0 && git checkout dev && git pull
4) npm run global-install
5) echo 'Adding Edison FAT32 partition to /etc/fstab...' && echo "/dev/mmcblk0p9 /usr/local/go auto defaults 1 1" >> /etc/fstab
echo 'Mounting Edison FAT32 partition...' && mount -a
6) Run Interactive setup Script
7)Loop with all the fun features in Dev!?

Thanks again, @jonny772 & @cluckj. Despite my setbacks, I have hope again!

P.S. I got my first A1C back today after 2-3 months of OpenAPS and iOS Loop combined.. Went from 8.9% to 7.0%!! My lowest in 26 Years of Type 1 Diabetes. This community is invaluable and truly life changing.
jonny772
@jonny772
May 13 21:17
@pmgauthier move step 5 up to step 2. You want to install open aps in the new location
pmgauthier
@pmgauthier
May 13 21:18
Thanks @jonny772
jonny772
@jonny772
May 13 21:18
and replace your current step2 with the bootstrap script
incorrect
pmgauthier
@pmgauthier
May 13 21:21
Awesome. Will update after watching it rain code for a couple hours :P
jonny772
@jonny772
May 13 21:21
@pmgauthier Just did a fresh install myself, half a bottle of wine seems to have gone missing in the process
pmgauthier
@pmgauthier
May 13 21:22
@jonny772 I better stock up!
jonny772
@jonny772
May 13 21:23
wait a sec, i got it wrong above

1) Flash Edison

2) echo 'Adding Edison FAT32 partition to /etc/fstab...' && echo "/dev/mmcblk0p9 /usr/local/go auto defaults 1 1" >> /etc/fstab
echo 'Mounting Edison FAT32 partition...' && mount -a

3) run bootstrap
3a) dont run the setup script yet
4) cd ~/src/oref0 && git checkout dev && git pull
5) npm run global-install
6) Run Interactive setup Script
7)Loop with all the fun features in Dev!?

pmgauthier
@pmgauthier
May 13 21:25
Right on. Updated my list.
Jon Cluck
@cluckj
May 13 21:31
^ yep
you'll need to mkdir /usr/local/go in there too
pmgauthier
@pmgauthier
May 13 21:38

Ok. Slotted that into step 2:

1) Flash Edison
2a) mkdir /usr/local/go
2b) echo 'Adding Edison FAT32 partition to /etc/fstab...' && echo "/dev/mmcblk0p9 /usr/local/go auto defaults 1 1" >> /etc/fstab
2c) echo 'Mounting Edison FAT32 partition...' && mount -a

3a) run bootstrap
3b) dont run the setup script yet
4) cd ~/src/oref0 && git checkout dev && git pull
5) npm run global-install
6) Run Interactive setup Script
7)Loop with all the fun features in Dev!?

Jon Cluck
@cluckj
May 13 21:42
the mkdir should go first in part 2
:thumbsup:
pmgauthier
@pmgauthier
May 13 23:08

It worked! Truth be told the error happened again, but I re-ran setup after an 'apt-get clean' and that seamed to work! [Or maybe just trying again was all it needed] :wine_glass: :smile:

Much thanks to both @cluckj and @jonny772 !
Thanks for keeping me in the loop!

Jon Cluck
@cluckj
May 13 23:11
can you do a df -h?
pmgauthier
@pmgauthier
May 13 23:34
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.4G 464M 853M 36% /
devtmpfs 481M 0 481M 0% /dev
tmpfs 481M 0 481M 0% /dev/shm
tmpfs 481M 6.7M 474M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 481M 0 481M 0% /sys/fs/cgroup
tmpfs 481M 28K 481M 1% /tmp
/dev/mmcblk0p7 32M 4.8M 28M 16% /boot
/dev/mmcblk0p10 1.3G 1.1G 222M 83% /home
/dev/mmcblk0p9 767M 287M 480M 38% /usr/local/go
tmpfs 97M 0 97M 0% /run/user/0
Home was at 100% before my final try at apt-get clean and setup script succeeded..
Jon Cluck
@cluckj
May 13 23:37
:thumbsup: cool