Install
openclaw skills install wake-on-lanSend Wake on LAN (WOL) magic packets to remotely wake up computers and network devices. Use when the user wants to wake, turn on, or power on a remote device over the network. Triggers on phrases like "wake on lan", "WOL", "wake up computer", "turn on remote PC", "power on device remotely", "send magic packet", or when the user mentions MAC addresses in the context of waking devices.
openclaw skills install wake-on-lanEnglish: Send magic packets to wake up devices on the local network. 中文: 发送魔法包唤醒局域网中的设备。
Wake a device by MAC address:
python3 scripts/wake.py AA:BB:CC:DD:EE:FF
Wake by device name and wait for it to come online:
python3 scripts/wake.py --device my-pc --wait
Returns:
✓ 开机成功 (Device online successfully)✗ 开机失败,请稍后再试或者检查网络设置是否正常 (Device failed to come online)通过 MAC 地址唤醒设备:
python3 scripts/wake.py AA:BB:CC:DD:EE:FF
通过设备名称唤醒并等待开机结果:
python3 scripts/wake.py --device my-pc --wait
返回结果:
✓ 开机成功 - 设备已成功开机✗ 开机失败,请稍后再试或者检查网络设置是否正常 - 设备未能开机The target device must have WOL enabled / 目标设备需要启用 WOL:
python3 scripts/wake.py --list
python3 scripts/wake.py --add my-pc AA:BB:CC:DD:EE:FF
python3 scripts/wake.py --add my-pc AA:BB:CC:DD:EE:FF --broadcast-ip 192.168.1.255
python3 scripts/wake.py --device my-pc
python3 scripts/wake.py --device my-pc --wait
python3 scripts/wake.py --device my-pc --wait --timeout 120
Device configurations are stored in references/devices.json.
{
"my-pc": {
"mac": "AA:BB:CC:DD:EE:FF",
"ip": "192.168.1.100",
"broadcast": "192.168.1.255",
"port": 9
}
}
| Field | Description | 说明 |
|---|---|---|
mac | Target MAC address | 目标 MAC 地址 |
ip | IP for ping check (optional) | 用于检测开机的 IP(可选) |
broadcast | Broadcast IP address | 广播地址 |
port | UDP port (default: 9) | UDP 端口(默认: 9) |
| Address | Use Case |
|---|---|
255.255.255.255 | Global broadcast (default) / 全局广播(默认) |
192.168.1.255 | Subnet-specific / 特定子网 |
WOL packets don't normally route across subnets. Options:
scripts/wake.py <mac> [broadcast] [port]
scripts/wake.py --device <name> [--wait] [--timeout SECONDS]
scripts/wake.py --list
scripts/wake.py --add <name> <mac> [--broadcast-ip IP]
| Argument | Default | Description |
|---|---|---|
--device | - | Wake by device name / 按设备名称唤醒 |
--wait | - | Wait for device to come online / 等待设备开机 |
--timeout | 60 | Timeout in seconds (recommended: 30-120s) / 超时秒数(推荐 30-120 秒) |
--list | - | List configured devices / 列出已配置设备 |
--add | - | Add device to config / 添加设备 |
0xFF + 16x MAC address / 魔法包 = 6 字节 0xFF + 16 次 MAC 地址--wait is used, ping the device every 2 seconds / 如果使用 --wait,每 2 秒 ping 一次设备