AGENT SKILL

clawdsense

Real-time image analysis from ClawdSense ESP32 dongle. Monitors media receiver, captures photos from device, analyzes instantly with Groq Vision. Use when ClawdSense sends photos via /photo command or button controls. Provides instant room analysis, occupancy detection, and environmental awareness.

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

01 前言 Front Matter

name
clawdsense
description
Real-time image analysis from ClawdSense ESP32 dongle. Monitors media receiver, captures photos from device, analyzes instantly with Groq Vision. Use when ClawdSense sends photos via /photo command or button controls. Provides instant room analysis, occupancy detection, and environmental awareness.

02 资源文件 3

03 SKILL.md 正文

ClawdSense Skill

Real-time image capture and analysis from ClawdSense ESP32 dongle.

Quick Start

Start Services

# Terminal 1: Media receiver (accepts photo uploads from ESP32)
node ~/clawd/clawdsense-skill/scripts/media-receiver.js

# Terminal 2: Analyzer (monitors inbound folder, analyzes with Groq)
node ~/clawd/clawdsense-skill/scripts/analyzer.js

# Terminal 3: Health monitor (keeps both services alive)
node ~/clawd/clawdsense-skill/scripts/health-monitor.js

Usage

  1. Send /photo command to ClawdSense via Telegram
  2. Device captures and POSTs to media receiver (port 5555)
  3. Analyzer detects new photo and analyzes with Groq Vision
  4. Results printed to console

Architecture

Three Components

Media Receiver (port 5555)

  • Accepts multipart/form-data uploads from ESP32
  • Stores photos in ~/.clawdbot/media/inbound/
  • Endpoints:
    • POST /inbound/photo - JPEG photos
    • POST /inbound/audio - WAV audio
    • POST /inbound/video - AVI video

Analyzer (real-time polling)

  • Polls inbound folder every 500ms
  • Detects new photos automatically
  • Sends to Groq Vision API for analysis
  • Uses pixtral-12b model for instant results

Health Monitor

  • Checks both services every 30s
  • Restarts if either dies
  • Logs status to console

Performance

  • Detection latency: ~500ms (polling interval)
  • Analysis time: 1-3s (Groq API)
  • Total end-to-end: ~2-5s from capture to results

Configuration

ESP32 Firmware Settings

Device must be configured with:

MEDIA_RECEIVER_URL = "http://localhost:5555"
or for public: "https://your-ngrok-url"

Groq API Key

Stored in environment:

export GROQ_API_KEY="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"

Troubleshooting

"Media receiver is DOWN"

  • Check if port 5555 is in use
  • Restart: node ~/clawd/clawdsense-skill/scripts/media-receiver.js

"No new photos detected"

  • Is device sending to media receiver? Check device logs
  • Is media receiver running? Curl http://localhost:5555/health
  • Check inbound folder permissions

"Groq API errors"

  • Verify API key is set
  • Check account quota/billing

References

  • See references/groq-vision-api.md for Groq setup
  • See references/esp32-setup.md for device configuration

04 同仓库更多 Skills

kbarbel640-del
kbarbel640-del/skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

内容创作者
★ 1
kbarbel640-del
kbarbel640-del/skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

Skill与智能体开发
★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

律师与法务Skill与智能体开发
★ 1