Install StdLib CLI tools:
$ npm install lib.cli -g
Create a file named env.json
and copy in your uptimerobot.com API key:
{
"dev": {
"uptimerobot_key": "UPTIMEROBOT_API_KEY"
},
"release": {
"uptimerobot_key": "UPTIMEROBOT_API_KEY"
}
}
Create an StdLib account and modify the stdlib
object in package.json
to match your username. Then, deploy the development version:
$ lib up dev
Sign in to the Alexa Skills Kit and add a new skill named Uptime Robot
with the following custom interaction model:
{
"intents": [
{
"intent": "CheckStatusIntent",
"slots": [
{
"name": "monitor",
"type": "MONITOR"
}
]
},
{
"intent": "AMAZON.StopIntent"
}
]
}
Create a custom slot type called MONITOR
with your Uptime Robot monitor names:
blog
website
CheckStatusIntent what is the status of {monitor}
CheckStatusIntent get the status of {monitor}
CheckStatusIntent check the status of {monitor}
CheckStatusIntent is {monitor} up
CheckStatusIntent is {monitor} down
CheckStatusIntent is {monitor} running
Point the HTTPS endpoint to your StdLib account's instance of alexa-uptimerobot
(e.g. https://stdlib_username.stdlib.com/alexa-uptimerobot@dev
).
Test skill locally
$ lib .
$ lib . CheckStatusIntent --monitor Blog