出自flip the world 檢視Application - Alexa的原始碼 頁面討論 閱讀檢視原始碼檢視歷史 ←Application - Alexa 您沒有權限執行編輯此頁面,由於以下原因: 您請求的操作只有這個群組的使用者能使用:使用者 您可以檢視並複製此頁面的原始碼。 Running '''Alexa Voice Service''' on a Raspberry Pi and driving smart-home devices through AWS Lambda and AWS IoT, through to skill certification. [[File:Alexa-logo-3.png|thumb|300px|Alexa Logo]] [[File:RPi3_ALEXA.JPG|thumb|300px|RPi3_Alexa]] == Hardware == * PRi * Speaker * Microphone == OS == * Raspbian == Software == * Configure AVS(Alexa Voice Service) ** https://developer.amazon.com/avs/home.html * Connect AVS in your Pi ** git clone https://github.com/novaspirit/AlexaPi/ ** Go to AlexaPi, then, run "python main.py" *Software apps and online services: ** Alexa Skills Kit ** AWS Lambda ** AWS IoT ** Alexa Voice Service == Python requirement == * pip install --upgrade pip * pip install --upgrade requests == Configure AWS CLI == <pre> pi@raspberrypi:~/projects/rpi/alexa/AWShome $ aws configure AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Default region name [None]: us-east-1 Default output format [None]: </pre> == Smart home arch == [[File:Avs_lambda_iot.jpeg|AVS_Lambda_IOT]] == Create the Things using AWS IoT == * update awscli version to 1.11.75 above <pre> pi@raspberrypi:~/projects/rpi/alexa/AWShome $ aws iot create-thing --thing-name floor-lamp usage: aws [options] <command> <subcommand> [parameters] aws: error: argument command: Invalid choice, valid choices are: autoscaling | cloudformation cloudfront | cloudsearch cloudsearchdomain | cloudtrail cloudwatch | cognito-identity cognito-sync | datapipeline directconnect | dynamodb ec2 | elasticache elasticbeanstalk | elastictranscoder elb | emr iam | importexport kinesis | logs opsworks | rds redshift | route53 route53domains | sdb ses | sns sqs | storagegateway sts | support swf | s3api s3 | configure help </pre> == ALEXA Skill submit == [[File:Alexa_skill_submit.jpg|Alexa skills submit]] == ALEXA Skill has passed Amazon certification process == [[File:Amazon_skill_passed.jpg|Your Alexa skill Project K is now live!]] == ALEXA Skill Alive == [[File:Amazon_skill_alive.jpg| skill alive]] == Search my skill in amazon.com == [[File:Amazon_search_project_k.jpg|Search skill in amazon.com]] == Reference == * [https://blog.yorkxin.org/2013/09/30/oauth2-1-introduction OAuth 2.0 筆記 (1) 世界觀] * [https://www.hackster.io/awshome/awshome-home-automation-using-rpi-alexa-iot-a3d3dc AWShome - Home automation using RPi + Alexa + IoT] * [https://developer.amazon.com/blogs/post/TxWSCWZI9SPYNT/Coding-Smart-Home-Skill-Adapter-Directives-Using-Node-js Coding Smart Home Skill Adapter Directives Using Node.js] * [https://developer.amazon.com/blogs/post/Tx480XF5QCA6IN/managing-device-discovery-for-your-alexa-smart-home-skill Managing Device Discovery for Your Alexa Smart Home Skill] * [https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/linking-an-alexa-user-with-a-user-in-your-system Linking an Alexa User with a User in Your System] [[Category:Projects]] 返回到「Application - Alexa」。