From cca2c99f6b33a954d45284c017479ac9edfb3909 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Tue, 24 Jan 2023 21:18:34 +1100 Subject: [PATCH] Guides updates 0.1 --- docs/WEBHOOK_N8N.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/WEBHOOK_N8N.md b/docs/WEBHOOK_N8N.md index 5b171a5b..13a5b07b 100755 --- a/docs/WEBHOOK_N8N.md +++ b/docs/WEBHOOK_N8N.md @@ -6,6 +6,11 @@ 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 ![Email template](/docs/img/WEBHOOK_N8N/n8n_send_email_settings.png) +``` +{{$json["body"]["attachments"][0]["text"]["new_devices"]}} +{{$json["body"]["attachments"][0]["text"]["events"]}} +``` + ### Get your webhook in n8n ![n8n webhook URL](/docs/img/WEBHOOK_N8N/n8n_webhook_settings.png)