Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

commented Jun 6, 2011

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
You can’t perform that action at this time.