---
name: clawdsense-06b71c1cf554
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.
---

# ClawdSense Skill

Real-time image capture and analysis from ClawdSense ESP32 dongle.

## Quick Start

### Start Services

```bash
# 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:
```bash
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


---
Source attribution: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/clawd/clawdsense-skill/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 skill-library-mcp contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/clawd/clawdsense-skill/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Development & Engineering, Product Management
Roles: Backend Developer, Data Scientist, ML / AI Engineer, Product Manager, Technical Product Manager
Specialties: API, Backend
Tools: Groq, Telegram
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: f3ec12a433f1e9d424d26d42bc6fcdcb9d0855d952712c9cdaf7eed333c14772
