返回顶部
g

gotifyGotify推送通知

Send push notifications via Gotify when long-running tasks complete or important events occur. Use when the user asks to "send a Gotify notification", "notify me when this finishes", "push notification", "alert me via Gotify", or wants to be notified of task completion.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
2,636
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

gotify

Gotify 通知技能

当长时间运行的任务完成或重要事件发生时,向您的 Gotify 服务器发送推送通知。

目的

此技能使 Clawdbot 能够通过 Gotify 发送推送通知,适用于:

  • - 长时间运行的任务完成时发出警报
  • 发送后台操作的状态更新
  • 通知重要事件或错误
  • 与任务完成钩子集成

设置

创建凭证文件:~/.clawdbot/credentials/gotify/config.json

json
{
url: https://gotify.example.com,
token: YOURAPPTOKEN
}

  • - url:您的 Gotify 服务器 URL(末尾无斜杠)
  • token:来自 Gotify 的应用令牌(设置 → 应用 → 创建应用)

用法

基本通知

bash
bash scripts/send.sh 任务成功完成

带标题

bash
bash scripts/send.sh --title 构建完成 --message 技能同步测试通过

带优先级(0-10)

bash
bash scripts/send.sh -t 严重警报 -m 服务宕机 -p 10

Markdown 支持

bash
bash scripts/send.sh --title 部署摘要 --markdown --message

部署完成

  • - 状态:✅ 成功
  • 耗时:2分34秒
  • 提交数:5个新提交

与任务完成集成

选项 1:任务后直接调用

bash

运行长时间任务


./deploy.sh && bash ~/clawd/skills/gotify/scripts/send.sh 部署完成

选项 2:钩子集成(未来)

当 Clawdbot 支持任务完成钩子时,此技能可以自动触发:

bash

示例钩子配置(概念性)


{
on: task_complete,
run: bash ~/clawd/skills/gotify/scripts/send.sh 任务:{{task_name}} 在 {{duration}} 内完成
}

参数

  • - -m, --message <文本>:通知消息(必需)
  • -t, --title <文本>:通知标题(可选)
  • -p, --priority <0-10>:优先级级别(默认:5)
- 0-3:低优先级 - 4-7:普通优先级 - 8-10:高优先级(可能触发声音/振动)
  • - --markdown:在消息中启用 Markdown 格式

示例

子代理完成时通知

bash

生成子代理后


sessions_spawn --task 研究主题 --label my-research

... 等待完成 ...


bash scripts/send.sh -t 研究完成 -m 检查会话:my-research

错误时高优先级通知

bash
if ! ./critical-task.sh; then
bash scripts/send.sh -t ⚠️ 严重故障 -m 任务失败,请检查日志 -p 10
fi

丰富的 Markdown 通知

bash
bash scripts/send.sh --markdown -t 每日摘要 -m

系统状态

✅ 健康

  • - UniFi:34 个客户端
  • Sonarr:1,175 个节目
  • Radarr:2,551 部电影

📊 统计

  • - 运行时间:621小时
  • 网络:全部正常

工作流程

当用户说:

  • - 这个完成时通知我 → 在其命令中添加 && bash scripts/send.sh 任务完成
  • 发送 Gotify 警报 → 使用其消息运行 bash scripts/send.sh
  • 任务完成推送通知 → 使用适当的标题/优先级集成到其工作流程中

始终确认通知已成功发送(检查包含消息 ID 的 JSON 响应)。

注意事项

  • - 需要网络访问您的 Gotify 服务器
  • 应用令牌必须具有创建消息权限
  • 优先级级别影响客户端设备上的通知行为
  • Markdown 支持取决于 Gotify 客户端版本(大多数现代客户端支持)

参考

  • - Gotify API 文档:https://gotify.net/docs/
  • 用于接收通知的 Gotify Android/iOS 应用

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gotify-1776390247 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gotify-1776390247 技能

通过命令行安装

skillhub install gotify-1776390247

下载

⬇ 下载 gotify v1.0.1(免费)

文件大小: 4.39 KB | 发布时间: 2026-4-17 15:48

v1.0.1 最新 2026-4-17 15:48
- Added a new README.md file for improved project documentation.
- Updated version to 1.0.1.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部