I have created a shell script to capture images every minutes on my raspberry pi. I think something is not quite right as it has been taking pictures but not saves them. I wonder if someone could just point out if this script should work:
#!/bin/bash DATE=$(date +"%Y-%m-%d") TIME=$(TIME +"%H%M%S") if[! -d /media/pi/organ/$DATE]; then mkdir /media/pi/organ/$DATE; fi raspistill -vf -ISO 100 -o /media/pi/organ/$DATE/$TIME.jpg
raspistill -vf -ISO 100 -o /media/pi/organ/$DATE.jpg worked
I also added crontab to run every minutes and that worked too:
* 8-20 * * * /home/pi/camera.sh 2>&1
My concern was to leave it for more than 4 weeks so the amount of files would exceed the limit of a folder so I tried to break it down.
When I added this script it stopped working and I don't know how to troubleshoot from here.