Read the statement by Michael Teeuw here.
Problem with MMM-email
-
When it’s running, the module displays
‘No new mails’ – EVEN IF I send new mails.
Logging into the imap server happens without a hitch, and the server accepts mail without any problem. But I’m trying to get the messages to show up on my MagicMirror, and this fails. I’m running out of ideas, so I’m sending as much detail as possible and hoping someone can help identify what’s (not) happening.
The relevant module in my config.js’ file looks like this:
{
module: ‘email’,
position: ‘bottom_right’,
header: ‘Email’,
config: {
accounts: [
{
user: ‘aaaaaaaaa@bbbbbb.com’,
password: ‘XXXXXXXxxxxxxxx!’,
host: ‘imap.bbbbbb.com’,
port: 993,
tls: true,
authTimeout: 20000,
numberOfEmails: 2,
},
],
fade: true,
maxCharacters: 30,
}
},Startup looks like this:
magicmirror@2.16.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[17.08.2021 16:10.59.790] [LOG] Starting MagicMirror: v2.16.0
[17.08.2021 16:10.59.796] [LOG] Loading config …
[17.08.2021 16:10.59.804] [LOG] Loading module helpers …
[17.08.2021 16:10.59.807] [LOG] No helper found for module: alert.
[17.08.2021 16:10.59.972] [LOG] Initializing new module helper …
[17.08.2021 16:10.59.973] [LOG] Module helper loaded: updatenotification
[17.08.2021 16:10.59.975] [LOG] No helper found for module: clock.
[17.08.2021 16:10.59.977] [LOG] No helper found for module: compliments.
[17.08.2021 16:11.00.090] [LOG] Initializing new module helper …
[17.08.2021 16:11.00.091] [LOG] Module helper loaded: email
[17.08.2021 16:11.00.993] [LOG] Initializing new module helper …
[17.08.2021 16:11.00.995] [LOG] Module helper loaded: MMM-TelegramBot
[17.08.2021 16:11.00.997] [LOG] No helper found for module: MMM-WeeklySchedule.
[17.08.2021 16:11.01.338] [LOG] Initializing new module helper …
[17.08.2021 16:11.01.340] [LOG] Module helper loaded: MMM-Weather
[17.08.2021 16:11.01.341] [LOG] No helper found for module: MMM-Worldclock.
[17.08.2021 16:11.01.342] [LOG] All module helpers loaded.
[17.08.2021 16:11.01.429] [LOG] Starting server on port 8080 …
[17.08.2021 16:11.01.445] [LOG] Server started …
[17.08.2021 16:11.01.447] [LOG] Connecting socket for: updatenotification
[17.08.2021 16:11.01.448] [LOG] Connecting socket for: email
[17.08.2021 16:11.01.450] [LOG] email helper started …
[17.08.2021 16:11.01.451] [LOG] Connecting socket for: MMM-TelegramBot
[17.08.2021 16:11.01.453] [LOG] Connecting socket for: MMM-Weather
[17.08.2021 16:11.01.454] [LOG] Sockets connected & modules started …
[17.08.2021 16:11.01.721] [LOG] Launching application.
[17.08.2021 16:11.04.656] [LOG] listening for emails…
[17.08.2021 16:11.04.669] [LOG] [TELBOT] MMM-TelegramBot Version: 1.3.8
[17.08.2021 16:11.04.686] [LOG] [TELBOT] Ready!
[17.08.2021 16:11.04.690] [LOG] [WEATHER] MMM-WEATHER Version: 1.0.3
[17.08.2021 16:11.04.767] [INFO] Checking git for module: email
[17.08.2021 16:11.04.820] [INFO] Checking git for module: MMM-TelegramBot
[17.08.2021 16:11.04.860] [INFO] Checking git for module: MMM-WeeklySchedule
[17.08.2021 16:11.04.894] [INFO] Checking git for module: MMM-Weather
[17.08.2021 16:11.04.925] [INFO] Checking git for module: MMM-Worldclock
[17.08.2021 16:11.14.947] [LOG] listening for emails… -
Witch email provider are you using?
-
@djboob66 I normally use Google for such things. Should I use something else?
-
@mwm341 which password are you using? You have to generate a password by following these steps:
Go to your Google Account.
Select Security.
Under list item “Signing in to Google,” select App Passwords. You may need to sign in.
At the bottom, choose Select app and choose the app you using
Select device and choose the device you’re using. …
Follow the instructions to enter the App Password. …
Tap Done. -
@mumblebaj Done. Mail is being delivered to a dedicated (google) mailbox – but nothing gets to the mirror, and there’s nothing showing up in the logs except
[19.08.2021 21:35.37.274] [LOG] listening for emails…
[19.08.2021 21:35.47.402] [LOG] listening for emails…
[19.08.2021 21:35.57.537] [LOG] listening for emails…
[19.08.2021 21:36.07.697] [LOG] listening for emails…
[19.08.2021 21:36.17.818] [LOG] listening for emails…What might I be missing?
-
@mwm341 Digging around a bit (on a brand-new account somewhere else) turns THIS up:
20.08.2021 07:45.15.461] [LOG] Email notifier error: Error: Timed out while connecting to server
at Timeout._onTimeout (/home/pi/MagicMirror/modules/email/node_modules/imap/lib/Connection.js:280:15)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) {
source: ‘timeout’
}…and it doesn’t change, no matter what I do.
Grrr!
I think a module change might be in order. -
THE APP SAW MY MESSAGE!!
Once.Didn’t show me though; it showed up in the logs.
Nothing else since.
-
@mwm341 Can you share the link to the github repo for the module? I want to test it out and see.
-
@mumblebaj Here’s where I started …
-
@mwm341 … and this is what I got when I ran it.
magicmirror@2.16.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”[20.08.2021 10:21.14.553] [LOG] Starting MagicMirror: v2.16.0
[20.08.2021 10:21.14.562] [LOG] Loading config …
[20.08.2021 10:21.14.573] [LOG] Loading module helpers …
[20.08.2021 10:21.14.577] [LOG] No helper found for module: alert.
[20.08.2021 10:21.14.852] [LOG] Initializing new module helper …
[20.08.2021 10:21.14.853] [LOG] Module helper loaded: updatenotification
[20.08.2021 10:21.14.855] [LOG] No helper found for module: clock.
[20.08.2021 10:21.15.098] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.099] [LOG] Module helper loaded: calendar
[20.08.2021 10:21.15.100] [LOG] No helper found for module: compliments.
[20.08.2021 10:21.15.102] [LOG] No helper found for module: weather.
[20.08.2021 10:21.15.642] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.644] [LOG] Module helper loaded: MMM-Weather
[20.08.2021 10:21.15.779] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.780] [LOG] Module helper loaded: email
[20.08.2021 10:21.15.861] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.862] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
[20.08.2021 10:21.15.869] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.870] [LOG] Module helper loaded: MMM-ImagesPhotos
[20.08.2021 10:21.15.955] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.956] [LOG] Module helper loaded: MMM-PoemOfTheDay
[20.08.2021 10:21.15.957] [LOG] No helper found for module: MMM-iFrame.
[20.08.2021 10:21.15.998] [LOG] Initializing new module helper …
[20.08.2021 10:21.15.999] [LOG] Module helper loaded: newsfeed
[20.08.2021 10:21.16.001] [LOG] No helper found for module: MMM-Carousel.
[20.08.2021 10:21.16.001] [LOG] All module helpers loaded.
[20.08.2021 10:21.16.143] [LOG] Starting server on port 8080 …
[20.08.2021 10:21.16.168] [LOG] Server started …
[20.08.2021 10:21.16.170] [LOG] Connecting socket for: updatenotification
[20.08.2021 10:21.16.172] [LOG] Connecting socket for: calendar
[20.08.2021 10:21.16.173] [LOG] Starting node helper for: calendar
[20.08.2021 10:21.16.175] [LOG] Connecting socket for: MMM-Weather
[20.08.2021 10:21.16.176] [LOG] Connecting socket for: email
[20.08.2021 10:21.16.177] [LOG] email helper started …
[20.08.2021 10:21.16.178] [LOG] Connecting socket for: MMM-OpenWeatherMapForecast
[20.08.2021 10:21.16.180] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
[20.08.2021 10:21.16.181] [LOG] Connecting socket for: MMM-ImagesPhotos
[20.08.2021 10:21.16.182] [LOG] Starting node helper for: MMM-ImagesPhotos
[20.08.2021 10:21.16.184] [LOG] Connecting socket for: MMM-PoemOfTheDay
[20.08.2021 10:21.16.185] [LOG] Starting module helper: MMM-PoemOfTheDay
[20.08.2021 10:21.16.186] [LOG] Connecting socket for: newsfeed
[20.08.2021 10:21.16.188] [LOG] Starting node helper for: newsfeed
[20.08.2021 10:21.16.189] [LOG] Sockets connected & modules started …
[20.08.2021 10:21.16.706] [LOG] Launching application.
[20.08.2021 10:21.25.535] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/39/CA_Holidays.ics - Interval: 300000
[20.08.2021 10:21.26.735] [INFO] Calendar-Fetcher: Broadcasting 6 events.
[20.08.2021 10:21.27.433] [LOG] listening for emails…
[20.08.2021 10:21.27.455] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[20.08.2021 10:21.27.486] [LOG] [WEATHER] MMM-WEATHER Version: 1.0.3
[20.08.2021 10:21.27.596] [INFO] Checking git for module: MMM-Weather
[20.08.2021 10:21.27.738] [INFO] Checking git for module: email
[20.08.2021 10:21.27.893] [INFO] Checking git for module: MMM-OpenWeatherMapForecast
[20.08.2021 10:21.28.004] [INFO] Checking git for module: MMM-ImagesPhotos
[20.08.2021 10:21.28.253] [INFO] Checking git for module: MMM-PoemOfTheDay
[20.08.2021 10:21.28.642] [INFO] Checking git for module: MMM-iFrame
[20.08.2021 10:21.28.833] [INFO] Checking git for module: MMM-Carousel
[20.08.2021 10:21.30.876] [INFO] Newsfeed-Fetcher: Broadcasting 58 items.
[20.08.2021 10:21.37.711] [LOG] listening for emails…
[20.08.2021 10:21.47.956] [LOG] listening for emails…
[20.08.2021 10:21.58.131] [LOG] listening for emails…
[20.08.2021 10:22.08.313] [LOG] listening for emails…
[20.08.2021 10:22.18.443] [LOG] listening for emails…
[20.08.2021 10:22.28.667] [LOG] listening for emails…
[20.08.2021 10:22.38.807] [LOG] listening for emails…