-
-
Save bhargavgv/8fafa1948551f5394cacc14f8a837566 to your computer and use it in GitHub Desktop.
Control your TV using CEC (for Raspberry Pi)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "$1" >> tvlog | |
case "$1" | |
in | |
on) echo on 0 | cec-client -s -d 1;; | |
off) echo standby 0 | cec-client -s -d 1;; | |
*) echo "invalid command";; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment