Question
Asked November 26 2017

Community Question

is this possible with an ez robot.i like it very much.


User-inserted image
DJ Sures
Synthiam
December 4 2017
Patrick, if you put a loop in the "camera tracking start", it will loop forever until a "camera tracking stop" script is executed. You can stop it by putting this in the "camera tracking stop" script:

Code:


Halt()


Putting something (anything) in the camera tracking stop script will stop any other camera scripts. Each control can run one script at a time, so this example shows how that
December 4 2017
hi dj

thats a new one for me.thanks for the tip.but wil i be able to stil use video record ?
DJ Sures
Synthiam
December 4 2017
Then just do this... Voila, done!

Put this in the Camera Tracking Start script...

Code:


# Start recording because we detected something
ControlCommand("Camera", CameraRecordStart)



Put this in the Camera Tracking Stop script...

Code:


# Stop recording because the object went away
ControlCommand("Camera", CameraRecordStop)
December 4 2017
great dj thanks.
December 4 2017
is this correct for video?

:start

ControlCommand("Camera", CameraRecordStart)
#center camera on object
if($Cameraistracking = 1)
sleep(500)
ControlCommand("Camera", CameraSnapshot)

ControlCommand("SMTP Client", SendImage, "Camera", "patrick.dierckx7@telenet.be";, "patrick dierckx", "Motion detected", "Hey patrick, this is jd. I have detected motion in your house. Here's a picture of what I saw.")# you can change this to say what ever you want
Sleep(2000)
ControlCommand("Camera", CameraRecordStop)
endif
sleep(10000)
goto (start)