A simple script to shutdown all your devices
Copy client.rb to your computer and change the url variable to match the server's IP/hostname.
Make sure it's set to run automatically as the computer starts. You can do this on Windows usin Task Manager or on Linux using crontab.
Copy index.php to your server make sure your clients can contact the script.