[SOLVED] Get HTTP motion detection alarm from camera

Moderator: leecollings

Post Reply
maurool
Posts: 9
Joined: Tuesday 05 January 2016 0:26
Target OS: Windows
Domoticz version:
Contact:

[SOLVED] Get HTTP motion detection alarm from camera

Post by maurool »

Hi all,

I have a GXV3611IR_HD Grandstream surveilance camera added succesfully in Domoticz. The camera has several options/actions in case of motion detection alarm is triggered. One possibility is to push custom http to a generic alarm server including variables from the camera.
My question is, is it possible to catch this http request from the camera in Domoticz and make actions on motion detection events? I see the data push option, but it seems to me it's designed to do the opposite, to push data push from Domoticz to other apps.

Thanks in advance for any help! Mauro
Last edited by maurool on Tuesday 05 January 2016 18:51, edited 1 time in total.
maurool
Posts: 9
Joined: Tuesday 05 January 2016 0:26
Target OS: Windows
Domoticz version:
Contact:

Re: Get HTTP motion detection alarm from camera

Post by maurool »

Ok, I've solved it!

Used the Domoticz API/Json to update a user defined variable from my ip camera (just a simple integer from 0 to 1). Then a simple blocky script event to check if the variable changes and set back to original value in 2 seconds. Here of course I can insert any possible action (notifications, light switch, etc...).

Easier than what I expected as a competely newbie of Domoticz :D
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: [SOLVED] Get HTTP motion detection alarm from camera

Post by Minglarn »

Great work!!
I've have 2 hikvisions and 2 foscams running.
Hikvisions are nearly the same as you grand stream.

How did you set up Domoticz?
Are you willing to do a "how to " ?
Best regards.....


Sent from space using an app.
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests