MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Problem with MMM-email

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    12 Posts 3 Posters 2.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mwm341
      last edited by

      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…

      1 Reply Last reply Reply Quote 0
      • D Offline
        DJBOOB66
        last edited by

        Witch email provider are you using?

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mwm341 @DJBOOB66
          last edited by

          @djboob66 I normally use Google for such things. Should I use something else?

          mumblebajM 1 Reply Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @mwm341
            last edited by

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

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mwm341 @mumblebaj
              last edited by

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

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mwm341 @mwm341
                last edited by

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

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  mwm341 @mwm341
                  last edited by

                  THE APP SAW MY MESSAGE!!
                  Once.

                  Didn’t show me though; it showed up in the logs.

                  Nothing else since.

                  mumblebajM 1 Reply Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @mwm341
                    last edited by

                    @mwm341 Can you share the link to the github repo for the module? I want to test it out and see.

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      mwm341 @mumblebaj
                      last edited by

                      @mumblebaj Here’s where I started …

                      https://github.com/ronny3050/email-mirror.git

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        mwm341 @mwm341
                        last edited by

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

                        mumblebajM 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy