Zoneminder camera live view

I have a few cameras setup in Zoneminder. Is it possible to get live view of these cameras in OH2 android app?

If you can get the URL of the mjpeg stream use the Video element in the sitemap.

http://docs.openhab.org/configuration/sitemaps.html#element-type-video

There is also a Zoneminder binding which might provide something to help with this. I’ve not used it yet.

I skip past Zoneminder and put the URL of the camera itself into my sitemap for the live view.

I use something like this :

Video url=“http://192.168.1.251/zm/cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=30&buffer=1000&monitor=12” encoding=“mjpeg”

And obviously change the monitor name value pair for which camera you want to use.

2 Likes

My Zoneminder has a Username and Password. Any idea how can they be passed in the URL?

Try
http://username:passwd@192.168.1.251/zm/cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=30&buffer=1000&monitor=12 the URL

I’ve not tested, however this is a common approach.

This works for me:

Webview url="https://url:port/zm/cgi-bin/nph-zms?mode=jpeg&monitor=9&scale=25&maxfps=10&buffer=1000&user=admin&pass=password"

At this point I will sigh slightly about the fact that webview doesn’t work on the iphone app…

2 Likes

Thanks, this worked.

1 Like