e01c267e30079a82850b40a092ea30ee918fda4d
wol-api
Wake-on-LAN API in Node.js
Running
npm installnpm run start
Custom targets
- Copy
targets.example.jsontotargets.json - 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>
Description
Languages
JavaScript
63.4%
HTML
36.6%