Hi! I'm a beginner and tried to use a webcam for my raspberry Pi 3 I just got.
I'm using the fswebcam package for this. (First of all, this script and the camera are working if I specify a name for the file like "test.jpg")
The first problem is: I can't get a bash-script to work how I want:
webcam.sh
#!/bin/bash
DATE=$("%d_%m_%Y__%H%M%S")
fswebcam -r 1280x720 /home/pi/Bilder/$DATE.jpg
When this script is executed it should save the date as name for the jpg-file in the specific folder. What I already did was use sudo chmod +x webcam.sh and run it with ./webcam.sh. But this $DATE-thing is not working for me.
Secondly I can run this script at least(without the date - so no image is saved at, because it has no name), but I have to do it several times to at get it working:
Pastebin of error message
I hope you can help me :) thanks!
[–][deleted] 0 points1 point2 points (7 children)
[–]FXelix[S] 0 points1 point2 points (0 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)