public
Last active

To help someone on r/raspberry_pi

  • Download Gist
feedalarmer.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash
BEFORE=0
while true
do
wget https://news.ycombinator.com/rss -q -O test
NOW=$(wc -c test | grep -o -P "\d+")
if [ "$NOW" -ne "$BEFORE" ] ; then
mplayer Alert.ogg
fi
BEFORE=$NOW
sleep 5
done

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.