Files
wol-api/README.md

517 B

wol-api

Wake-on-LAN API in Node.js

Running

  1. npm install
  2. npm run start

Custom targets

  1. Copy targets.example.json to targets.json
  2. Edit the file and add your targets

Usage

POST to /wake

curl -X POST -H "Content-Type: application/json" -d '{
  "mac": "00:AA:BB:CC:DD:EE"
}' http://localhost:9999/wake

GET to /wake

curl http://localhost:9999/wake?mac=00:AA:BB:CC:DD:EE

GET to /wake/:name

curl http://localhost:9999/wake/<target name>