No description
This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Rust 68.7%
  • HTML 18.8%
  • Dockerfile 12.5%
Find a file
2022-04-21 14:12:28 +02:00
pub_html CSS and JS now hosted on S3 2021-10-02 09:55:00 +02:00
src switched from test to index in url. 2021-10-01 21:42:11 +02:00
.dockerignore initial commit 2021-10-01 21:35:08 +02:00
.gitignore deleted Cargo.lock 2021-10-01 21:38:40 +02:00
.gitlab-ci.yml fix tag 2022-04-21 14:12:28 +02:00
Cargo.toml initial commit 2021-10-01 21:35:08 +02:00
docker-compose.yml initial commit 2021-10-01 21:35:08 +02:00
Dockerfile Aktualisieren Dockerfile 2022-04-20 13:54:29 +00:00
hosts_example.json added example hosts config 2021-10-01 22:03:11 +02:00
LICENSE.md initial commit 2021-10-01 21:35:08 +02:00
README.md updated README.md 2021-10-01 22:01:57 +02:00
Rocket.toml initial commit 2021-10-01 21:35:08 +02:00
rustfmt.toml initial commit 2021-10-01 21:35:08 +02:00

wol-cp

A small Wake-on-Lan Webi, build in Rust

Install

  1. Download a binary from CI, or build it localy.
  2. Create a hosts.json File. This could contain hosts (example here) or just an empty array ([])
  3. Start it:
ROCKET_ADDRESS=0.0.0.0 ROCKET_PORT=6713 ./target/release/wol-cp

Server will listen on ::6713
host-names an host-macs are stored in a hosts.json file.

API

  • /api/add/<name>/<mac> adds a host
  • /api/hosts returns a JSON with all hosts (names, macs)
  • /api/start/<mac> starts a host by given MAC

Docker-Image

registry.itbyhf.xyz/ha/wol-cp:latest