Bridges¶
For the full list of available bridges and to get help, join #bridges:mbot.ethz.ch. New bridges and updates will be posted in this room.
Hookshot¶
The source code for the bridge is available at matrix-hookshot on Github. Currently enabled features:
- Generic webhooks
Generic webhooks¶
Base URL: https://hookshot.mbot.ethz.ch/webhook/<hook>
- Invite hookshot (
@hookshot:mbot.ethz.ch
) to your unencrypted room - Give the bot permissions (Moderator)
- Send the message
!hookshot webhook <name>
(replace<name>
) - The bridge will send you an URL
The bridge accepts POST or PUT requests. See docs for details or the example below.
Example usage¶
Example json payloads:
{"text":"Hello world!"}
{"text":"Hello **world**!"}
{"text":"Hello world!","html":"Hello <b>world</b>!"}
{"text":"Hello world!","username":"Jay Doe"}
Example using httpie:
http POST "<url>" <<<'<payload>'
Example using curl
:
curl --header "Content-Type: application/json" --data '<payload>' "<url>"
Webhook API (Grafana, Slack)¶
Base URL: https://webhooks.mbot.ethz.ch/webhook/<api>/<hook>
This API translates incoming webhooks into generic webhooks (hookshot). The source code is available on ETH Gitlab or on Github.
- Create a generic webhook using hookshot (see above)
- Use the
<hook>
URL part from hookshot with the base URLs listed below
Grafana webhook notification¶
Base URL: https://webhooks.mbot.ethz.ch/webhook/grafana/<hook>
- Create a new notification channel for the room: Alerting > Notification channels
- Select Type:
webhook
- Paste the url into the Url field
- Disable Notification settings > Include image
Grafana Slack notification¶
Base URL: https://webhooks.mbot.ethz.ch/webhook/slack/<hook>
- Create a new notification channel for the room: Alerting > Notification channels
- Select Type:
Slack
- Paste the url into the Webhook Url field
- Disable Notification settings > Include image
- Optional: Set Optional Slack settings > Username to
Grafana
Heisenbridge¶
A bouncer-style Matrix IRC bridge. Can be used as an alternative to existing bridges using matrix-appservice-irc which already bridge many IRC networks to Matrix.
The source code is available at hifi/heisenbridge on Github.
- Start a DM with heisenbridge (
@heisenbridge:mbot.ethz.ch
) - Type
help
or<command> -h
to get started
Slack¶
Talk to rda in #bridges:mbot.ethz.ch if you want to bridge your Slack channels to Matrix.
A fully functioning bridge can be tested in #isg-slack-bridge:phys.ethz.ch.