Clone the module and npm install:
cd ~/MagicMirror/modules
git clone https://github.com/eigger/MMM-Webhook-Notification.git
cd MMM-Webhook-Notification
npm installAdd the module config to ~/MagicMirror/config/config.js
modules: [
{
module: 'MMM-Webhook-Notification',
position: 'fullscreen_above',
}
]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.
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?"