An open API service indexing awesome lists of open source software.

https://github.com/eigger/mmm-webhook-notification


https://github.com/eigger/mmm-webhook-notification

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# MMM-Webhook-Notification

## Module installation

Clone the module and npm install:

```bash
cd ~/MagicMirror/modules
git clone https://github.com/eigger/MMM-Webhook-Notification.git
cd MMM-Webhook-Notification
npm install
```

Add the module config to `~/MagicMirror/config/config.js`

```javascript
modules: [
{
module: 'MMM-Webhook-Notification',
position: 'fullscreen_above',
}
]
```

# Sending WebHook Notifcations

Once you have configured your router/reverse proxy to route HTTP POST traffic to your Magic Mirror, you can send any HTTP POST messages using the url http://magic mirror url:8080/webhook?

You can use CURL for testing.

```bash
curl -X POST -H "Content-Type: application/json" \
-d '{"message":"hello", "status":"info", "timeout":"5000", "position":"tc", "width":"400px", "icon":"error", "size":"16px", "effect":""}' \
"http://magic mirror url:8080/webhook?"
```