कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

living-room-smoke-detector

maverick-2 द्वारा

Git & GitHub
271clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Simple smoke/fire detector for living room.

विवरण

यह स्किल क्या करती है

Monitors a living room ALPSTUGA air sensor via a Dirigera hub every 5 minutes. Triggers a continuous spoken alert on the Mac speaker when PM2.5 exceeds 250 µg/m³ or CO2 exceeds 2000 ppm. Keeps alerting until air quality returns to safe levels.

Unlike a passive database-logging skill, this one enters a continuous alert loop and only stops when the air actually clears, making it harder to miss a real danger event.

इसे कब इस्तेमाल करें

  • Getting an audio alert when cooking causes smoke buildup
  • Detecting early signs of fire while asleep or in another room
  • Running as a cron job alongside a regular smoke alarm for redundancy
  • Checking current air quality status from the terminal
  • Reviewing logs after a false alarm to confirm sensor readings

उदाहरण वर्कफ़्लो

इनपुट

User asks: Is the living room air safe right now?

एजेंट
  1. 1

    Runs smoke_detector.py manually from the terminal

  2. 2

    Script queries Dirigera hub at 192.168.1.100 for current PM2.5 and CO2 readings

  3. 3

    Compares values against thresholds (PM2.5 > 250 or CO2 > 2000)

  4. 4

    Writes result to detector_state.json with alert_active flag

  5. 5

    If safe, exits; if danger detected, begins playing audio alert every 5 seconds

आउटपुट

Terminal shows current readings and alert status; speaker plays warning if thresholds are exceeded

आवश्यकताएँ

  • Dirigera hub access and its local IP address
  • Dirigera auth token stored at ~/.openclaw/workspace/.dirigera_token
  • ffmpeg installed for alert sound generation

इंस्टॉलेशन

clawhub install maverick-2/living-room-smoke-detector

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक