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.

    [MMM-GmailFeed] - Simple Gmail unread messages list/notification

    Scheduled Pinned Locked Moved Utilities
    20 Posts 14 Posters 8.1k Views 15 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.
    • P Offline
      Plainbroke 0
      last edited by

      Mykle1
      Thank you so much I spent probably 3 hrs trying to find it on my own…
      The only way I can learn this stuff.

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Plainbroke 0
        last edited by

        @Plainbroke-0

        Been there, my friend. Don’t sweat it. It takes time but it is rewarding. :thumbsup:

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • L Offline
          Lagmin
          last edited by

          Hello,

          I am getting: Error: [null].
          I’m 100% sure my email and password are correct. Do you know what can be the problem, please?

          Arek

          B 1 Reply Last reply Reply Quote 0
          • R Offline
            RhodanBull
            last edited by

            I got the same error and are searching for a solution

            1 Reply Last reply Reply Quote 0
            • E Offline
              eyebee
              last edited by

              I think it is to do with Google’s security settings. See if you got an email saying you had a blocked access attempt. You can change the settings under ‘security’ to allow less secure apps though it is not recommended.

              On the github it says you can set up an app specific password, again look under security settings in your google account, you need two factor authentication on…

              1 Reply Last reply Reply Quote 0
              • B Offline
                bdf @Lagmin
                last edited by

                @Lagmin , as the boss explain : “Your gmail password. If you are using 2 factor auth, you’ll need to generate a unique “App Password”. Go to your google account settings page, look in the “security” section on the left menu. You should find where to add an App Password there.” For me i’m not using 2 factor auth and i have the “null” message and have to allow less security App, maybe it 's the http and not https. I hope it will work for you.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bdf @shaneapowell
                  last edited by

                  @shaneapowell, Thanks a lot, work great.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    shaneapowell
                    last edited by

                    Hey Guys… sorry I’ve not been in here to respond to questions. My MagicMirror has been working so well… I totally forgot about this thread. :) I updated the Readme on the github with a brief explination of how to work with Google 2FA. Hope that helps future users.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      aarish
                      last edited by

                      After updating MM to the latest version, every time I have Gmailfeed in the config I get this error when I launch MM.

                      [22.12.2021 18:26.44.188] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
                      Require stack:
                      - /home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js
                      - /home/pi/MagicMirror/js/app.js
                      - /home/pi/MagicMirror/js/electron.js
                      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      - 
                      
                      

                      and …

                      Require stack:
                      - /home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js
                      - /home/pi/MagicMirror/js/app.js
                      - /home/pi/MagicMirror/js/electron.js
                      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      - 
                          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
                          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
                          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                          at Module._load (internal/modules/cjs/loader.js:732:27)
                          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
                          at Module.require (internal/modules/cjs/loader.js:959:19)
                          at require (internal/modules/cjs/helpers.js:88:18)
                          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js:2:15)
                          at Module._compile (internal/modules/cjs/loader.js:1078:30)
                          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
                      [22.12.2021 18:26.44.219] [ERROR] Whoops! There was an uncaught exception...
                      [22.12.2021 18:26.44.225] [ERROR] Error: Cannot find module 'request'
                      Require stack:
                      - /home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js
                      - /home/pi/MagicMirror/js/app.js
                      - /home/pi/MagicMirror/js/electron.js
                      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      - 
                          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
                          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
                          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                          at Module._load (internal/modules/cjs/loader.js:732:27)
                          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
                          at Module.require (internal/modules/cjs/loader.js:959:19)
                          at require (internal/modules/cjs/helpers.js:88:18)
                          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js:2:15)
                          at Module._compile (internal/modules/cjs/loader.js:1078:30)
                          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
                        code: 'MODULE_NOT_FOUND',
                        requireStack: [
                          '/home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js',
                          '/home/pi/MagicMirror/js/app.js',
                          '/home/pi/MagicMirror/js/electron.js',
                          '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
                          undefined
                        ]
                      }
                      
                      

                      Any ideas on how to fix this?

                      S J 2 Replies Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @aarish
                        last edited by

                        @aarish see
                        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        plainbrokeP 1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jo4K @aarish
                          last edited by

                          @aarish said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:

                          Cannot find module ‘request’

                          Ecrite noire sur blanc l’erreur : Cannot find module ‘request’
                          -> Faut juste installer le module demandé (request)
                          “npm install request” et le tour est joué

                          1 Reply Last reply Reply Quote 0
                          • plainbrokeP Offline
                            plainbroke @sdetweil
                            last edited by

                            @sdetweil said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:

                            @aarish see
                            https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                            Sam,
                            This did not work for me I could not find anywhere it showed which dependency
                            my MM needed to run the GmailFeed, but A nice person pointed out to me to run
                            npm install request in the MagicMirror/modules directory. Reinstalled the MMM-GmailFeed and then ran the npm install request in the modules directory and it WORKS again. Thank you to Kristjan ESPERANTO!

                            Slow learner. But trying anyways.
                            MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                            Running Trixie and the latest MM version.

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @plainbroke
                              last edited by sdetweil

                              @plainbroke module install instructions

                              git clone https://github.com/shaneapowell/MMM-GmailFeed.git
                              cd MMM-GmailFeed
                              npm install
                              

                              the GitHub page is the README.MD file

                              also, if the module has a package.json you need to npm install ( in the new module folder), even if they don’t say so

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              plainbrokeP 1 Reply Last reply Reply Quote 0
                              • R Offline
                                Ray
                                last edited by

                                I am having an unusual problem with it. It is preventing Googleassistant from bugsounet from loading
                                I tested this 3 times by disabling the update and another one disabling the module and finally I reinstalled the previous version and everything worked perfectly, so I don’t understand what’s going on here

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

                                  Also just came across a clash between GmailFeed and both MMM-News and MMM-NewsAPI.

                                  Seems my GmailFeed was a little out of date as a git pull updated stuff there and now they are playing nicely together. Must be something quite recent though as I’m sure I did a full mirror update not so long ago…?

                                  1 Reply Last reply Reply Quote 0
                                  • plainbrokeP Offline
                                    plainbroke @sdetweil
                                    last edited by plainbroke

                                    @sdetweil said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:

                                    @plainbroke module install instructions

                                    git clone https://github.com/shaneapowell/MMM-GmailFeed.git
                                    cd MMM-GmailFeed
                                    npm install
                                    

                                    the GitHub page is the README.MD file

                                    also, if the module has a package.json you need to npm install ( in the new module folder), even if they don’t say so

                                    I did all the npm install and it still did not work until I did the “npm install request” in the MagicMirror/modules folder, that alone fixed almost all my install issues… Could hardly believe something so simple fixed so much… And yes I have been running npm install in all my modules folders just to be safe. That pm2 restart mm && pm2 log lines=50 ( i think that is correct) really made life easier… Thanks to all whom helped with my issue…

                                    Slow learner. But trying anyways.
                                    MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                                    Running Trixie and the latest MM version.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @plainbroke
                                      last edited by

                                      @plainbroke said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:

                                      that alone fixed almost all my install issues… Could hardly believe something so simple fixed so much

                                      this is because the author didn’t record request being used in his package.json, cause it ‘worked’ without it…, because MM supplied it…

                                      but MM removed it because the library has been discontinued) (deprecate) and is exposed the security issues.

                                      oops… module didn’t declare, and its not there anymore… boom

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 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