Skip to content

Commit

Permalink
Add webcam-picture
Browse files Browse the repository at this point in the history
  • Loading branch information
za3k committed Jun 1, 2015
1 parent b1cb46f commit 2504559
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ timer
---
Kitchen timer for the command line

webcam-picture
---
Use the webcam to take a single picture. Usage: `webcam-picture picture.png`

wordcount
---
Counts the number of words in a file or stream.
7 changes: 7 additions & 0 deletions webcam-picture
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
cd /tmp
mplayer -frames 1 tv:// -vo png
cd -
[ $# -ge 1 ] && mv /tmp/00000001.png $1 && exit 0
cat /tmp/00000001.png
rm /tmp/00000001.ong

0 comments on commit 2504559

Please sign in to comment.