Skip to content
dexdan edited this page Apr 30, 2019 · 14 revisions

Omnipy v1.4

Upgrading not supported yet

Omnipy v1.4 is released as a raspberry pi image and there is no upgrade procedure defined yet. Information below refers to upgrading of earlier versions.

Legacy upgrade procedure

Each new release of omnipy will require both Android APS and the omnipy software to be updated. The latest versions can be found in the master branch of omnipy and omnipod-master branch of AndroidAPS at the following locations:

https://github.com/winemug/omnipy
https://github.com/winemug/AndroidAPS

Backing up previous omnipy installation

We recommend to backup the current setup before upgrading to another one.

To do this, start by using ssh to connect to your raspberry pi.

Then to backup with today's date (replace the YYYYMMDD by your date):

cd ~
tar -cvzf omnipy_backup_YYYYMMDD.tar.gz omnipy

(Note if you need to restore the backup in future then:

cd ~
mv omnipy omnipy_revert
tar -xvzf omnipi_backup_YYYYMMDD.tar.gz
sudo reboot

)

Once the backup is done, you can proceed to the omnipy update as follows.

Upgrading omnipy

Type the following to update to the latest repository version.

cd ~/omnipy
./scripts/pi-update.sh

(Note that if you want to use a different branch, eg dev, then you would need to enter:

cd omnipy
git checkout dev
git pull
./scripts/pi-update.sh

)

Upgrading AAPS

Follow the instructions in Android APS setup - Step 2 to re-create the APK file (make sure you update your local repository with a "pull" first), copy it over to your android device and perform the installation. Android will update the existing installation and you won't need to reconfigure the AndroidAPS application. (Note for further information on upgrading AndroidAPS please see https://androidaps.readthedocs.io/en/latest/EN/Installing-AndroidAPS/Update-to-new-version.html).