mirror of https://github.com/caronc/apprise
Page:
Notify_mattermost
Pages
CLI_Usage
DemoPlugin_Basic
DemoPlugin_WebRequest
Development_API
Development_Apprise_Details
Development_Contribution
Development_LogCapture
Home
Notification_Graveyard
Notify_Custom_Form
Notify_Custom_JSON
Notify_Custom_XML
Notify_Revolt
Notify_africas_talking
Notify_apprise_api
Notify_aprs
Notify_bark
Notify_boxcar
Notify_bulksms
Notify_bulkvs
Notify_burst_sms
Notify_chantify
Notify_clicksend
Notify_d7networks
Notify_dapnet
Notify_dbus
Notify_dingtalk
Notify_discord
Notify_email Fastmail
Notify_email
Notify_emby
Notify_enigma2
Notify_faast
Notify_fcm
Notify_feishu
Notify_flock
Notify_freemobile
Notify_gitter
Notify_gnome
Notify_googlechat
Notify_gotify
Notify_growl
Notify_guilded
Notify_homeassistant
Notify_httpsms
Notify_ifttt
Notify_join
Notify_kavenegar
Notify_kodi
Notify_kumulos
Notify_lametric
Notify_line
Notify_lunasea
Notify_macosx
Notify_mailgun
Notify_mastodon
Notify_matrix
Notify_mattermost
Notify_messagebird
Notify_misskey
Notify_mqtt
Notify_msg91
Notify_msteams
Notify_nexmo
Notify_nextcloud
Notify_nextcloudtalk
Notify_notica
Notify_notifiarr
Notify_notifico
Notify_ntfy
Notify_office365
Notify_onesignal
Notify_opsgenie
Notify_pagerduty
Notify_pagertree
Notify_parseplatform
Notify_plivo
Notify_popcornnotify
Notify_prowl
Notify_pushalot
Notify_pushbullet
Notify_pushdeer
Notify_pushed
Notify_pushjet
Notify_pushme
Notify_pushover
Notify_pushsafer
Notify_pushy
Notify_reddit
Notify_rocketchat
Notify_rsyslog
Notify_ryver
Notify_sendgrid
Notify_serverchan
Notify_ses
Notify_seven
Notify_sfr
Notify_signal
Notify_simplepush
Notify_sinch
Notify_slack
Notify_sms_manager
Notify_smseagle
Notify_smtp2go
Notify_sns
Notify_sparkpost
Notify_splunk
Notify_spontit
Notify_streamlabs
Notify_stride
Notify_synology_chat
Notify_syslog
Notify_techulus
Notify_telegram
Notify_threema
Notify_toasty
Notify_twilio
Notify_twist
Notify_twitter
Notify_voipms
Notify_wecombot
Notify_whatsapp
Notify_windows
Notify_workflows
Notify_wxpusher
Notify_wxteams
Notify_xbmc
Notify_xmpp
Notify_zulip
Sponsors
Troubleshooting
URLBasics
config
config_text
config_yaml
decorator_notify
persistent_storage
showcase
12
Notify_mattermost
Chris Caron edited this page 2022-11-17 22:13:40 -05:00
Table of Contents
Mattermost Notifications
- Source: https://mattermost.com/
- Icon Support: Yes
- Message Format: Text
- Message Limit: 4000 Characters per message
To use this plugin, you need to first set yourself up with http://mattermost.com. Download their software and set it up.
From here you'll need an *Incoming Webhook. This can be done as follows:
- Click on the Integrations option under the channel dropdown and select Incoming Webhook:
- From here you can select Add Incoming Webhook:
- Finally you'll be able to customize how you want the webhook to act/behave and you can press Save at the bottom when you're complete.
An example URL you may be provided could look like this:
# The URL provided by Mattermost:
http://localhost:8065/hooks/yokkutpah3r3urc5h6i969yima
^ ^ ^
| | |
hostname port webhook token
# From here you can do the following to generate your Apprise URL:
# - http:// becomes mmost://
# - drop /hooks reference
# Which gets you:
mmost://localhost:8065/yokkutpah3r3urc5h6i969yima
Syntax
Valid syntaxes are as follows:
mmost://{hostname}/{token}
mmost://{hostname}:{port}/{token}
mmost://{botname}@{hostname}/{token}
mmost://{botname}@{hostname}:{port}/{token}
mmost://{hostname}/{path}/{token}
mmost://{hostname}:{port}/{path}/{token}
mmost://{botname}@{hostname}/{path}/{token}
mmost://{botname}@{hostname}:{port}/{{path}/token}
Secure connections (via https) should be referenced using mmosts:// where as insecure connections (via http) should be referenced via mmost://; they follow the same structure:
mmosts://{hostname}/{token}
mmosts://{hostname}:{port}/{token}
mmosts://{botname}@{hostname}/{token}
mmosts://{botname}@{hostname}:{port}/{token}
mmosts://{hostname}/{path}/{token}
mmosts://{hostname}:{port}/{path}/{token}
mmosts://{botname}@{hostname}/{path}/{token}
mmosts://{botname}@{hostname}:{port}/{{path}/token}
Parameter Breakdown
Variable | Required | Description |
---|---|---|
hostname | Yes | The server Mattermost is listening on. |
token | Yes | The Webhook Token you would have received after setting up the Mattermost Incoming Webhook |
port | No | The server port Mattermost is listening on. By default the port is 8065. |
path | No | You can identify a sub-path if you wish. The last element of the path must be the token. |
botname | No | An optional botname you can associate with your post |
image | No | Identify whether or not you want the Apprise image (showing status color) to display with every message or not. By default this is set to yes. |
channels | No | You can optionally specify as many channels as you want in a comma separated value (as a keyword argument). See example below for how to use this. You must also not restrict your Incoming Webhook to only focus on a specific channel or providing alternatives here will not work. |
Example
Send a secure Mattermost notification to our server
# Assuming our {hostname} is mattermost.server.local
# Assuming our {token} is 3ccdd113474722377935511fc85d3dd4
apprise -vv -t "Test Message Title" -b "Test Message Body" \
mmosts://mattermost.server.local/3ccdd113474722377935511fc85d3dd4
Send a secure Mattermost notification to our server running on TCP Port 8065
# Assuming our {hostname} is mattermost.server.local
# Assuming our secure {port} our server is running on is 8065
# Assuming our {token} is 3ccdd113474722377935511fc85d3dd4
apprise -vv -t "Test Message Title" -b "Test Message Body" \
mmosts://mattermost.server.local:8065/3ccdd113474722377935511fc85d3dd4
Send an insecure Mattermost notification to server in addition to having to address specific channels:
# Assuming our {hostname} is mattermost.server.local
# Assuming our {token} is 3ccdd113474722377935511fc85d3dd4
# Assuming our {channels} is #support and #general
# We don't need to provide the '#' (hashtag) prefix:
apprise -vv -t "Test Message Title" -b "Test Message Body" \
mmost://mattermost.server.local/3ccdd113474722377935511fc85d3dd4?channels=support,general