用途:hummingbot-heartbeat 是 OpenClaw 的 cron 技能,每小时运行一次,把 Hummingbot 状态报告发送到已连接的聊天频道(Telegram、Discord 等)。
主要能力:检查 API 健康(GET /,返回版本)、Gateway 容器(docker ps | grep gateway,Docker 不可用时跳过)、活跃机器人(GET /bot-orchestration/status,列出控制器配置)、活跃执行器(POST /executors/search,过滤 CLOSED/FAILED)、投资组合(POST /portfolio/history,最新余额与价格)。输出为格式化文本,含基础设施、活跃机器人、执行器与投资组合等分段。
使用方式:安装可执行 clawhub install hummingbot-heartbeat,或手动克隆到技能目录。设置定时任务可让 OpenClaw 代理执行“Set up the hummingbot-heartbeat cron job”,或手动运行:openclaw cron add --name "hummingbot-heartbeat" --description "Hourly Hummingbot status check" --every 1h --announce --channel telegram --message "Run this and send output verbatim: python3 <SKILL_PATH>/scripts/bot_status.py"。手动调试可运行 python3 scripts/bot_status.py 或 python3 scripts/bot_status.py --json。
配置:通过环境变量或技能目录下的 .env 设置 HUMMINGBOT_API_URL(默认 http://localhost:8000)、API_USER(默认 admin)、API_PASS(默认 admin)。
要求:Python 3.9+;Hummingbot API 需运行(参见 hummingbot-deploy 技能);Docker 可选,不可用时跳过 Gateway 状态检查。
限制:资料未提供收费、价格、平台支持范围及效果保证等信息;Gateway 检查依赖 Docker,缺失时该部分不显示。