Page 1 of 1

Connect cameras from multiple zoneminder servers in to 1

Posted: Thu Aug 29, 2013 11:03 pm
by jplamb13
Hi all,

I have been using ZM for a while now, nothing major just viewing a live stream.

I have just installed ZM on to a Raspberry pi and have it working. So I am wanting to connect everything together .

i have my main server (centos with lots of power ) with 2 cameras attached via usb,

Raspberry pi currently with 1 camera, will likely be 2 connected via usb.

Is there a way I can add the camera from the raspberry pi to the ZM running on the main server so I would have 3 cameras displayed? They are all currently on the same network if this helps

Many thanks
James

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Fri Aug 30, 2013 12:47 am
by twice
yes ,
settings are ,Source Type "Remote"
"Http simple"
Remote Host "ip.of.the.pi"
Remote Port "80" or what ever you have it set as
Remote Host Path "/cgi-bin/nph-zms?mode=jpeg&monitor=<?>&scale=100&maxfps=10&buffer=1000&user=USERNAME&pass=PASSWORD" the ? is the monitor Number on the remote zm
make sure capture width and height match the PI's settings

regards

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Fri Aug 30, 2013 12:34 pm
by knight-of-ni
Also note there is a camera preset called "Remote ZoneMinder" to help you get started.

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Sun Sep 01, 2013 1:52 pm
by jplamb13
many thanks, i will have a look

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Tue Sep 03, 2013 8:30 pm
by jplamb13
i have added the remote camera and it has connected but it only shows a blue screen .. Any Ideas?

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Wed Sep 04, 2013 12:33 am
by knight-of-ni
Well, what do your log files say?

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Wed Sep 04, 2013 9:04 pm
by jplamb13
Forgot about the Log, it says


Date/Time
Component PID Level Message File Line
2013-09-04 21:55:13.782520 zmc_m10 11381 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1092
2013-09-04 21:55:13.781854 zmc_m10 11381 ERR Connection dropped by remote end zm_remote_camera_http.cpp 603
2013-09-04 21:55:13.371381 zmc_m10 11381 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1092
2013-09-04 21:55:13.370859 zmc_m10 11381 ERR Connection dropped by remote end zm_remote_camera_http.cpp 603
2013-09-04 21:55:13.088807 zmc_m10 11381 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1092
2013-09-04 21:55:13.088283 zmc_m10 11381 ERR Connection dropped by remote end zm_remote_camera_http.cpp 603
2013-09-04 21:55:12.726634 zmc_m10 11381 WAR Unable to capture image, retrying zm_remote_camera_http.cpp 1092


found this THREAD on the forum which has a patch included but i am not sure where this is meant to be put,

many thanks for your support with this.

Re: Connect cameras from multiple zoneminder servers in to 1

Posted: Thu Sep 05, 2013 12:56 am
by knight-of-ni
That thread is for an old version of zoneminder. I checked and that patch is already part of the latest version. The blue screen is a generic symptom and can mean just about anything.

You should check the following:
1) check the log files of the remote system for additional clues.

2) if the remote system is behind a firewall then verify that port 80 is open by using telnet:

Code: Select all

telnet <ip address> 80
If you are left staring at a blinking cursor then port 80 is open and you are good. If you get connection refused, you have a network problem.

3) Test the stream by manually building the url into your web browser:

Code: Select all

<your_server_ip>/<path_to_your_cgi-bin>/nph-zms?mode=jpeg&monitor=<?>&scale=100&maxfps=10&buffer=1000&user=USERNAME&pass=PASSWORD
You should get a video stream in a non-IE web browser.