Page 1 of 1

Problem setting up a remote (slave) Pi camera

Posted: Friday 30 January 2015 12:57
by Johng
I have Domoticz running on a Raspberry Pi (master). It has to be sited exactly where it is so that the Rfxtrx can ‘see’ temperature sensors at the far end of the garden and also control light switches within the house.
I set up a second Pi (slave) with Domoticz and a Pi camera plus a dummy switch to operate the camera. Accessing the slave, the camera works perfectly both through the dummy switch and also using the snapshot on the setup page.

I then tried to access the camera from the master. I tried:-

With the camera set up on the master pointing to the slave. (tried both port 8080 and 6144)
Without and without a remote share (the remote share works in that the master can see motherboard sensors on the slave)
With and without the camera set up on the slave (when set up, with same port, username, password as on the master)

And all combinations of the above but without success. I get, at best a blank screen on the master and the LED on the camera attached to the slave doesn’t light up.

Using the snapshot icon on the master and Firefox on a Windows laptop I get offered a jpeg but it is corrupt. On opening it in a text editor, it contains

><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html>

On an ipad safari I get a blank white screen with a small grey bordered white box top dead centre,

I am using Firefox on laptop and Safari on ipad. I haven’t tried IE (I don't like IE).

Where am I going wrong?

Many thanks John G

PS Nothing shows in the log when I try for a capture on the master. Should it?

Re: Problem setting up a remote (slave) Pi camera

Posted: Monday 10 August 2015 16:06
by MacJL
Same issue here. I didn't manage to make this configuration works.

Re: Problem setting up a remote (slave) Pi camera

Posted: Tuesday 27 October 2015 11:14
by MacJL
I was finaly able to do it. In the camera parameters, I set this in URL field :
camsnapshot.jpg?idx=1

Replace it with the correct IDX of your slave camera, and it may work.

Re: Problem setting up a remote (slave) Pi camera

Posted: Tuesday 04 October 2016 9:36
by DaniBogo
Thanks, camsnapshot.jpg?idx=1 work to me both in a RPi master and a slave! If this is the way the wiki must be updated.