Auto backup (2022-07-15T21:00:57.157Z)
This commit is contained in:
342
flows/18.json
342
flows/18.json
@@ -9,8 +9,8 @@
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-280,
|
||||
340
|
||||
-160,
|
||||
240
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -23,7 +23,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-600,
|
||||
-620,
|
||||
540
|
||||
],
|
||||
"credentials": {
|
||||
@@ -38,9 +38,7 @@
|
||||
"triggerTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyX",
|
||||
"value": 1,
|
||||
"unit": "minutes"
|
||||
"mode": "everyMinute"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -65,8 +63,8 @@
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
480
|
||||
740,
|
||||
740
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
@@ -87,8 +85,8 @@
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
660
|
||||
740,
|
||||
320
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
@@ -109,8 +107,8 @@
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
260
|
||||
740,
|
||||
960
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
@@ -131,8 +129,8 @@
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
820
|
||||
740,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
@@ -143,66 +141,23 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"amount": 30,
|
||||
"unit": "seconds"
|
||||
},
|
||||
"name": "Wait",
|
||||
"type": "n8n-nodes-base.wait",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-380,
|
||||
540
|
||||
],
|
||||
"webhookId": "c31ac807-621c-49af-848b-d7c8141e0468"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "headerAuth",
|
||||
"url": "https://api.ukrainealarm.com/api/v3/alerts/1591",
|
||||
"keepOnlySet": true,
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "alert",
|
||||
"value": "OFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-180,
|
||||
540
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "22",
|
||||
"name": "Header Auth account 2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$node[\"HTTP Request\"].json[\"0\"][\"activeAlerts\"]}}",
|
||||
"operation": "notEqual",
|
||||
"value2": "={{$json[\"0\"][\"activeAlerts\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
20,
|
||||
540
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "NoOp",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
360,
|
||||
740
|
||||
400
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -211,18 +166,165 @@
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"0\"][\"activeAlerts\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
"operation": "isEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF1",
|
||||
"name": "IF2",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
360,
|
||||
400
|
||||
-400,
|
||||
540
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"keepOnlySet": true,
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "alert",
|
||||
"value": "ON"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Set1",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-180,
|
||||
780
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"docId": "r8eT1qvH8UU8vrxjuytXgj",
|
||||
"tableId": "Alarm",
|
||||
"rowId": "1",
|
||||
"fieldsToSend": {
|
||||
"properties": [
|
||||
{
|
||||
"fieldId": "activeAlerts",
|
||||
"fieldValue": "={{$json[\"alert\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Grist",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
320,
|
||||
460
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"docId": "r8eT1qvH8UU8vrxjuytXgj",
|
||||
"tableId": "Alarm",
|
||||
"rowId": "1",
|
||||
"fieldsToSend": {
|
||||
"properties": [
|
||||
{
|
||||
"fieldId": "activeAlerts",
|
||||
"fieldValue": "={{$json[\"alert\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Grist1",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
320,
|
||||
840
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "alert",
|
||||
"propertyName2": "activeAlerts"
|
||||
},
|
||||
"name": "Merge",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
80,
|
||||
460
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "r8eT1qvH8UU8vrxjuytXgj",
|
||||
"tableId": "Alarm",
|
||||
"additionalOptions": {}
|
||||
},
|
||||
"name": "Grist2",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-180,
|
||||
560
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "alert",
|
||||
"propertyName2": "activeAlerts"
|
||||
},
|
||||
"name": "Merge1",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
80,
|
||||
840
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "r8eT1qvH8UU8vrxjuytXgj",
|
||||
"tableId": "Alarm",
|
||||
"additionalOptions": {}
|
||||
},
|
||||
"name": "Grist3",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-180,
|
||||
940
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@@ -241,67 +343,71 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Wait",
|
||||
"node": "IF2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Wait": {
|
||||
"Set": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request": {
|
||||
"IF2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF1",
|
||||
"node": "Set",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "NoOp",
|
||||
"node": "Set1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF1": {
|
||||
"Set1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram2",
|
||||
"node": "Merge1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Grist1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
]
|
||||
]
|
||||
},
|
||||
"Grist": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram1",
|
||||
@@ -315,13 +421,57 @@
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Grist2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Grist",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Grist1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Grist3": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge1",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-05-05T11:59:53.012Z",
|
||||
"updatedAt": "2022-07-14T13:56:23.575Z",
|
||||
"updatedAt": "2022-07-15T05:57:23.180Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25",
|
||||
"saveDataSuccessExecution": "none"
|
||||
"saveDataSuccessExecution": "all"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": []
|
||||
|
||||
Reference in New Issue
Block a user