Auto backup (2022-06-23T21:00:30.688Z)

This commit is contained in:
nia
2022-06-23 21:00:30 +00:00
parent ff8a58c560
commit 53afc89212
8 changed files with 1843 additions and 1595 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -517,7 +517,7 @@
"filterProperties": [
{
"field": "address",
"values": "Красносільського 59а"
"values": "вул. Красносільського 59а"
}
]
}
@@ -676,8 +676,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1380,
860
1420,
720
],
"credentials": {
"facebookGraphApi": {
@@ -695,8 +695,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1580,
860
1620,
720
]
},
{
@@ -714,8 +714,8 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1780,
860
1820,
720
]
},
{
@@ -755,8 +755,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2080,
860
2120,
720
],
"credentials": {
"facebookGraphApi": {
@@ -945,6 +945,179 @@
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner.jpg",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request5",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
1400,
900
]
},
{
"parameters": {
"resource": "file",
"binaryPropertyName": "=data",
"path": "/var/www/html/driving_school/wp-content/uploads/",
"options": {
"fileName": "count_banner_masani.jpg"
}
},
"name": "SSH2",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
1900,
900
],
"credentials": {
"sshPassword": {
"id": "14",
"name": "SSH Password account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "photos",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "url",
"value": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner_masani.jpg"
},
{
"name": "caption",
"value": "=⏱ Закінчується набір в групу \nДля реєстрації на навчання в нашій автошколі \nзаповніть форму 🎯 https://avtomoto25.cn.ua/booking/\nабо телефонуйте ☎️ +380735650500 ☎️ +380965650500"
}
]
}
}
},
"name": "Facebook Graph API3",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2700,
900
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages4",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2100,
900
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2280,
900
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?4",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2480,
900
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "вул. Красносільського 59а",
"fontSize": 56,
"positionX": 550,
"positionY": 750,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 160,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$json[\"recount\"]}}!",
"fontSize": 400,
"fontColor": "#FF0000",
"positionX": 900,
"positionY": 500,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1620,
900
]
}
],
"connections": {
@@ -1226,17 +1399,6 @@
]
]
},
"recount masani": {
"main": [
[
{
"node": "Get Pages2",
"type": "main",
"index": 0
}
]
]
},
"Get Pages2": {
"main": [
[
@@ -1324,10 +1486,87 @@
}
]
]
},
"HTTP Request5": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"SSH2": {
"main": [
[
{
"node": "Get Pages4",
"type": "main",
"index": 0
}
]
]
},
"Get Pages4": {
"main": [
[
{
"node": "Split Pages4",
"type": "main",
"index": 0
}
]
]
},
"Split Pages4": {
"main": [
[
{
"node": "Is Tom Travels?4",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?4": {
"main": [
[
{
"node": "Facebook Graph API3",
"type": "main",
"index": 0
}
]
]
},
"recount masani": {
"main": [
[
{
"node": "HTTP Request5",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "SSH2",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
"updatedAt": "2022-06-22T05:50:37.978Z",
"updatedAt": "2022-06-23T18:19:36.421Z",
"settings": {
"errorWorkflow": "25"
},

File diff suppressed because it is too large Load Diff

158
flows/39.json Normal file
View File

@@ -0,0 +1,158 @@
{
"id": 39,
"name": "avtomoto25 messages",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-140,
60
]
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
100,
140
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
340,
160
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
540,
160
]
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "conversations",
"options": {
"queryParameters": {
"parameter": [
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
}
]
}
}
},
"name": "Facebook Graph API",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
760,
160
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
}
],
"connections": {
"Get Pages1": {
"main": [
[
{
"node": "Split Pages1",
"type": "main",
"index": 0
}
]
]
},
"Split Pages1": {
"main": [
[
{
"node": "Is Tom Travels?1",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?1": {
"main": [
[
{
"node": "Facebook Graph API",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[
{
"node": "Get Pages1",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-23T08:35:12.154Z",
"updatedAt": "2022-06-23T10:35:28.852Z",
"settings": {},
"staticData": null,
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
}

View File

@@ -27,71 +27,17 @@
320
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "lowPrice",
"cssSelector": "span.price__value",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
460,
320
]
},
{
"parameters": {
"fieldToSplitOut": "lowPrice",
"options": {}
},
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
660,
320
]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "lowPrice"
}
]
},
"options": {}
},
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
840,
320
]
},
{
"parameters": {
"title": "hotline",
"body": "=Цена на xbox на hotline: {{$node[\"lowest price\"].json[\"lowPrice\"]}} грн"
"body": "=Самая низкая цена на xbox сейчас в магазине {{$json[\"name\"]}} {{$json[\"price\"]}}грн"
},
"name": "Pushbullet",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1640,
120
1900,
320
],
"credentials": {
"pushbulletOAuth2Api": {
@@ -114,7 +60,7 @@
},
{
"fieldId": "price",
"fieldValue": "={{$json[\"lowPrice\"]}}"
"fieldValue": "={{$json[\"price\"]}}"
}
]
}
@@ -123,8 +69,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1420,
560
1900,
520
],
"credentials": {
"gristApi": {
@@ -153,8 +99,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1240,
140
1360,
540
],
"credentials": {
"gristApi": {
@@ -163,52 +109,6 @@
}
}
},
{
"parameters": {
"amount": 3,
"unit": "seconds"
},
"name": "Wait",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
1240,
560
],
"webhookId": "da6c3363-3c70-462e-b913-87d2e8471af4"
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"price\"]}}",
"operation": "notEqual",
"value2": "={{$node[\"lowest price\"].json[\"lowPrice\"]}}"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1420,
140
]
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1020,
320
]
},
{
"parameters": {
"triggerTimes": {
@@ -238,73 +138,7 @@
"typeVersion": 1,
"position": [
280,
620
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "lowPrice",
"cssSelector": "span.price__value",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract1",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
460,
620
]
},
{
"parameters": {
"fieldToSplitOut": "lowPrice",
"options": {}
},
"name": "Item Lists2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
660,
620
]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "lowPrice"
}
]
},
"options": {}
},
"name": "Item Lists3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
840,
620
]
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1020,
620
740
]
},
{
@@ -317,8 +151,8 @@
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
280,
840
260,
1180
]
},
{
@@ -330,8 +164,8 @@
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
660,
980
640,
1320
],
"webhookId": "cbd8e377-6ce4-4679-991f-ceb3ce421870"
},
@@ -358,8 +192,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
880,
980
860,
1320
],
"credentials": {
"gristApi": {
@@ -388,8 +222,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
660,
840
640,
1180
],
"credentials": {
"gristApi": {
@@ -414,8 +248,8 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
880,
840
860,
1180
]
},
{
@@ -434,8 +268,8 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
460,
840
440,
1180
]
},
{
@@ -447,8 +281,8 @@
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1180,
840
1160,
1180
],
"credentials": {
"pushbulletOAuth2Api": {
@@ -467,8 +301,8 @@
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
280,
1220
260,
1560
]
},
{
@@ -487,8 +321,8 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
460,
1220
440,
1560
]
},
{
@@ -514,8 +348,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
660,
1380
640,
1720
],
"credentials": {
"gristApi": {
@@ -540,8 +374,8 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
880,
1220
860,
1560
]
},
{
@@ -564,8 +398,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
660,
1220
640,
1560
],
"credentials": {
"gristApi": {
@@ -585,8 +419,8 @@
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1180,
1220
1160,
1560
],
"credentials": {
"pushbulletOAuth2Api": {
@@ -594,6 +428,300 @@
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "item",
"cssSelector": "div.list__item.row.flex",
"returnValue": "html",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract2",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
480,
320
]
},
{
"parameters": {
"fieldToSplitOut": "item",
"options": {}
},
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
700,
320
]
},
{
"parameters": {
"dataPropertyName": "item",
"extractionValues": {
"values": [
{
"key": "price",
"cssSelector": "span.price__value"
},
{
"key": "name",
"cssSelector": "a.shop__title.mb-row"
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
940,
320
]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "price"
}
]
},
"options": {}
},
"name": "Item Lists5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1160,
320
]
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1360,
320
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "price",
"propertyName2": "price"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1580,
320
]
},
{
"parameters": {
"title": "hotline",
"body": "=Самая низкая цена на ps5 сейчас в магазине {{$json[\"name\"]}} {{$json[\"price\"]}}грн"
},
"name": "Pushbullet3",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1900,
740
],
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "name",
"fieldValue": "ps5"
},
{
"fieldId": "price",
"fieldValue": "={{$json[\"price\"]}}"
}
]
}
},
"name": "Grist4",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2080,
920
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "name",
"values": "ps5"
}
]
}
}
},
"name": "Grist6",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1380,
960
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "item",
"cssSelector": "div.list__item.row.flex",
"returnValue": "html",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
500,
740
]
},
{
"parameters": {
"fieldToSplitOut": "item",
"options": {}
},
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
720,
740
]
},
{
"parameters": {
"dataPropertyName": "item",
"extractionValues": {
"values": [
{
"key": "price",
"cssSelector": "span.price__value"
},
{
"key": "name",
"cssSelector": "a.shop__title.mb-row"
}
]
},
"options": {}
},
"name": "HTML Extract4",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
980,
740
]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "price"
}
]
},
"options": {}
},
"name": "Item Lists6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1180,
740
]
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1380,
740
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "price",
"propertyName2": "price"
},
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1600,
740
]
}
],
"connections": {
@@ -601,40 +729,7 @@
"main": [
[
{
"node": "HTML Extract",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "Item Lists1",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "lowest price",
"node": "HTML Extract2",
"type": "main",
"index": 0
}
@@ -645,47 +740,9 @@
"main": [
[
{
"node": "IF",
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"lowest price": {
"main": [
[
{
"node": "Grist1",
"type": "main",
"index": 0
},
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Pushbullet",
"type": "main",
"index": 0
"index": 1
}
]
]
@@ -720,40 +777,7 @@
"main": [
[
{
"node": "HTML Extract1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract1": {
"main": [
[
{
"node": "Item Lists2",
"type": "main",
"index": 0
}
]
]
},
"Item Lists2": {
"main": [
[
{
"node": "Item Lists3",
"type": "main",
"index": 0
}
]
]
},
"Item Lists3": {
"main": [
[
{
"node": "lowest price1",
"node": "HTML Extract",
"type": "main",
"index": 0
}
@@ -847,11 +871,6 @@
]
]
},
"Grist5": {
"main": [
[]
]
},
"xbox price up2date old": {
"main": [
[
@@ -873,10 +892,163 @@
}
]
]
},
"HTML Extract2": {
"main": [
[
{
"node": "Item Lists4",
"type": "main",
"index": 0
}
]
]
},
"Item Lists4": {
"main": [
[
{
"node": "HTML Extract3",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract3": {
"main": [
[
{
"node": "Item Lists5",
"type": "main",
"index": 0
}
]
]
},
"Item Lists5": {
"main": [
[
{
"node": "lowest price2",
"type": "main",
"index": 0
}
]
]
},
"lowest price2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Pushbullet",
"type": "main",
"index": 0
},
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"Grist6": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"HTML Extract": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "HTML Extract4",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract4": {
"main": [
[
{
"node": "Item Lists6",
"type": "main",
"index": 0
}
]
]
},
"Item Lists6": {
"main": [
[
{
"node": "lowest price",
"type": "main",
"index": 0
}
]
]
},
"lowest price": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Merge1": {
"main": [
[
{
"node": "Pushbullet3",
"type": "main",
"index": 0
},
{
"node": "Grist4",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-04-25T10:23:57.085Z",
"updatedAt": "2022-06-21T03:17:39.931Z",
"updatedAt": "2022-06-23T11:05:34.360Z",
"settings": {},
"staticData": null,
"tags": []