mirror of https://github.com/caronc/apprise
Updated Notify_ntfy (markdown)
parent
09da5a2d46
commit
0a35e91ec8
|
@ -22,6 +22,16 @@ Valid syntax is as follows:
|
||||||
* `ntfy://{user}:{password}@{host}:{port}/{topics}`
|
* `ntfy://{user}:{password}@{host}:{port}/{topics}`
|
||||||
* `ntfy://{token}@{hostname}/{targets}`
|
* `ntfy://{token}@{hostname}/{targets}`
|
||||||
|
|
||||||
|
The secure versions:
|
||||||
|
* `ntfys://{topic}`
|
||||||
|
* `ntfys://{host}/{topic}`
|
||||||
|
* `ntfys://{host}:{port}/{topics}`
|
||||||
|
* `ntfys://{user}@{host}/{topics}`
|
||||||
|
* `ntfys://{user}@{host}:{port}/{topics}`
|
||||||
|
* `ntfys://{user}:{password}@{host}/{topics}`
|
||||||
|
* `ntfys://{user}:{password}@{host}:{port}/{topics}`
|
||||||
|
* `ntfys://{token}@{hostname}/{targets}`
|
||||||
|
|
||||||
You can specify more then 1 topic such as:
|
You can specify more then 1 topic such as:
|
||||||
* **ntfy**://**{user}**:**{password}**/**{hostname}**/**{topic1}**/**{topic2}**
|
* **ntfy**://**{user}**:**{password}**/**{hostname}**/**{topic1}**/**{topic2}**
|
||||||
|
|
||||||
|
@ -71,3 +81,11 @@ Ntfy also supports Markdown; if you want to leverage this, simply add `?format=m
|
||||||
apprise -vv -t "Test Message Title" -b "# Markdown Support" \
|
apprise -vv -t "Test Message Title" -b "# Markdown Support" \
|
||||||
"ntfy://localhost/great-place?format=markdown"
|
"ntfy://localhost/great-place?format=markdown"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If your Ntfy server is behind an HTTPS (Secure) hosted setup, then you simply use `ntfys://`:
|
||||||
|
```bash
|
||||||
|
# Assuming our SECURE {hostname} is localhost
|
||||||
|
# Assuming our {topic} is great-topic
|
||||||
|
apprise -vv -t "Test Secure Message Title" -b "Test Message Body" \
|
||||||
|
ntfys://localhost/great-topic
|
||||||
|
```
|
Loading…
Reference in New Issue