173 lines
3.7 KiB
JSON
173 lines
3.7 KiB
JSON
{
|
|
"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": {},
|
|
"type": "n8n-nodes-base.wait",
|
|
"typeVersion": 1.1,
|
|
"position": [
|
|
336,
|
|
-208
|
|
],
|
|
"id": "d2827797-21f7-496e-8afb-a5044299c07d",
|
|
"name": "Wait",
|
|
"webhookId": "e147b0a0-18c4-4423-8cee-605e68f4fbde"
|
|
},
|
|
{
|
|
"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": {},
|
|
"connections": {
|
|
"Webhook": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Execute a command",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Execute a command": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Wait",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "Discord",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Wait": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Respond to Webhook",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Discord": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Respond to Webhook1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {
|
|
"executionOrder": "v1",
|
|
"binaryMode": "separate"
|
|
},
|
|
"versionId": "7c2bf541-5763-4961-ae65-00940a5f32f8",
|
|
"meta": {
|
|
"templateCredsSetupCompleted": true,
|
|
"instanceId": "cb40080ef54f0b350fa960324602081324276be1181221a02a674c62336f7933"
|
|
},
|
|
"id": "rmbJkjlgZi5hbRpg",
|
|
"tags": []
|
|
} |