ronny3050 / email-mirror

Receives emails and notifies mirror on new incoming emails.
MIT License
37 stars 24 forks source link

Module doenst show anything #19

Open apm1007 opened 7 years ago

ronny3050 commented 7 years ago

Please update the module and report.

AndrewMcClelland commented 7 years ago

I have same issue. When it first boots, it will show the "Email" header and "Loading..." underneath, but then it just disapears and shows nothing. Any suggestions?

EDIT: In my terminal, it shows: " NEW MAIL NEW MAIL NEW MAIL NEW MAIL listening for emails..."

but shows nothing on MagicMirror :(

ronny3050 commented 7 years ago

That is very strange. Thank you for letting me know. I hope you can help me further to diagnose this issue!

Are you on the updated version?

AndrewMcClelland commented 7 years ago

Yes, pulled yesterday night.

I was messing around with some other stuff and it suddenly started displaying emails!

I have my gmail setup, however it shows all the 'spam' emails that would get filtered to my promotions and social tabs on gmail. I assume there's no easy way of showing only my Primary Inbox using this module?

EDIT: Is there any easy way of limiting the width of the module? I know you can limit number of characters, but the Contact/Email header of some emails are quite long and spill too wide into other modules.

ronny3050 commented 7 years ago

Awesome, to confirm, pulling the latest version solves this issue?

There might be a way, actually. I will get back to you on that in a few!

Thanks for the advice, I will limit the contact address size with maxEmailHeaderCharacters. Will update you once I push.

AndrewMcClelland commented 7 years ago

I had the latest version previously, but it just started working at some point (I messed around with authTimeout a bit, but eventually it just worked)!

Thanks very much Ronny! Appreciate the quick help and great GREAT job on this module!

ronny3050 commented 7 years ago

Oh I see, it's possible that the connection was timing out.

Absolutely, thank you for your encouraging words! I really appreciate it.

RamblingGeekUK commented 7 years ago

I've pulled the latest version and all I get is "No new emails". I'm using 365 accounts... neither work.

I've since change the time out to below 10000 and email came in but then it stops.... it's late for me now.. will continue to troubleshoot tomorrow evening. :-)

SirtajS commented 7 years ago

Hi, I'm having the same issue using a gmail account. I set the time below 10000 as well but no luck. In the console it's just repeating NEW PAYLOAD, but not showing ant new e-mails.

ronny3050 commented 7 years ago

@RamblingGeekUK any more luck? I have to play with the UNREAD and SEEN flag settings - I think there might be an issue there. Please let me know. Thanks! :)

ronny3050 commented 7 years ago

@SirtajS a. What is the NEW PAYLOAD object showing on console? b. Did you set up the two-factor authentication on Gmail?

SirtajS commented 7 years ago

a. I attached a picture of what is showing up in the console.

b. I do not have two-factor auth and allowed access for less secure apps. rasp pi emil log

RamblingGeekUK commented 7 years ago

I'm still having refresh issues with this. I'm away this weekend. As soon as I get the chance I will have a look at the code and try and understand whats happening.

thewhitewolverine commented 7 years ago

Even though I have set the port and the host correctly for gmail the module shows "No New Emails". I have enabled IMAP in the gmail account and allowed access for less secure apps. Something we missed?

jadgsam commented 7 years ago

Hello, I am facing the same situation, have you already found a solution?

Kindly let me know if you did it.

Thanks in advance

patoiot commented 7 years ago

Hello,

same issue here. Nothing shown on screen, tried both vertical and horizontal orientation.

any hints?

thanks in advance.

Edit: entire mm crashes when tbs is set to true, change it to false and mm is stable, but shows all modules except email.

troycrandell commented 7 years ago

I am also having issues. mm crashes when updating emails. Email shows No New Mails.

GxnfrAli commented 6 years ago

same issue no unread email show

MauricioRibeiroA commented 6 years ago

Did anyone solved the problem with gmail authentication? How to setup it? At the google page it says to set SSL: true but I don't see any fields for SSL. For TLS: true = no new emails / for TLS: false = loading forever...

aandrew7 commented 6 years ago

I just have nothing showing what so ever no matter what I try.

paul-gordon commented 6 years ago

Me too... - I've verified the connection settings, and I've sent test emails, but all I Ever see is: image MM never shows any existing, or new emails...

This is my config: { module: 'email', position: 'bottom_left', header: 'Pauls Hotmail', config: { accounts: [ { user: 'paul_gordon@hotmail.com', password: 'YouShouldBeSoLucky!', host: 'imap-mail.outlook.com', port: 993, tls: true, authTimeout: 15000, numberOfEmails: 2, } ], fade: true, maxCharacters: 30 } },

At some later point it changed to: image

So the "No new emails" flag disappeared, but no actual emails appeared in its place... :-(

MuhammadJamee commented 6 years ago

image image image

letshin commented 6 years ago

Hi, I am also having the same problem with emails not showing. Interestingly, new mail seems to be detected (console reports this) but I guess something is stopping the data from being pushed to the screen? Does anyone have any clues?

Serazio commented 6 years ago

@letshin I had the same problem. The html code for the emails is generated properly, but it is set to opacity 0. So the emails are just invisible. The problem is, that the count of emails and the calculation for the opacity is somehow wrong...

I created the following patch. It creates a new counter for all emails you want to show, and calculates the opacity from this value.

patch.patch.txt

EnriqueOMoraG commented 6 years ago

Hello good afternoon, someone already solved it? I have the same error

tim-digitised commented 6 years ago

@EnriqueOMoraG - As @letshin mentioned, there's an issue with the fade calculation. I configured fade to be false and everything worked. Hopefully @ronny3050 puts a fix in place based off of the code @letshin provided.

Kevsw99 commented 6 years ago

@letshin I had the same problem. The html code for the emails is generated properly, but it is set to opacity 0. So the emails are just invisible. The problem is, that the count of emails and the calculation for the opacity is somehow wrong...

I created the following patch. It creates a new counter for all emails you want to show, and calculates the opacity from this value.

patch.patch.txt

Hi, where do you add this file into?

annamiyer commented 5 years ago

Did anyone solved the problem with gmail authentication? How to setup it? At the google page it says to set SSL: true but I don't see any fields for SSL. For TLS: true = no new emails / for TLS: false = loading forever...

Bringing this back up, has anyone figured out the gmail authentication? When my TLS is set to true, it loads forever. I get an "authentication failed" error in my terminal when my credentials are correct. Any advice?

screen shot 2018-12-28 at 12 46 34 pm
giozthebest1 commented 5 years ago

Guys, I have finally figured it out why there is nothing showing! There are 2 MAIN steps you need to check:

1) As previous people mentioned, there is a problem with the code of ronny's, the HTML is not making it visible to show the emails because of the fading. so in the code which ronny posted, you need to have fade set as :false , like this : modules: [ { module: 'email', position: 'bottom_left', header: 'Email', config: { accounts: [ { user: 'johndoe@xyz.com', password: 'helloworld', host: 'outlook.office365.com', port: 993, tls: true, authTimeout: 10000, numberOfEmails: 2,

                    },
                    {
                        user: 'janedoe@gmail.com',
                        password: 'goodbyeworld',
                        host: 'imap.gmail.com',
                        port: 993,
                        tls: true,
                        authTimeout: 10000,
                        numberOfEmails: 2,
                    }
                ],
                fade: false,
                maxCharacters: 30
            }
}

]

2) the second MAJOR problem is you need to make sure the email you are using is using the IMAP Protocol correctly, meaning that the in the config.js, the host provided will able to download the emails in the magicMirror, So far I heaven't figured out yet how to set up GMAIL accounts and Outlook accounts, but Office365 accounts works properly to me, if you have an office365 account you should test it.

for office365 accounts, make sure in the config.js the host is : 'outlook.office365.com'

and yes, office365 accounts are not same as normal outlook accounts.

I will post how they work and gmail also when I figured it out.

I have an office365 account so its good enough for me to present this project.

Goodluck!