Generic IP Camera binding

I’ll add my own thoughts to this thread. I have quite a few cameras, and motion triggers from them would be very useful information. I do not see any reason for openhab to act as an NVR, there are too many other great alternatives out there, with so many features openhab could not hope to compete.

However, if OnVif alarms were supported, that would be a huge bonus. These is not much information or help available for OnVif that I could find. But, it looks like there is already a java OnVif library available and being maintained:


with a couple minor code examples here:
http://m.2cto.com/kf/201612/579714.html

I would also be very interested in this one!

Hi,

Could you possibly post the jar file as I can’t seem to be able to clone the repo.

Cheers.

P

+1 for jar. I couldn’t compile it from source.

Is it so far with ip camera binding? Did some one test it, and how can I install it in OH2?
I see that Fibaro app can show Camera on app.

For those of you looking for motion detection with your cameras, I implemented something that works pretty well for me.

I installed the Milestone XProtect NVR software (free for 8 cameras), and set it to email on motion detected. Then I wrote an email server binding for openhab so all the traffic stays local to my network. So far it is working great. All my cameras are not centralized and controlled in a great NVR system, which also centralizes all my motion detection configuration to ship it off to openhab.

If you are interested in the binding, comment here:

Hello Jereme_Guenther,

I also use milestone systems NVR Enterprise 2016 and be also a reseller of it. It is a really great software NVR with a lot of functionalities. You’re right about the location of de motion detection. When you have more camera’s it is a verry heavy job to do for a simple device. So it is beter to the motion detection in a piece of software on a better performance device. And there are several ways to talk to Milestone. They also have a API.
Im verry intrested in your binding and follow you tread! :slight_smile:

@Thetmar while Milestone does have an API, it is only available in the top tier versions of their software. Generally speaking that is not something home users or this community will have access to.

Hi
I’m totally new in openhab and GIT.

I made a clone of the repository to my Raspberry.
What I have to do now to install the binding into openhab2?

Thanks in advance
Thomas

1 Like

I would also like to know how to manually install this binding into OH2. I’ve searched a good bit and cant seem to find a simple tutorial on how to compile and apply a manual binding that doesn’t use a JAR file.

I have update my original post, please check the first message of this thread.

Test 2.1.0

Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR

Hi, thanks for giving feedback. I have fixed now, please download again.

_Thomas, thanks for the effort. I have downloaded the binding to Addons folder and the OH2 reconized the binding. My doubt now is how to configure the .items, .things and .sitemap files to display it on the UI. Thank you once again.

Hi Eduardo, I am no expert in the UI in general, for testing it is recommended to use the PaperUI, there you can add things from bindings, these should appear in the dashboard then. For more integration please check the standard documentation.

Regards
Thomas

Hello Thomas,

Is it correct that i cant use Hikvision camera’s? Because the url is http://192.168.0.xxx/Streaming/channels/1/picture and that doesn’t work.
When i must use an username and password the url is //user:password@192.168.0.xxx/Streaming/channels/101

I’ll try already several things and looked at many forums to use the url. When i visit the url local in a browser i see a picture. Can you help me in the right direction?

Kind regards
Thetmar

Hi Thetmar,

URL authorization scheme might not work. I will take this on my list for check. In the meanwhile I can only recommend to remove authorization for viewing.

Regards
Thomas

Hello Thomas,

Thanks for your reply. I already removed the autorisation. But i still dont have a connection.
I will try it with another camera. Can you tell me what camera you used? And what the image or streaming url is of your test setup.

Kind regards,
Thetmar Wiegers

There is a new version for download which supports authentication. My test cam is an Axis camera. Currently only static image URL is supported, which can be fetched in a configurable interval.

Regards
Thomas

When might you anticipate supporting ONVIF, as this would open up a great deal of cameras from many different manufacturers?