Files
wol-api/README.md

764 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

Navigate to http://localhost:9999 and just click the target you want to wake up.

Or:

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 /targets

curl http://localhost:9999/targets

GET to /wake/:name

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

Get to /status/:name

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