Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created April 15, 2016 09:48
Show Gist options
  • Save mperlet/6ffd46f7860a22f6f053d33420ef64a7 to your computer and use it in GitHub Desktop.
Save mperlet/6ffd46f7860a22f6f053d33420ef64a7 to your computer and use it in GitHub Desktop.
My Hue-Light blinks if tracking-info (hermes, dhl) changes!
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