Axis Camera Notification

643 views
Skip to first unread message

Phil

unread,
May 21, 2015, 5:41:52 PM5/21/15
to ope...@googlegroups.com
Hi all

I was wondering if anyone of you integrated openhab and an axis cam.

I can send notifications from the camera to a "TCP server" or to a HTTP server. 

Anyone?


BR
phil

njordan

unread,
May 22, 2015, 6:17:31 AM5/22/15
to ope...@googlegroups.com
not sure if you look for exactly this....i have axis 207 at my door....when there is a trigger via door bell I did use the input trigger port of the camera to send a http request to openhab, and from there you can do whatever you like with this trigger....in my case I turn off the radio as soon as somebody is at the door.....really like all these things working together....

Philipp Walther

unread,
May 22, 2015, 9:11:40 AM5/22/15
to ope...@googlegroups.com
By trigger port, do you mean the actual physical I/O port on the camera (mine has one, don't know if all have that) or the logical/software event trigger?

If you are using the built-in HTTP Post feature, where do you post it to / what binding do you use?

On 22 May 2015 at 12:17, njordan <norbert...@gmail.com> wrote:
not sure if you look for exactly this....i have axis 207 at my door....when there is a trigger via door bell I did use the input trigger port of the camera to send a http request to openhab, and from there you can do whatever you like with this trigger....in my case I turn off the radio as soon as somebody is at the door.....really like all these things working together....

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/ubNhmLzWnf8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/57b38d1a-2f2a-4ec2-bb34-88eee40655f8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Klaus Hildner

unread,
May 23, 2015, 2:23:15 PM5/23/15
to ope...@googlegroups.com
Hi Phil,

I send http requests to a http / web server from the camera during events (optical motion detection).
The php script below dumps all the request parameters, be they get or post. Might help to determine the data that goes over the wire.
I use Apache with a cgi-bin curl script to strobe Philips Hues when a motion event in the camera triggers.
An openHAB incoming http binding probably could trigger arbitrary actions. 

Playing live camera streams on openHAB works out of the box.

I am trying to retrieve edge storage video via http or rtsp.
Currently I fail using something like this in VLC:
Currently the only way to visualize these recordings is by Axis Camera Companion, but I really want to consolidate all house functionality in openHAB.

best regards

Klaus

<?php
$email_from = 'SmartGart Sicherheit<nor...@xxx.com>';
$email_cc = 'Klaus Hildner<klaus....@xxx.com>';
$email_subject = 'smartgart.com/xxx[' . date("YmdHis") . ']';

$ip = $_SERVER['REMOTE_ADDR'];
$referrer = $_POST['referrer'];

$content = "(start of message)\n";
$content .= "message\n";
$content .= "=======\n\n";
$content .= "all POST data\n";
$content .= "-------------\n";
$content .= var_export($_POST, true);
$content .= "\n\n";

$content .= "all GET data\n";
$content .= "------------\n";
$content .= var_export($_GET, true);
$content .= "\n\n";

$content .= "Anfrage\n";
$content .= "-------\n";
$content .= "IP: " . $ip . "\nreferrer: " . $referrer . "\n";
$content .= "(end of message)";

$header = "from:$email_from\n";
$header .= "cc:$email_cc\n";
mail($email_to, $email_subject, $content, $header);
?>

Norbert JORDAN

unread,
May 23, 2015, 3:04:23 PM5/23/15
to ope...@googlegroups.com
sure it is the standard IO port of the camera that does trigger the
http message towards openhab which turns ON a "virtual" switch....
> https://groups.google.com/d/msgid/openhab/CAC35SxCDj_a%3DtbpY%2BCMt9SuikrrZK7THMcwUBVWpM9es76j%3DUQ%40mail.gmail.com.

Phil

unread,
May 23, 2015, 4:24:17 PM5/23/15
to ope...@googlegroups.com
Hey 

Ah yes, that what I want to do - trigger that HTTP request to openhab in order to turn on a switch (and off I again, I suppose?)

I found a post that said you do this:
http://<openhab-host>:8080/CMD?<item>=<state>

Is that what you used? Do you turn it back off via rule?

Norbert JORDAN

unread,
May 23, 2015, 6:04:36 PM5/23/15
to ope...@googlegroups.com
yes exactly...defined a swich with no real (like zwave)
relation......in my case I do not turn it off again, you could do it
of course via rules...but as I anyhow just look at a rule that
"triggers" when swithced ON....it does not matter if OFF to ON or
ON-to-ON.
> https://groups.google.com/d/msgid/openhab/b3711ed1-2436-4aea-911f-54aae00427f8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages