Files
AgentsMeeting/gateway/scripts/kimi_collect_local.sh
T
hmo 37bfbad921 feat: add cron wrapper scripts for OCG and Kimi local collectors
- ocg_collect.sh: local OCG collection via HTTP+cookies
- kimi_collect_local.sh: local Kimi collection via Playwright CDP
- Replaces kimi_collect.sh (SSH-to-Windows approach)
2026-07-21 01:00:58 +08:00

13 lines
493 B
Bash

#!/usr/bin/env bash
# Kimi usage collector (local Playwright, no SSH needed)
# Called from crontab (every 10 min)
set -euo pipefail
LOG="/home/hmo/AgentsMeeting/gateway/logs/kimi_collect.log"
SCRIPT="/home/hmo/AgentsMeeting/gateway/scripts/usage_collector_kimi_local.py"
PY="/home/hmo/agentsmeeting-venv/bin/python3"
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting local Kimi collection..." >> "$LOG"
"$PY" "$SCRIPT" >> "$LOG" 2>&1
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Done (rc=$?)" >> "$LOG"