Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Migration

René Kliment edited this page Dec 18, 2016 · 3 revisions

From other AlexaPi repositories (@sammachin, @maso27, ...) or AlexaCHIP, AlexaOPi, ...

This repository is a major rewrite that requires you to delete the whole old version and set up the new one from scratch.

Backup

First back up your creds.py and these lines:

#Settings
button = 18 #GPIO Pin with button connected
lights = [24, 25] # GPIO Pins with LED's conneted
device = "plughw:1" # Name of your microphone/soundcard in arecord -L

from main.py if you changed them, so you can reuse the config in the new version.

Also backup any changes to the code that you've made (if any) and please submit a Pull Request, so we can include them in master.

Removal

Run these commands (make sure you know what they do):

sudo /etc/init.d/AlexaPi stop
sudo rm /etc/init.d/AlexaPi
sudo update-rc.d AlexaPi defaults
sudo rm /var/log/alexa.log
sudo rm -rf /root/pocketsphinx
sudo rm -rf /root/AlexaPi
sudo rm -rf /home/pi/AlexaPi

Some of them may fail, because you might not have some of those files - that's okay.

New installation

Now follow the Installation guide like any new user. You can reuse the values from your old creds.py, but beware that the port has changed to 5050, so you might have to change your Allowed Origins over at Amazon.