Turn a Windows PC on or off with your Raspberry Pi
-
This is the bash script for the Raspberry Pi that I showed in this video:
#!/bin/bash if [ "$1" == "off" ] then echo turn computer $1 >> /tmp/computer_on_off.log /usr/local/bin/tcmd --trigger "Shutdown now" --computer DS else echo turn computer $1 >> /tmp/computer_on_off.log wakeonlan C4:65:16:2B:95:97 fiYou can download the tcmd utility from here.
To easily install the Raspberry Pi OS and the TRIGGERcmd agent, I recommend the setup.bat script you can get here.
-
R Russ referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login