From cb77e938a41d86c84866add2b957abf7276af04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 1 Nov 2024 04:00:00 +0000 Subject: [PATCH] auto: 2024-11-01T00:00:00.824-04:00 --- README.md | 2 +- Sauvegarde Gitea.json | 2 +- Unhealthy Docker & Backup.json | 1 + mkdocs-errors.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 Unhealthy Docker & Backup.json diff --git a/README.md b/README.md index bccfe81..1a51912 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Sauvegarde
All publication prepare.json
DevAiOps.json
Gitea auto AI Groq.json
Grocq with Redis + Supabase.json
Grocq with Redis.json
Huggin Face tests with supabase.json
Huggin Face tests.json
LinkedIn publication prepare.json
LinkedIn publication submit.json
My workflow 2.json
My workflow 3.json
My workflow.json
Sauvegarde Gitea.json
Scrap web site copy - sub.json
Scrap web site.json
Twitter publication submit.json
Télégram.json
View Vector supabase.json
autoinspect destroy.json
autoinspect.json
mkdocs-errors.json +# Sauvegarde
All publication prepare.json
DevAiOps.json
Gitea auto AI Groq.json
Grocq with Redis + Supabase.json
Grocq with Redis.json
Huggin Face tests with supabase.json
Huggin Face tests.json
LinkedIn publication prepare.json
LinkedIn publication submit.json
My workflow 2.json
My workflow 3.json
My workflow.json
Sauvegarde Gitea.json
Scrap web site copy - sub.json
Scrap web site.json
Twitter publication submit.json
Télégram.json
Unhealthy Docker & Backup.json
View Vector supabase.json
autoinspect destroy.json
autoinspect.json
mkdocs-errors.json diff --git a/Sauvegarde Gitea.json b/Sauvegarde Gitea.json index 40a0fc9..dbe34eb 100644 --- a/Sauvegarde Gitea.json +++ b/Sauvegarde Gitea.json @@ -1 +1 @@ -{"createdAt":"2024-06-19T17:53:31.033Z","updatedAt":"2024-09-30T16:21:23.228Z","id":"kZvM4K7vwhKvtIkw","name":"Sauvegarde Gitea","active":true,"nodes":[{"parameters":{"rule":{"interval":[{}]}},"id":"99853d4c-6cd9-4632-b2e7-8477b61a927e","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.2,"position":[-720,160]},{"parameters":{"filters":{},"requestOptions":{}},"id":"53eab512-36c6-4b94-90d4-01ea91065bcb","name":"n8n","type":"n8n-nodes-base.n8n","typeVersion":1,"position":[-520,240],"credentials":{"n8nApi":{"id":"LPFILq2KSvbWK8vk","name":"n8n account"}}},{"parameters":{"operation":"toJson","mode":"each","options":{"fileName":"={{ $json.name }}"}},"id":"8640e0b6-dc5a-45d2-8fab-6d2713e4b896","name":"Convert to File","type":"n8n-nodes-base.convertToFile","typeVersion":1.1,"position":[-380,240]},{"parameters":{"operation":"write","fileName":"=/tmp/comp/{{ $binary.data.fileName }}.json","options":{}},"id":"d1908c71-5bfe-43fc-a109-7dc79bd844b4","name":"Read/Write Files from Disk","type":"n8n-nodes-base.readWriteFile","typeVersion":1,"position":[-220,240]},{"parameters":{"command":"mkdir -p /tmp/comp && rm -rf /tmp/repo /tmp/comp/* "},"id":"5645af60-d3af-459d-9e3f-32429ff63b4e","name":"Execute Command1","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[-520,80]},{"parameters":{"authentication":"gitPassword","operation":"clone","repositoryPath":"/tmp/repo","sourceRepository":"https://gitea.ia86.cc/perso/n8n-sauvegarde"},"id":"df61e886-fc5c-4f04-ac03-325c3534c22a","name":"Git","type":"n8n-nodes-base.git","typeVersion":1,"position":[-220,80],"credentials":{"gitPassword":{"id":"7JHhvGSTGUGgQb6S","name":"gitea.ia86.cc account"}}},{"parameters":{"mode":"chooseBranch","output":"empty"},"id":"7da55c97-6b1e-425b-ad42-9221e2db8869","name":"Merge","type":"n8n-nodes-base.merge","typeVersion":2.1,"position":[-40,160]},{"parameters":{"operation":"status","repositoryPath":"/tmp/repo"},"id":"08ff2375-45f6-4d20-8e27-c1cc3743f0a0","name":"Git1","type":"n8n-nodes-base.git","typeVersion":1,"position":[240,160]},{"parameters":{"operation":"add","repositoryPath":"/tmp/repo","pathsToAdd":"*"},"id":"f3efec1e-b45a-40b6-b233-2fbee5170890","name":"Git2","type":"n8n-nodes-base.git","typeVersion":1,"position":[560,340]},{"parameters":{"aggregate":"aggregateAllItemData","options":{}},"id":"08ea4b96-dbb7-4e67-9c83-5e9413b886f4","name":"Aggregate","type":"n8n-nodes-base.aggregate","typeVersion":1,"position":[560,160]},{"parameters":{"errorMessage":"ERREUR DANS GIT"},"id":"f87a3c10-0adf-4004-8bf9-455305556c36","name":"Stop and Error","type":"n8n-nodes-base.stopAndError","typeVersion":1,"position":[560,0]},{"parameters":{"operation":"commit","repositoryPath":"/tmp/repo","message":"=auto: {{ $json.currentDate }}","options":{}},"id":"d08883f3-bb02-469e-bb68-b123e6048413","name":"Git3","type":"n8n-nodes-base.git","typeVersion":1,"position":[1120,160]},{"parameters":{"operation":"status","repositoryPath":"/tmp/repo"},"id":"fc6cf06a-5ac9-4bb2-a058-5f7744c2a2af","name":"Git4","type":"n8n-nodes-base.git","typeVersion":1,"position":[1260,160]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"f62f6c9f-3ef3-4b85-bfca-ae123526cbcc","leftValue":"={{ $json.ahead }}","rightValue":1,"operator":{"type":"number","operation":"equals"}}],"combinator":"and"},"options":{}},"id":"e2bb2b3c-93ea-4475-9b10-3c65dc464464","name":"If","type":"n8n-nodes-base.if","typeVersion":2,"position":[1400,160]},{"parameters":{"operation":"push","repositoryPath":"/tmp/repo","options":{}},"id":"84745a3f-a552-47cd-a671-6f9bb8e12565","name":"Git5","type":"n8n-nodes-base.git","typeVersion":1,"position":[1560,40]},{"parameters":{},"id":"8b718e16-64e2-4c47-a5ce-ec09bf60ac4d","name":"No Operation, do nothing","type":"n8n-nodes-base.noOp","typeVersion":1,"position":[1560,280]},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[N8N-SAVE]: {{ $json.date }} - {{ $('Git1').item.json.files.length }} modifs","html":"={{ $('ListFiles').item.json.stdout }}
\nHash: {{ $json.hash }}","options":{"replyTo":"noreply@n8n.ia86.cc"}},"id":"e9a821a8-0018-4363-93c9-6f2251de3bec","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[2120,40],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"options":{}},"id":"1facf71d-e3ea-47bc-b5fd-eb537ff32ebf","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[980,160]},{"parameters":{"repositoryPath":"/tmp/repo","options":{}},"id":"18dc9799-fea1-4e42-a5eb-16ca5c9a289e","name":"Git6","type":"n8n-nodes-base.git","typeVersion":1,"position":[1700,40]},{"parameters":{"sortFieldsUi":{"sortField":[{"fieldName":"date","order":"descending"}]},"options":{}},"id":"4e76c8a4-db9a-449a-8df1-de12814654b3","name":"Sort","type":"n8n-nodes-base.sort","typeVersion":1,"position":[1840,40]},{"parameters":{"keep":"lastItems"},"id":"cc455ab0-bfc1-437c-a9f2-e5a49dbc9a93","name":"Limit","type":"n8n-nodes-base.limit","typeVersion":1,"position":[1980,40]},{"parameters":{"rules":{"values":[{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"leftValue":"={{ $json.staged.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"staged"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"ce17ff24-9901-4413-b722-5af58c23ae75","leftValue":"={{ $json.conflicted.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"conflicted"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"007665fd-3964-405b-a211-8b5cf45fca1c","leftValue":"={{ $json.created.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"created"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"4eb5a697-cf77-4962-a9d3-c016ec13ca61","leftValue":"={{ $json.deleted.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"deleted"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"e567e8c9-98df-463b-9df4-deffcab85d8a","leftValue":"={{ $json.modified.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"modifled"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"75f6edd0-8245-4cae-815c-b394776c6258","leftValue":"={{ $json.renamed.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"renamed"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"30f3c8d2-a595-4e0b-a25f-b6f75a2d4061","leftValue":"={{ $json.not_added.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"not_added"},{"renameOutput":true,"outputKey":"RIEN"}]},"options":{}},"id":"1134c729-2994-4230-ab71-e24fb094c550","name":"Switch","type":"n8n-nodes-base.switch","typeVersion":3,"position":[380,120]},{"parameters":{"command":"cp /tmp/comp/* /tmp/repo && cd /tmp/repo && echo -en \"# Sauvegarde
\" > ./README.md && ls *.json|sed ':a;N;$!ba;s/\\n/
/g' >> ./README.md && cat ./README.md"},"id":"0b343682-5b1e-423a-ae0f-50910c9f5729","name":"ListFiles","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[100,160]},{"parameters":{"operation":"addConfig","repositoryPath":"/tmp/repo","key":"user.email","value":"noreply@n8n.ia86.cc","options":{}},"id":"2ffc6f60-87d8-4341-aa4a-52e8bc578334","name":"Git7","type":"n8n-nodes-base.git","typeVersion":1,"position":[700,160]},{"parameters":{"operation":"addConfig","repositoryPath":"/tmp/repo","key":"user.name","value":"Nicolas Hordé","options":{}},"id":"6c316384-3a81-4478-9688-8e09b9257618","name":"Git8","type":"n8n-nodes-base.git","typeVersion":1,"position":[840,160]}],"connections":{"Schedule Trigger":{"main":[[{"node":"Execute Command1","type":"main","index":0},{"node":"n8n","type":"main","index":0}]]},"n8n":{"main":[[{"node":"Convert to File","type":"main","index":0}]]},"Convert to File":{"main":[[{"node":"Read/Write Files from Disk","type":"main","index":0}]]},"Execute Command1":{"main":[[{"node":"Git","type":"main","index":0}]]},"Git":{"main":[[{"node":"Merge","type":"main","index":0}]]},"Read/Write Files from Disk":{"main":[[{"node":"Merge","type":"main","index":1}]]},"Merge":{"main":[[{"node":"ListFiles","type":"main","index":0}]]},"Git1":{"main":[[{"node":"Switch","type":"main","index":0}]]},"Git2":{"main":[[{"node":"Git1","type":"main","index":0}]]},"Aggregate":{"main":[[{"node":"Git7","type":"main","index":0}]]},"Git3":{"main":[[{"node":"Git4","type":"main","index":0}]]},"Git4":{"main":[[{"node":"If","type":"main","index":0}]]},"If":{"main":[[{"node":"Git5","type":"main","index":0}],[{"node":"No Operation, do nothing","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"Git3","type":"main","index":0}]]},"Git6":{"main":[[{"node":"Sort","type":"main","index":0}]]},"Git5":{"main":[[{"node":"Git6","type":"main","index":0}]]},"Sort":{"main":[[{"node":"Limit","type":"main","index":0}]]},"Limit":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"Switch":{"main":[[{"node":"Aggregate","type":"main","index":0}],[{"node":"Stop and Error","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"No Operation, do nothing","type":"main","index":0}]]},"ListFiles":{"main":[[{"node":"Git1","type":"main","index":0}]]},"Git7":{"main":[[{"node":"Git8","type":"main","index":0}]]},"Git8":{"main":[[{"node":"DateTime","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"2d60742d-7e58-4cde-bfdb-8d3b571c081b","triggerCount":1,"tags":[]} \ No newline at end of file +{"createdAt":"2024-06-19T17:53:31.033Z","updatedAt":"2024-10-31T23:21:07.934Z","id":"kZvM4K7vwhKvtIkw","name":"Sauvegarde Gitea","active":true,"nodes":[{"parameters":{"rule":{"interval":[{}]}},"id":"99853d4c-6cd9-4632-b2e7-8477b61a927e","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.2,"position":[-720,160]},{"parameters":{"filters":{},"requestOptions":{}},"id":"53eab512-36c6-4b94-90d4-01ea91065bcb","name":"n8n","type":"n8n-nodes-base.n8n","typeVersion":1,"position":[-520,240],"credentials":{"n8nApi":{"id":"LPFILq2KSvbWK8vk","name":"n8n account"}}},{"parameters":{"operation":"toJson","mode":"each","options":{"fileName":"={{ $json.name }}"}},"id":"8640e0b6-dc5a-45d2-8fab-6d2713e4b896","name":"Convert to File","type":"n8n-nodes-base.convertToFile","typeVersion":1.1,"position":[-380,240]},{"parameters":{"operation":"write","fileName":"=/tmp/comp/{{ $binary.data.fileName }}.json","options":{}},"id":"d1908c71-5bfe-43fc-a109-7dc79bd844b4","name":"Read/Write Files from Disk","type":"n8n-nodes-base.readWriteFile","typeVersion":1,"position":[-220,240]},{"parameters":{"command":"mkdir -p /tmp/comp && rm -rf /tmp/repo /tmp/comp/* "},"id":"5645af60-d3af-459d-9e3f-32429ff63b4e","name":"Execute Command1","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[-520,80]},{"parameters":{"authentication":"gitPassword","operation":"clone","repositoryPath":"/tmp/repo","sourceRepository":"https://gitea.ia86.cc/perso/n8n-sauvegarde"},"id":"df61e886-fc5c-4f04-ac03-325c3534c22a","name":"Git","type":"n8n-nodes-base.git","typeVersion":1,"position":[-220,80],"credentials":{"gitPassword":{"id":"7JHhvGSTGUGgQb6S","name":"gitea.ia86.cc account"}}},{"parameters":{"mode":"chooseBranch","output":"empty"},"id":"7da55c97-6b1e-425b-ad42-9221e2db8869","name":"Merge","type":"n8n-nodes-base.merge","typeVersion":2.1,"position":[-40,160]},{"parameters":{"operation":"status","repositoryPath":"/tmp/repo"},"id":"08ff2375-45f6-4d20-8e27-c1cc3743f0a0","name":"Git1","type":"n8n-nodes-base.git","typeVersion":1,"position":[240,160]},{"parameters":{"operation":"add","repositoryPath":"/tmp/repo","pathsToAdd":"*"},"id":"f3efec1e-b45a-40b6-b233-2fbee5170890","name":"Git2","type":"n8n-nodes-base.git","typeVersion":1,"position":[560,340]},{"parameters":{"aggregate":"aggregateAllItemData","options":{}},"id":"08ea4b96-dbb7-4e67-9c83-5e9413b886f4","name":"Aggregate","type":"n8n-nodes-base.aggregate","typeVersion":1,"position":[560,160]},{"parameters":{"errorMessage":"ERREUR DANS GIT"},"id":"f87a3c10-0adf-4004-8bf9-455305556c36","name":"Stop and Error","type":"n8n-nodes-base.stopAndError","typeVersion":1,"position":[560,0]},{"parameters":{"operation":"commit","repositoryPath":"/tmp/repo","message":"=auto: {{ $json.currentDate }}","options":{}},"id":"d08883f3-bb02-469e-bb68-b123e6048413","name":"Git3","type":"n8n-nodes-base.git","typeVersion":1,"position":[1120,160]},{"parameters":{"operation":"status","repositoryPath":"/tmp/repo"},"id":"fc6cf06a-5ac9-4bb2-a058-5f7744c2a2af","name":"Git4","type":"n8n-nodes-base.git","typeVersion":1,"position":[1260,160]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"f62f6c9f-3ef3-4b85-bfca-ae123526cbcc","leftValue":"={{ $json.ahead }}","rightValue":1,"operator":{"type":"number","operation":"equals"}}],"combinator":"and"},"options":{}},"id":"e2bb2b3c-93ea-4475-9b10-3c65dc464464","name":"If","type":"n8n-nodes-base.if","typeVersion":2,"position":[1400,160]},{"parameters":{"operation":"push","repositoryPath":"/tmp/repo","options":{}},"id":"84745a3f-a552-47cd-a671-6f9bb8e12565","name":"Git5","type":"n8n-nodes-base.git","typeVersion":1,"position":[1560,40]},{"parameters":{},"id":"8b718e16-64e2-4c47-a5ce-ec09bf60ac4d","name":"No Operation, do nothing","type":"n8n-nodes-base.noOp","typeVersion":1,"position":[1560,280]},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[N8N-SAVE]: {{ $json.date }} - {{ $('Git1').item.json.files.length }} modifs","html":"={{ $('ListFiles').item.json.stdout }}
\nHash: {{ $json.hash }}","options":{"appendAttribution":false,"replyTo":"noreply@n8n.ia86.cc"}},"id":"e9a821a8-0018-4363-93c9-6f2251de3bec","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[2120,40],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"options":{}},"id":"1facf71d-e3ea-47bc-b5fd-eb537ff32ebf","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[980,160]},{"parameters":{"repositoryPath":"/tmp/repo","options":{}},"id":"18dc9799-fea1-4e42-a5eb-16ca5c9a289e","name":"Git6","type":"n8n-nodes-base.git","typeVersion":1,"position":[1700,40]},{"parameters":{"sortFieldsUi":{"sortField":[{"fieldName":"date","order":"descending"}]},"options":{}},"id":"4e76c8a4-db9a-449a-8df1-de12814654b3","name":"Sort","type":"n8n-nodes-base.sort","typeVersion":1,"position":[1840,40]},{"parameters":{"keep":"lastItems"},"id":"cc455ab0-bfc1-437c-a9f2-e5a49dbc9a93","name":"Limit","type":"n8n-nodes-base.limit","typeVersion":1,"position":[1980,40]},{"parameters":{"rules":{"values":[{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"leftValue":"={{ $json.staged.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"staged"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"ce17ff24-9901-4413-b722-5af58c23ae75","leftValue":"={{ $json.conflicted.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"conflicted"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"007665fd-3964-405b-a211-8b5cf45fca1c","leftValue":"={{ $json.created.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"created"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"4eb5a697-cf77-4962-a9d3-c016ec13ca61","leftValue":"={{ $json.deleted.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"deleted"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"e567e8c9-98df-463b-9df4-deffcab85d8a","leftValue":"={{ $json.modified.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"modifled"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"75f6edd0-8245-4cae-815c-b394776c6258","leftValue":"={{ $json.renamed.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"renamed"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"30f3c8d2-a595-4e0b-a25f-b6f75a2d4061","leftValue":"={{ $json.not_added.length }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"renameOutput":true,"outputKey":"not_added"},{"renameOutput":true,"outputKey":"RIEN"}]},"options":{}},"id":"1134c729-2994-4230-ab71-e24fb094c550","name":"Switch","type":"n8n-nodes-base.switch","typeVersion":3,"position":[380,120]},{"parameters":{"command":"cp /tmp/comp/* /tmp/repo && cd /tmp/repo && echo -en \"# Sauvegarde
\" > ./README.md && ls *.json|sed ':a;N;$!ba;s/\\n/
/g' >> ./README.md && cat ./README.md"},"id":"0b343682-5b1e-423a-ae0f-50910c9f5729","name":"ListFiles","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[100,160]},{"parameters":{"operation":"addConfig","repositoryPath":"/tmp/repo","key":"user.email","value":"noreply@n8n.ia86.cc","options":{}},"id":"2ffc6f60-87d8-4341-aa4a-52e8bc578334","name":"Git7","type":"n8n-nodes-base.git","typeVersion":1,"position":[700,160]},{"parameters":{"operation":"addConfig","repositoryPath":"/tmp/repo","key":"user.name","value":"Nicolas Hordé","options":{}},"id":"6c316384-3a81-4478-9688-8e09b9257618","name":"Git8","type":"n8n-nodes-base.git","typeVersion":1,"position":[840,160]}],"connections":{"Schedule Trigger":{"main":[[{"node":"Execute Command1","type":"main","index":0},{"node":"n8n","type":"main","index":0}]]},"n8n":{"main":[[{"node":"Convert to File","type":"main","index":0}]]},"Convert to File":{"main":[[{"node":"Read/Write Files from Disk","type":"main","index":0}]]},"Execute Command1":{"main":[[{"node":"Git","type":"main","index":0}]]},"Git":{"main":[[{"node":"Merge","type":"main","index":0}]]},"Read/Write Files from Disk":{"main":[[{"node":"Merge","type":"main","index":1}]]},"Merge":{"main":[[{"node":"ListFiles","type":"main","index":0}]]},"Git1":{"main":[[{"node":"Switch","type":"main","index":0}]]},"Git2":{"main":[[{"node":"Git1","type":"main","index":0}]]},"Aggregate":{"main":[[{"node":"Git7","type":"main","index":0}]]},"Git3":{"main":[[{"node":"Git4","type":"main","index":0}]]},"Git4":{"main":[[{"node":"If","type":"main","index":0}]]},"If":{"main":[[{"node":"Git5","type":"main","index":0}],[{"node":"No Operation, do nothing","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"Git3","type":"main","index":0}]]},"Git6":{"main":[[{"node":"Sort","type":"main","index":0}]]},"Git5":{"main":[[{"node":"Git6","type":"main","index":0}]]},"Sort":{"main":[[{"node":"Limit","type":"main","index":0}]]},"Limit":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"Switch":{"main":[[{"node":"Aggregate","type":"main","index":0}],[{"node":"Stop and Error","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"Git2","type":"main","index":0}],[{"node":"No Operation, do nothing","type":"main","index":0}]]},"ListFiles":{"main":[[{"node":"Git1","type":"main","index":0}]]},"Git7":{"main":[[{"node":"Git8","type":"main","index":0}]]},"Git8":{"main":[[{"node":"DateTime","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"ad44a31b-cd50-4523-b707-a843d3701dad","triggerCount":1,"tags":[]} \ No newline at end of file diff --git a/Unhealthy Docker & Backup.json b/Unhealthy Docker & Backup.json new file mode 100644 index 0000000..ee16326 --- /dev/null +++ b/Unhealthy Docker & Backup.json @@ -0,0 +1 @@ +{"createdAt":"2024-10-31T13:52:09.573Z","updatedAt":"2024-10-31T23:43:01.127Z","id":"WMybElaeoV7Aqn44","name":"Unhealthy Docker & Backup","active":true,"nodes":[{"parameters":{"httpMethod":"POST","path":"b0b3de53-b9a9-4842-ba25-60c6670bab72","options":{}},"id":"99605f2b-5e8d-4571-ad8e-c55a0aca73dd","name":"Webhook","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[940,340],"webhookId":"b0b3de53-b9a9-4842-ba25-60c6670bab72"},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[SERVER] Conteneur \"Unhealthy\"","html":"=

Conteneur

\nid:{{ $json.body.id }}
\nname:{{ $json.body.name }}
\nimage:{{ $json.body.image }}
\nstatus:{{ $json.body.status }}","options":{"appendAttribution":false,"replyTo":"noreply@n8n.ia86.cc"}},"id":"cb05e9b6-0bde-4c55-bb3a-35dfff75f593","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[1160,340],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"chatId":"7235468493","text":"=[{{ $json.body.name }} [🔴 Unhealthy] Docker","additionalFields":{"appendAttribution":false,"parse_mode":"HTML"}},"id":"fa8c6a8e-4a21-40a9-822e-a18ceb39eec8","name":"Telegram","type":"n8n-nodes-base.telegram","typeVersion":1.2,"position":[1440,380],"credentials":{"telegramApi":{"id":"KFWI7qLIHPlvnE99","name":"Telegram account"}}},{"parameters":{"chatId":"7235468493","text":"=[{{ $json.body.name }}] [🟢 Healthy] Docker","additionalFields":{"appendAttribution":false,"parse_mode":"HTML"}},"id":"7fcc8dac-1399-4b66-8943-bf7a52db9192","name":"Telegram1","type":"n8n-nodes-base.telegram","typeVersion":1.2,"position":[1440,580],"credentials":{"telegramApi":{"id":"KFWI7qLIHPlvnE99","name":"Telegram account"}}},{"parameters":{"chatId":"7235468493","text":"=[{{ $json.body.name }}] [⛔ {{ $json.body.status }}] Docker","additionalFields":{"appendAttribution":false,"parse_mode":"HTML"}},"id":"acc65cd2-ccd7-43f2-ae46-0c696bc5a9c8","name":"Telegram2","type":"n8n-nodes-base.telegram","typeVersion":1.2,"position":[1440,800],"credentials":{"telegramApi":{"id":"KFWI7qLIHPlvnE99","name":"Telegram account"}}},{"parameters":{"rules":{"values":[{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"leftValue":"={{ $json.body.status }}","rightValue":"unhealthy","operator":{"type":"string","operation":"contains"}}],"combinator":"and"},"renameOutput":true,"outputKey":"unhealthy"},{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"597e3cdc-47a5-4cd9-ad37-a881ea7caeee","leftValue":"={{ $json.body.status }}","rightValue":"healthy","operator":{"type":"string","operation":"contains"}}],"combinator":"and"},"renameOutput":true,"outputKey":"healthy"}]},"options":{"fallbackOutput":"extra","renameFallbackOutput":"other"}},"id":"8d6d3dab-a881-4e81-8bf9-7632bb8507c7","name":"Switch","type":"n8n-nodes-base.switch","typeVersion":3,"position":[1160,540]},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[SERVER] Backup","html":"=

Sauvegardes

\n{{ $json.message }}","options":{"appendAttribution":false,"replyTo":"noreply@n8n.ia86.cc"}},"id":"a839d631-ae47-46b4-bf9e-f1d8f1c75fd5","name":"Send Email1","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[540,720],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"chatId":"7235468493","text":"={{ $json.body.save }}","additionalFields":{"appendAttribution":false,"parse_mode":"HTML"}},"id":"5522bff7-42b7-484d-bead-0d4d2ab96ef7","name":"Telegram3","type":"n8n-nodes-base.telegram","typeVersion":1.2,"position":[540,900],"credentials":{"telegramApi":{"id":"KFWI7qLIHPlvnE99","name":"Telegram account"}}},{"parameters":{"jsCode":"return {\n json: {\n message: $json.body.save.replace(/\\n/g, \"
\")\n }\n};"},"id":"c3e7e62a-b89f-4f78-9885-e8e11643138f","name":"Code","type":"n8n-nodes-base.code","typeVersion":2,"position":[340,720]},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[SERVER] Bilan","html":"=

Informations

\n{{ $json.message }}","options":{"appendAttribution":false,"replyTo":"noreply@n8n.ia86.cc"}},"id":"6208fbe9-3376-4fc9-832a-c13de7e3c4ec","name":"Send Email2","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[540,280],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"chatId":"7235468493","text":"={{ $json.body.bilan }}","additionalFields":{"appendAttribution":false,"parse_mode":"HTML"}},"id":"f1d25741-5a82-4090-8ef6-bfc835e9b721","name":"Telegram4","type":"n8n-nodes-base.telegram","typeVersion":1.2,"position":[540,460],"credentials":{"telegramApi":{"id":"KFWI7qLIHPlvnE99","name":"Telegram account"}}},{"parameters":{"jsCode":"return {\n json: {\n message: $json.body.bilan.replace(/\\n/g, \"
\")\n }\n};"},"id":"c20cd5ad-8b4e-4a55-9dfb-a559884605f6","name":"Code1","type":"n8n-nodes-base.code","typeVersion":2,"position":[340,280]},{"parameters":{"httpMethod":"POST","path":"6f4afe18-8d4c-485a-90d0-b0e4f6243d77","options":{}},"id":"88197eda-eb72-4cf0-8da0-3dda94a3cfc8","name":"Webhook1","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[60,720],"webhookId":"6f4afe18-8d4c-485a-90d0-b0e4f6243d77"},{"parameters":{"httpMethod":"POST","path":"645ea10c-2b77-4aa5-b0c3-c311875f1307","options":{}},"id":"06b1bc50-fb09-45f5-ad9d-d4756ef93812","name":"Webhook2","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[60,280],"webhookId":"645ea10c-2b77-4aa5-b0c3-c311875f1307"}],"connections":{"Webhook":{"main":[[{"node":"Send Email","type":"main","index":0},{"node":"Switch","type":"main","index":0}]]},"Switch":{"main":[[{"node":"Telegram","type":"main","index":0}],[{"node":"Telegram1","type":"main","index":0}],[{"node":"Telegram2","type":"main","index":0}]]},"Code":{"main":[[{"node":"Send Email1","type":"main","index":0}]]},"Code1":{"main":[[{"node":"Send Email2","type":"main","index":0}]]},"Webhook1":{"main":[[{"node":"Telegram3","type":"main","index":0},{"node":"Code","type":"main","index":0}]]},"Webhook2":{"main":[[{"node":"Code1","type":"main","index":0},{"node":"Telegram4","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"5933c259-620a-4b35-b15e-e5127459aef6","triggerCount":3,"tags":[]} \ No newline at end of file diff --git a/mkdocs-errors.json b/mkdocs-errors.json index 7278186..2739c74 100644 --- a/mkdocs-errors.json +++ b/mkdocs-errors.json @@ -1 +1 @@ -{"createdAt":"2024-07-23T16:36:19.162Z","updatedAt":"2024-07-23T17:16:00.706Z","id":"jOzVm8oAYWfx3S3r","name":"mkdocs-errors","active":true,"nodes":[{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[MKDOCS] Erreur à la construction {{ $data.data[0].body.site }}","html":"=

Erreurs

\n{{ $data.data[0].stdout }}","options":{"replyTo":"noreply@n8n.ia86.cc"}},"id":"5a676e4d-2d03-4b78-98b7-b542a51915bb","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[1760,340],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"command":"=echo \"{{ $json.body.erreur }}\"|base64 -d"},"id":"ad62fac4-ea48-4a95-afe1-a98ad6fa213c","name":"Execute Command","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[1280,260]},{"parameters":{"httpMethod":"POST","path":"7950310f-e526-475a-82d1-63818da79339","options":{}},"id":"ac7ffa2a-2ca0-48e9-b84d-47d067d094c7","name":"Webhook","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[1080,360],"webhookId":"7950310f-e526-475a-82d1-63818da79339"},{"parameters":{"aggregate":"aggregateAllItemData","options":{}},"id":"f466bf31-2f26-4b64-829a-520d7d9c72f1","name":"Aggregate","type":"n8n-nodes-base.aggregate","typeVersion":1,"position":[1620,340]},{"parameters":{"mode":"combine","combinationMode":"mergeByPosition","options":{}},"id":"58c6ede2-270e-481c-a882-1da936953456","name":"Merge","type":"n8n-nodes-base.merge","typeVersion":2.1,"position":[1480,340]}],"connections":{"Send Email":{"main":[[]]},"Webhook":{"main":[[{"node":"Execute Command","type":"main","index":0},{"node":"Merge","type":"main","index":1}]]},"Execute Command":{"main":[[{"node":"Merge","type":"main","index":0}]]},"Aggregate":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"Merge":{"main":[[{"node":"Aggregate","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"ecd618d7-2151-4389-b9b2-7d7330cf02ce","triggerCount":1,"tags":[]} \ No newline at end of file +{"createdAt":"2024-07-23T16:36:19.162Z","updatedAt":"2024-10-31T23:56:45.211Z","id":"jOzVm8oAYWfx3S3r","name":"mkdocs-errors","active":true,"nodes":[{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[SERVER] Mkdocs erreur {{ $data.data[0].body.site }}","html":"=

Erreurs construction

\n{{ $data.data[0].stdout }}","options":{"appendAttribution":false,"replyTo":"noreply@n8n.ia86.cc"}},"id":"5a676e4d-2d03-4b78-98b7-b542a51915bb","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[1760,340],"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}}},{"parameters":{"command":"=echo \"{{ $json.body.erreur }}\"|base64 -d"},"id":"ad62fac4-ea48-4a95-afe1-a98ad6fa213c","name":"Execute Command","type":"n8n-nodes-base.executeCommand","typeVersion":1,"position":[1280,260]},{"parameters":{"httpMethod":"POST","path":"7950310f-e526-475a-82d1-63818da79339","options":{}},"id":"ac7ffa2a-2ca0-48e9-b84d-47d067d094c7","name":"Webhook","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[1080,360],"webhookId":"7950310f-e526-475a-82d1-63818da79339"},{"parameters":{"aggregate":"aggregateAllItemData","options":{}},"id":"f466bf31-2f26-4b64-829a-520d7d9c72f1","name":"Aggregate","type":"n8n-nodes-base.aggregate","typeVersion":1,"position":[1620,340]},{"parameters":{"mode":"combine","combinationMode":"mergeByPosition","options":{}},"id":"58c6ede2-270e-481c-a882-1da936953456","name":"Merge","type":"n8n-nodes-base.merge","typeVersion":2.1,"position":[1480,340]}],"connections":{"Webhook":{"main":[[{"node":"Execute Command","type":"main","index":0},{"node":"Merge","type":"main","index":1}]]},"Execute Command":{"main":[[{"node":"Merge","type":"main","index":0}]]},"Aggregate":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"Merge":{"main":[[{"node":"Aggregate","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"53dc6f7c-2132-4e8b-8dd3-7b688ec40d48","triggerCount":1,"tags":[]} \ No newline at end of file