{ "id": 18, "name": "Alarms", "active": false, "nodes": [ { "parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [ -280, 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", "url": "https://api.ukrainealarm.com/api/v3/alerts/1591", "options": {} }, "name": "HTTP Request1", "type": "n8n-nodes-base.httpRequest", "typeVersion": 1, "position": [ 200, 500 ], "credentials": { "httpHeaderAuth": { "id": "22", "name": "Header Auth account 2" } } }, { "parameters": { "triggerTimes": { "item": [ { "mode": "everyX", "value": 10, "unit": "minutes" } ] } }, "name": "Cron", "type": "n8n-nodes-base.cron", "typeVersion": 1, "position": [ -300, 540 ] }, { "parameters": { "conditions": { "string": [ { "value1": "={{$json[\"0\"][\"activeAlerts\"][0][\"type\"]}}", "operation": "isNotEmpty" } ] } }, "name": "IF", "type": "n8n-nodes-base.if", "typeVersion": 1, "position": [ 420, 500 ] }, { "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" } }, "disabled": true } ], "connections": { "Start": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 }, { "node": "HTTP Request1", "type": "main", "index": 0 } ] ] }, "Cron": { "main": [ [ { "node": "HTTP Request1", "type": "main", "index": 0 }, { "node": "HTTP Request2", "type": "main", "index": 0 } ] ] }, "HTTP Request1": { "main": [ [ { "node": "IF", "type": "main", "index": 0 } ] ] }, "IF": { "main": [ [ { "node": "Pushbullet", "type": "main", "index": 0 } ] ] }, "HTTP Request2": { "main": [ [ { "node": "IF", "type": "main", "index": 0 } ] ] } }, "createdAt": "2022-05-05T11:59:53.012Z", "updatedAt": "2022-05-13T05:57:08.235Z", "settings": {}, "staticData": null }