Go to documentation repository
...
Send message with image from video camera when it switches to alarm state while motion detection triggering.
| Code Block |
|---|
OnInit(){
i=0; //counter is used to avoid overwriting of images from one camera
}
OnEvent("CAM",N,"REC") //video camera is in alarm state
{
filename = "c:\" + N + "_msg_"+str(i)+".jpg";
i=i+1;
DoReact("MONITOR","1","EXPORT_FRAME","cam<"+ N + ">,file<" + filename+ ">");
DoReact("MAIL_MESSAGE", "1", "SETUP", "body<camera is triggered"+ N + ">, subject<alarm by camera>, from<john.smith@AxxonSoft.com>, to<mary.foreman@AxxonSoft.com>,attachments<" + filename + ">");
DoReact("MAIL_MESSAGE","1","SEND");
} |
...