Created
April 15, 2016 09:48
-
-
Save mperlet/6ffd46f7860a22f6f053d33420ef64a7 to your computer and use it in GitHub Desktop.
My Hue-Light blinks if tracking-info (hermes, dhl) changes!
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
url="http://www.google.com" | |
if [ ! -e tmp ]; then | |
curl --silent "$url" > tmp | |
fi | |
for i in {0..259200} | |
do | |
curl --silent "$url" | diff tmp - | |
if [ $? -ne 0 ]; then | |
echo "It Changes!" | |
curl --silent "$url" > tmp | |
fi | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment