2022-12-03 22:01:33 +00:00
|
|
|
{
|
|
|
|
|
"createdAt": "2022-12-03T07:10:01.943Z",
|
2022-12-23 22:01:03 +00:00
|
|
|
"updatedAt": "2022-12-23T17:42:34.761Z",
|
2022-12-03 22:01:33 +00:00
|
|
|
"id": 70,
|
|
|
|
|
"name": "google",
|
|
|
|
|
"active": true,
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
|
|
|
|
"tableId": "Classrooms",
|
|
|
|
|
"returnAll": true,
|
|
|
|
|
"additionalOptions": {}
|
|
|
|
|
},
|
|
|
|
|
"id": "5fb335dc-e91f-4de7-b836-42061d936558",
|
|
|
|
|
"name": "Grist",
|
|
|
|
|
"type": "n8n-nodes-base.grist",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
880,
|
|
|
|
|
200
|
|
|
|
|
],
|
|
|
|
|
"credentials": {
|
|
|
|
|
"gristApi": {
|
|
|
|
|
"id": "21",
|
|
|
|
|
"name": "Grist account"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "toFile",
|
|
|
|
|
"fileFormat": "csv",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"id": "1b2ea0b1-1a5b-4f1e-b9b6-f46ca851e0c9",
|
|
|
|
|
"name": "Spreadsheet File",
|
|
|
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1100,
|
|
|
|
|
200
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"rule": {
|
|
|
|
|
"interval": [
|
|
|
|
|
{
|
|
|
|
|
"field": "minutes",
|
|
|
|
|
"minutesInterval": 10
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"id": "0a5c9419-5156-48d9-a156-176f312e262a",
|
|
|
|
|
"name": "Schedule Trigger",
|
|
|
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
640,
|
|
|
|
|
200
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"fileName": "/files/classrooms.csv",
|
|
|
|
|
"options": {
|
|
|
|
|
"append": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"id": "4a9893ea-5eeb-452d-a8b6-16e96266c947",
|
|
|
|
|
"name": "Write Binary File",
|
|
|
|
|
"type": "n8n-nodes-base.writeBinaryFile",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1320,
|
|
|
|
|
200
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"authentication": "headerAuth",
|
|
|
|
|
"path": "driver_scool",
|
|
|
|
|
"responseMode": "responseNode",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Webhook1",
|
|
|
|
|
"type": "n8n-nodes-base.webhook",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
440,
|
|
|
|
|
440
|
|
|
|
|
],
|
|
|
|
|
"webhookId": "42d23674-abe0-4cb4-a158-3319140d97f0",
|
|
|
|
|
"id": "01eb7b4e-4a1f-424a-8603-4848a61f5bc2",
|
|
|
|
|
"credentials": {
|
|
|
|
|
"httpHeaderAuth": {
|
|
|
|
|
"id": "22",
|
|
|
|
|
"name": "n8n webhook"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "aggregateItems",
|
|
|
|
|
"fieldsToAggregate": {
|
|
|
|
|
"fieldToAggregate": [
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "id"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "date_ru"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "date_ua"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "count"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "time"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "day_2_ua"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "day_1_ua"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "day_1_ru"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "day_2_ru"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "address"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "time_2"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "time_3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "day_3_ua"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fieldToAggregate": "day_3_ru"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Item Lists1",
|
|
|
|
|
"type": "n8n-nodes-base.itemLists",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1080,
|
|
|
|
|
440
|
|
|
|
|
],
|
|
|
|
|
"id": "b8420135-7337-4079-b1b6-1101ef314f74"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"respondWith": "json",
|
|
|
|
|
"responseBody": "={ \"data\": \n { \"data_rokoss\":\n {\n \"ru\": \"{{$json[\"date_ru\"][0]}}\",\n \"ua\": \"{{$json[\"date_ua\"][0]}}\"\n },\n \n \"data_masani\":\n {\n \"ru\": \"{{$json[\"date_ru\"][1]}}\",\n \"ua\": \"{{$json[\"date_ua\"][1]}}\"\n },\n \"data_prospect\":\n {\n \"ru\": \"{{$json[\"date_ru\"][2]}}\",\n \"ua\": \"{{$json[\"date_ua\"][2]}}\"\n } \n },\n \"count\":\n {\n \"rokoss\": \"{{$json[\"count\"][0]}}\",\n \"masani\": \"{{$json[\"count\"][1]}}\",\n \"prospect\": \"{{$json[\"count\"][2]}}\"\n },\n\n\"schedule\":\n {\n \"rokoss\":\n {\n \"day1\":\n {\n \"ru\": \"{{$json[\"day_1_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_1_ua\"][0]}}\"\n },\n \"day2\":\n {\n \"ru\": \"{{$json[\"day_2_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_2_ua\"][0]}}\"\n },\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][0]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][0]}}\"\n},\n \"time\": \"{{$json[\"time\"][0]}}\",\n \"time_2\": \"{{$json[\"time_2\"][0]}}\",\n \"time_3\": \"{{$json[\"time_3\"][0]}}\"\n },\n\"masani\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][1]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][1]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][1]}}\"\n},\n\"time\": \"{{$json[\"time\"][1]}}\",\n\"time_2\": \"{{$json[\"time_2\"][1]}}\",\n\"time_3\": \"{{$json[\"time_3\"][1]}}\"\n},\n\"prospect\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][2]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][2]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][2]}}\"\n},\n\"time\": \"{{$json[\"time\"][2]}}\",\n\"time_2\": \"{{$json[\"time_2\"][2]}}\",\n\"time_3\": \"{{$json[\"time_3\"][2]}}\"\n}\n}\n}",
|
|
|
|
|
"options": {
|
|
|
|
|
"responseCode": 200
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Respond to Webhook",
|
|
|
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1320,
|
|
|
|
|
440
|
|
|
|
|
],
|
|
|
|
|
"id": "4187897a-adb4-4da6-abe8-32a02fd35ed2"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"filePath": "/files/classrooms.csv"
|
|
|
|
|
},
|
|
|
|
|
"id": "9e8d20d2-38b7-47e8-a645-4595ea61eee3",
|
|
|
|
|
"name": "Read Binary File",
|
|
|
|
|
"type": "n8n-nodes-base.readBinaryFile",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
640,
|
|
|
|
|
440
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"options": {
|
|
|
|
|
"headerRow": true,
|
|
|
|
|
"rawData": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"id": "6d8b2a6a-0423-4ad4-927c-501f548a6285",
|
|
|
|
|
"name": "Spreadsheet File1",
|
|
|
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
860,
|
|
|
|
|
440
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"connections": {
|
|
|
|
|
"Grist": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Spreadsheet File",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Schedule Trigger": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Grist",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Spreadsheet File": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Write Binary File",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Item Lists1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Respond to Webhook",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Read Binary File": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Spreadsheet File1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Spreadsheet File1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Item Lists1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Webhook1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Read Binary File",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"settings": {},
|
|
|
|
|
"staticData": {
|
|
|
|
|
"node:Schedule Trigger": {
|
|
|
|
|
"recurrencyRules": []
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-12-07 22:01:07 +00:00
|
|
|
"dataLoaded": true,
|
2022-12-03 22:01:33 +00:00
|
|
|
"pinData": {},
|
2022-12-07 22:01:07 +00:00
|
|
|
"versionId": "3ee9d888-13e3-455c-a0d4-23a941e07712",
|
2022-12-21 22:01:02 +00:00
|
|
|
"triggerCount": 2,
|
2022-12-03 22:01:33 +00:00
|
|
|
"tags": [
|
|
|
|
|
{
|
|
|
|
|
"createdAt": "2022-05-10T18:06:30.022Z",
|
|
|
|
|
"updatedAt": "2022-05-10T18:06:30.022Z",
|
|
|
|
|
"id": "1",
|
|
|
|
|
"name": "avtomoto25"
|
|
|
|
|
}
|
2022-12-07 22:01:07 +00:00
|
|
|
]
|
2022-12-03 22:01:33 +00:00
|
|
|
}
|