BrianHepler / MMM-Selfieshot

Taking a Selfie with USB cam on MagicMirror.
MIT License
8 stars 6 forks source link

Pi Cam #2

Closed thetobyde closed 4 years ago

thetobyde commented 4 years ago

Hey Brian again,

We would really like to have the PiCam support. You said u can not implement this right now, cause you dont have a Pi Cam. Would it help to ship mine to you? Greetings, Toby

BrianHepler commented 4 years ago

I just got one in the mail, thank you. I'll get to work on this presently.

thetobyde commented 4 years ago

Nice Brian! You are the Best! Looking forward to use it. Will you let me now, if it works?

Von meinem iPhone gesendet

Am 30.05.2020 um 16:30 schrieb Brian Hepler notifications@github.com:

 I just got one in the mail, thank you. I'll get to work on this presently.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

BrianHepler commented 4 years ago

Okay, the touch button has been implemented. I'll see about testing this under a Pi cam now. It's coming.

BrianHepler commented 4 years ago

@thetobyde - Sir, I just tested this with my PiCam and it works just fine. You have to enable the camera interface via the raspi-config tool, but it appears to be working without any additional code from me.

thetobyde commented 4 years ago

Nice! So do I have to „update“ the module and it will work? Or just put the „useCam“ thing in my config?

Von meinem iPhone gesendet

Am 02.06.2020 um 23:05 schrieb Brian Hepler notifications@github.com:

 @thetobyde - Sir, I just tested this with my PiCam and it works just fine. You have to enable the camera interface via the raspi-config tool, but it appears to be working without any additional code from me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

BrianHepler commented 4 years ago

You should be able to enter sudo raspi-config to bring up the configuration menu. Go to Interfacing Options and then highlight "Camera" (it should be the first entry). Enable the camera interface and then Finish. You will be asked to reboot, which you should do.

If you have a USB camera, unplug it from the Pi. Once you have a connection back to the pi, test the camera with the following command: raspistill -o image.jpg. When it gives you the command line back, do a ls to see if the file image.jpg is present. If it is, then your camera works.

At that point, use the MMM-Selfieshot as usual. No need to update the module. I don't know what "useCam" is. Where are you seeing this?

mirrormonark commented 1 year ago

hi... when use "raspistill -o image.jpg" i see this "the system should be configured for the legacy camera stack" but when i try .. "libcamera-still -o image.jpg " my picamera Noir take me a photo. in 2023 I had to download the "libcamera-apps" to have the function of cameras.

I tried the normal configuration -- but nothing happens. I also tried the configuration where it says to mash but nothing happens (I was not mashing the button as touchscreen but via mouse)

BrianHepler commented 1 year ago

The latest version of Raspian uses a new camera stack. You can enable the legacy camera stack by following the instructions I listed above to enable the Pi camera. It's just labeled as "legacy camera support" rather than enabling the camera entirely. In short, use sudo raspi-config to get into the RPi configuration, then turn on everything camera related that you find in that interface.