From HFML-FELIX Wiki
- Create or re-use a Mattermost incoming webhook URL.
- Log into EMQx dashboard
- Create a new webhook resource, add your url, give it a recognisable name
https://mattermost.science.ru.nl/hooks/xxx-generatedkey-xxx
- Create a new rule, for instance:
SELECT topic, payload FROM "building/RSS/#" WHERE topic not in ("building/RSS/daemon time", "building/RSS/Ready for sweep", "building/RSS/Door config")
- Publish to your webhook resource using Mattermost format (JSON)
{"text": "${topic}: ${payload}"}
- This will now go to the default channel of the webhook. It is possible to add
"channel": "channelname"into the JSON payload.