skirl

Apprise

Apprise sends notifications to many services from one kind of address, a URL. Give it Skirl's, and whatever sends through Apprise, its own command line included, sends to your topic.

Setting it up#

In the app this command is under Connect a system → Apprise, or a topic's Send to this topic tab, with your address, the topic and a token filled in; New token makes the token.

The URL works anywhere Apprise takes one; Apprise sees the token by its tk_ prefix.

apprise -t "Nightly backup finished" -b "pve-01 → offsite. 14 VMs, no errors." \
  "ntfys://tk_replace_with_your_token@notify.example.com/apprise"

Skirl's tests run this command as the app shows it, with Apprise 2.3.0. The URL at its end, in quotes, is the part to give a tool that sends through Apprise, or to put in an Apprise configuration file. Its form:

Your server's address Apprise URL
https://notify.example.com ntfys://<token>@notify.example.com/backups
http://notify.example.com ntfy://<token>@notify.example.com/backups
https://notify.example.com:8443 ntfys://<token>@notify.example.com:8443/backups

What Apprise does with it (its ntfy support, as of 2.3.0):

  • The topic must be in the URL. Without one, Apprise takes your server's name for a topic and sends the message to ntfy.sh, the public ntfy server, instead of yours.
  • Apprise knows the token by its tk_ start. Skirl's tokens have it. An older Skirl token that starts with skl_ is taken for a user name and refused (401); add ?auth=token to the end of the URL for one of those, or make a new token.
  • Options go at the end, after ? and joined with &: priority=high (min, low, default, high or max), tags=warning,pve-01, and image=no.

Apprise gives each message its own icon, a picture on github.com, which the inbox shows only when an admin allows pictures from other sites: Icons. image=no leaves it out.

What a message looks like#

Nightly backup finished pve-01 → offsite. 14 VMs, no errors.

Priority 3

When nothing arrives#

Apprise prints nothing when a message fails: it only ends with an error status. Run it with -vv to see why:

apprise -vv -t "Test" -b "Sent with Apprise" "ntfys://tk_replace_with_your_token@notify.example.com/backups"

A refusal shows as a warning with Skirl's code at its end:

WARNING - Failed to send ntfy notification to topic 'backups': unauthorized, error=40101.
  • unauthorized, error=40101: the token is wrong, revoked or expired, or it does not start with tk_ (see above). Make a new one with New token, or Rotate, and put it in the URL again.
  • forbidden, error=40301: the token may not send to this topic: it is limited to another one, the topic name is misspelled, or the URL has no token.
  • A Connection error occurred sending ntfy:https://…: Apprise cannot reach the server, does not trust its certificate, or the URL says ntfys:// for a server that has only http://.
  • limit reached: too many requests, error=42901: too many messages too fast. limit reached: too many auth failures, error=42909: too many wrong tokens, or wrong passwords for this user name, came from this address, so Skirl refuses them for a while, the right ones too: Rate limits.
  • Sent, but not in your topic: the URL has no topic, so it went to ntfy.sh.

The general checks: A sender gets no message through. Every error code: Error messages.

This page on GitHub