Last active
December 3, 2016 15:19
-
-
Save jscrane/7257511 to your computer and use it in GitHub Desktop.
bash wemo control script
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 | |
PATH=/usr/local/bin:$PATH | |
WEMO=wemo | |
. wemo_functions.sh | |
case $# in | |
0) | |
wemo_get $WEMO | |
;; | |
1) | |
wemo_set $WEMO $1 | |
;; | |
*) | |
echo "Usage: wemo [0|1|]" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment