• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-RemoteCompliments does not appear

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 5 Posters 2.2k 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.
  • J Offline
    justtrying
    last edited by Jun 8, 2020, 10:47 AM

    Hi everyone I hope someone can help me out with this.
    I’m a newbie on the raspberri pi, and I tried to install MMM-RemoteCompliments as my first module.
    I followed the instructions, setup was a success, put the module code in my config.js, but when I start my MagicMirror the module does not show up, not even the header. I’ve tried moving it around, but it’s nowhere to be seen.
    I’ve checked my code, I even copy pasted it directly from the instructions to make sure I didn’t make a typo.
    The only thing I can think of is that I accidentally first installed the module in the wrong folder, and it might be an interference? I can’t get it removed though for some reason, so I can’t check if that’s the problem.

    Any help would be great!

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer
      last edited by Jun 9, 2020, 12:41 PM

      @justtrying - Are any of the other modules appearing? The clock, for example?

      The easiest way to check for errors is to check the logs. If you’re using PM2 to auto-start your mirror, then you can just enter pm2 log 0 and look for messages that contain “error”.

      If you don’t see anything there, you can check the front-end logs by stopping your mirror (pm2 stop 0, changing to the install directory (cd /home/pi/MagicMirror) and displaying the developer console: npm start dev. That will show you any errors that may be preventing your module from displaying.

      Let’s check on where you did install it. Get a terminal connection to your Pi (SSH into it, open a terminal on the pi itself, whatever). Once there, type ls /home/pi/MagicMirror/modules and see if the module is among the results. If it is not present, then you’ll have to clone it into the proper location.

      To do so, it’s just a handful of commands. Do this as the pi user, do not do this as root. One at a time:

      • change to the proper directory: cd /home/pi/MagicMirror/modules
      • clone the module from GitHub: git clone https://github.com/mitchelltmarino/MMM-RemoteCompliments.git
      • restart your mirror process: pm2 restart all

      Give these a try and report back. Remember to use the markdown features of the forum!

      S J 2 Replies Last reply Jun 9, 2020, 1:14 PM Reply Quote 0
      • S Offline
        sdetweil @bhepler
        last edited by Jun 9, 2020, 1:14 PM

        @bhepler this module may/should fail as it depends on the googleapis library but unlikely it is installed…

        the module does not provide a package.json file (as it should) , but does document it

        Download dependencies
            Open the console and enter npm install googleapis
                  This will install the Google APIs service. (Working as of googleapis@33.0.0)
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Jun 9, 2020, 7:20 PM Reply Quote 0
        • B Offline
          bhepler Module Developer @sdetweil
          last edited by Jun 9, 2020, 7:20 PM

          @sdetweil Good point. It really should specify the google API as a dependency and tell you to install the module with npm.

          S 1 Reply Last reply Jun 9, 2020, 7:56 PM Reply Quote 0
          • S Offline
            sdetweil @bhepler
            last edited by Jun 9, 2020, 7:56 PM

            @bhepler it does, that is the text of the instructions

            really it should have a package.json, which documents all these and makes it so the user doesn’t have to read and type

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • J Offline
              justtrying @bhepler
              last edited by Jun 12, 2020, 8:52 AM

              @bhepler said in MMM-RemoteCompliments does not appear:

              the markdown features

              ok so when I put in npm install googleapis
              I get the following error message:

              npm install googleapis
              npm WARN checkPermissions Missing write access to /home/pi/node_modules/pm2
              npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
              npm WARN pi No description
              npm WARN pi No repository field.
              npm WARN pi No README data
              npm WARN pi No license field.
              
              npm ERR! code EACCES
              npm ERR! syscall access
              npm ERR! path /home/pi/node_modules/pm2
              npm ERR! errno -13
              npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/pm2'
              npm ERR! { [Error: EACCES: permission denied, access '/home/pi/node_modules/pm2']
              npm ERR! stack:
              npm ERR! 'Error: EACCES: permission denied, access \'/home/pi/node_modules/pm2\'',
              npm ERR! errno: -13,
              npm ERR! code: 'EACCES',
              npm ERR! syscall: 'access',
              npm ERR! path: '/home/pi/node_modules/pm2' }
              npm ERR! 
              npm ERR! The operation was rejected by your operating system.
              npm ERR! It is likely you do not have the permissions to access this file as the current user
              npm ERR! 
              npm ERR! If you believe this might be a permissions issue, please double-check the
              npm ERR! permissions of the file and its containing directories, or try running
              npm ERR! the command again as root/Administrator.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR! /home/pi/.npm/_logs/2020-06-12T08_24_18_697Z-debug.log
              
              

              I checked the location as instructed, and it showed that the installed modules were default en MMM-RemoteCompliments, so it is in the correct spot.

              I checked the log, and I get the following error message:

              pm2 log 0
              [TAILING] Tailing last 15 lines for [0] process (change the value with --lines option)
              /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
              0|MagicMir | at loadConfig (/home/pi/MagicMirror/js/app.js:69:12)
              0|MagicMir | at App.start (/home/pi/MagicMirror/js/app.js:210:3)
              0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:115:7)
              0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:786:30)
              0|MagicMir | [2020-06-07 17:47:32.481] [ERROR] Calendar Error. Could not fetch calendar: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics Error: getaddrinfo EAI_AGAIN www.calendarlabs.com
              0|MagicMir | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) {
              0|MagicMir | errno: 'EAI_AGAIN',
              0|MagicMir | code: 'EAI_AGAIN',
              0|MagicMir | syscall: 'getaddrinfo',
              0|MagicMir | hostname: 'www.calendarlabs.com'
              0|MagicMir | }
              0|MagicMir | [2020-06-07 17:47:32.704] [ERROR] fatal: unable to access 'https://github.com/mitchelltmarino/MMM-RemoteCompliments.git/': Could not resolve host: github.com
              0|MagicMir | 
              0|MagicMir | [2020-06-07 17:47:32.710] [ERROR] fatal: unable to access 'https://github.com/MichMich/MagicMirror.git/': Could not resolve host: github.com
              0|MagicMir | 
              
              /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
              0|MagicMir | at new driveFetcher (/home/pi/MagicMirror/modules/MMM-RemoteCompliments/Drive/DriveUtils.js:40:36)
              0|MagicMir | at Class.start (/home/pi/MagicMirror/modules/MMM-RemoteCompliments/node_helper.js:43:23)
              0|MagicMir | at /home/pi/MagicMirror/js/app.js:230:18
              0|MagicMir | at new Server (/home/pi/MagicMirror/js/server.js:84:3) {
              0|MagicMir | errno: -2,
              0|MagicMir | syscall: 'open',
              0|MagicMir | code: 'ENOENT',
              0|MagicMir | path: '/home/pi/MagicMirror/modules/MMM-RemoteCompliments/Drive/Token.json'
              0|MagicMir | }
              0|MagicMir | [2020-06-12 10:23:13.727] [LOG] Starting node helper for: MMM-RemoteCompliments
              0|MagicMir | [2020-06-12 10:23:13.727] [LOG] Sockets connected & modules started ...
              0|MagicMir | [2020-06-12 10:23:13.816] [LOG] [SIGINT] Received. Shutting down server...
              0|MagicMir | [2020-06-12 10:23:13.818] [LOG] Stopping module helper: updatenotification
              0|MagicMir | [2020-06-12 10:23:13.819] [LOG] Stopping module helper: calendar
              0|MagicMir | [2020-06-12 10:23:13.819] [LOG] Stopping module helper: MMM-RemoteCompliments	 	 	
               npm install googleapis
              npm WARN checkPermissions Missing write access to /home/pi/node_modules/pm2
              npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
              npm WARN pi No description
              npm WARN pi No repository field.
              npm WARN pi No README data
              npm WARN pi No license field.
              
              npm ERR! code EACCES
              npm ERR! syscall access
              npm ERR! path /home/pi/node_modules/pm2
              npm ERR! errno -13
              npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/pm2'
              npm ERR! { [Error: EACCES: permission denied, access '/home/pi/node_modules/pm2']
              npm ERR! stack:
              npm ERR! 'Error: EACCES: permission denied, access \'/home/pi/node_modules/pm2\'',
              npm ERR! errno: -13,
              npm ERR! code: 'EACCES',
              npm ERR! syscall: 'access',
              npm ERR! path: '/home/pi/node_modules/pm2' }
              npm ERR!
              npm ERR! The operation was rejected by your operating system.
              npm ERR! It is likely you do not have the permissions to access this file as the current user
              npm ERR!
              npm ERR! If you believe this might be a permissions issue, please double-check the
              npm ERR! permissions of the file and its containing directories, or try running
              npm ERR! the command again as root/Administrator.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR! /home/pi/.npm/_logs/2020-06-12T08_24_18_697Z-debug.log
              
              

              When I gave the same command again I got:

              pm2 log 0
              [TAILING] Tailing last 15 lines for [0] process (change the value with --lines option)
              /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
              0|MagicMir | at loadConfig (/home/pi/MagicMirror/js/app.js:69:12)
              0|MagicMir | at App.start (/home/pi/MagicMirror/js/app.js:210:3)
              0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:115:7)
              0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:786:30)
              0|MagicMir | [2020-06-07 17:47:32.481] [ERROR] Calendar Error. Could not fetch calendar: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics Error: getaddrinfo EAI_AGAIN www.calendarlabs.com
              0|MagicMir | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) {
              0|MagicMir | errno: 'EAI_AGAIN',
              0|MagicMir | code: 'EAI_AGAIN',
              0|MagicMir | syscall: 'getaddrinfo',
              0|MagicMir | hostname: 'www.calendarlabs.com'
              0|MagicMir | }
              0|MagicMir | [2020-06-07 17:47:32.704] [ERROR] fatal: unable to access 'https://github.com/mitchelltmarino/MMM-RemoteCompliments.git/': Could not resolve host: github.com
              0|MagicMir |
              0|MagicMir | [2020-06-07 17:47:32.710] [ERROR] fatal: unable to access 'https://github.com/MichMich/MagicMirror.git/': Could not resolve host: github.com
              0|MagicMir |
              
              /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
              0|MagicMir | at new driveFetcher (/home/pi/MagicMirror/modules/MMM-RemoteCompliments/Drive/DriveUtils.js:40:36)
              0|MagicMir | at Class.start (/home/pi/MagicMirror/modules/MMM-RemoteCompliments/node_helper.js:43:23)
              0|MagicMir | at /home/pi/MagicMirror/js/app.js:230:18
              0|MagicMir | at new Server (/home/pi/MagicMirror/js/server.js:84:3) {
              0|MagicMir | errno: -2,
              0|MagicMir | syscall: 'open',
              0|MagicMir | code: 'ENOENT',
              0|MagicMir | path: '/home/pi/MagicMirror/modules/MMM-RemoteCompliments/Drive/Token.json'
              0|MagicMir | }
              0|MagicMir | [2020-06-12 10:23:13.727] [LOG] Starting node helper for: MMM-RemoteCompliments
              0|MagicMir | [2020-06-12 10:23:13.727] [LOG] Sockets connected & modules started ...
              0|MagicMir | [2020-06-12 10:23:13.816] [LOG] [SIGINT] Received. Shutting down server...
              0|MagicMir | [2020-06-12 10:23:13.818] [LOG] Stopping module helper: updatenotification
              0|MagicMir | [2020-06-12 10:23:13.819] [LOG] Stopping module helper: calendar
              0|MagicMir | [2020-06-12 10:23:13.819] [LOG] Stopping module helper: MMM-RemoteCompliments
              
              
              
              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil
                last edited by Jun 12, 2020, 11:17 AM

                @justtrying said in MMM-RemoteCompliments does not appear:

                /home/pi/node_modules

                but it looks like you are not in the MM folder or the module folder where u need to install this

                looks like you are in the users home folder (/home/pi)

                for a module, you should be in

                /home/pi/MagicMirror/modules/???modulename???

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Jul 1, 2020, 2:10 PM Reply Quote 0
                • J Offline
                  justtrying @sdetweil
                  last edited by Jul 1, 2020, 2:10 PM

                  @sdetweil
                  I tried to do as you said, so changed it to MMM-RemoteCompliments, and got this:

                  pi@RideorDie:~/MagicMirror/modules/MMM-RemoteCompliments $ npm install googleapis
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                  
                  + googleapis@52.1.0
                  updated 1 package and audited 829 packages in 49.282s
                  
                  29 packages are looking for funding
                    run `npm fund` for details
                  
                  found 3 low severity vulnerabilities
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  

                  Still no remote compliments showing up sadly. I’m thinking about rebooting the entire thing and reinstalling MM.

                  S 1 Reply Last reply Jul 1, 2020, 2:50 PM Reply Quote 0
                  • S Offline
                    sdetweil @justtrying
                    last edited by sdetweil Jul 1, 2020, 2:52 PM Jul 1, 2020, 2:50 PM

                    @justtrying I haven’t used that. module. but maybe it has the same problem as remote control.
                    .see this topic
                    https://forum.magicmirror.builders/topic/12485/has-anyone-got-mmm-remote-control-working-on-mm-2-11/10?_=1593613231689

                    you have to restore one file back to 2.10 level. copy paste/replace file contents

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Jul 5, 2020, 12:35 PM Reply Quote 0
                    • J Offline
                      justtrying @sdetweil
                      last edited by Jul 5, 2020, 12:35 PM

                      @sdetweil Followed these instructions, still no module appearing. It really sucks, I tried reinstalling everything, followed every instruction to a T (even though the setup instructions are outdated), but it just doesn’t work.

                      S 1 Reply Last reply Jul 5, 2020, 12:47 PM 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