Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

zeemars/ComfyUI_ServerChan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

ComfyUI_ServerChan

一个专为 ComfyUI 设计的通知插件,通过 ServerChan API 将工作流执行状态实时发送到用户手机,实现远程监控功能。

功能特点

  • 📱 实时通知:将工作流执行状态发送到手机
  • 🚀 工作流开始通知:包含工作流名称和预计节点数
  • ⏱️ 进度通知:定期发送执行进度,不再依赖精确百分比
  • 错误通知:工作流执行出错时及时提醒
  • ⚙️ 灵活配置:支持自定义通知间隔和消息标签
  • 🔧 自定义节点:提供手动发送通知的节点

安装方法

  1. 下载插件:将 ComfyUI_ServerChan 目录复制到 ComfyUI 的 custom_nodes 目录
  2. 安装依赖:确保已安装所需依赖(requests 库)
  3. 重启 ComfyUI:重启 ComfyUI 使插件生效

使用说明

1. 配置 ServerChan API

  1. 在 ComfyUI 设置中找到 ServerChan 相关设置
  2. 填写完整的 ServerChan API URL(从 ServerChan 官网获取)
  3. 配置消息标签(用 | 分隔)
  4. 开启或关闭进度通知和错误通知
  5. 设置进度通知间隔(默认 20%)

2. 自动监控

插件会自动监控工作流执行状态,无需手动操作:

  • 工作流开始时发送通知(包含工作流名称)
  • 执行过程中定期发送进度通知
  • 工作流完成时发送完成通知
  • 执行出错时发送错误通知

3. 手动发送通知

在工作流中添加 ServerChanSender 节点:

  • 填写通知标题和内容
  • 配置消息标签
  • 连接到工作流中的其他节点,在特定条件下触发通知

配置选项

配置文件位于 config.json:

{
 "serverchan_url": "https://<uid>.push.ft07.com/send/<sendkey>.send",
 "enable_monitoring": true,
 "enable_error_msg": true,
 "notify_interval": 20,
 "tags": "ComfyUI|Monitor"
}
配置项 说明 默认值
serverchan_url ServerChan API URL(完整链接) ""
enable_monitoring 是否开启进度通知 true
enable_error_msg 是否开启错误通知 true
notify_interval 进度通知间隔(百分比) 20
tags 消息标签(用 分隔)

作者信息

作者:重塑师

B 站主页:https://space.bilibili.com/487432166

许可证

MIT License

致谢

  • 感谢 ServerChan 提供的消息推送服务
  • 感谢 ComfyUI 团队开发的优秀框架

更新日志

v1.0.0

  • 初始版本
  • 实现工作流执行状态监控
  • 支持自动发送通知
  • 提供自定义通知节点

v1.1.0

  • 优化工作流开始通知,添加工作流名称
  • 改进进度通知逻辑,不再依赖精确百分比
  • 增加节点数量检测,确保通知可靠性
  • 优化错误处理,提高稳定性

About

一个专为 ComfyUI 设计的通知插件,通过 ServerChan API 将工作流执行状态实时发送到用户手机,实现远程监控功能。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /