This script allows you to start kodi on your media center using yatse as a remote controller. Once it is running, the script will be listening to any upcomming WoL message to run the command to start kodi service.
The script has been successfully tested on rasbian, archlinux ARM (raspberry pi), debian and ubuntu.
UPDATE You can find a more recent Python version here: https://github.com/danifr/wol-kodi/tree/python
sudo cp yatse /etc/init.d/yatse
sudo chmod +x /etc/init.d/yatse
sudo cp yatse.pl /usr/local/bin/yatse
sudo chmod +x /usr/local/bin/yatse
The script is written in perl so be sure you have perl
properly insalled before continuing.
Also, since it needs to deal with proccess' ids (PIDs) the script uses the perl module File::Pid
. Two ways of installing it depending on the distribution you are running.
sudo aptitude install libfile-pid-perl
*verify make
and perl
are also installed before running it
perl -MCPAN -e 'install File::Pid'
sudo service yatse (start|stop|status)
update-rc.d yatse defaults 99