Skip to content

Instantly share code, notes, and snippets.

@damienalexandre
Created June 6, 2011 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damienalexandre/1010222 to your computer and use it in GitHub Desktop.
Save damienalexandre/1010222 to your computer and use it in GitHub Desktop.
Take a webcam capture, store it and push a notification.
#!/bin/bash
DATE=`date +%s`
FILENAME="/home/username/CamStream/$DATE.jpeg"
# Call the streamer
streamer -f jpeg -o $FILENAME
# Display a user notification
DISPLAY=:0.0 notify-send -u 'low' -i $FILENAME "Cheese!" "Stream saved!"
@damienalexandre
Copy link
Author

Tested on Ubuntu 11,
added to Crontab :

(every 10 minutes)

*/10 * * * * /home/username/CamStream/streamer.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment