Skip to content

NoSpawnn/wolay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wolay - A tiny Wake-On-Lan Relay server

  • I wanted to be able to Wake-On-Lan my stuff over tailscale, so run this on a small SBC

Features

  • Wake-On-LAN relay
  • Shutdown/WOL on a schedule

Usage

./wolay --help
Usage: wolay [OPTIONS]

Options:
  -a, --listen-addrs <LISTEN_ADDRS>...  Define multiple addresses for wolay to listen on (e.g. 127.0.0.1:6789)
  -l, --listen-addr <LISTEN_ADDR>       Define IP for wolay to listen on [default: 127.0.0.1]
  -p, --listen-port <LISTEN_PORT>       Define port for wolay to listen on [default: 6789]
  -h, --help                            Print help
  • Run wolay as above

  • Make a web request to ip:port/api/wake/<mac>

    • e.g. with curl curl raspberrypi.internal:6789/api/wake/aaaaaaaaaaaa
  • The formatting of the MAC address is case-insensitive, and can include or omit : characters

Development

  1. Clone repo
git clone https://github.com/NoSpawnn/wolay.git
cd wolay
  1. Build
  • For your current system

    nix build
    # or
    cargo build
  • Cross compile

    nix build .#armv7-unknown-linux-musleabihf

Refs

About

A tiny Wake-On-LAN relay server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published