2022-10-08 01:49:27 +00:00
# Signal-REST notifications
The notification uses the [Signal REST API ](https://github.com/bbernhard/signal-cli-rest-api ).
You can send Signal notifications via the Signal REST API with the following settings.
## Configuration
!!! example "File"
```yaml
notif:
signalrest:
endpoint: http://192.168.42.50:8080/v2/send
number: "+00471147111337"
recipients:
- "+00472323111337"
timeout: 10s
2022-12-29 06:47:38 +00:00
templateBody: |
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
2022-10-08 01:49:27 +00:00
```
2022-12-29 06:47:38 +00:00
| Name | Default | Description |
|--------------------|------------------------------------|---------------------------------------------------------------------------|
| `endpoint` | `http://localhost:8080/v2/send` | URL of the Signal REST API endpoint |
| `number` [^1] | | The senders number you registered |
| `recipients` [^1] | | A list of recipients, either phone numbers or group ID's |
| `timeout` | `10s` | Timeout specifies a time limit for the request to be made |
| `templateBody` [^1] | See [below ](#default-templatebody ) | [Notification template ](../faq.md#notification-template ) for message body |
2022-10-08 01:49:27 +00:00
!!! abstract "Environment variables"
* `DIUN_NOTIF_SIGNALREST_ENDPOINT`
* `DIUN_NOTIF_SIGNALREST_NUMBER`
* `DIUN_NOTIF_SIGNALREST_RECIPIENTS_<KEY>`
* `DIUN_NOTIF_SIGNALREST_TIMEOUT`
2022-12-29 06:47:38 +00:00
### Default `templateBody`
```
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider {{ if (eq .Entry.Status "new") }}is available{{ else }}has been updated{{ end }} on {{ .Entry.Image.Domain }} registry (triggered by {{ .Meta.Hostname }} host).
```
2022-10-08 01:49:27 +00:00
## Sample
The message you receive in your Signal App will look like this:
```text
2022-12-29 06:47:38 +00:00
Docker tag docker.io/diun/testnotif:latest which you subscribed to through file provider new has been updated on docker.io registry (triggered by 5bfaae601770 host).
2022-10-08 01:49:27 +00:00
```
[^1]: Value required