moritzmhmk / homebridge-camera-rpi

raspberry pi camera plugin for homebridge
MIT License
159 stars 29 forks source link

No camera view #63

Open SSkull995 opened 4 years ago

SSkull995 commented 4 years ago

Hello! I just installed the plugin and connected my camera to the raspi, physically. The thing is, I don't get any error from Homebridge, but the camera is shown as unresponsive on Homebridge. No image, even if on the homebridge log it says "snapshot taken" Any suggestion? Thanks!

sebasjunca commented 4 years ago

Try using the $ raspistill -o cam.jpg to see if the cam is working, if so, then it's probably a permissions problem with hombridge and the plugin.

sebasjunca commented 4 years ago

There's seems to be a problem with permissions. You can try $ sudo chmod 777 /dev/video0 but is not a permanent solution because when the rpi reboots it will change back to the defaults permissions.

Then you should try $ sudo usermod -aG video homebridge which did the trick for me.

Btw, I found the solution at issue #35

Hope it helps!