#To use the Amazon’s Alexa voice service, you will need to create an account and register your device in #Amazons developer site. Since I already created an account from publishing some skill sets, the #following instructions pertain to after you created an account. #1. On your Raspberry Pi, get your IP address (e.g. 192.167.1.142). #a. You can get this using the command: ifconfig #2. Click on AlexaAlexa Voice ServiceRegister a Product Type and select Device #3. Enter a unique name in Device Type ID and Display name. I used the same name. #4. From the ‘Select Security Profile’ menu, select ‘Create a new profile.’ #5. Click on the Web Settings Tab, click Edit, and enter the following by : #a. Allowed Origins: http://localhost:5000 #b. Hit ‘add another’ and add the following: #c. http://(your IP you got from step 1):5000 #d. Allowed Return URL’s: http://localhost:5000/code #e. Hit ‘add another’ and add the following: #f. http://(your IP you got from step 1):5000 #g. click next #6. The next page is for administrative purposes only. Here’s what I entered: #7. Click next, then go into ‘Security Profile’ #NOTE: **You will need need this information to complete setup. #8. Go to your Raspberry Pi and type the following: sudo apt - get update && sudo apt - get install – f git clone https : // github . com / the - raspberry - pi - guy / Artificial - Intelligence - Pi cd Artificial - Intelligence - Pi sudo ./ setup . sh #9. Enter the above information you saved from above #a. Product ID : what you entered in step 3 #b. Security Profile Description: what you entered in step 3 #c. Security Profile ID: what you entered in step 7 #d. Client ID: what you entered in step 7 #e. Client Secret: what you entered in step 7 #10. To get automatic start on bootup: #a. Find out where your main.py script is. #b. For example, consider your main.py is in /home/pi/Artificial-Intelligence-Pi #c. Go to your root folder. Then type the following: sudo nano crontab – e @reboot python / home / pi / Artificial - Intelligence - Pi / main . py & #11. Open up initd_Alexa.sh and comment out the line that reads: “Python/root/…main.Py &” #12. Save and exit sudo reboot #13. A note about proper shutdown. #if you’re out for an extended period of shutdown and you have followed my instructions #above, you should be able to access both Rasperry Pi’s via Bluetooth keyboard. #For each Raspberry Pi, access the terminal by pressing Cntrl-alt-T, together. #-then type: sudo shutdown – h now #This will stop all running scripts and properly shuts down the Raspberry Pi. #*And there you have it..the Alexa Magic Mirror2