{ "name": "JW Library Sync", "nodes": [ { "parameters": { "command": "bash /home/artanis/Documents/JW_Backup_Sync_Engine.sh" }, "type": "n8n-nodes-base.ssh", "typeVersion": 1, "position": [ 112, -112 ], "id": "5a156815-edbb-4c08-9e7d-75f98c2f6c39", "name": "Execute a command", "alwaysOutputData": true, "credentials": { "sshPassword": { "id": "wILbpFcpVSKcewXl", "name": "Homelab Login" } }, "onError": "continueErrorOutput" }, { "parameters": { "httpMethod": "POST", "path": "sync-jw-backup", "responseMode": "responseNode", "options": {} }, "type": "n8n-nodes-base.webhook", "typeVersion": 2.1, "position": [ -112, -112 ], "id": "37b4ca1b-8910-41d5-8b1f-e7696b71f07f", "name": "Webhook", "webhookId": "5e348016-4d6e-4226-a5dc-c91eb7d6ea0e" }, { "parameters": { "authentication": "webhook", "content": "=JW SYNC ERROR:\n {{ $json.stderr }}", "options": {} }, "type": "n8n-nodes-base.discord", "typeVersion": 2, "position": [ 336, -16 ], "id": "abac265b-78c6-4bc0-9ba9-f846d39eefa8", "name": "Discord", "webhookId": "4f823df1-38b6-4a5b-ae32-2fc586a9aa9b", "credentials": { "discordWebhookApi": { "id": "0i1bW7qtePtHMHjA", "name": "SV98" } } }, { "parameters": { "respondWith": "text", "responseBody": "Merge Successful", "options": {} }, "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.5, "position": [ 560, -208 ], "id": "be993bb8-c654-42d1-9bea-7d6ffbd75db9", "name": "Respond to Webhook" }, { "parameters": { "respondWith": "text", "responseBody": "Merge Failed", "options": {} }, "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.5, "position": [ 560, -16 ], "id": "daa52075-9bd6-4425-a9d5-8763d935a372", "name": "Respond to Webhook1" } ], "pinData": { "Webhook": [ { "json": { "headers": { "user-agent": "Tasker/6.6.20 (Android/16)", "content-type": "application/json", "content-length": "33", "host": "n8n.bunny-wyvern.ts.net:5678", "connection": "Keep-Alive", "accept-encoding": "gzip" }, "params": {}, "query": {}, "body": { "device": "Samsung-Tablet-S10+" }, "webhookUrl": "http://n8n.bunny-wyvern.ts.net:5678/webhook/sync-jw-backup", "executionMode": "production" }, "pairedItem": { "item": 0 } } ] }, "connections": { "Webhook": { "main": [ [ { "node": "Execute a command", "type": "main", "index": 0 } ] ] }, "Execute a command": { "main": [ [ { "node": "Respond to Webhook", "type": "main", "index": 0 } ], [ { "node": "Discord", "type": "main", "index": 0 } ] ] }, "Discord": { "main": [ [ { "node": "Respond to Webhook1", "type": "main", "index": 0 } ] ] } }, "active": true, "settings": { "executionOrder": "v1", "binaryMode": "separate" }, "versionId": "e3c5e92f-e32e-4e76-88bb-5167c0c4896c", "meta": { "templateCredsSetupCompleted": true, "instanceId": "cb40080ef54f0b350fa960324602081324276be1181221a02a674c62336f7933" }, "id": "rmbJkjlgZi5hbRpg", "tags": [] }