This object is in archive! 

Camera motion detection arm / disarm within rules ?

Matth Matth shared this question 8 years ago
Need Answer

Hi,

I'd like Zipabox to send a MOTION_ARMED=1 to my camera when Zipabox Alarm is turned on, and MOTION_ARMED=0 when Zipabox Alarm is turned off.

Meaning: when alarm is on, my camera detects moves, when off, not.

I can do this manually from my PC, I have the right URL for the camera, but when executed from the zipabox rules, it doesn't work.

URL :

http://cam.zipato.com:8888/set_alarm.cgi?motion_armed=1&user=admin&pwd=xxxxx;JSESSIONID=xxxxxxxxxxxxxxxxxx.frontend3;HOST=192.168.x.xx

(off course, replace "x" with right values)

There is also no API to do this.

Any idea ?

Replies (6)

photo
1

Hi!


You should create a rule like this:


WHEN alarm any

IF alarm arm

http request (put the url to activate motion sensor on your ip cam)

ELSE

http request (put the url to stop motion sensor on your ip cam)


5dMhjeO5MO5niHdFhYYc

photo
1

Tried, and it's not working. Just like the zipabox can't talk to my cam.

photo
1

Zipabox is executing rules from within a local network (as it is par of local network), and it seems you are trying to configure it to talk to camera as it is outside of the local network.

Try to get appropriate URL which works from within a local network and use this URL in the rule similar to the one which thomas described to you...

photo
1

I started with local network settings, and, didn't worked. Then I tried like if it is launched from outside my LAN, and didn't worked too...

photo
1

maybe you were not using username/password within a URL, when you were trying localy. Compering to you when trying from your PC, Zipabox is not logged in to your camera when trying the same URL.

photo
2

OK, I did that, and now it's working. Can't believe it, but, it's working. I could swear I had tested that already!

Thanks a lot guys!!!


So, for the record, URL should look like that :

http://192.168.0.1/set_alarm.cgi?motion_armed=1&user=admin&pwd=password

(change IP, and user/password, of course)

Leave a Comment
 
Attach a file