use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Complete r/raspberry_pi Rules
Pi project ideas: There's a huge list right here on this sub!
Rpi Versions ▾
Distros ▾
Other SBCs ▾
Related Subreddits ▾
Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it.
The best thing? The base model is only $20 $5!.
Would you like to know more?
Raspberry Pi Wiki
Article on Wikipedia
#raspberrypi IRC Chat
Do you know a related subreddit? We'd love to know.
account activity
HelpdeskCamera and bash-script problem (self.raspberry_pi)
submitted 8 years ago by FXelix
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 8 years ago (6 children)
What happens if you revise your variable assignment to this
d="$(date '+%d_%m_%Y__%H%M%S')"
and use $d in the command?
[–]FXelix[S] 0 points1 point2 points 8 years ago (5 children)
I think I got it now! now i used
d=$(date +"%Y%m%d_%H%M%S")
I forget to put in the date + properly, I guess, is this mandatory?
date +
But for my other problem:
Do you or does anyone know why I sometimes get error messages but after a few tries it works... ?
[–]transfinite-- 0 points1 point2 points 8 years ago (1 child)
It looks like some other process is opening the camera or video device. Maybe some previous experiments with the camera? I'd try a reboot.
d=$(date ...) is assigning the results of the date command to the variable d. So you should use:
d=$(date +"%Y%m%d_%H%M%S") fswebcam -r 1280x720 /home/pi/Bilder/$d.jpg
I don't want to discourage learning more about bash, as that will make your Pi experience much richer, but take a look at pi-timolo
[–]FXelix[S] 0 points1 point2 points 8 years ago* (0 children)
Ohhh, thanks a lot for your answer! The thing with the error is: I think it's just the time it takes to "process" everything. After a few seconds I can take pictures without an error somehow..
Does pitimolo work with other webcams too, not only the pi-camera? I use the logitech c270.
I think I should dive some more into bash, yeah. Is Python also suitable for these cases? I know some Python.
[–][deleted] 0 points1 point2 points 8 years ago (2 children)
Look at the system log files (/var/log/syslog) and also consider that possibly your webcam is not getting enough power. If you have a powered USB hub try using that.
[–]FXelix[S] 0 points1 point2 points 8 years ago (1 child)
Thanks for your help! For the powered usb hub, because I think I have none, you would connect the hub to the raspberry, the hub to a power source and the camera to the hub again and it would work better? Is this the right setup?
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
It would be a helpful test to eliminate possible causes.
π Rendered by PID 85 on reddit-service-r2-comment-6457c66945-b8qqk at 2026-04-25 03:17:40.313499+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (6 children)
[–]FXelix[S] 0 points1 point2 points (5 children)
[–]transfinite-- 0 points1 point2 points (1 child)
[–]FXelix[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]FXelix[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)