mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
n8n updated example + formating
This commit is contained in:
@@ -2358,7 +2358,7 @@ def construct_notifications(sqlQuery, tableTitle, skipText = False, suppliedJson
|
|||||||
|
|
||||||
html = convert(json, build_direction=build_direction, table_attributes=table_attributes)
|
html = convert(json, build_direction=build_direction, table_attributes=table_attributes)
|
||||||
|
|
||||||
html = format_table(html, "data", headerProps, tableTitle)
|
html = format_table(html, "data", headerProps, tableTitle).replace('<ul>','<ul style="list-style:none;padding-left:0">')
|
||||||
|
|
||||||
headers = json_struc.columnNames
|
headers = json_struc.columnNames
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ See [sample JSON](https://github.com/jokob-sk/Pi.Alert/blob/main/back/webhook_js
|
|||||||

|

|
||||||
|
|
||||||
```
|
```
|
||||||
{{$json["body"]["attachments"][0]["text"]["new_devices"]}}
|
Events count: {{ $json["body"]["attachments"][0]["text"]["events"].length }}
|
||||||
{{$json["body"]["attachments"][0]["text"]["events"]}}
|
New devices count: {{ $json["body"]["attachments"][0]["text"]["new_devices"].length }}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Get your webhook in n8n
|
### Get your webhook in n8n
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 38 KiB |
Reference in New Issue
Block a user