Auto backup (2022-06-22T21:00:33.858Z)

This commit is contained in:
nia
2022-06-22 21:00:33 +00:00
parent e238009ce1
commit ff8a58c560
6 changed files with 999 additions and 284 deletions

View File

@@ -217,8 +217,8 @@
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
-1060,
960
-800,
1280
],
"webhookId": "42d23674-abe0-4cb4-a158-3319140d97f0"
},
@@ -617,10 +617,6 @@
"name": "date.ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
@@ -848,10 +844,6 @@
"fieldId": "day_2_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
},
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
@@ -1131,11 +1123,6 @@
"Cron": {
"main": [
[
{
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request3",
"type": "main",
@@ -1151,7 +1138,7 @@
}
},
"createdAt": "2022-04-29T07:24:59.929Z",
"updatedAt": "2022-06-21T03:20:52.797Z",
"updatedAt": "2022-06-22T10:41:00.410Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"

View File

@@ -41,40 +41,6 @@
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "Avtomoto25/feed/",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "Hello fans"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
}
]
}
}
},
"name": "Facebook Graph API1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
700,
60
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
@@ -86,8 +52,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1240,
500
1380,
520
],
"credentials": {
"facebookGraphApi": {
@@ -105,8 +71,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1480,
500
1580,
520
]
},
{
@@ -124,8 +90,8 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1700,
500
1780,
520
]
},
{
@@ -148,6 +114,14 @@
{
"name": "link",
"value": "https://avtomoto25.cn.ua/booking/"
},
{
"name": "og_action_type_id",
"value": "383634835006146"
},
{
"name": "og_object_id",
"value": "387919524627259"
}
]
}
@@ -157,8 +131,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2140,
320
2080,
520
],
"credentials": {
"facebookGraphApi": {
@@ -250,9 +224,8 @@
"typeVersion": 1,
"position": [
0,
1400
],
"disabled": true
1300
]
},
{
"parameters": {
@@ -277,7 +250,7 @@
"typeVersion": 1,
"position": [
220,
1400
1300
]
},
{
@@ -285,41 +258,9 @@
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date.ua",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
},
{
"name": "date.ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
},
{
"name": "schedule.ua.day2",
"value": "={{$json[\"schedule\"][1]}}"
},
{
"name": "schedule.ru.day1",
"value": "={{$json[\"schedule\"][0].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.ru.day2",
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.time",
"value": "={{$json[\"data\"][9]}}"
}
]
},
@@ -331,8 +272,8 @@
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
480,
1400
460,
1300
]
},
{
@@ -343,41 +284,9 @@
"rowId": "3",
"fieldsToSend": {
"properties": [
{
"fieldId": "date_ru",
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
},
{
"fieldId": "date_ua",
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
},
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
},
{
"fieldId": "day_1_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
},
{
"fieldId": "day_2_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
},
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
},
{
"fieldId": "day_1_ru",
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
},
{
"fieldId": "day_2_ru",
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
}
]
}
@@ -386,8 +295,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
700,
1400
1020,
1440
],
"credentials": {
"gristApi": {
@@ -499,14 +408,16 @@
}
]
},
"options": {}
"options": {
"dotNotation": true
}
},
"name": "recount rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
500
1040,
520
]
},
{
@@ -596,26 +507,6 @@
}
}
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{22 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount rokoss1",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
860
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
@@ -701,19 +592,351 @@
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "=336184934610406",
"edge": "events",
"options": {
"queryParametersJson": "{\n \"description\": \"Запис на навчання за адресою\\nм. Чернігів Проспект Перемоги 39\",\n \"end_time\": \"2022-07-20T09:15:00+0300\",\n \"name\": \"Найближча дата почтатку занять\",\n \"place\": {\n \"name\": \"м. Чернігів Проспект Перемоги 39\"\n },\n \"start_time\": \"2022-07-20T09:00:00+0300\",\n \"id\": \"336184934610406\"\n },"
}
"node": "={{$json[\"id\"]}}",
"edge": "conversations",
"options": {}
},
"name": "Facebook Graph API3",
"name": "Facebook Graph API4",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
880,
40
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
780,
1320
]
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{22 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount masani",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
860
]
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{22 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount prospect",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
1300
]
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages2",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1380,
860
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1580,
860
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?2",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1780,
860
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "=Продовжується запис на навчання за адресою: \n{{$node[\"masani1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"masani1\"].json[\"date_ua\"]}}\nЗалишилося місць: {{$node[\"recount masani\"].json[\"recount\"]}}"
},
{
"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 API5",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2080,
860
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "Проспект Перемоги 39"
}
]
}
}
},
"name": "prospect1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
460,
1460
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages3",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1360,
1280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1560,
1280
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?3",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1760,
1280
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "=Продовжується запис на навчання за адресою: \n{{$node[\"prospect1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"prospect1\"].json[\"date_ua\"]}}\nЗалишилося місць: {{$node[\"recount prospect\"].json[\"recount\"]}}"
},
{
"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 API6",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2060,
1280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "=Продовжується запис на навчання за адресою: \n{{$node[\"rokoss1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"rokoss1\"].json[\"date_ua\"]}}\nЗалишилося місць: {{$node[\"recount rokoss\"].json[\"recount\"]}}"
},
{
"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": "place",
"value": "avtomoto2502"
}
]
}
}
},
"name": "Facebook Graph API7",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1040,
280
],
"credentials": {
@@ -729,7 +952,7 @@
"main": [
[
{
"node": "Facebook Graph API1",
"node": "Facebook Graph API4",
"type": "main",
"index": 0
}
@@ -839,7 +1062,7 @@
"main": [
[
{
"node": "prospect",
"node": "Merge",
"type": "main",
"index": 0
}
@@ -858,6 +1081,11 @@
"node": "HTTP Request3",
"type": "main",
"index": 0
},
{
"node": "HTTP Request4",
"type": "main",
"index": 0
}
]
]
@@ -931,7 +1159,7 @@
"index": 0
},
{
"node": "recount rokoss1",
"node": "recount masani",
"type": "main",
"index": 0
}
@@ -975,21 +1203,131 @@
"main": [
[
{
"node": "Facebook Graph API3",
"node": "Facebook Graph API7",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"Merge": {
"main": [
[]
[
{
"node": "prospect",
"type": "main",
"index": 0
},
{
"node": "recount prospect",
"type": "main",
"index": 0
}
]
]
},
"recount masani": {
"main": [
[
{
"node": "Get Pages2",
"type": "main",
"index": 0
}
]
]
},
"Get Pages2": {
"main": [
[
{
"node": "Split Pages2",
"type": "main",
"index": 0
}
]
]
},
"Split Pages2": {
"main": [
[
{
"node": "Is Tom Travels?2",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?2": {
"main": [
[
{
"node": "Facebook Graph API5",
"type": "main",
"index": 0
}
]
]
},
"prospect1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Get Pages3": {
"main": [
[
{
"node": "Split Pages3",
"type": "main",
"index": 0
}
]
]
},
"Split Pages3": {
"main": [
[
{
"node": "Is Tom Travels?3",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?3": {
"main": [
[
{
"node": "Facebook Graph API6",
"type": "main",
"index": 0
}
]
]
},
"recount prospect": {
"main": [
[
{
"node": "Get Pages3",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
"updatedAt": "2022-06-21T09:50:10.844Z",
"updatedAt": "2022-06-22T05:50:37.978Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -20,8 +20,8 @@
"eventId": "31g2bcqsnqavh7e5deusa8b2oq\t",
"updateFields": {
"allday": "yes",
"end": "= {{$json[\"date\"]}} 23:00:00",
"start": "= {{$json[\"date\"]}} 01:00:00"
"end": "= {{$json[\"date\"][\"google\"]}} 23:00:00",
"start": "= {{$json[\"date\"][\"google\"]}} 01:00:00"
}
},
"name": "Google Calendar",
@@ -29,7 +29,7 @@
"typeVersion": 1,
"position": [
500,
660
680
],
"credentials": {
"googleCalendarOAuth2Api": {
@@ -53,7 +53,7 @@
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
520,
500,
1360
],
"credentials": {
@@ -74,28 +74,7 @@
"typeVersion": 1,
"position": [
-500,
640
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract1",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
-280,
640
500
]
},
{
@@ -190,21 +169,21 @@
"typeVersion": 1,
"position": [
-960,
760
980
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "date",
"propertyName1": "date.google",
"propertyName2": "date"
},
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
260,
660
220,
520
]
},
{
@@ -227,58 +206,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
-20,
800
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
}
]
},
"options": {}
},
"name": "Set rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
-20,
640
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"]}}"
}
]
}
},
"name": "rokoss",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
500,
800
-100,
700
],
"credentials": {
"gristApi": {
@@ -437,7 +366,7 @@
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
300,
260,
1360
]
},
@@ -490,8 +419,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
520,
1540
500,
1520
],
"credentials": {
"gristApi": {
@@ -499,6 +428,396 @@
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.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": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
},
{
"key": "schedule",
"cssSelector": "label.checkbox-label-checked",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
-280,
500
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date.ua",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
},
{
"name": "date.ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
},
{
"name": "schedule.ua.day2",
"value": "={{$json[\"schedule\"][1]}}"
},
{
"name": "schedule.ru.day1",
"value": "={{$json[\"schedule\"][0].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.ru.day2",
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.time",
"value": "={{$json[\"data\"][9]}}"
},
{
"name": "date.google",
"value": "={{$json[\"data\"][0]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
-100,
500
]
},
{
"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\"]}}"
},
{
"fieldId": "day_1_ru",
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
},
{
"fieldId": "day_2_ru",
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
},
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
}
]
}
},
"name": "rokoss2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
500,
520
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"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",
"operations": {
"operations": [
{
"operation": "text",
"text": "Розпочато запис на \nнавчання за адресою",
"fontSize": 36,
"fontColor": "#EDEDED",
"positionY": 480
},
{
"operation": "text",
"text": "вул. Рокосовського 51",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "Початок занятть",
"fontSize": 36,
"fontColor": "#EDEDED",
"positionY": 660
},
{
"operation": "text",
"text": "={{$json[\"date\"][\"ua\"]}}",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionY": 720,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{}
]
},
"options": {}
},
"name": "Edit Image",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
760,
340
]
},
{
"parameters": {
"resource": "file",
"binaryPropertyName": "=data",
"path": "/var/www/html/driving_school/wp-content/uploads/",
"options": {
"fileName": "new_data_massani.jpg"
}
},
"name": "SSH",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
1000,
340
],
"credentials": {
"sshPassword": {
"id": "14",
"name": "SSH Password account"
}
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date.rokoss_ua",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
},
{
"name": "date.rokoss_ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "date.prospect_ua",
"value": "={{DateTime.fromFormat($json[\"data\"][4], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
},
{
"name": "date.prospect_ru",
"value": "={{DateTime.fromFormat($json[\"data\"][4], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "date.masani_ua",
"value": "={{DateTime.fromFormat($json[\"data\"][2], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
},
{
"name": "date.masani_ru",
"value": "={{DateTime.fromFormat($json[\"data\"][2], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "count.rokoss",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "count.masani",
"value": "={{$json[\"data\"][3]}}"
},
{
"name": "count.prospect",
"value": "={{$json[\"data\"][5]}}"
},
{
"name": "google.rokoss",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "google.prospect",
"value": "={{DateTime.fromFormat($json[\"data\"][4], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "google.masani",
"value": "={{DateTime.fromFormat($json[\"data\"][2], \"dd.MM.yyyy\").toISODate()}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set1",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1240,
140
]
}
],
"connections": {
@@ -506,18 +825,7 @@
"main": [
[
{
"node": "HTML Extract1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract1": {
"main": [
[
{
"node": "Set rokoss",
"node": "HTML Extract",
"type": "main",
"index": 0
}
@@ -593,12 +901,17 @@
"main": [
[
{
"node": "rokoss",
"node": "Google Calendar",
"type": "main",
"index": 0
},
{
"node": "Google Calendar",
"node": "rokoss2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
@@ -616,17 +929,6 @@
]
]
},
"Set rokoss": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"Set masani": {
"main": [
[
@@ -702,10 +1004,98 @@
}
]
]
},
"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": [
[
{
"node": "Set rokoss",
"type": "main",
"index": 0
}
]
]
},
"Set rokoss": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"rokoss2": {
"main": [
[
{
"node": "Get Pages",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-20T08:36:58.934Z",
"updatedAt": "2022-06-21T03:20:44.049Z",
"updatedAt": "2022-06-22T11:55:13.617Z",
"settings": {
"errorWorkflow": "25"
},