pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
548 stars 101 forks source link

Take only one single picture per session #89

Closed tibaultbordeaux closed 6 years ago

tibaultbordeaux commented 6 years ago

Dear Claude,

I have another feature request. Would love to hear from you what you think about.

I'm using pi-timolo in conjunction with a "witty-Pi 2" which boots up the RPi once a day and shutting it down five minutes or so later. In this time window it just has to take one single picture (of a plant, by the way). Therefor I would need a config to tell pi-timolo: Please; take only one picture and than exit. But of course I want to use the image numbering, so that the picture of the next day gets the next number.

What do you think?

Tibault

pageauc commented 6 years ago

I would suggest you just set timelapseTimer to greater than the time for the RPI to be up. Timelapse will take one image at the start and wait for timer period but the RPI will shutdown before that happens. Next day the same thing will happen. See sample config.py settings. Note I set timelapseExitSec = 120 actually timelapseTimer = 600 would be redundant but I added both just in case RPI stays up longer than 600 seconds.

timelapseTimer = 600        
timelapseNumOn = True
timelapseNumRecycle = False 
timelapseNumStart = 1000    
timelapseNumMax = 0    #  0=Continuous
timelapseExitSec = 120  

On next startup the numbering will continue where it left off. I assume you have motion turned off so did not have this setting above. Make sure you have a recent pi-timolo that takes timelapse immediately on start of pi-timolo. The older version waited for the timelapseTimer before the first timelapse image is taken.
Give this a try and let me know.

Claude ...

pageauc commented 6 years ago

I have commented on the github issue and example config. See https://github.com/pageauc/pi-timolo/issues/89

Let me know if this meets your needs. Claude....

On Sat, Mar 3, 2018 at 2:53 PM, tibaultbordeaux notifications@github.com wrote:

Dear Claude,

I have another feature request. Would love to hear from you what you think about.

I'm using pi-timolo in conjunction with a "witty-Pi 2" which boots up the RPi once a day and shutting it down five minutes or so later. In this time window it just has to take one single picture (of a plant, by the way). Therefor I would need a config to tell pi-timolo: Please; take only one picture and than exit. But of course I want to use the image numbering, so that the picture of the next day gets the next number.

What do you think?

Tibault

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/89, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZDRTsqVY9VakEMfRtwmlW2orF1TOks5tawKugaJpZM4SbE7Q .

-- See my YouTube Channel at http://www.youtube.com/user/pageaucp

tibaultbordeaux commented 6 years ago

Dear Claude,

I'm so sorry hat I didn't answer to your comments so far.

Thanks a lot. Right now I'm experimenting with your suggestings. Good to know, that the numbering will continue where it left off - didn't realize that point.

While I would prefer that pi-timolo exits immediately after taking the picture this workaround is acceptable.

Thanks again for your work!