n8n updated example + formating

This commit is contained in:
Jokob-sk
2023-02-01 20:40:14 +11:00
parent 7ea74d0fe3
commit eec0dcca82
3 changed files with 3 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ See [sample JSON](https://github.com/jokob-sk/Pi.Alert/blob/main/back/webhook_js
![Email template](/docs/img/WEBHOOK_N8N/n8n_send_email_settings.png)
```
{{$json["body"]["attachments"][0]["text"]["new_devices"]}}
{{$json["body"]["attachments"][0]["text"]["events"]}}
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 38 KiB