Skip to content

eigger/MMM-Webhook-Notification

Repository files navigation

MMM-Webhook-Notification

Module installation

Clone the module and npm install:

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

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.

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?"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors