Created
January 5, 2013 15:19
-
-
Save alvinlai/4462065 to your computer and use it in GitHub Desktop.
Weather bash script that checks for rain using rubygem updog and blink1-tool
This file contains hidden or 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
if (updog --help | head -5 | tail -1 | grep rain) | |
then blink1-tool --red | |
else blink1-tool --green | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment