|
1 | | -# NotificoX |
| 1 | +# Notificox |
2 | 2 |
|
3 | 3 | [](https://github.com/notificohq/notifico/releases/latest) |
4 | 4 |
|
5 | | -NotificoX is a versatile tool designed to send messages to various services, inspired by the popular notification library, [Apprise](https://github.com/caronc/apprise). |
| 5 | +Notificox is a versatile tool designed to send messages to various services, inspired by the popular notification library, [Apprise](https://github.com/caronc/apprise). |
6 | 6 | It provides a unified interface to deliver notifications across multiple platforms, making it easier for users to manage and automate their communication needs. |
7 | 7 |
|
8 | | -With NotificoX, you can send messages to a wide range of channels, including email, SMS, and instant messaging services. |
| 8 | +With Notificox, you can send messages to a wide range of channels, including email, SMS, and instant messaging services. |
9 | 9 |
|
10 | 10 | This tool is a single dependency-free binary (only libc and SSL library are required), so you can run it anywhere, |
11 | | -for example in CI pipelines. |
| 11 | +for example, in CI pipelines. |
12 | 12 |
|
13 | | -Some arguments are formatted in [JSON5](https://json5.org/), so they can be entered without numerous escape sequences. |
| 13 | +Some arguments are formatted in [JSON5](https://json5.org/), so they can be entered in console without escape sequences. |
14 | 14 |
|
15 | 15 | ## Send notification locally |
16 | 16 | **Usage:** |
17 | 17 | ```shell |
18 | | -notificox send <CREDENTIAL> [CONTACTS]... --template <TEMPLATE> |
| 18 | +notificox send <CREDENTIAL> [CONTACTS]... --context <CONTEXT> |
19 | 19 | ``` |
20 | 20 |
|
21 | 21 | **Where:** |
22 | 22 |
|
23 | | -- TEMPLATE: JSON5-formatted message template object. Template parameters are transport-specific. You can read about template parameters in [Plugins](plugins/core.md) section. Most of the transports require only "body" parameter to be set. |
| 23 | +- CONTEXT: JSON5-formatted message context object. Parameters are transport-specific. You can read about template parameters in [Plugins](plugins/core.md) section. Most of the transports require only "body" parameter to be set. |
24 | 24 | - CREDENTIAL: Transport credential. You can read about transport syntax in [Plugins](plugins/core.md) section. |
25 | | -- CONTACTS: zero or more contacts to send the message. Contact format is transport-specific. Some transports, like Gotify, don't require contacts, as they only use credentials to send. |
| 25 | +- CONTACTS: zero or more contacts to send the message. The Contact format is transport-specific. Some transports, like Gotify, don't require contacts, as they only use credentials to send. |
26 | 26 |
|
27 | 27 | This command internally constructs a Notifico [pipeline](pipeline.md) and executes it using the embedded pipeline engine. |
28 | 28 | This process is fully transparent to end user. |
29 | 29 |
|
30 | | -### Example |
| 30 | +### Examples |
| 31 | +Sending a Telegram message to recipient with chat_id=111579711 using telegram token: |
31 | 32 | ```shell |
32 | | -# Send a Telegram notification to recipient with chat_id=111579711 using telegram token |
33 | | -notificox send --template "{body: 'my notification body'}" \ |
34 | | - "telegram:TOKENTOKEN:TOKENTOKENTOKENTOKENTOKENTOKENTOKEN" \ |
35 | | - "telegram:111579711" |
| 33 | +notificox send "telegram:TOKEN" "telegram:111579711" -c "{body: 'my notification body'}" |
| 34 | +``` |
| 35 | +Sending a Slack message with a PDF file attached: |
| 36 | +```shell |
| 37 | +notificox send "slack:TOKEN" "slack:CHAT_ID" -c "{body: 'my notification body'}" -a ~/file.pdf |
| 38 | +``` |
| 39 | +Sending a [ntfy.io](plugins/ntfy.md) message with templating enabled: |
| 40 | +```shell |
| 41 | +notificox send "ntfy:https://ntfy.sh" "ntfy:notifico" -t template.toml -c "{username: 'USER1'}" |
| 42 | + |
| 43 | +== template.toml == |
| 44 | +[parts] |
| 45 | +body = "Hello from Notifico! Username: {{username}}" |
36 | 46 | ``` |
37 | 47 |
|
38 | 48 | ## Trigger an event on remote Notifico Ingest service |
|
0 commit comments