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.

    Google Assistant Shopping List display

    Scheduled Pinned Locked Moved Requests
    27 Posts 9 Posters 12.5k Views 10 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.
    • ChrisC Offline
      Chris @Guest
      last edited by

      @sean

      Hello,

      I tested this module too. I do not have any problems with launching my MagicMiror. The module appears well but remains empty despite the fact that I add items in my shopping list.

      I started the mirror with the command npm start dev and I have one error that appears:

      (node:5912) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 9): Error: Failed to launch chrome!
      /home/pi/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/.local-chromium/linux-579032/chrome-linux/chrome: 1: /home/pi/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/.local-chromium/linux-579032/chrome-linux/chrome: Syntax error: word unexpected (expecting ")")
      
      
      TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
      
      

      Do you have any idea of the problem?
      Thank you in advance,

      Regards,

      ? 1 Reply Last reply Reply Quote 0
      • S Offline
        sforsyth @Guest
        last edited by

        @sean
        npm start dev gives me the following:

        WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
        Loading module helpers …
        App threw an error during load
        /home/pi/MagicMirror/modules/MMM-GoogleShoppingList/node_helper.js:51
        async function get(headless) {
        ^^^^^^^^
        SyntaxError: Unexpected token function
        at Object.exports.runInThisContext (vm.js:76:16)
        at Module._compile (module.js:528:28)
        at Object.Module._extensions…js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)
        at Function.Module._load (module.js:424:3)
        at Module.require (module.js:483:17)
        at require (internal/module.js:20:19)
        at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
        at loadNextModule (/home/pi/MagicMirror/js/app.js:161:5)
        Whoops! There was an uncaught exception…
        /home/pi/MagicMirror/modules/MMM-GoogleShoppingList/node_helper.js:51
        async function get(headless) {
        ^^^^^^^^
        SyntaxError: Unexpected token function
        at Object.exports.runInThisContext (vm.js:76:16)
        at Module._compile (module.js:528:28)
        at Object.Module._extensions…js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)
        at Function.Module._load (module.js:424:3)
        at Module.require (module.js:483:17)
        at require (internal/module.js:20:19)
        at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
        at loadNextModule (/home/pi/MagicMirror/js/app.js:161:5)
        MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        Launching application.

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @Chris
          last edited by

          @chris
          I’ve found what was wrong. I’m making an urgent fix. But not completely works.
          The main reason of your issue was, lacking puppeteer had not proper Chromium for Raspberry Pi. It was not a big problem,
          But during making fixture, I found something. Google ShoppingList site has a very lazy loading of contents and I couldn’t catch the exact time when all the contents were loaded.
          That will makes often to get an empty list. I will abandon puppeteer and try other things. But it will take some time. Sorry.

          @sforsyth your node version is too low. async will be working over node version 7.6

          S ChrisC 2 Replies Last reply Reply Quote 0
          • S Offline
            sforsyth @Guest
            last edited by

            @sean Hey Sean, Sorry man, I have no idea what that means when you say my node “version is too low”…

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @sforsyth
              last edited by

              @sforsyth “async” feature would work above node version 7.6. your node version might be lower than 7.6.
              Anyway, I cannot fix the main issue of this module at this moment, so you don’t have to bother yourself with this module. sorry.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sforsyth @Guest
                last edited by

                @sean Ah. I meant I have no idea what my “node” is. :)
                Anyway, if it doesn’t work, it doesn’t work. Thanks for putting the time in to try it, I really appreciate it!

                1 Reply Last reply Reply Quote 0
                • ChrisC Offline
                  Chris @Guest
                  last edited by

                  @sean

                  Bonjour,

                  Pas de soucis pour moi, j’attendrai que tu ais le temps de te pencher sur le problème.

                  Merci pour ton travail,

                  Cordialement,

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

                    @sean Hi Sean, and thanks for the effort put into this module. I too have the same problem as @sforsyth - just a white screen and magic mirror does not load. I have installed puppeteer and chromium as per your install instructions but still no action. I’m Just keeping an eye on this thread looking forward to a fix! Thanks again.

                    ? 1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @shavesophere
                      last edited by

                      @shavesophere
                      I’ve already updated fixed version a few days ago. So I wonder which version did you test.
                      And I need more detailed error logs to find what was your problem.

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Ron.kamstra
                        last edited by

                        Hi,
                        Installed the module but it always says Loading…
                        can you assist?

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