Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mogery/cohost-notification-server
Deliver cohost notifications to an IFTTT Webhook.
https://github.com/mogery/cohost-notification-server
cohost
Last synced: 11 days ago
JSON representation
Deliver cohost notifications to an IFTTT Webhook.
- Host: GitHub
- URL: https://github.com/mogery/cohost-notification-server
- Owner: mogery
- License: mit
- Created: 2022-06-29T15:34:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-29T16:06:59.000Z (over 2 years ago)
- Last Synced: 2023-03-11T04:40:15.885Z (over 1 year ago)
- Topics: cohost
- Language: JavaScript
- Homepage:
- Size: 366 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cohost-notification-server
Deliver [cohost](https://cohost.org) notifications to an IFTTT Webhook.**This repo is not affiliated with cohost.**
## Setup
1. Clone the repo & install the dependencies
```bash
git clone [email protected]:mogery/cohost-notification-server.git
cd cohost-notification-server
npm i
```
2. Create your IFTTT Applet like so:
3. Get your IFTTT Webhook. You can find the link by clicking on the Documentation button on [this site](https://ifttt.com/maker_webhooks). **The correct link will be under the "To trigger an Event with 3 JSON values" heading.** When you have the link, you should replace `{event}` with `cohost_notification`.
4. Create a `.env` file in the root directory of the repo. Inside you should set 3 values. `COHOST_EMAIL` should be set to the e-mail address of your cohost account. `COHOST_PASSWORD` should be your cohost password. `IFTTT_WEBHOOK` should be the Webhook link that you just got. **Make sure that you replaced `{event}` with `cohost_notification`.**
Here's an example `.env` file (fill it out with your own info though):
```dotenv
[email protected]
COHOST_PASSWORD=hunter2
IFTTT_WEBHOOK=https://maker.ifttt.com/trigger/cohost_notification/with/key/randomstringofcharacters
```## Usage
```bash
node index.js
```It will crash if cohost goes down, so you should probably pair it with [forever](https://npmjs.com/package/forever):
```bash
forever index.js
```