email-mirror icon indicating copy to clipboard operation
email-mirror copied to clipboard

Module doenst show anything

Open apm1007 opened this issue 7 years ago • 29 comments

apm1007 avatar Jun 05 '17 15:06 apm1007

Please update the module and report.

ronny3050 avatar Jun 11 '17 00:06 ronny3050

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 :(

AndrewMcClelland avatar Jun 18 '17 17:06 AndrewMcClelland

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?

ronny3050 avatar Jun 18 '17 17:06 ronny3050

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.

AndrewMcClelland avatar Jun 18 '17 17:06 AndrewMcClelland

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.

ronny3050 avatar Jun 18 '17 17:06 ronny3050

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!

AndrewMcClelland avatar Jun 18 '17 17:06 AndrewMcClelland

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

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

ronny3050 avatar Jun 18 '17 17:06 ronny3050

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. :-)

RamblingGeekUK avatar Jun 19 '17 23:06 RamblingGeekUK

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.

SirtajS avatar Jun 24 '17 03:06 SirtajS

@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 avatar Jun 24 '17 03:06 ronny3050

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

ronny3050 avatar Jun 24 '17 03:06 ronny3050

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

SirtajS avatar Jun 24 '17 03:06 SirtajS

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.

RamblingGeekUK avatar Jun 24 '17 09:06 RamblingGeekUK

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?

thewhitewolverine avatar Jun 30 '17 06:06 thewhitewolverine

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

Kindly let me know if you did it.

Thanks in advance

jadgsam avatar Sep 14 '17 00:09 jadgsam

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.

patoiot avatar Sep 25 '17 03:09 patoiot

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

troycrandell avatar Dec 06 '17 04:12 troycrandell

same issue no unread email show

GxnfrAli avatar Dec 09 '17 05:12 GxnfrAli

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...

MauricioRibeiroA avatar Jan 31 '18 03:01 MauricioRibeiroA

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

aandrew7 avatar Feb 01 '18 05:02 aandrew7

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: '[email protected]', 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... :-(

paul-gordon avatar Feb 16 '18 18:02 paul-gordon

image image image

MuhammadJamee avatar Jun 09 '18 13:06 MuhammadJamee

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?

letshin avatar Jun 16 '18 22:06 letshin

@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

Serazio avatar Jul 26 '18 16:07 Serazio

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

EnriqueOMoraG avatar Sep 30 '18 00:09 EnriqueOMoraG

@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.

tim-digitised avatar Oct 16 '18 07:10 tim-digitised

@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?

Kevsw99 avatar Nov 27 '18 05:11 Kevsw99

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

annamiyer avatar Dec 28 '18 17:12 annamiyer

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: '[email protected]', password: 'helloworld', host: 'outlook.office365.com', port: 993, tls: true, authTimeout: 10000, numberOfEmails: 2,

                     },
                     {
                         user: '[email protected]',
                         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!

giozthebest1 avatar Feb 10 '19 21:02 giozthebest1