Skip to main content

How to record 5 seconds of video every 30 minutes using Alarm Task Script?

Related Products

Bosch encoders


Step-by-step guide


Place this in the alarm task editor and save it.  Please read the comments for more details.  They are noted below by //.

//Define weekly timer from Monday to Sunday from 7am to 9pm
Timer weekly := {TimeBegin(07:00) TimeEnd(21:00) DayBegin(Mo) DayEnd(Su) };

//define what is to be recorded
Recording recording:= { Camera(All) };

// Define Operation Mode to periodic, 1 sec low 30 min high
OperationMode periodic := { Low(10) High(18000) };

TempState(1):=periodic;

//define recording timer
OperationMode monostable := {High(50)};
TempState(2):=monostable;


//Turn on recording timer
if (IsActivated(weekly)) then TempState(1) := true;

if (TempState(1)) then TempState(2) := true;

if (TempState(2)) then recording else Stop(recording);



JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.