Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited

Video Detection And Sending To Your Phone By Pir

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


User-inserted image

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
PRO
Belgium
#35  
justin

yes i cover up my password.i do have another mail adres with a .com

from gmail.my internet stays good.
PRO
Belgium
#36  
joepie its working.needs some audio do,would cool.


User-inserted image
PRO
Belgium
#37  
wow jd is disconnected but he still sends pic to my mail?
#38  
Glad to hear you got it working!
PRO
Belgium
#39  
so how does it stop taking only one pic ?
#40  
Patrick, put your thinking hat on. How does anything else stop in ARC?

If you are running this code:

Code:


:start

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

ControlCommand("SMTP Client", SendImage, "Camera", "your email address here", "your name here", "Motion detected", "Hey Bob, this is InMoov. I have detected motion in the shop. Here's a picture of what I saw.")# you can change this to say what ever you want
Sleep(2000)
ControlCommand("Camera", CameraMotionTrackingDisable)
endif
sleep(10000)
goto(start)


Your answer is to stop the script. Come on, with your thinking hat on I know you had to have known that.
PRO
Belgium
#41  
remove start and goto?
#42  
Patrick, it's a script, just press STOP like very other scrip in ARC, I've seen you do that in your videos I know you know how to press stop to stop it from running like any other script and it will stop sending email pictures to you.

Or are you trying to ask how to modify the script in order to change it's behavior so it does something else for you?
PRO
Belgium
#43  
ah i placed the script in the camera script,not separt.
so i make a script outside camera settings.?
PRO
Belgium
#44  
got it use the pause button.
#45  
Yes, you should always keeps your scripts separate from your controls unless you have a very good and specific reason to put them in the control settings of your control objects.

That was a good example of why you should NOT put a script like that there.

I recommend using Script Manager(s) to organize your scripts, then you can manually start and stop them. You can also create voice commands to start and stop your scripts. And if you get fancy you can use personality generators or versions of AI to let your robot choose when to run it's own scripts.

I think you learned a lot today Patrick!
PRO
Belgium
#46  
justin

yes indeed.the finding of the smtp on telenet alone was super,
i finaly found something.ofcourse with some needed help here,:P
ok i changed to a separt script,and still works.
i will see what the script manager does.


thank you very much.
PRO
Belgium
#47  
now its working on my phone to,inclu the pic too .awesome ;)
its works really fast,the sec jd notest movement its comming allreddy ,
in my phone.
Canada
#48  
This has been an interesting post. I learned something. Glad you got it working Nomad
PRO
Belgium
#49  
hi holy1

glad you like it also.next point will be video or sound in the mail.

thanks
PRO
Synthiam
#50  
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
PRO
Belgium
#51  
hi dj

thats a new one for me.thanks for the tip.but wil i be able to stil use video record ?
PRO
Synthiam
#52  
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)
PRO
Belgium
#54  
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)