UNPKG
homebridge-netgear-readynas
Version:
latest (1.0.1)
1.0.1
1.0.0
Remote control of ReadyNAS with Homebridge
homebridge-netgear-readynas
/
commands
/
wakeup.js
10 lines
(7 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
{ execSync } =
require
(
'child_process'
);
function
wakeup
(
mac
) {
const
command =
`wakeonlan
${mac}
`
;
const
output =
execSync
(command);
return
output.
toString
(); }
module
.
exports
= wakeup;