Auto backup (2022-07-12T21:00:41.932Z)
This commit is contained in:
547
flows/37.json
547
flows/37.json
@@ -125,20 +125,6 @@
|
||||
980
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "date.google",
|
||||
"propertyName2": "date"
|
||||
},
|
||||
"name": "Merge3",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
160,
|
||||
520
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
@@ -282,106 +268,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"graphApiVersion": "v14.0",
|
||||
"node": "me",
|
||||
"edge": "accounts",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Get Pages",
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
760,
|
||||
520
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
"id": "36",
|
||||
"name": "Facebook Graph account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fieldToSplitOut": "data",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Split Pages",
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1000,
|
||||
520
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"id\"]}}",
|
||||
"value2": "105101524930750"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Is Tom Travels?",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1260,
|
||||
520
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"httpRequestMethod": "POST",
|
||||
"graphApiVersion": "v13.0",
|
||||
"node": "={{$json[\"id\"]}}",
|
||||
"edge": "feed",
|
||||
"options": {
|
||||
"queryParameters": {
|
||||
"parameter": [
|
||||
{
|
||||
"name": "message",
|
||||
"value": "=Розпочато запис на навчання за адресою:\n{{$node[\"rokoss1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"rokoss2\"].json[\"date_ua\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "access_token",
|
||||
"value": "={{$json[\"access_token\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "link",
|
||||
"value": "https://avtomoto25.cn.ua/booking/"
|
||||
},
|
||||
{
|
||||
"name": "og_action_type_id",
|
||||
"value": "383634835006146"
|
||||
},
|
||||
{
|
||||
"name": "og_object_id",
|
||||
"value": "387919524627259"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "Facebook Graph API2",
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1520,
|
||||
520
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
"id": "36",
|
||||
"name": "Facebook Graph account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"extractionValues": {
|
||||
@@ -438,9 +324,13 @@
|
||||
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
|
||||
},
|
||||
{
|
||||
"name": "schedule.time",
|
||||
"name": "schedule.time.day1",
|
||||
"value": "={{$json[\"data\"][9]}}"
|
||||
},
|
||||
{
|
||||
"name": "schedule.time.day2",
|
||||
"value": "={{$json[\"data\"][10]}}"
|
||||
},
|
||||
{
|
||||
"name": "date.google",
|
||||
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
|
||||
@@ -485,7 +375,7 @@
|
||||
},
|
||||
{
|
||||
"fieldId": "time",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day1\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_1_ru",
|
||||
@@ -498,6 +388,10 @@
|
||||
{
|
||||
"fieldId": "date",
|
||||
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "time_2",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day2\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -516,20 +410,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://avtomoto25.cn.ua/wp-content/uploads/new_data.jpg",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request1",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
500,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "multiStep",
|
||||
@@ -538,16 +418,17 @@
|
||||
{
|
||||
"operation": "text",
|
||||
"text": "Розпочато запис на \nнавчання за адресою",
|
||||
"fontSize": 36,
|
||||
"fontSize": 64,
|
||||
"fontColor": "#EDEDED",
|
||||
"positionY": 480
|
||||
"positionX": 450,
|
||||
"positionY": 100
|
||||
},
|
||||
{
|
||||
"operation": "text",
|
||||
"text": "вул. Рокосовського 51",
|
||||
"fontSize": 56,
|
||||
"fontSize": 80,
|
||||
"fontColor": "#FFFFFF",
|
||||
"positionY": 580,
|
||||
"positionY": 400,
|
||||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||||
},
|
||||
{
|
||||
@@ -555,14 +436,14 @@
|
||||
"text": "Початок занятть",
|
||||
"fontSize": 36,
|
||||
"fontColor": "#EDEDED",
|
||||
"positionY": 660
|
||||
"positionY": 520
|
||||
},
|
||||
{
|
||||
"operation": "text",
|
||||
"text": "={{$json[\"date\"][\"ua\"]}}",
|
||||
"text": "={{$node[\"Merge rokoss\"].json[\"date\"][\"ua\"]}}",
|
||||
"fontSize": 56,
|
||||
"fontColor": "#FFFFFF",
|
||||
"positionY": 720,
|
||||
"positionY": 580,
|
||||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||||
}
|
||||
]
|
||||
@@ -573,7 +454,7 @@
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
760,
|
||||
1380,
|
||||
340
|
||||
]
|
||||
},
|
||||
@@ -590,7 +471,7 @@
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1000,
|
||||
1560,
|
||||
340
|
||||
],
|
||||
"credentials": {
|
||||
@@ -611,7 +492,7 @@
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1200,
|
||||
1720,
|
||||
340
|
||||
],
|
||||
"credentials": {
|
||||
@@ -630,7 +511,7 @@
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1380,
|
||||
1900,
|
||||
340
|
||||
]
|
||||
},
|
||||
@@ -649,7 +530,7 @@
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1580,
|
||||
2080,
|
||||
340
|
||||
]
|
||||
},
|
||||
@@ -682,7 +563,7 @@
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1800,
|
||||
2300,
|
||||
340
|
||||
],
|
||||
"credentials": {
|
||||
@@ -1311,6 +1192,206 @@
|
||||
"name": "Facebook Graph account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"urls\"][\"full\"]}}",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request12",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
680,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
|
||||
"responseFormat": "file",
|
||||
"dataPropertyName": "data2",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request13",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
840,
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "composite",
|
||||
"dataPropertyNameComposite": "data2",
|
||||
"operator": "Plus",
|
||||
"positionX": 50,
|
||||
"positionY": 50,
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image7",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1200,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://api.unsplash.com/photos/random?query=schedule",
|
||||
"options": {},
|
||||
"headerParametersUi": {
|
||||
"parameter": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
|
||||
}
|
||||
]
|
||||
},
|
||||
"queryParametersUi": {
|
||||
"parameter": [
|
||||
{
|
||||
"name": "orientation",
|
||||
"value": "landscape"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "HTTP Request14",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
500,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "mergeByIndex",
|
||||
"join": "inner"
|
||||
},
|
||||
"name": "Merge",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1020,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "multiStep",
|
||||
"operations": {
|
||||
"operations": [
|
||||
{
|
||||
"operation": "resize",
|
||||
"width": 1200,
|
||||
"height": -1,
|
||||
"resizeOption": "onlyIfLarger"
|
||||
},
|
||||
{
|
||||
"operation": "draw",
|
||||
"color": "#00000099",
|
||||
"startPositionX": 25,
|
||||
"startPositionY": 25,
|
||||
"endPositionX": 1175,
|
||||
"endPositionY": 605
|
||||
},
|
||||
{
|
||||
"operation": "crop",
|
||||
"width": 1200,
|
||||
"height": 630
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image1",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
840,
|
||||
340
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "date.google",
|
||||
"propertyName2": "date"
|
||||
},
|
||||
"name": "Merge rokoss",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
160,
|
||||
520
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
"tableId": "Classrooms",
|
||||
"rowId": "1",
|
||||
"fieldsToSend": {
|
||||
"properties": [
|
||||
{
|
||||
"fieldId": "date_ru",
|
||||
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "date_ua",
|
||||
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_1_ua",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_2_ua",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "time",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day1\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_1_ru",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_2_ru",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "date",
|
||||
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "time_2",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day2\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "rokoss",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
500,
|
||||
940
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@@ -1368,32 +1449,11 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge3": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Google Calendar",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "rokoss2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "HTTP Request1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"rokoss1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge3",
|
||||
"node": "Merge rokoss",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
@@ -1464,39 +1524,6 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Pages": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Split Pages",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Split Pages": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Is Tom Travels?",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Is Tom Travels?": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Facebook Graph API2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTML Extract": {
|
||||
"main": [
|
||||
[
|
||||
@@ -1512,29 +1539,7 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "SSH",
|
||||
"node": "Merge rokoss",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
@@ -1760,10 +1765,108 @@
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request12": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request13": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image7": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request14": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request12",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image7",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge rokoss": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Google Calendar",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "rokoss2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "HTTP Request14",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "SSH",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-06-20T08:36:58.934Z",
|
||||
"updatedAt": "2022-07-07T06:51:55.382Z",
|
||||
"updatedAt": "2022-07-12T11:41:41.432Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user