TopRank Skills

Home / Claw Skills / Autres / rpi-cpu-monitor
Official OpenClaw rules 15%

rpi-cpu-monitor

树莓派 CPU 温度监控。当需要监控树莓派 CPU 温度时使用此 skill。功能:(1) 读取当前 CPU 温度,(2) 设置定时监控任务,(3) 温度超标时自动告警。支持 crontab 方案(零消耗,推荐)和 OpenClaw cron 方案。

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 rpi-cpu-monitor 技能。 若已安装,则直接安装 rpi-cpu-monitor 技能。

Overview

Skill Key
archerweiye/rpi-cpu-monitor
Author
archerweiye
Source Repo
openclaw/skills
Version
-
Source Path
skills/archerweiye/rpi-cpu-monitor
Latest Commit SHA
88bc91d92564b4502771d2700e08ac67beb1f781

Extracted Content

SKILL.md excerpt

# 树莓派 CPU 温度监控

## 快速开始

### 方案 1:crontab 方案(推荐,零消耗)

```bash
# 创建监控脚本
cat > /path/to/scripts/cpu-temp-monitor.sh << 'EOF'
#!/bin/bash
TEMP=$(vcgencmd measure_temp 2>/dev/null | cut -d= -f2 | cut -d\' -f1)
[ -z "$TEMP" ] && TEMP=$(cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1/1000}')
TEMP_INT=${TEMP%.*}

if [ "$TEMP_INT" -gt 70 ]; then
  curl -s -X POST "http://localhost:3000/api/sessions/agent:main:main/message" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $(cat /home/weiye/.openclaw/gateway-token)" \
    -d '{"message":"⚠️ CPU温度过高: '${TEMP}'°C", "channel":"feishu"}'
fi
EOF

chmod +x /path/to/scripts/cpu-temp-monitor.sh

# 添加到 crontab(每 35 分钟执行)
crontab -e
# 添加: */35 * * * * /path/to/scripts/cpu-temp-monitor.sh
```

### 方案 2:OpenClaw cron 方案

```bash
# 启用 OpenClaw 内置 cron(每次调用大模型)
openclaw cron add --name "CPU温度监控" --schedule "*/35 * * * *" \
  --message "检查CPU温度:运行 vcgencmd measure_temp,如果>70°C发送警告" \
  --session isolated
```

## 对比

| 方案 | 大模型调用 | 适用场景 |
|------|-----------|---------|
| crontab | 0 次(仅超标时 API) | 生产环境,推荐 |
| OpenClaw cron | 每次 1 次 | 测试/开发 |

## 配置项

- 温度阈值:默认 70°C,可修改脚本中的 `70`
- 监控间隔:默认 35 分钟,修改 crontab 表达式
- 告警渠道:默认飞书,修改 API 调用中的 channel 参数

Related Claw Skills

capt-marbles

Task Router Skill

★ 0

Task Router

captchasco

captchas-openclaw

★ 0

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.

carol-gutianle

Modelready

★ 0

name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}

cartoonitunes

Ethereum History

★ 0

Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).

cassh100k

agent-dna

★ 0

Portable agent identity encoding. Compress SOUL.md/MEMORY.md into transferable DNA fingerprints, detect identity drift between snapshots, and port personality across platforms (OpenClaw, Claude, GPT, CrewAI). Pure Python, zero dependencies. Use when migrating agents between platforms, detecting personality drift, or backing up agent identity.

camopel

storage-cleanup

★ 0

One-command disk cleanup for macOS and Linux — trash, caches, temp files, old kernels, snap revisions, Homebrew, Docker, and Xcode artifacts. Use when user asks to free storage, clean up disk, reclaim space, reduce disk usage, or encounters low disk / "disk full" warnings. Safe by default with dry-run mode. No dependencies beyond bash and awk.