方法一:家里路由为openwrt或有树莓派之类支持cgi设备时
#!/bin/sh
printf “Content-type: text/plain\n\n”
echo “{
“returnCode”: “0”,
“returnErrorSolution”: “”,
“returnMessage”: “”,
“returnValue”: {
“reply”: “正在打开电脑”,
“resultType”: “RESULT”,
“actions”: [
{
“name”: “audioPlayGenieSource”,
“properties”: {
“audioGenieId”: “123”
}
}
],
“properties”: {},
“executeCode”: “SUCCESS”,
“msgInfo”: “”
}
}”
etherwake -b -i eth0.2 网卡mac