2022-06-15 07:08:13 +00:00
|
|
|
{
|
2022-10-27 21:01:19 +00:00
|
|
|
"createdAt": "2022-06-15T06:06:51.257Z",
|
2022-12-22 22:00:50 +00:00
|
|
|
"updatedAt": "2022-12-22T19:13:24.499Z",
|
2022-06-15 07:08:13 +00:00
|
|
|
"id": 33,
|
|
|
|
|
"name": "Git backup of ESPHOME",
|
2022-06-15 21:00:48 +00:00
|
|
|
"active": true,
|
2022-06-15 07:08:13 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"parameters": {},
|
|
|
|
|
"name": "Start",
|
|
|
|
|
"type": "n8n-nodes-base.start",
|
|
|
|
|
"position": [
|
2022-06-15 21:00:48 +00:00
|
|
|
180,
|
|
|
|
|
620
|
2022-06-15 07:08:13 +00:00
|
|
|
],
|
2022-08-03 21:00:21 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
|
"id": "e3504cb1-5f4c-4326-b4e7-cf68a9d56099"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"triggerTimes": {
|
|
|
|
|
"item": [
|
|
|
|
|
{
|
2022-06-15 21:00:48 +00:00
|
|
|
"hour": 23
|
2022-06-15 07:08:13 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Cron",
|
|
|
|
|
"type": "n8n-nodes-base.cron",
|
|
|
|
|
"position": [
|
|
|
|
|
200,
|
2022-06-15 21:00:48 +00:00
|
|
|
260
|
2022-06-15 07:08:13 +00:00
|
|
|
],
|
2022-08-03 21:00:21 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
|
"id": "acc80fd3-1340-4626-b471-d5254546efca"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
2022-06-15 21:00:48 +00:00
|
|
|
"command": "=git commit -m \"Auto backup ({{ new Date().toISOString() }})\"",
|
|
|
|
|
"cwd": "/opt/esphome/config"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
2022-06-15 21:00:48 +00:00
|
|
|
"name": "git commit1",
|
|
|
|
|
"type": "n8n-nodes-base.ssh",
|
2022-06-15 07:08:13 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-06-15 21:00:48 +00:00
|
|
|
720,
|
|
|
|
|
260
|
2022-06-15 07:08:13 +00:00
|
|
|
],
|
|
|
|
|
"credentials": {
|
2022-06-15 21:00:48 +00:00
|
|
|
"sshPassword": {
|
|
|
|
|
"id": "33",
|
|
|
|
|
"name": "automation"
|
2022-06-15 07:08:13 +00:00
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
|
|
|
|
"id": "4b943ea6-e77b-4ec8-8541-80491de3c890"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
2022-06-15 21:00:48 +00:00
|
|
|
"command": "git push https://nia:4159b2141ce710381857585e10f643c40ea613e3@lab.cynic.club/nia/esphome.git --all ",
|
|
|
|
|
"cwd": "/opt/esphome/config"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
2022-06-15 21:00:48 +00:00
|
|
|
"name": "git push1",
|
|
|
|
|
"type": "n8n-nodes-base.ssh",
|
2022-06-15 07:08:13 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-06-15 21:00:48 +00:00
|
|
|
940,
|
|
|
|
|
260
|
|
|
|
|
],
|
|
|
|
|
"credentials": {
|
|
|
|
|
"sshPassword": {
|
|
|
|
|
"id": "33",
|
|
|
|
|
"name": "automation"
|
|
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
|
|
|
|
"id": "2298f839-19af-453a-be8d-42defc0355cf"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
2022-06-15 21:00:48 +00:00
|
|
|
"command": "git add .",
|
|
|
|
|
"cwd": "/opt/esphome/config"
|
2022-06-15 07:08:13 +00:00
|
|
|
},
|
2022-06-15 21:00:48 +00:00
|
|
|
"name": "git add",
|
2022-06-15 07:08:13 +00:00
|
|
|
"type": "n8n-nodes-base.ssh",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-06-15 21:00:48 +00:00
|
|
|
480,
|
|
|
|
|
260
|
2022-06-15 07:08:13 +00:00
|
|
|
],
|
|
|
|
|
"credentials": {
|
|
|
|
|
"sshPassword": {
|
|
|
|
|
"id": "33",
|
|
|
|
|
"name": "automation"
|
|
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
|
|
|
|
"id": "a7e3f2f2-24dd-4780-84a4-d1195001c5f5"
|
2022-06-15 07:08:13 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"connections": {
|
|
|
|
|
"Cron": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-06-15 21:00:48 +00:00
|
|
|
"node": "git add",
|
2022-06-15 07:08:13 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-06-15 21:00:48 +00:00
|
|
|
"git commit1": {
|
2022-06-15 07:08:13 +00:00
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-06-15 21:00:48 +00:00
|
|
|
"node": "git push1",
|
2022-06-15 07:08:13 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"git add": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-06-15 21:00:48 +00:00
|
|
|
"node": "git commit1",
|
2022-06-15 07:08:13 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"settings": {
|
|
|
|
|
"errorWorkflow": "25"
|
|
|
|
|
},
|
|
|
|
|
"staticData": null,
|
2022-12-07 22:01:07 +00:00
|
|
|
"dataLoaded": false,
|
2022-07-20 21:00:15 +00:00
|
|
|
"pinData": null,
|
2022-12-07 22:01:07 +00:00
|
|
|
"versionId": "4559663b-4176-4ec6-b57e-99983a9efa3c",
|
2022-12-21 22:01:02 +00:00
|
|
|
"triggerCount": 1,
|
2022-06-15 07:08:13 +00:00
|
|
|
"tags": [
|
|
|
|
|
{
|
|
|
|
|
"createdAt": "2022-05-19T09:37:15.931Z",
|
2022-10-27 21:01:19 +00:00
|
|
|
"updatedAt": "2022-05-19T09:37:15.931Z",
|
|
|
|
|
"id": "2",
|
|
|
|
|
"name": "my"
|
2022-06-15 07:08:13 +00:00
|
|
|
}
|
2022-12-07 22:01:07 +00:00
|
|
|
]
|
2022-06-15 07:08:13 +00:00
|
|
|
}
|