apprise/packaging/man/apprise.1

290 lines
8.8 KiB
Groff
Raw Normal View History

2024-01-27 21:35:11 +01:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
2024-03-04 00:14:05 +01:00
.TH "APPRISE" "1" "March 2024" "Chris Caron <lead2gold@gmail.com>" ""
2024-01-27 21:35:11 +01:00
.
.SH "NAME"
\fBapprise\fR \- Push Notifications that work with just about every platform!
2024-01-27 21:35:11 +01:00
.
.SH "SYNOPSIS"
2024-01-27 21:35:11 +01:00
\fBapprise\fR [\fIoptions\fR\.\.\.] \fIservice\-url\fR\.\.\.
.
.br
2024-01-27 21:35:11 +01:00
.
.SH "DESCRIPTION"
\fBApprise\fR allows you to send a notification to \fIalmost all\fR of the most popular notification services available to us today such as: Discord, Telegram, Pushbullet, Slack, Twitter, etc\.
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
One notification library to rule them all\.
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
A common and intuitive notification syntax\.
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
Supports the handling of images (to the notification services that will accept them)\.
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.SH "OPTIONS"
The Apprise options are as follows:
2024-01-27 21:35:11 +01:00
.
.P
\fB\-b\fR, \fB\-\-body=\fR\fITEXT\fR: Specify the message body\. If no body is specified then content is read from \fIstdin\fR\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-t\fR, \fB\-\-title=\fR\fITEXT\fR: Specify the message title\. This field is complete optional\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-c\fR, \fB\-\-config=\fR\fICONFIG\-URL\fR: Specify one or more configuration locations\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-a\fR, \fB\-\-attach=\fR\fIATTACH\-URL\fR: Specify one or more file attachment locations\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-P\fR, \fB\-\-plugin\-path=\fR\fIPLUGIN\-PATH\fR: Specify a path to scan for custom notification plugin support\. You can create your own notification by simply creating a Python file that contains the \fB@notify("schema")\fR decorator\.
2024-01-27 21:35:11 +01:00
.
.P
You can optioanly chose to specify more then one \fB\-\-plugin\-path\fR (\fB\-P\fR) to increase the modules included\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-n\fR, \fB\-\-notification\-type=\fR\fITYPE\fR: Specify the message type (default=info)\. Possible values are "info", "success", "failure", and "warning"\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-i\fR, \fB\-\-input\-format=\fR\fIFORMAT\fR: Specify the input message format (default=text)\. Possible values are "text", "html", and "markdown"\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-T\fR, \fB\-\-theme=\fRTHEME: Specify the default theme\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-g\fR, \fB\-\-tag=\fRTAG: Specify one or more tags to filter which services to notify\. Use multiple \fB\-\-tag\fR (\fB\-g\fR) entries to \fBOR\fR the tags together and comma separated to \fBAND\fR them\. If no tags are specified then all services are notified\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-Da\fR, \fB\-\-disable\-async\fR: Send notifications synchronously (one after the other) instead of all at once\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-R\fR, \fB\-\-recursion\-depth\fR: he number of recursive import entries that can be loaded from within Apprise configuration\. By default this is set to 1\. If this is set to zero, then import statements found in any configuration is ignored\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-e\fR, \fB\-\-interpret\-escapes\fR Enable interpretation of backslash escapes\. For example, this would convert sequences such as \en and \er to their respected ascii new\-line and carriage
2024-01-27 21:35:11 +01:00
.
.P
\fB\-j\fR, \fB\-\-interpret\-emojis\fR Enable interpretation of emoji strings\. For example, this would convert sequences such as :smile: or :grin: to their respected unicode emoji character\.
.
.P
\fB\-d\fR, \fB\-\-dry\-run\fR: Perform a trial run but only prints the notification services to\-be triggered to \fBstdout\fR\. Notifications are never sent using this mode\.
2024-01-27 21:35:11 +01:00
.
.P
return characters prior to the delivery of the notification\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-l\fR, \fB\-\-details\fR Prints details about the current services supported by Apprise\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-v\fR, \fB\-\-verbose\fR: The more of these you specify, the more verbose the output is\. e\.g: \-vvvv
2024-01-27 21:35:11 +01:00
.
.P
\fB\-D\fR, \fB\-\-debug\fR: A debug mode; useful for troubleshooting\.
2024-01-27 21:35:11 +01:00
.
.P
\fB\-V\fR, \fB\-\-version\fR: Display the apprise version and exit\.
2024-01-27 21:35:11 +01:00
.
2020-01-25 19:46:32 +01:00
.P
\fB\-h\fR, \fB\-\-help\fR: Show this message and exit\.
2024-01-27 21:35:11 +01:00
.
.SH "EXIT STATUS"
\fBapprise\fR exits with a status of:
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
\fB0\fR if all of the notifications were sent successfully\.
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
\fB1\fR if one or more notifications could not be sent\.
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
\fB2\fR if there was an error specified on the command line such as not providing an valid argument\.
2024-01-27 21:35:11 +01:00
.
.IP "\(bu" 4
\fB3\fR if there was one or more Apprise Service URLs successfully loaded but none could be notified due to user filtering (via tags)\.
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.SH "SERVICE URLS"
2020-01-25 19:46:32 +01:00
There are to many service URL and combinations to list here\. It\'s best to visit the Apprise GitHub page \fIhttps://github\.com/caronc/apprise/wiki#notification\-services\fR and see what\'s available\.
2024-01-27 21:35:11 +01:00
.
.SH "EXAMPLES"
Send a notification to as many servers as you want to specify as you can easily chain them together:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
$ apprise \-vv \-t "my title" \-b "my notification body" \e
"mailto://myemail:mypass@gmail\.com" \e
"pbul://o\.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b"
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.P
If you don\'t specify a \fB\-\-body\fR (\fB\-b\fR) then stdin is used allowing you to use the tool as part of your every day administration:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
$ cat /proc/cpuinfo | apprise \-vv \-t "cpu info" \e
"mailto://myemail:mypass@gmail\.com"
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.P
Load in a configuration file which identifies all of your notification service URLs and notify them all:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
$ apprise \-vv \-t "my title" \-b "my notification body" \e
\-\-config=~/apprise\.yml
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.P
Load in a configuration file from a remote server that identifies all of your notification service URLs and only notify the ones tagged as \fIdevops\fR\.
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
$ apprise \-vv \-t "my title" \-b "my notification body" \e
\-\-config=https://localhost/my/apprise/config \e
\-t devops
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
2019-11-21 23:07:28 +01:00
.P
Include an attachment:
2024-01-27 21:35:11 +01:00
.
2019-11-21 23:07:28 +01:00
.IP "" 4
2024-01-27 21:35:11 +01:00
.
2019-11-21 23:07:28 +01:00
.nf
2024-01-27 21:35:11 +01:00
$ apprise \-vv \-t "School Assignment" \-b "See attached" \e
2019-11-21 23:07:28 +01:00
\-\-attach=Documents/FinalReport\.docx
2024-01-27 21:35:11 +01:00
.
2019-11-21 23:07:28 +01:00
.fi
2024-01-27 21:35:11 +01:00
.
2019-11-21 23:07:28 +01:00
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.SH "CUSTOM PLUGIN/NOTIFICATIONS"
Apprise can additionally allow you to define your own custom \fBschema://\fR entries that you can trigger on and call services you\'ve defined\.
2024-01-27 21:35:11 +01:00
.
.P
By default \fBapprise\fR looks in the following local locations for custom plugin files and loads them:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
~/\.apprise/plugins
~/\.config/apprise/plugins
2023-05-15 22:48:27 +02:00
/var/lib/apprise/plugins
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.P
Simply create your own python file with the following bare minimum content in it: from apprise\.decorators import notify
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
# This example assumes you want your function to trigger on foobar://
# references:
@notify(on="foobar", name="My Custom Notification")
def my_wrapper(body, title, notify_type, *args, **kwargs):
<define your custom code here>
2024-01-27 21:35:11 +01:00
# Returning True/False is a way to relay your status back to Apprise\.
# Returning nothing (None by default) is always interpreted as a Success
return True
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.SH "CONFIGURATION"
A configuration file can be in the format of either \fBTEXT\fR or \fBYAML\fR where [TEXT][textconfig] is the easiest and most ideal solution for most users\. However YAML \fIhttps://github\.com/caronc/apprise/wiki/config_yaml\fR configuration files grants the user a bit more leverage and access to some of the internal features of Apprise\. Reguardless of which format you choose, both provide the users the ability to leverage \fBtagging\fR which adds a more rich and powerful notification environment\.
2024-01-27 21:35:11 +01:00
.
.P
Configuration files can be directly referenced via \fBapprise\fR when referencing the \fB\-\-config=\fR (\fB\-c\fR) CLI directive\. You can identify as many as you like on the command line and all of them will be loaded\. You can also point your configuration to a cloud location (by referencing \fBhttp://\fR or \fBhttps://\fR\. By default \fBapprise\fR looks in the following local locations for configuration files and loads them:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
2024-03-09 22:49:03 +01:00
~/\.apprise\.conf
2024-03-04 00:14:05 +01:00
~/\.apprise\.yaml
2024-03-09 22:49:03 +01:00
~/\.config/apprise\.conf
2024-03-04 00:14:05 +01:00
~/\.config/apprise\.yaml
2024-03-09 22:49:03 +01:00
~/\.apprise/apprise\.conf
~/\.apprise/apprise\.yaml
2024-03-09 22:49:03 +01:00
~/\.config/apprise/apprise\.conf
~/\.config/apprise/apprise\.yaml
2023-05-15 22:48:27 +02:00
2024-03-09 22:49:03 +01:00
/etc/apprise\.conf
2024-03-04 00:14:05 +01:00
/etc/apprise\.yaml
2024-03-09 22:49:03 +01:00
/etc/apprise/apprise\.conf
2024-03-04 00:14:05 +01:00
/etc/apprise/apprise\.yaml
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.P
2024-03-09 22:49:03 +01:00
The \fBconfiguration files\fR specified above can also be identified with a \fB\.yml\fR extension or even just entirely removing the \fB\.conf\fR extension altogether\.
.
.P
If a default configuration file is referenced in any way by the \fBapprise\fR tool, you no longer need to provide it a Service URL\. Usage of the \fBapprise\fR tool simplifies to:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
$ apprise \-vv \-t "my title" \-b "my notification body"
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.P
If you leveraged tagging \fIhttps://github\.com/caronc/apprise/wiki/CLI_Usage#label\-leverage\-tagging\fR, you can define all of Apprise Service URLs in your configuration that you want and only specifically notify a subset of them:
2024-01-27 21:35:11 +01:00
.
.IP "" 4
2024-01-27 21:35:11 +01:00
.
.nf
2024-01-27 21:35:11 +01:00
$ apprise \-vv \-t "Will Be Late" \-b "Go ahead and make dinner without me" \e
\-\-tag=family
2024-01-27 21:35:11 +01:00
.
.fi
2024-01-27 21:35:11 +01:00
.
.IP "" 0
2024-01-27 21:35:11 +01:00
.
.SH "BUGS"
If you find any bugs, please make them known at: \fIhttps://github\.com/caronc/apprise/issues\fR
2024-01-27 21:35:11 +01:00
.
.SH "COPYRIGHT"
2024-01-27 21:35:11 +01:00
Apprise is Copyright (C) 2024 Chris Caron \fIlead2gold@gmail\.com\fR