Auto backup (2022-07-14T21:00:57.200Z)
This commit is contained in:
296
flows/18.json
296
flows/18.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": 18,
|
||||
"name": "Alarms",
|
||||
"active": false,
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
@@ -13,26 +13,6 @@
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "headerAuth",
|
||||
"url": "https://api.ukrainealarm.com/api/v3/regions",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
200,
|
||||
220
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "22",
|
||||
"name": "Header Auth account 2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "headerAuth",
|
||||
@@ -43,8 +23,8 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
200,
|
||||
500
|
||||
-600,
|
||||
540
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
@@ -59,7 +39,7 @@
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyX",
|
||||
"value": 10,
|
||||
"value": 1,
|
||||
"unit": "minutes"
|
||||
}
|
||||
]
|
||||
@@ -69,17 +49,140 @@
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-300,
|
||||
-820,
|
||||
540
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "56628475",
|
||||
"text": "‼️ <b>Внимание!</b>\nВоздушная тревога",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
480
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "38",
|
||||
"name": "home.cynic.club"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "56628475",
|
||||
"text": "✅ <b>Внимание!</b>\nОтбой воздушной тревоги",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram1",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
660
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "38",
|
||||
"name": "home.cynic.club"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "1684481",
|
||||
"text": "‼️ <b>Внимание!</b>\nВоздушная тревога",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram2",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
260
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "38",
|
||||
"name": "home.cynic.club"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "1684481",
|
||||
"text": "✅ <b>Внимание!</b>\nОтбой воздушной тревоги",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram3",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
820
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "38",
|
||||
"name": "home.cynic.club"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-180,
|
||||
540
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "22",
|
||||
"name": "Header Auth account 2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"0\"][\"activeAlerts\"][0][\"type\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
"value1": "={{$node[\"HTTP Request\"].json[\"0\"][\"activeAlerts\"]}}",
|
||||
"operation": "notEqual",
|
||||
"value2": "={{$json[\"0\"][\"activeAlerts\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -88,68 +191,41 @@
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
420,
|
||||
500
|
||||
20,
|
||||
540
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "NoOp",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
360,
|
||||
740
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"title": "Тревога!",
|
||||
"body": "прячься"
|
||||
},
|
||||
"name": "Pushbullet",
|
||||
"type": "n8n-nodes-base.pushbullet",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"pushbulletOAuth2Api": {
|
||||
"id": "10",
|
||||
"name": "Pushbullet account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "headerAuth",
|
||||
"url": "https://api.ukrainealarm.com/api/v3/alerts/16",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request2",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
200,
|
||||
640
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "22",
|
||||
"name": "Header Auth account 2"
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"0\"][\"activeAlerts\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
"name": "IF1",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
360,
|
||||
400
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Start": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "HTTP Request1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Cron": {
|
||||
"main": [
|
||||
[
|
||||
@@ -157,16 +233,33 @@
|
||||
"node": "HTTP Request1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request2",
|
||||
"node": "Wait",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request1": {
|
||||
"Wait": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
@@ -181,18 +274,42 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Pushbullet",
|
||||
"node": "IF1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "NoOp",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request2": {
|
||||
"IF1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF",
|
||||
"node": "Telegram2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Telegram1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
@@ -201,8 +318,11 @@
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-05-05T11:59:53.012Z",
|
||||
"updatedAt": "2022-05-13T05:57:08.235Z",
|
||||
"settings": {},
|
||||
"updatedAt": "2022-07-14T13:56:23.575Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25",
|
||||
"saveDataSuccessExecution": "none"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": []
|
||||
}
|
||||
@@ -710,7 +710,7 @@
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1600,
|
||||
1580,
|
||||
860
|
||||
],
|
||||
"credentials": {
|
||||
@@ -731,7 +731,7 @@
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1800,
|
||||
1740,
|
||||
860
|
||||
],
|
||||
"credentials": {
|
||||
@@ -750,7 +750,7 @@
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1980,
|
||||
1920,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -769,7 +769,7 @@
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2180,
|
||||
2100,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -802,7 +802,7 @@
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2400,
|
||||
2340,
|
||||
860
|
||||
],
|
||||
"credentials": {
|
||||
@@ -1375,7 +1375,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
700,
|
||||
680,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -1390,7 +1390,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
880,
|
||||
860,
|
||||
1020
|
||||
]
|
||||
},
|
||||
@@ -1407,7 +1407,7 @@
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1240,
|
||||
1220,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -1449,7 +1449,7 @@
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1060,
|
||||
1040,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -1485,7 +1485,7 @@
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
880,
|
||||
860,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -2042,7 +2042,7 @@
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-06-20T08:36:58.934Z",
|
||||
"updatedAt": "2022-07-13T18:59:34.017Z",
|
||||
"updatedAt": "2022-07-14T06:14:43.539Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user