更新n8n脚本

This commit is contained in:
2026-09-14 19:06:23 +08:00
parent d3802c3569
commit 922c3b4071
2 changed files with 113 additions and 40 deletions

View File

@@ -57,8 +57,8 @@
"type": "n8n-nodes-base.telegram", "type": "n8n-nodes-base.telegram",
"typeVersion": 1.2, "typeVersion": 1.2,
"position": [ "position": [
-1808, -1792,
-32 0
], ],
"id": "befccd1f-06ea-4391-ad31-c12d2adebd44", "id": "befccd1f-06ea-4391-ad31-c12d2adebd44",
"name": "发送扫描概况", "name": "发送扫描概况",
@@ -100,8 +100,8 @@
"type": "n8n-nodes-base.ssh", "type": "n8n-nodes-base.ssh",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
-1808, -1792,
224 192
], ],
"id": "803cc417-5bc9-400c-baa4-ef6ec7fecfae", "id": "803cc417-5bc9-400c-baa4-ef6ec7fecfae",
"name": "标记今日内容为已读", "name": "标记今日内容为已读",
@@ -131,32 +131,6 @@
"id": "cf7875ab-6e01-4b2c-bc45-47e96f523a94", "id": "cf7875ab-6e01-4b2c-bc45-47e96f523a94",
"name": "Schedule Trigger" "name": "Schedule Trigger"
}, },
{
"parameters": {
"method": "POST",
"url": "http://192.168.3.189:8642/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\n \"model\": \"hermes-agent\",\n \"messages\": [\n {\"role\": \"user\", \"content\": \"请用blogwatcher-daily技能导出HTML格式的今日文章,并通过agentmail技能发送到billyshen@163.com\"}\n ],\n \"stream\": false\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.5,
"position": [
-928,
-432
],
"id": "c8e9813a-bcdb-4231-8826-8b0f5e109b3c",
"name": "通知Hermes导出今日内容并发送邮件",
"credentials": {
"httpBearerAuth": {
"id": "GkmmyLXcesldpTDE",
"name": "macmini-hermes-default-api-key"
}
}
},
{ {
"parameters": { "parameters": {
"fromEmail": "star-agent@agentmail.to", "fromEmail": "star-agent@agentmail.to",
@@ -220,6 +194,32 @@
"name": "macmini-ssh-password-account" "name": "macmini-ssh-password-account"
} }
} }
},
{
"parameters": {
"method": "POST",
"url": "http://192.168.3.189:8642/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\n \"model\": \"hermes-agent\",\n \"messages\": [\n {\"role\": \"user\", \"content\": \"请用git-sync技能对/Users/weishen/Workspace/nexus 目录做一次git 同步\"}\n ],\n \"stream\": false\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.5,
"position": [
-1584,
192
],
"id": "c8e9813a-bcdb-4231-8826-8b0f5e109b3c",
"name": "对Blogwather 输出目录进行一次Git同步",
"credentials": {
"httpBearerAuth": {
"id": "GkmmyLXcesldpTDE",
"name": "macmini-hermes-default-api-key"
}
}
} }
], ],
"pinData": {}, "pinData": {},
@@ -295,11 +295,6 @@
] ]
] ]
}, },
"通知Hermes导出今日内容并发送邮件": {
"main": [
[]
]
},
"Send an Email": { "Send an Email": {
"main": [ "main": [
[] []
@@ -326,6 +321,22 @@
} }
] ]
] ]
},
"标记今日内容为已读": {
"main": [
[
{
"node": "对Blogwather 输出目录进行一次Git同步",
"type": "main",
"index": 0
}
]
]
},
"对Blogwather 输出目录进行一次Git同步": {
"main": [
[]
]
} }
}, },
"active": true, "active": true,
@@ -333,7 +344,7 @@
"executionOrder": "v1", "executionOrder": "v1",
"binaryMode": "separate" "binaryMode": "separate"
}, },
"versionId": "e3f404c2-bbb6-41e7-9a80-880bd0f0c482", "versionId": "65bddf9b-f0da-49a5-bd5b-9158e665458c",
"meta": { "meta": {
"templateCredsSetupCompleted": true, "templateCredsSetupCompleted": true,
"instanceId": "0d85c1c8320c5fe7dfb1167fa257713dc13ee89925aa6b6c8e5825922abfa363" "instanceId": "0d85c1c8320c5fe7dfb1167fa257713dc13ee89925aa6b6c8e5825922abfa363"

View File

@@ -132,6 +132,58 @@
} }
} }
}, },
{
"parameters": {
"method": "POST",
"url": "http://192.168.3.189:8642/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"hermes-agent\",\n \"messages\": [\n {\"role\": \"user\", \"content\": \"请用baoyu-translate技能对以下目录里有正文的文章进行翻译。 目录:/Users/weishen/Workspace/nexus/sreweekly/markdown/。输出markdown文件放在相同目录下。如果文章没有正文则不用翻译。\"}\n ],\n \"stream\": false\n} ",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.5,
"position": [
-1408,
-240
],
"id": "2431a701-4dcc-4ab7-a0f9-77733c7f535e",
"name": "用baoyu-translate技能翻译文章",
"credentials": {
"httpBearerAuth": {
"id": "GkmmyLXcesldpTDE",
"name": "macmini-hermes-default-api-key"
}
}
},
{
"parameters": {
"method": "POST",
"url": "http://192.168.3.189:8642/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"hermes-agent\",\n \"messages\": [\n {\"role\": \"user\", \"content\": \"请用git-sync技能对/Users/weishen/Workspace/nexus目录做一次同步\"}\n ],\n \"stream\": false\n} ",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.5,
"position": [
-1408,
-32
],
"id": "dde6923c-ef8a-4d09-9fbc-4b6d116fefad",
"name": "用git-sync技能同步nexus目录",
"credentials": {
"httpBearerAuth": {
"id": "GkmmyLXcesldpTDE",
"name": "macmini-hermes-default-api-key"
}
}
},
{ {
"parameters": { "parameters": {
"fromEmail": "star-agent@agentmail.to", "fromEmail": "star-agent@agentmail.to",
@@ -147,7 +199,7 @@
-432 -432
], ],
"id": "031f43de-fb1b-456d-9dbc-bcab9aad4c26", "id": "031f43de-fb1b-456d-9dbc-bcab9aad4c26",
"name": "发送邮件", "name": "发送邮件1",
"webhookId": "bb874d98-90cc-4cb8-bb9d-349829807a3b", "webhookId": "bb874d98-90cc-4cb8-bb9d-349829807a3b",
"credentials": { "credentials": {
"smtp": { "smtp": {
@@ -210,6 +262,16 @@
"node": "获取最新期刊HTML格式文章列表", "node": "获取最新期刊HTML格式文章列表",
"type": "main", "type": "main",
"index": 0 "index": 0
},
{
"node": "用baoyu-translate技能翻译文章",
"type": "main",
"index": 0
},
{
"node": "用git-sync技能同步nexus目录",
"type": "main",
"index": 0
} }
] ]
] ]
@@ -218,14 +280,14 @@
"main": [ "main": [
[ [
{ {
"node": "发送邮件", "node": "发送邮件1",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
] ]
] ]
}, },
"发送邮件": { "用baoyu-translate技能翻译文章": {
"main": [ "main": [
[] []
] ]
@@ -236,7 +298,7 @@
"executionOrder": "v1", "executionOrder": "v1",
"binaryMode": "separate" "binaryMode": "separate"
}, },
"versionId": "177b90fd-f9fd-4ec6-8dd7-5d3168acef13", "versionId": "fc838fa0-6e95-48fe-9109-f9c9508a0c1d",
"meta": { "meta": {
"templateCredsSetupCompleted": true, "templateCredsSetupCompleted": true,
"instanceId": "0d85c1c8320c5fe7dfb1167fa257713dc13ee89925aa6b6c8e5825922abfa363" "instanceId": "0d85c1c8320c5fe7dfb1167fa257713dc13ee89925aa6b6c8e5825922abfa363"