It requires that your media center have a fixed IP address, that they are configured for remote operation, and that they respond to wake-on-lan request. You will need to know the IP address and the MAC address of the media center.
Furthermore, when installing this module, add the following lines to /opt/z-way-server/automation/.syscommands:
Code: Select all
/usr/bin/wakeonlan
/opt/z-way-server/automation/userModules/MediaCenter/rpc_shutdown.sh
/opt/z-way-server/automation/userModules/MediaCenter/check_ip.sh
Otherwise you will get errors saying that the command is denied by policy.
The system on which you run z-way has to have the wakeonlan, nc and ping utilities installed. Running:
Code: Select all
apt-get install wakeonlan netcat
For debugging purposes you can run the rpc_shutdown.sh, wakeonlan and check_ip.sh manually:
Code: Select all
rpc_shutdown.sh <ip-address>
Code: Select all
wakeonlan <mac-address>
Code: Select all
check_ip.sh <ip-address>
Code: Select all
check_ip.sh <ip-address>;echo $?