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.

    Email

    Scheduled Pinned Locked Moved Productivity
    92 Posts 36 Posters 124.3k Views 39 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.
    • justjim1220J Offline
      justjim1220 Module Developer @umairshah
      last edited by

      @umairshah
      If you add a module to the default folder, you have to make the necessary changes to the default.js file to include it.

      It’s just better to put it in the modules folder.

      "Life's Too Short To Dance With Ugly People"
      Jim Hallock - 1995

      U 1 Reply Last reply Reply Quote 0
      • U Offline
        umairshah @justjim1220
        last edited by

        @justjim1220 said in Email:

        ou add a module to the default folder, you have to make the necessary changes to the default.js file to inc

        @justjim
        It is not in default folder, it is in the module folder.
        when I download and tried to install it gave error of no repository and license field in package.json, but when I add those fields in package.json then it showed spdx expression error.

        justjim1220J 1 Reply Last reply Reply Quote 0
        • justjim1220J Offline
          justjim1220 Module Developer @umairshah
          last edited by justjim1220

          @umairshah
          @ime90

          Can you show your config.js file here?

          Make sure you hide personal info…

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

          I 1 Reply Last reply Reply Quote 0
          • I Offline
            ime90 @justjim1220
            last edited by ime90

            @justjim1220

            var config = {
            address: “localhost”,
            port: 8080,
            ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],

            language: "en",
            timeFormat: 24,
            units: "metric",
            
            modules: [
            	{
            		module: "alert",
            	},
            
            	{
            		module: 'email',
                            position: 'bottom_left',
                            header: 'Email',
                            config: {
                                accounts: [
                                    
                                    {
                                        user: '**@gmail.com',
                                        password: '**',
                                        host: 'imap.gmail.com',
                                        port: 993,
                                        tls: true,
                                        authTimeout: 10000,
                                        numberOfEmails: 2,
                                    }
                                ],
                                fade: true,
                                maxCharacters: 30,
            		    subjectLength: 50
                            }
            	},
            
            	{
            		module: "updatenotification",
            		position: "top_bar"
            	},
            	{
            		module: "clock",
            		position: "top_left"
            	},
            	{
            		module: "calendar",
            		header: "US Holidays",
            		position: "top_left",
            		config: {
            			calendars: [
            				{
            					symbol: "calendar-check-o ",
            					url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
            				}
            			]
            		}
            	},
            	{
            		module: "compliments",
            		position: "lower_third"
            	},
            	{
            		module: "currentweather",
            		position: "top_right",
            		config: {
            			location: "New York",
            			locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
            			appid: "YOUR_OPENWEATHER_API_KEY"
            		}
            	},
            	{
            		module: "weatherforecast",
            		position: "top_right",
            		header: "Weather Forecast",
            		config: {
            			location: "New York",
            			locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
            			appid: "YOUR_OPENWEATHER_API_KEY"
            		}
            	},
            	{
            		module: "newsfeed",
            		position: "bottom_bar",
            		config: {
            			feeds: [
            				{
            					title: "New York Times",
            					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
            				}
            			],
            			showSourceTitle: true,
            			showPublishDate: true
            		}
            	},
            ]
            

            };

            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== “undefined”) {module.exports = config;}

            justjim1220J 2 Replies Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @ime90
              last edited by

              @ime90

              Try changing the fade to false.

              Make sure your email address and password are case correct (uppercase and lowercase).

              Other than that, I don’t see an issue with the syntax.

              You did change the config.js.sample to config.js, correct?

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              1 Reply Last reply Reply Quote 0
              • justjim1220J Offline
                justjim1220 Module Developer @ime90
                last edited by

                @ime90

                Also…

                I have found that some modules don’t work as well with the single quotes (’ ').

                Try changing them all to the double quotes (" ")

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                I 1 Reply Last reply Reply Quote 0
                • I Offline
                  ime90 @justjim1220
                  last edited by

                  @justjim1220

                  Yeah, I changed it of course. I’ll try out the double quotation marks and all you recommended.

                  Can you just tell me, does this module work for you at this time for Gmail or any other mail?

                  justjim1220J 1 Reply Last reply Reply Quote 0
                  • justjim1220J Offline
                    justjim1220 Module Developer @ime90
                    last edited by

                    @ime90

                    Yes, it works for me with my Gmail, my Hotmail, and my Yahoo mail. But I have since decided to link all three to my Gmail so I use just the one to receive all of them. But, I have tested it with all three and it does work.

                    "Life's Too Short To Dance With Ugly People"
                    Jim Hallock - 1995

                    I 1 Reply Last reply Reply Quote 1
                    • I Offline
                      ime90 @justjim1220
                      last edited by

                      @justjim1220

                      Tried it all but still getting “No new Mail” text. I dunno where I’m going wrong. Could you please copy your module text (or send me on private) so I can compare them. Also, did you do anything on your own gmail account that could help? I changed the imap settings.

                      I get this error:

                      
                      Email notifier error:  { Error: Web login required: https://support.google.com/mail/answer/78754 (Failure)
                          at Connection._resTagged (/home/pi/MagicMirror/modules/email/node_modules/imap/lib/Connection.js:1502:11)
                      
                      
                      at emitOne (events.js:96:13)
                          at Parser.emit (events.js:191:7)
                          at Parser._resTagged (/home/pi/MagicMirror/modules/email/node_modules/imap/lib/Parser.js:175:10)
                          at Parser._parse (/home/pi/MagicMirror/modules/email/node_modules/imap/lib/Parser.js:139:16)
                          at Parser._tryread (/home/pi/MagicMirror/modules/email/node_modules/imap/lib/Parser.js:82:15)
                          at TLSSocket.Parser._cbReadable (/home/pi/MagicMirror/modules/email/node_modules/imap/lib/Parser.js:53:12)
                          at emitNone (events.js:86:13)
                          at TLSSocket.emit (events.js:188:7) type: 'no', textCode: 'ALERT', source: 'authentication' }
                      
                      justjim1220J 1 Reply Last reply Reply Quote 0
                      • justjim1220J Offline
                        justjim1220 Module Developer @ime90
                        last edited by

                        @ime90

                        Follow the link given in your error…

                        https://support.google.com/mail/answer/78754

                        Then follow the instructions to set your account to use less secure apps with your account…

                        I’m pretty sure that I had to do that to get mine to work.

                        There are other things to try as well.

                        "Life's Too Short To Dance With Ugly People"
                        Jim Hallock - 1995

                        I 1 Reply Last reply Reply Quote 2
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 9
                        • 10
                        • 4 / 10
                        • 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