Read the statement by Michael Teeuw here.
MMM-RemoteCompliments does not appear
-
@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)
-
@sdetweil Good point. It really should specify the google API as a dependency and tell you to install the module with npm.
-
@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
-
@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
-
@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???
-
@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.
-
@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?_=1593613231689you have to restore one file back to 2.10 level. copy paste/replace file contents
-
@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.
-
@justtrying they introduced a bug in 2.11
fix was to. put back the 2.10 version of the file.
2.12 supposedly fixes it correctly. 2.12 has other problems
-
@sdetweil as I said, I followed the instructions, I changed the socketclient.js file, still nothing.
The MM is up to date as well.