mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
19 lines
736 B
Markdown
Executable File
19 lines
736 B
Markdown
Executable File
### Create a simple n8n workflow
|
|
|
|

|
|
|
|
### Specify your email template
|
|
See [sample JSON](https://github.com/jokob-sk/Pi.Alert/blob/main/back/webhook_json_sample.json) if you want to see the JSON paths used in the email template below
|
|

|
|
|
|
```
|
|
Events count: {{ $json["body"]["attachments"][0]["text"]["events"].length }}
|
|
New devices count: {{ $json["body"]["attachments"][0]["text"]["new_devices"].length }}
|
|
```
|
|
|
|
### Get your webhook in n8n
|
|

|
|
|
|
### Configure PiAlert to point to the above URL
|
|

|