A simple http interface to send wake on LAN commands.
Project description
WakeOnLAN-API
A simple http interface to send wake on LAN commands.
Just send a
GET
to/FF:FF:FF:FF:FF:FF
POST
to/FF:FF:FF:FF:FF:FF
GET
to/wol/FF:FF:FF:FF:FF:FF
POST
to/wol/FF:FF:FF:FF:FF:FF
where FF:FF:FF:FF:FF:FF
is the desired MAC address of the device to be woken up.
Setup
pip install wol_api
Run
wol_api --port=8080
Docker
docker run -d \
--name="WakeOnLAN-API" \
-e PORT=8080 \
--network host \
rix1337/docker-wol-api:latest
The desired port is set by environment variable PORT
for a reason!
You must use --network host
, else the magic packets will not be sent to the correct network.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wol_api-1.0.7.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file wol_api-1.0.7.tar.gz
.
File metadata
- Download URL: wol_api-1.0.7.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1bac3ee3a5f0c9e23dd125db669833966de6214450bc4a351f163d73aed95f4 |
|
MD5 | fe4bdb934fcc0806bcb17d602324f186 |
|
BLAKE2b-256 | 5c927b17d411fba78746b753a7735382596badae8bfc426f6f9e831eabb998b8 |
File details
Details for the file wol_api-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: wol_api-1.0.7-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ca9fd2350704b7025631eef56f439dd04765e432b65f9acb0bae51d8bfc1d8 |
|
MD5 | 86f1a8d0c969580a4e7296c72c273f49 |
|
BLAKE2b-256 | 98b645dbba285c7faf7ccd02444009ff846758e52ee0d35df39d0e1afa2db240 |