@bobofrivia/freight-watcher
v1.0.0
Published
OpenClaw 海运盯价插件
Maintainers
Readme
Freight Watcher Plugin
OpenClaw 海运盯价插件。当用户表达需要监控海运运价时,Agent 自动创建定时任务, 定期拉取运价事件接口,通过微信主动推送新事件。
安装
# 本地安装
openclaw plugins install ./freight-watcher-plugin
# 或从 npm 安装(发布后)
openclaw plugins install @bobofrivia/freight-watcher配置
在 OpenClaw 配置文件中添加:
{
"plugins": {
"entries": {
"freight-watcher": {
"enabled": true,
"config": {
"eventsUrl": "http://localhost:8000/events",
"targetUserId": "[email protected]",
"interval": "*/5 * * * *"
}
}
}
}
}重启 Gateway
openclaw gateway restart使用方式
安装并配置后,直接对 Agent 说:
- "帮我开启海运盯价"
- "有新运价通知我"
Agent 会自动完成验证和开启流程。
运价接口规范
接口需返回 JSON 数组,格式:
[
{ "content": "上海→洛杉矶 运价上涨 $200/TEU" },
{ "content": "宁波→鹿特丹 舱位紧张" }
]无需鉴权。
Cron Job 管理
openclaw cron list # 查看所有 job
openclaw cron runs --id freight-watcher # 查看运行历史
openclaw cron run freight-watcher # 手动触发一次