BrianHepler / MMM-Selfieshot

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

Toast make image #6

Closed thetobyde closed 3 years ago

thetobyde commented 4 years ago

Hey Brian! :) everything worked fine with my Pi Cam.. but suddenly it doesn't make a image now. The Countdown works, the image preview starts but there is no photo taken. raspistill -o test.jpg works.

The debug says:

Bildschirmfoto 2020-09-06 um 02 17 38

I get an Mail with the taken photo, but its not a jpg or png its just an file I can't open.

Thx for help! I need the module, its the best module for the MM! _

BrianHepler commented 4 years ago

Interesting. Can you post the relevant portion of the config.js please? I want to try and duplicate your problem. If I understand properly, you receive an email and there's an attachment, but you can't open the attachment. What's the name of the attachment? Does the name change from email to email or do they all have the same name? And does the attachment have any data in it, or is it zero length?

And did you make any other changes to your config in the meantime? Specifically, is there any other module that uses the camera, such as the motion detection?

thetobyde commented 4 years ago

Hey Brian. Thx for your time.

This is my code in the config.js:

`{
            disabled: false,
            module: "MMM-Selfieshot",
            config: {
                    width:1920,
                    height:1080,
                    device: null,
                    debug:true,
                    shootMessage: "Smile!",
                    sendMail: {
                        transport: {
                            host: 'mail.gmx.net', // If required.
                            port: 465, // If required.
                            secure: true, // If required.
                            auth: {
                                user: "thetoby@gmx.net",
                                pass: "***********"
                                }
                        },
                        message: {
                            from: "thetoby@gmx.net",
                        to: "thetoby@icloud.com",
                            subject: "Spiegel Selfie",
                            text: "Neues Selfie.",
                            }
                        }
                }
        },`

This is what I'll get in my Mails:

Bildschirmfoto 2020-09-09 um 18 34 56

Everything worked fine, until few weeks. I was using a Face-Reg module but that didn't worked out. The cam was buisy with the Face Rec module, so Selfieshot didn't work. But I stoped the script that uses the cam and uninstalled it, restarted everything, and so on...

Raspistill works, so I cannot explain why Selfieshot doesn't.

Thx Brian! Toby :)

thetobyde commented 4 years ago

I reinstalled the module and it works! Thx.

"Have you tried to put it off and on again?" 😂😂

BrianHepler commented 3 years ago

Great! I'm sorry that I wasn't more help. Let me know if it happens again.