This is my second attempt with this skill, on the last contest I failed certification; but this time I was reading carefully the Intents topics and references, and I could certify my skill :) and now I want to able my skill to my Raspberry, converting it in a Amazon Echo.
I have a music channel on YouTube, I'm a beginner YouTuber, and I always like to see how many subscribers I have (is increasing slowly but increasing) and to avoid entering YouTube every moment, I think it's easier to ask Alexa ( via a voice command) and as I have an Echo, because my Raspberry Pi will become one. Long ago he had heard about it and I wanted to try, but did not have time; and what better opportunity this contest, to finally realize it :)
My Raspberry Kit- USB Audio Dongle
- Speaker
- Microphone
I still do not get the additional components, but these days go to buy them :)
BUILDING ALEXA PIComing Soon...
SKILL DEVELOPMENTMy skill allow to Alexa to tell you the number of subscribers of your YouTube Channel
FirstYou need create a project on Google API Console
and enable YouTube API 3.0
and generate a Key API
Replicate the same tutorial, but this time clone the HelloWorld Sample on
https://github.com/amzn/alexa-skills-kit-js/tree/master/samples/helloWorld
ThirdEnjoy, modifying the Hello World Sample.
You need install the sync-request library (request libraries ins't async and that is a big problem)
npm install sync-request
After, test the URL
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=&key=
with your Youtube Channel ID and generated Key.
After that, read the JSON and code the Skill is better easy.
Finally, add this code to Hello World Sample, modify the Invocation Name and Intents & Utterances
SKILL CERTIFIEDYou can view (and test) my Skill Live on
http://alexa.amazon.com/spa/index.html#skills/dp/B01GDSLKE2/?ref=skill_dsk_skb_sr_0
Comments