https://github.com/eigger/mmm-webhook-notification
https://github.com/eigger/mmm-webhook-notification
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eigger/mmm-webhook-notification
- Owner: eigger
- License: other
- Created: 2023-11-07T08:36:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-09T08:27:24.000Z (over 2 years ago)
- Last Synced: 2023-11-09T10:28:38.957Z (over 2 years ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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?"
```