Tuesday, April 29, 2014

Automatically Powering On XBMC Frontends When I Get Home

One of the first things I do when I get home is power-on my XBMC frontends. I decided to automate this ritual. I configured my DHCP server to send a wake-on-lan packet when my Nexus 5 obtains an IP address.

Below is the entry for my Nexus 5 in the ISC DHCP config file /etc/dhcp/dhcpd.conf:

host nexus5 {
 hardware ethernet bc:f5:ff:ff:ff:ff;
Below is the power on script /usr/local/bin/poweron.sh:
/usr/bin/wakeonlan bc:5f:ff:ff:ff:ff
/usr/bin/wakeonlan ec:a8:ff:ff:ff:ff

Server and XBMC frontends are running Ubuntu 12.04

No comments: