6 Notify_gitter
Chris Caron edited this page 2023-08-20 00:54:17 -04:00

Gitter Notifications

  • Source: https://gitter.im/
  • Icon Support: Yes
  • Message Format: Markdown
  • Message Limit: 32768 Characters per message

UPDATE

Gitter uses Matrix and does not have it's own custom service anymore.

LEGACY INFORMATION BELOW

Account Setup

Gitter isn't to difficult to get yourself an account on their website.

From here, you just need to get your Gitter Personal Access Token which is as simple as visiting their development website and signing in (if you're not already). Almost immediately you should see a pop-up box providing you your token.

**Note: You can ignore the App generation feature here as it's not relevant to sending an apprise notification.

The last thing you need to know about this is you need to have already joined the channel you wish to send notifications to. The Personal Access Token represents you, so even if you join a channel and close out of your web browser, you're still actually a part of that channel (until you log back in and leave the channel).

Channels identify themselves as name/community; you only need to focus on the name. So if the channel was apprise/community, the channel name can be assumed to be apprise when using this script.

Syntax

Valid syntaxes are as follows:

  • gitter://{token}/{room}/
  • gitter://{token}/{room1}/{room2}/{roomN}/
  • gitter://{token}/{room}/?image=Yes

Parameter Breakdown

Variable Required Description
token Yes The Personal Access Token associated with your account. This is available to you after signing into their development website.
room No The room you want to notify. You can specify as many as you want of these on the URL.
image No Send an image representing the message type prior to sending the message body. This is disabled by default.
to No This is an alias to the room variable.

Example

Send a gitter notification to our channel apprise/community:

# Assuming our {token} is abcdefghij1234567890
# Assuming our {room} is apprise/community
apprise -vv -t "Test Message Title" -b "Test Message Body" \
   gitter:///abcdefghij1234567890/apprise