跳到正文
TakoAPI
返回技能列表

wol-sleep-pc

由 oblivisheee 提供

CLI Utilities
734下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Send Wake-on-LAN (magic packet) and Sleep-on-LAN (inverted MAC) packets for a specific PC.

描述

该技能的功能

Sends Wake-on-LAN and Sleep-on-LAN magic packets to a target machine on the local network. Two Python scripts handle WOL and SOL (inverted-MAC) packets separately. MAC address, broadcast IP, and port are set via CLI flags or a local JSON config file.

Packages WOL and SOL into agent-triggerable scripts so waking or sleeping a machine becomes a single command instead of a manual packet-crafting step.

何时使用

  • Waking a desktop PC before starting work in the morning
  • Putting a home server to sleep after a scheduled backup finishes
  • Powering on a gaming rig from another room without walking over
  • Automating wake and sleep cycles from a cron job or agent trigger
  • Sending a one-off WOL packet without manually crafting a magic packet

示例工作流

输入

User asks: wake my PC

智能体
  1. 1

    Load MAC address and broadcast IP from ~/.config/wol-sleep-pc/config.json

  2. 2

    Run send_wol.py with the configured values

  3. 3

    Send a UDP broadcast magic packet to the target MAC address

  4. 4

    Confirm the packet was sent without error

输出

Magic packet sent to the target machine; the PC receives it and powers on

安装

clawhub install oblivisheee/wol-sleep-pc

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接