rpi-cpu-monitor

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rpi-cpu-monitor" with this command: npx skills add archerweiye/rpi-cpu-monitor

树莓派 CPU 温度监控

快速开始

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

# 创建监控脚本
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 方案

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

对比

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

配置项

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

摸鱼日报和百度热搜等图片生成,持续升级中

Generate "摸鱼日报" or "百度热搜" posters from minimal JSON input, output SVG by default with optional PNG/JPG/WEBP export formats.

Registry SourceRecently Updated
General

真实的人类

真实的人类 - 帮助AI识别、分析和建模人类个体。当用户提到"人类建模"、"用户画像"、"人格分析"、"了解一个人"、"分析行为模式"、"真实的人类"时使用。

Registry SourceRecently Updated
4142wasinc
General

finstep-tools

财跃星辰金融数据服务。提供实时行情、板块数据、公司信息、宏观经济、研报新闻等全方位金融数据。触发条件:用户查询股票行情、板块涨跌、公司财务、宏观数据、研报公告等金融信息。

Registry SourceRecently Updated
4460zacbai
General

AI Topic Scout

AI短视频选题追踪系统。自动抓取指定YouTube博主视频和Twitter博主推文,分析内容,聚合跨平台热点主题,生成带热度评分和选题建议的分析报告,结果写入钉钉AI表格。适用于:定时抓取AI领域博主内容、分析短视频选题热度、跨平台话题聚合、生成选题建议。触发词:"抓取选题"、"分析选题"、"选题scout"、"...

Registry SourceRecently Updated
6890agegr