ALEXA SKILLS UK STORE LINK TO ENABLE THIS SKILL
A most use-full Alexa Skill to reports on sky condition which calls the Dark Sky API to determine weather in a specific city or location and also to say if it will rain in the next hour or not.This skill can be used to check weather before planning to go for a walk or a quick outing with friends or family to avoid getting struck in heavy rain's or bad weather.
- An Amazon developer and AWS account
- An API key from Dark Sky, available at https://darksky.net/dev/
- The latitude and longitude of the region or city you want to fetch the weather for
AMAZON WEB SERVICE CONFIGURATION
1.Create an Amazon Web Service account & Amazon Developer account
2.In AWS create a Lambda Function in compute section of Web service using the following Configuration.
a.) Select Create Lambda Function & select blueprint.In this select runtime as node.js and search for alexa & Select 'alexa-skills-kit-color-expert' (this will create a template function for us to work from) from the search result or you can just skip this step
b.)Next Step is selecting Configure Trigers Click Plain square box left to Lambda Icon and Select Alexa Skill Set and Click Next
c.)Configure the function as given below and in EDIT CODE INLINE AREA just replace the template code with the Drizzle code given below.In Code just replace with your own DARK SKY API and location for which city you want to enable this skill
A summary of the configuration should be shown,check for any error and go ahead and click create function.Go to the function and just copy the ARN Code which will be used in Amazon Development account to create skill
Amazon Developer Account to Develop This Skill- Go to amazon developer site https://developer.amazon.com/ and sign in
- Select "Alexa" from the top navigation and select "Alexa Skill kit"->Add new Skill
- configure the skill as follows .I have choosen DRIZZLE CLOUD as my invocation name.Click Next
- Set the interaction model as follows.Intent schema:
{
"intents": [
{
"intent": "Drizzle"
}
]
}
Sample Utterances:
On the "Configuration" section add in the ARN of the Lambda function you created (you can find this at the top right of the Lambda page when editing the code of the function):
- The Next step is testing.since i have published my skill i cant get images of testing the function.In servcie simulator enter the Utterance as "will it rain after an hour" and click Ask Drizzle.You can see the output speech of alexa in service response
d.)The next is publishing information.Here enter skill Description,example phrases,keywords,category,icon& testing informations.Click next and enter the Privacy details as show in image and click Sumbit for Certification
1. Go to alexa.amazon.co.uk and login to your ECHO linked amazon account account .
2. Select Skill from next left tab and search for Drizzle and select Drizzle (by Vignesh) from search result and click Enable this skill.That it you amazon echo as got this skill and you ask weather updates in your city
Sample Phrases to ask for weather
- Alexa ask Drizzle cloud will it rain after an hour
- Alexa ask Drizzle cloud what is the weather in washington
- Alexa ask Drizzle cloud Is it raining now
3. Link to enable skill: https://www.amazon.co.uk/Vignesh-Drizzle/dp/B01MG84QFZ/ref=sr_1_1?s=digital-skills&ie=UTF8&qid=1496346365&sr=1-1&keywords=drizzle
4. Amazon Alexa Application I.D- amzn1.ask.skill.02fa7b5c-368c-4d7c-83e7-4a1c8723ee43
Thanks for spending time on reading my steps to build this skill.If you like this skill press respect.Thanking you :)
Comments