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.

    Modules

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 4 Posters 4.9k Views 5 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.
    • G Offline
      gmigliarini
      last edited by yawns

      Using the module

      To use this module, add it to the modules array in the config/config.js file:

      modules: [
          {
              module: 'email',
                  position: 'bottom_left',
                  header: 'Email',
                  config:{
                      user: 'johndoe@gmail.com',
                      password: 'xxx',
                      host: 'imap.gmail.com',
                      port: 993,
                      tls: true,
                      authTimeout: 10000,
                      numberOfEmails: 5,
                      fade: true
              },
          }
      ]
      
      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @gmigliarini
        last edited by Mykle1

        @gmigliarini
        ok, to add this to your config here is an example on adding it between other modules already in your config.js file

                     {
        			module: 'helloworld',
        			position: 'top_bar',
        			classes: 'small bright',
        			config: {
        			text: 'Magic Mirror!'
        		}
        		},   // Mine ends here at the },
                        {   //Yours starts here at the {
                                module: ‘email’,
                                position: ‘bottom_left’,
                                header: ‘Email’,
                                config:{
                                user: ‘johndoe@gmail.com’,
                                password: ‘xxx’,
                                host: ‘imap.gmail.com’,
                                port: 993,
                                tls: true,
                                authTimeout: 10000,
                                numberOfEmails: 5,
                                fade: true
                        }   // No comma here!
                        },  // Yours ends here at the },
                        {   // Another one of mine begins
        			module: 'updatenotification',
        			position: 'top_bar',
        			config: {
        			updateInterval: 600000 // (10 minutes);
        		}
        		},
        

        Notice how there are no [ or ] in what you are adding. And also notice that I changed the last 2 } of yours. I removed the comma from the 2nd to last } and added a comma to the last }. Do the same when you add your entry. Look at mine to see how to add it correctly.

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • G Offline
          gmigliarini
          last edited by

          Many thanks for the help try everything and it does not work, my mirror works normally but when putting a MODULE does not work anymore. My email is gmigliarini@cox.net and I have TEAMVIEWER placed and you can enter. Thank you so much.

          yawnsY 1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator @gmigliarini
            last edited by

            @gmigliarini

            Just to be sure … did you git clone the email module into the right module folder?

            cd ~/MagicMirror/modules
            git clone https://github.com/ronny3050/email-mirror.git email
            cd email
            npm install
            
            L 1 Reply Last reply Reply Quote 0
            • G Offline
              gmigliarini
              last edited by

              Yes, my mirror works but adding MODULES does not work anymore and I have everything like that, I have TeamViewer on the raspberry 3 if you want to login. My email is gmigliarini@cox.net.

              1 Reply Last reply Reply Quote 0
              • yawnsY Offline
                yawns Moderator
                last edited by

                Please send me your teamviewer id and the password, I contacted you via chat

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lsaguiar @yawns
                  last edited by

                  @yawns I had install as your explanation, everything works, but no new emails are displaying, always have “no new email” and I have some there. How can I solve the issue? Many thanks in advance.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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