2022-05-26 20:57:30 +03:00
|
|
|
|
{
|
|
|
|
|
|
"id": 18,
|
|
|
|
|
|
"name": "Alarms",
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"active": true,
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"nodes": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {},
|
|
|
|
|
|
"name": "Start",
|
|
|
|
|
|
"type": "n8n-nodes-base.start",
|
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
|
|
|
|
|
-280,
|
|
|
|
|
|
340
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"authentication": "headerAuth",
|
|
|
|
|
|
"url": "https://api.ukrainealarm.com/api/v3/alerts/1591",
|
|
|
|
|
|
"options": {}
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": "HTTP Request1",
|
|
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
2022-07-14 21:00:57 +00:00
|
|
|
|
-600,
|
|
|
|
|
|
540
|
2022-05-26 20:57:30 +03:00
|
|
|
|
],
|
|
|
|
|
|
"credentials": {
|
|
|
|
|
|
"httpHeaderAuth": {
|
|
|
|
|
|
"id": "22",
|
|
|
|
|
|
"name": "Header Auth account 2"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"triggerTimes": {
|
|
|
|
|
|
"item": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"mode": "everyX",
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"value": 1,
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"unit": "minutes"
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": "Cron",
|
|
|
|
|
|
"type": "n8n-nodes-base.cron",
|
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
2022-07-14 21:00:57 +00:00
|
|
|
|
-820,
|
2022-05-26 20:57:30 +03:00
|
|
|
|
540
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"chatId": "56628475",
|
|
|
|
|
|
"text": "‼️ <b>Внимание!</b>\nВоздушная тревога",
|
|
|
|
|
|
"additionalFields": {
|
|
|
|
|
|
"parse_mode": "HTML"
|
2022-05-26 20:57:30 +03:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"name": "Telegram",
|
|
|
|
|
|
"type": "n8n-nodes-base.telegram",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
2022-07-14 21:00:57 +00:00
|
|
|
|
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"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-05-26 20:57:30 +03:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"chatId": "1684481",
|
|
|
|
|
|
"text": "‼️ <b>Внимание!</b>\nВоздушная тревога",
|
|
|
|
|
|
"additionalFields": {
|
|
|
|
|
|
"parse_mode": "HTML"
|
|
|
|
|
|
}
|
2022-05-26 20:57:30 +03:00
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"name": "Telegram2",
|
|
|
|
|
|
"type": "n8n-nodes-base.telegram",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
2022-07-14 21:00:57 +00:00
|
|
|
|
700,
|
|
|
|
|
|
260
|
2022-05-26 20:57:30 +03:00
|
|
|
|
],
|
|
|
|
|
|
"credentials": {
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"telegramApi": {
|
|
|
|
|
|
"id": "38",
|
|
|
|
|
|
"name": "home.cynic.club"
|
2022-05-26 20:57:30 +03:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
{
|
|
|
|
|
|
"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"
|
|
|
|
|
|
},
|
2022-05-26 20:57:30 +03:00
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"authentication": "headerAuth",
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"url": "https://api.ukrainealarm.com/api/v3/alerts/1591",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"options": {}
|
|
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"name": "HTTP Request",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
2022-07-14 21:00:57 +00:00
|
|
|
|
-180,
|
|
|
|
|
|
540
|
2022-05-26 20:57:30 +03:00
|
|
|
|
],
|
|
|
|
|
|
"credentials": {
|
|
|
|
|
|
"httpHeaderAuth": {
|
|
|
|
|
|
"id": "22",
|
|
|
|
|
|
"name": "Header Auth account 2"
|
|
|
|
|
|
}
|
2022-07-14 21:00:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"conditions": {
|
|
|
|
|
|
"string": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"value1": "={{$node[\"HTTP Request\"].json[\"0\"][\"activeAlerts\"]}}",
|
|
|
|
|
|
"operation": "notEqual",
|
|
|
|
|
|
"value2": "={{$json[\"0\"][\"activeAlerts\"]}}"
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
2022-05-26 20:57:30 +03:00
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"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
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"conditions": {
|
|
|
|
|
|
"string": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"value1": "={{$json[\"0\"][\"activeAlerts\"]}}",
|
|
|
|
|
|
"operation": "isNotEmpty"
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": "IF1",
|
|
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
|
"position": [
|
|
|
|
|
|
360,
|
|
|
|
|
|
400
|
|
|
|
|
|
]
|
2022-05-26 20:57:30 +03:00
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"connections": {
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"Cron": {
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"main": [
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
|
|
|
|
|
"node": "HTTP Request1",
|
|
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"HTTP Request1": {
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"main": [
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"node": "Wait",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
2022-07-14 21:00:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"Wait": {
|
|
|
|
|
|
"main": [
|
|
|
|
|
|
[
|
2022-05-26 20:57:30 +03:00
|
|
|
|
{
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"node": "HTTP Request",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"HTTP Request": {
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"main": [
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
|
|
|
|
|
"node": "IF",
|
|
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"IF": {
|
|
|
|
|
|
"main": [
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"node": "IF1",
|
|
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
|
|
|
|
|
"node": "NoOp",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"IF1": {
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"main": [
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"node": "Telegram2",
|
|
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"node": "Telegram",
|
|
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
[
|
|
|
|
|
|
{
|
|
|
|
|
|
"node": "Telegram1",
|
|
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"node": "Telegram3",
|
2022-05-26 20:57:30 +03:00
|
|
|
|
"type": "main",
|
|
|
|
|
|
"index": 0
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"createdAt": "2022-05-05T11:59:53.012Z",
|
2022-07-14 21:00:57 +00:00
|
|
|
|
"updatedAt": "2022-07-14T13:56:23.575Z",
|
|
|
|
|
|
"settings": {
|
|
|
|
|
|
"errorWorkflow": "25",
|
|
|
|
|
|
"saveDataSuccessExecution": "none"
|
|
|
|
|
|
},
|
2022-06-09 21:00:39 +00:00
|
|
|
|
"staticData": null,
|
|
|
|
|
|
"tags": []
|
2022-05-26 20:57:30 +03:00
|
|
|
|
}
|