返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Red Alert (Israel)

以色列后方指挥部警报 - 完全OpenClaw原生实现,无需Home Assistant、wacli或Docker监控。OpenClaw承担所有功能:WhatsApp + TTS。

person作者: shaike1hubclawhub

ORef Native - OpenClaw Only 🚨

Architecture

Pikud Ha-Oref API
       ↓
oref_native.py (cron every 5s)
       ↓
openclaw message → 📱 WhatsApp group
openclaw tts     → 🔊 Voice announcement

vs. Old System

| | Old | Native | |--|-----|--------| | WhatsApp | wacli binary | openclaw message | | TTS | Home Assistant | openclaw tts | | Lights | Home Assistant | ❌ (not needed) | | Dependencies | Docker + HA + wacli | OpenClaw only |

Setup

# Install cron (every 5 seconds via loop)
nohup python3 /root/.openclaw/workspace/skills/oref-native/oref_native.py \
  >> /var/log/oref_native.log 2>&1 &

# Or add to crontab (restart on boot)
@reboot python3 /root/.openclaw/workspace/skills/oref-native/oref_native.py >> /var/log/oref_native.log 2>&1

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | OREF_API_URL | http://localhost:49000/current | oref-alerts proxy | | MONITORED_AREAS | הרצליה,הרצליה - גליל ים ומרכז | Comma-separated areas | | WHATSAPP_GROUP_JID | - | WhatsApp group JID | | WHATSAPP_OWNER | - | Personal WhatsApp number | | OPENCLAW_BIN | openclaw | Path to openclaw binary |

Alert Routing

| Type | WhatsApp | TTS | |------|----------|-----| | 🚀 Rockets (cat=1) | ✅ | ✅ | | ✈️ Aircraft (cat=2) | ✅ | ✅ | | 🔴 Infiltration (cat=10) | ✅ | ✅ | | ✅ All clear (cat=13) | ✅ | ✅ | | ⚠️ Pre-alert (cat=14) | ❌ | ✅ |