/alexa-triggers

Trigger pm2 and shell commands through Alexa.

Primary LanguageJavaScriptMIT LicenseMIT

alexa-triggers

latest-node-version last-commit repo-size

Trigger pm2 and shell commands through Alexa. Useful for selfhosted setups and local servers.

Requirements

  • Node >=10.0.0
  • Amazon Alexa
  • IFTTT account

Setup

Clone and install the source:

$ git clone https://github.com/Cyan903/alexa-triggers.git
$ cd alexa-triggers
$ npm i

Copy and edit the configs:

$ sudo cp ext/nginx.conf /etc/nginx/conf.d/alexa.conf
$ cp ext/config.example.json config.json

Create and configure an account on ifttt. Create an applet and select Amazon Alexa for if this. Choose say a specific phrase. Next, select webhooks for then that.

Finally, configure the webhook to match config.json.

Now you should be set. All that's left is to run the server and make sure it's accessible through ifttt. You can keep the server running with pm2 or any other process manager.

$ pm2 start src/triggers.js

License

MIT