Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyan903/alexa-triggers
Trigger pm2 and shell commands through Alexa.
https://github.com/cyan903/alexa-triggers
alexa ifttt-webhooks pm2 self-hosted webhook
Last synced: about 2 months ago
JSON representation
Trigger pm2 and shell commands through Alexa.
- Host: GitHub
- URL: https://github.com/cyan903/alexa-triggers
- Owner: Cyan903
- License: mit
- Created: 2022-07-17T20:44:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T13:51:20.000Z (over 2 years ago)
- Last Synced: 2023-06-07T07:26:29.444Z (over 1 year ago)
- Topics: alexa, ifttt-webhooks, pm2, self-hosted, webhook
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alexa-triggers
![latest-node-version](https://img.shields.io/node/v/pm2) ![last-commit](https://img.shields.io/github/last-commit/cyan903/alexa-triggers) ![repo-size](https://img.shields.io/github/repo-size/cyan903/alexa-triggers)Trigger [pm2](https://github.com/Unitech/pm2) and shell commands through [Alexa](https://developer.amazon.com/en-US/alexa). Useful for selfhosted setups and local servers.
## Requirements
- **Node >=10.0.0**
- Amazon Alexa
- [IFTTT](https://ifttt.com/) account## Setup
Clone and install the source:
```sh
$ git clone https://github.com/Cyan903/alexa-triggers.git
$ cd alexa-triggers
$ npm i
```Copy and edit the configs:
```sh
$ 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](https://ifttt.com/). 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](https://ifttt.com/). You can keep the server running with [pm2](https://github.com/Unitech/pm2) or any other process manager.
```sh
$ pm2 start src/triggers.js
```## License
[MIT](LICENSE)