> 通过天猫精灵主动播报消息的 OpenClaw Skill
@小爪子 播报到天猫精灵 明天早上8点有会议
@小爪子 推送到天猫精灵 任务已完成
@小爪子 天猫精灵播报 游戏第三章已解锁!
from skills.openclaw-aligenie-push.push import push
# 异步调用
result = await push("任务完成,请查看结果")
# 成功返回: {"success": true, "messageId": "xxx"}
# 失败返回: {"success": false, "error": "错误描述"}
| 参数 | 默认值 | 说明 |
|---|---|---|
| ------ | -------- | ------ |
text | 必填 | 要播报的文字内容 |
device_type | speaker | speaker=无屏音箱, screen=带屏设备 |
open_id | 配置默认 | 覆盖默认设备 |
push_server | 配置默认 | 覆盖默认服务器地址 |
### 天猫精灵推送配置
ALIGENIE_PUSH_SERVER=http://你的云服务器公网IP:58472/push
ALIGENIE_APP_ID=2026032918608
ALIGENIE_APP_SECRET=审批通过后获取
ALIGENIE_DEVICE_OPEN_ID=天猫精灵设备openId
→ 完整部署文档: DEPLOY.md
共 1 个版本