Skip to content

Instantly share code, notes, and snippets.

@alvinlai
Created January 5, 2013 15:19
Show Gist options
  • Save alvinlai/4462065 to your computer and use it in GitHub Desktop.
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
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