Script for a capture

Forum for questions and support relating to the 1.28.x releases only.
Locked
wookie_in_maine
Posts: 1
Joined: Fri Aug 07, 2015 12:40 pm

Script for a capture

Post by wookie_in_maine »

I'm looking to do a time lapse on some of my outdoor camera's. How would I have them take a photo at 10am every day and save that photo?
rockedge
Posts: 1199
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Script for a capture

Post by rockedge »

cron job that starts a PERL script that through zmTrigger.pl starts the camera at 9:59 and stops it 3 minutes later. then look through the stills for 10:00am.
an example string sent to zmTrigger.pl activated by cron would be 1|on+3|255|10am Photo|
turns on monitor 1 for 3 minutes adding the Cause as 10am Photo.
there most likely is a more elegant method but this may help get you started in the right direction.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Script for a capture

Post by knight-of-ni »

The simplest way to do that is described here:
viewtopic.php?f=32&t=23277&p=88518&hili ... jpg#p88475

This will put a snapshot jpeg into the folder of your choosing. Put it into a cronjob and run it as often as you desire.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
rockedge
Posts: 1199
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Script for a capture

Post by rockedge »

that is genius! opens up other possibilities.
Locked