Update Drive2Kindle.json
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updatedAt": "2025-12-20T08:45:18.000Z",
|
||||
"updatedAt": "2025-12-21T09:59:01.000Z",
|
||||
"createdAt": "2025-11-21T10:47:00.974Z",
|
||||
"id": "gfx8s7OTuVkoPgLf",
|
||||
"name": "Drive2Kindle",
|
||||
@@ -23,8 +23,8 @@
|
||||
"type": "n8n-nodes-base.gmail",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
480,
|
||||
-96
|
||||
992,
|
||||
-304
|
||||
],
|
||||
"id": "c9c5e5c7-b002-4d40-a19f-7f7ff3e6150d",
|
||||
"name": "Send a message",
|
||||
@@ -36,41 +36,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"pollTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyMinute"
|
||||
}
|
||||
]
|
||||
},
|
||||
"triggerOn": "specificFolder",
|
||||
"folderToWatch": {
|
||||
"__rl": true,
|
||||
"value": "1QWsuPK82uzzM6bsjFvZB9C_T-YR6oWQe",
|
||||
"mode": "list",
|
||||
"cachedResultName": "ebook_consume",
|
||||
"cachedResultUrl": "https://drive.google.com/drive/folders/1QWsuPK82uzzM6bsjFvZB9C_T-YR6oWQe"
|
||||
},
|
||||
"event": "fileUpdated",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.googleDriveTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
16,
|
||||
-96
|
||||
],
|
||||
"id": "0858b48f-1808-44fb-afd6-9fb138dd8f05",
|
||||
"name": "Google Drive Trigger",
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "Cd69ueasqJqwPqCW",
|
||||
"name": "Google Drive account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "download",
|
||||
@@ -92,8 +57,8 @@
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"typeVersion": 3,
|
||||
"position": [
|
||||
224,
|
||||
-96
|
||||
832,
|
||||
-304
|
||||
],
|
||||
"id": "91140f64-d7c9-4936-bb21-6cf81b940b7e",
|
||||
"name": "Download file",
|
||||
@@ -103,11 +68,284 @@
|
||||
"name": "Google Drive account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"rule": {
|
||||
"interval": [
|
||||
{
|
||||
"field": "hours",
|
||||
"hoursInterval": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"typeVersion": 1.3,
|
||||
"position": [
|
||||
-192,
|
||||
-256
|
||||
],
|
||||
"id": "3b1d8e31-2a4f-492c-92dd-9d707eb095ae",
|
||||
"name": "Schedule Trigger"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "get",
|
||||
"dataTableId": {
|
||||
"__rl": true,
|
||||
"value": "kZfUnu3rACBWsKrJ",
|
||||
"mode": "list",
|
||||
"cachedResultName": "drive2kindle",
|
||||
"cachedResultUrl": "/projects/S4tmpzSj6JlGFOze/datatables/kZfUnu3rACBWsKrJ"
|
||||
},
|
||||
"returnAll": true
|
||||
},
|
||||
"type": "n8n-nodes-base.dataTable",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
-400
|
||||
],
|
||||
"id": "c5511d05-bead-48d1-92aa-05e78665128c",
|
||||
"name": "Get row(s)",
|
||||
"executeOnce": true
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "upsert",
|
||||
"dataTableId": {
|
||||
"__rl": true,
|
||||
"value": "kZfUnu3rACBWsKrJ",
|
||||
"mode": "list",
|
||||
"cachedResultName": "drive2kindle",
|
||||
"cachedResultUrl": "/projects/S4tmpzSj6JlGFOze/datatables/kZfUnu3rACBWsKrJ"
|
||||
},
|
||||
"filters": {
|
||||
"conditions": [
|
||||
{
|
||||
"keyName": "file_id",
|
||||
"keyValue": "={{ $('Download file').item.json.id }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"columns": {
|
||||
"mappingMode": "defineBelow",
|
||||
"value": {
|
||||
"file_id": "={{ $('Download file').item.json.id }}",
|
||||
"file_name": "={{ $('Download file').item.json.name }}"
|
||||
},
|
||||
"matchingColumns": [],
|
||||
"schema": [
|
||||
{
|
||||
"id": "file_id",
|
||||
"displayName": "file_id",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"type": "string",
|
||||
"readOnly": false,
|
||||
"removed": false
|
||||
},
|
||||
{
|
||||
"id": "file_name",
|
||||
"displayName": "file_name",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"type": "string",
|
||||
"readOnly": false,
|
||||
"removed": false
|
||||
}
|
||||
],
|
||||
"attemptToConvertTypes": false,
|
||||
"convertFieldsToString": false
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.dataTable",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1152,
|
||||
-304
|
||||
],
|
||||
"id": "af9fbe3a-6bfc-4bf0-81c8-cedd35985af7",
|
||||
"name": "Upsert row(s)"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "fileFolder",
|
||||
"queryString": "*",
|
||||
"returnAll": true,
|
||||
"filter": {
|
||||
"folderId": {
|
||||
"__rl": true,
|
||||
"value": "1QWsuPK82uzzM6bsjFvZB9C_T-YR6oWQe",
|
||||
"mode": "list",
|
||||
"cachedResultName": "ebook_consume",
|
||||
"cachedResultUrl": "https://drive.google.com/drive/folders/1QWsuPK82uzzM6bsjFvZB9C_T-YR6oWQe"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"fields": [
|
||||
"id",
|
||||
"name"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.googleDrive",
|
||||
"typeVersion": 3,
|
||||
"position": [
|
||||
0,
|
||||
-256
|
||||
],
|
||||
"id": "5b17b03b-76f9-4ba2-86e5-4d197ca5ce90",
|
||||
"name": "search_file",
|
||||
"executeOnce": true,
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "Cd69ueasqJqwPqCW",
|
||||
"name": "Google Drive account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "combine",
|
||||
"advanced": true,
|
||||
"mergeByFields": {
|
||||
"values": [
|
||||
{
|
||||
"field1": "file_id",
|
||||
"field2": "id"
|
||||
}
|
||||
]
|
||||
},
|
||||
"joinMode": "keepNonMatches",
|
||||
"outputDataFrom": "input2",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 3.2,
|
||||
"position": [
|
||||
304,
|
||||
-320
|
||||
],
|
||||
"id": "fc5d34d8-f4d5-4494-be88-b219ea601a3f",
|
||||
"name": "Merge"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.splitInBatches",
|
||||
"typeVersion": 3,
|
||||
"position": [
|
||||
576,
|
||||
-320
|
||||
],
|
||||
"id": "00d2a102-7b9f-4f9b-82c2-b326b73a6c40",
|
||||
"name": "Loop Over Items"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"httpMethod": "POST",
|
||||
"path": "bfae0a89-025e-4451-8e73-c1bb10a11f03",
|
||||
"authentication": "headerAuth",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
-192,
|
||||
-448
|
||||
],
|
||||
"id": "64c86963-a9e8-4016-90fe-d0ab94f8d22a",
|
||||
"name": "Webhook",
|
||||
"webhookId": "bfae0a89-025e-4451-8e73-c1bb10a11f03",
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "ZmNvnXvf9yE8rmvm",
|
||||
"name": "drive2kindle-api"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Google Drive Trigger": {
|
||||
"Send a message": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Upsert row(s)",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Download file": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send a message",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Schedule Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "search_file",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Get row(s)",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get row(s)": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"search_file": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Loop Over Items",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Loop Over Items": {
|
||||
"main": [
|
||||
[],
|
||||
[
|
||||
{
|
||||
"node": "Download file",
|
||||
@@ -117,16 +355,27 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"Send a message": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Download file": {
|
||||
"Upsert row(s)": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send a message",
|
||||
"node": "Loop Over Items",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get row(s)",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "search_file",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
@@ -140,14 +389,19 @@
|
||||
"staticData": {
|
||||
"node:Google Drive Trigger": {
|
||||
"lastTimeChecked": "2025-12-20T08:45:18Z"
|
||||
},
|
||||
"node:Schedule Trigger": {
|
||||
"recurrenceRules": [
|
||||
22
|
||||
]
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"pinData": {},
|
||||
"versionId": "ef53ea06-3bc8-4cdf-bceb-bd81f7a140f4",
|
||||
"triggerCount": 1,
|
||||
"versionId": "7ac74dd4-6161-4eab-acfd-1d9e01faa1b5",
|
||||
"triggerCount": 2,
|
||||
"shared": [
|
||||
{
|
||||
"updatedAt": "2025-11-21T10:47:00.977Z",
|
||||
|
||||
Reference in New Issue
Block a user