MMM-MotionDetector icon indicating copy to clipboard operation
MMM-MotionDetector copied to clipboard

Cannot use Pi camera for this module, but followed the documentation

Open Jochbart opened this issue 2 years ago • 12 comments

I changed the module file, but I get an error now when rebooting the pi: image image

Please help.

Jochbart avatar Jan 29 '22 15:01 Jochbart

Sorry, cant help you directly since I dont own a pi camera. But what does your output say when running "systemctl status systemd-modules-load.service" as mentioned in the error log above?

rejas avatar Jan 29 '22 18:01 rejas

image

Jochbart avatar Jan 29 '22 19:01 Jochbart

Looks like you got a typo there: you wrote v412 but it should be v4l2

rejas avatar Jan 29 '22 19:01 rejas

Hi rejas,

sorry, my bad, you were right. The rebooting is working now, but still get an error in MM: image

Jochbart avatar Jan 31 '22 08:01 Jochbart

Can confirm that happens on a fresh installation of raspi OS starting with their latest releases. You need to enable the legacy camera support in the raspi-config tool.

I updated the README accordingly. Can you confirm that it solves your problem?

rejas avatar Feb 05 '22 13:02 rejas

Hi rejas, I did it, but same error.

Jochbart avatar Feb 08 '22 16:02 Jochbart

Same here

fernandosalomao avatar Mar 02 '22 02:03 fernandosalomao

Hi guys, just found out that there is now a "legacy" raspberry os, which uses the old debian. Maybe you can check this out? https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-legacy

rejas avatar Mar 02 '22 10:03 rejas

Looks like there is an issue with PiCamera in Chromium since 89.0.4389.128 https://stackoverflow.com/questions/69300651/electron-rpi-requested-device-not-found-camera

The current version of MagicMirror (v2.18.0) uses Electron 16.0.5 that uses Chromium 96.0.4664.55 That said, for now the supported version of MagicMirror for this module using PiCamera is MagicMirror v2.16.0 (Electron 11.4.9 / Chromium 87.0.4280.141)

Alternativelly you can run the current version (v2.18.0) on "server mode" and downgrade your OS Chromium to < 89.0.4389.128 and run the client from there.

fernandosalomao avatar Mar 02 '22 11:03 fernandosalomao

Is this broken ? Or does it work with latest version of MM ? Using PI 4 with PI camera.

vijaybala1 avatar Jun 30 '23 03:06 vijaybala1

Is this broken ? Or does it work with latest version of MM ? Using PI 4 with PI camera.

Its working for me with latest version of MM when using my PS3 camera.

I dont have the time at the moment to test it with the latest raspiOS release (the underlying operating system) and a PI camera. Any help would be appreciated.

rejas avatar Jul 01 '23 05:07 rejas

Happy to help. Its not working with Pi-Camera ( V2) . I also have a standard 720 Webcam (MIcrosoft Brand) that also not work. I get a "NotfoundError" . Happy to help debug .

vijaybala1 avatar Jul 01 '23 13:07 vijaybala1