Skip to content

silaswint/alexa-youtube-unofficial

Repository files navigation

alexa-youtube-unofficial

Idea

Sag "Alexa, öffne bei Youtube Galaxy-Musik" und öffne die Audio des ersten Treffers

"invocationName" ist der Einstiegspunkt für die App. Zum Beispiel "Alexa, starte Youtube"

Requirements

npm i --global ngrok npm install -g ask-cli

Documentary

Create app

create app for the first time (git repo must be public) Working:

  1. https://developer.amazon.com/alexa/console/ask/editor

Not working:

  1. ask new --template-url https://github.com/silaswint/alexa-youtube-unofficial.git --template-branch master

    modeling stack: Interaction Model method to host your skill's backend resources: Alexa-hosted skills Please type in your skill name: youtube-unofficial folder name for the skill project: youtube-unofficial (wait) copy skill id

Deployment

https://developer.amazon.com/de-DE/docs/alexa/smapi/ask-cli-command-reference.html#generate-lwa-tokens

first time usage:

  1. npm install -g ask-cli
  2. ask configure --no-browser
  3. Anweisungen folgen, bei "Do you want to link your AWS account in order to host your Alexa skills?" dann "No" auswählen

use app for the first time

  1. "ask configure --no-browser" nochmals ausführen

    create new profile profile name: "silas" url kopieren, im Browser einfügen und Authoriziation code kopieren, dann einfügen Do you want to link your AWS account in order to host your Alexa skills? (Y/n) n

  2. ask init

    copy skill id from https://developer.amazon.com/alexa/console/ask skill package path: ./skill-package lambda code path: ./lambda use AWS cloudFormation to deploy Lambda: n Lambda runtime: nodejs16.x Lambda handler: index.handler

deploy for AWS:

  1. ask deploy

deploy for amazon self-hosted git:

  1. (first time usage) ask util git-credentials-helper
  2. git config credential.helper '!aws codecommit credential-helper $@' git config credential.UseHttpPath true
  3. git push origin master

debug

  1. (is possibly not working*) ask run --region EU
  2. in second terminal: ask dialog --replay dialog-en-US.json

Workaround-debug

  1. npm start
  2. ask run --debug-port 5000 --region EU
  3. ask dialog --replay dialog-en-US.json

Limitations for this repository

https://developer.amazon.com/en-US/docs/alexa/hosted-skills/alexa-hosted-skills-git-import.html#prerequisites-and-requirements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published