webcamrc configuration not parsing dates for image filenames
I am running webcam under Ubuntu 9.04 and I want to upload the images it captures to a server via ftp and have every image have a date and time in the filename. But I can't get this to work.
From reading the man page for webcam it appears that I should be able to specify file = "webcam_%Y-%m-%d_%H:%M:%S.jpeg" and have it parsed so I get something like webcam_2010-01-05_10:54:23.jpeg but webcam is just uploading an image with an unparsed filename. So instead of getting a series of images on the server, I just get the most recent image (with the older images being overwritten every 1800 seconds).
I know I could write a script on the server to rename the files as they are uploaded and put it on a cron but this seems to be something webcam should be able to handle.
Also note, the date and time in the "text" parameter is being parsed correctly.
Ideas?
Here is my .webcamrc config file:
[grab]
device = /dev/video0
text = "webcam %Y-%m-%d %H:%M:%S"
infofile = filename
fg_red = 255
fg_green = 255
fg_blue = 255
bg_red = 0
bg_green = 0
bg_blue = 0
width = 320
height = 240
delay = 1800
wait = 3
#input = video
#norm = pal
rotate = 0
top = 0
left = 0
bottom = -1
right = -1
quality = 70
trigger = 0
once = 0
[ftp]
host = myserver.com
user = user
pass = XXXXXXXXXX
dir = webcam
file = "webcam_%Y-%m-%d_%H:%M:%S.jpeg"
tmp = uploading.jpeg
passive = 1
debug = 1
auto = 0
local = 0
ssh = 0
|